diff --git a/docs/accounting/AccountingApi.md b/docs/accounting/AccountingApi.md index 7828aae6..876eaf3e 100644 --- a/docs/accounting/AccountingApi.md +++ b/docs/accounting/AccountingApi.md @@ -61,6 +61,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_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 [**delete_contact_group_contacts**](AccountingApi.md#delete_contact_group_contacts) | **DELETE** /ContactGroups/{ContactGroupID}/Contacts | Deletes all contacts from a specific contact group [**delete_item**](AccountingApi.md#delete_item) | **DELETE** /Items/{ItemID} | Deletes a specific item @@ -351,7 +353,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **account_id** | **String**| Unique identifier for Account object | + **account_id** | [**String**](.md)| Unique identifier for Account object | **file_name** | **String**| Name of the attachment | **body** | **String**| Byte array of file in body of request | @@ -419,7 +421,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **bank_transaction_id** | **String**| Xero generated unique identifier for a bank transaction | + **bank_transaction_id** | [**String**](.md)| Xero generated unique identifier for a bank transaction | **file_name** | **String**| Name of the attachment | **body** | **String**| Byte array of file in body of request | @@ -486,7 +488,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **bank_transaction_id** | **String**| Xero generated unique identifier for a bank transaction | + **bank_transaction_id** | [**String**](.md)| Xero generated unique identifier for a bank transaction | **history_records** | [**HistoryRecords**](HistoryRecords.md)| HistoryRecords containing an array of HistoryRecord objects in body of request | ### Return type @@ -537,7 +539,7 @@ api_instance = xero_client. xero_tenant_id = 'YOUR_XERO_TENANT_ID' # String | Xero identifier for Tenant bank_transactions = { bankTransactions: [{ type: BankTransaction.TypeEnum.SPEND, contact: { contactID: "00000000-0000-0000-0000-000000000000" }, lineItems: [{ description: "Foobar", quantity: 1.0, unitAmount: 20.0, accountCode: "000" } ], bankAccount: { code: "000" }}]} # BankTransactions | BankTransactions with an array of BankTransaction objects in body of request opts = { - summarize_errors: true, # Boolean | If false return 200 OK and mix of successfully created objects and any with validation errors + summarize_errors: false, # Boolean | If false return 200 OK and mix of successfully created objects and any with validation errors unitdp: 4 # Integer | e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts } @@ -688,7 +690,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **bank_transfer_id** | **String**| Xero generated unique identifier for a bank transfer | + **bank_transfer_id** | [**String**](.md)| Xero generated unique identifier for a bank transfer | **file_name** | **String**| Name of the attachment | **body** | **String**| Byte array of file in body of request | @@ -755,7 +757,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **bank_transfer_id** | **String**| Xero generated unique identifier for a bank transfer | + **bank_transfer_id** | [**String**](.md)| Xero generated unique identifier for a bank transfer | **history_records** | [**HistoryRecords**](HistoryRecords.md)| HistoryRecords containing an array of HistoryRecord objects in body of request | ### Return type @@ -806,7 +808,7 @@ api_instance = xero_client. xero_tenant_id = 'YOUR_XERO_TENANT_ID' # String | Xero identifier for Tenant batch_payments = { "BatchPayments": [ { "Account": { "AccountID": "00000000-0000-0000-0000-000000000000" }, "Reference": "ref", "Date": "2018-08-01", "Payments": [ { "Account": { "Code": "001" }, "Date": "2019-12-31", "Amount": 500, "Invoice": { "InvoiceID": "00000000-0000-0000-0000-000000000000", "LineItems": [], "Contact": {}, "Type": "ACCPAY" } } ] } ] } # BatchPayments | BatchPayments with an array of Payments in body of request opts = { - summarize_errors: true # Boolean | If false return 200 OK and mix of successfully created objects and any with validation errors + summarize_errors: false # Boolean | If false return 200 OK and mix of successfully created objects and any with validation errors } begin @@ -890,7 +892,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **batch_payment_id** | **String**| Unique identifier for BatchPayment | + **batch_payment_id** | [**String**](.md)| Unique identifier for BatchPayment | **history_records** | [**HistoryRecords**](HistoryRecords.md)| HistoryRecords containing an array of HistoryRecord objects in body of request | ### Return type @@ -956,7 +958,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **branding_theme_id** | **String**| Unique identifier for a Branding Theme | + **branding_theme_id** | [**String**](.md)| Unique identifier for a Branding Theme | **payment_service** | [**PaymentService**](PaymentService.md)| PaymentService object in body of request | ### Return type @@ -1022,7 +1024,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **contact_id** | **String**| Unique identifier for a Contact | + **contact_id** | [**String**](.md)| Unique identifier for a Contact | **file_name** | **String**| Name of the attachment | **body** | **String**| Byte array of file in body of request | @@ -1153,7 +1155,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **contact_group_id** | **String**| Unique identifier for a Contact Group | + **contact_group_id** | [**String**](.md)| Unique identifier for a Contact Group | **contacts** | [**Contacts**](Contacts.md)| Contacts with array of contacts specifying the ContactID to be added to ContactGroup in body of request | ### Return type @@ -1219,7 +1221,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **contact_id** | **String**| Unique identifier for a Contact | + **contact_id** | [**String**](.md)| Unique identifier for a Contact | **history_records** | [**HistoryRecords**](HistoryRecords.md)| HistoryRecords containing an array of HistoryRecord objects in body of request | ### Return type @@ -1270,7 +1272,7 @@ api_instance = xero_client. xero_tenant_id = 'YOUR_XERO_TENANT_ID' # String | Xero identifier for Tenant contacts = { "Contacts": [ { "ContactID": "3ff6d40c-af9a-40a3-89ce-3c1556a25591", "ContactStatus": "ACTIVE", "Name": "Foo9987", "EmailAddress": "sid32476@blah.com", "BankAccountDetails": "", "Addresses": [ { "AddressType": "STREET", "City": "", "Region": "", "PostalCode": "", "Country": "" }, { "AddressType": "POBOX", "City": "", "Region": "", "PostalCode": "", "Country": "" } ], "Phones": [ { "PhoneType": "DEFAULT", "PhoneNumber": "", "PhoneAreaCode": "", "PhoneCountryCode": "" }, { "PhoneType": "DDI", "PhoneNumber": "", "PhoneAreaCode": "", "PhoneCountryCode": "" }, { "PhoneType": "FAX", "PhoneNumber": "", "PhoneAreaCode": "", "PhoneCountryCode": "" }, { "PhoneType": "MOBILE", "PhoneNumber": "555-1212", "PhoneAreaCode": "415", "PhoneCountryCode": "" } ], "UpdatedDateUTC": "/Date(1551399321043+0000)/", "ContactGroups": [], "IsSupplier": false, "IsCustomer": false, "SalesTrackingCategories": [], "PurchasesTrackingCategories": [], "PaymentTerms": { "Bills": { "Day": 15, "Type": "OFCURRENTMONTH" }, "Sales": { "Day": 10, "Type": "DAYSAFTERBILLMONTH" } }, "ContactPersons": [] } ] } # Contacts | Contacts with an array of Contact objects to create in body of request opts = { - summarize_errors: true # Boolean | If false return 200 OK and mix of successfully created objects and any with validation errors + summarize_errors: false # Boolean | If false return 200 OK and mix of successfully created objects and any with validation errors } begin @@ -1340,7 +1342,7 @@ xero_tenant_id = 'YOUR_XERO_TENANT_ID' # String | Xero identifier for Tenant credit_note_id = '00000000-0000-0000-0000-000000000000' # String | Unique identifier for a Credit Note allocations = { "Allocations": [ { "Invoice": { "LineItems": [], "InvoiceID": "c45720a1-ade3-4a38-a064-d15489be6841" }, "Amount": 1, "Date": "2019-03-05" } ] } # Allocations | Allocations with array of Allocation object in body of request. opts = { - summarize_errors: true # Boolean | If false return 200 OK and mix of successfully created objects and any with validation errors + summarize_errors: false # Boolean | If false return 200 OK and mix of successfully created objects and any with validation errors } begin @@ -1358,7 +1360,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **credit_note_id** | **String**| Unique identifier for a Credit Note | + **credit_note_id** | [**String**](.md)| Unique identifier for a Credit Note | **allocations** | [**Allocations**](Allocations.md)| Allocations with array of Allocation object in body of request. | **summarize_errors** | **Boolean**| If false return 200 OK and mix of successfully created objects and any with validation errors | [optional] [default to false] @@ -1412,7 +1414,7 @@ credit_note_id = '00000000-0000-0000-0000-000000000000' # String | Unique identi file_name = 'xero-dev.jpg' # String | Name of the attachment body = 'body_example' # String | Byte array of file in body of request opts = { - include_online: true # Boolean | Allows an attachment to be seen by the end customer within their online invoice + include_online: false # Boolean | Allows an attachment to be seen by the end customer within their online invoice } begin @@ -1430,7 +1432,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **credit_note_id** | **String**| Unique identifier for a Credit Note | + **credit_note_id** | [**String**](.md)| Unique identifier for a Credit Note | **file_name** | **String**| Name of the attachment | **body** | **String**| Byte array of file in body of request | **include_online** | **Boolean**| Allows an attachment to be seen by the end customer within their online invoice | [optional] [default to false] @@ -1498,7 +1500,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **credit_note_id** | **String**| Unique identifier for a Credit Note | + **credit_note_id** | [**String**](.md)| Unique identifier for a Credit Note | **history_records** | [**HistoryRecords**](HistoryRecords.md)| HistoryRecords containing an array of HistoryRecord objects in body of request | ### Return type @@ -1549,7 +1551,7 @@ api_instance = xero_client. xero_tenant_id = 'YOUR_XERO_TENANT_ID' # String | Xero identifier for Tenant credit_notes = { "CreditNotes":[ { "Type":"ACCPAYCREDIT", "Contact":{ "ContactID":"430fa14a-f945-44d3-9f97-5df5e28441b8" }, "Date":"2019-01-05", "LineItems":[ { "Description":"Foobar", "Quantity":2.0, "UnitAmount":20.0, "AccountCode":"400" } ] } ] } # CreditNotes | Credit Notes with array of CreditNote object in body of request opts = { - summarize_errors: true, # Boolean | If false return 200 OK and mix of successfully created objects and any with validation errors + summarize_errors: false, # Boolean | If false return 200 OK and mix of successfully created objects and any with validation errors unitdp: 4 # Integer | e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts } @@ -1685,7 +1687,7 @@ api_instance = xero_client. xero_tenant_id = 'YOUR_XERO_TENANT_ID' # String | Xero identifier for Tenant employees = { "Employees": [ { "FirstName": "Nick", "LastName": "Fury", "ExternalLink": { "Url": "http://twitter.com/#!/search/Nick+Fury" } } ] } # Employees | Employees with array of Employee object in body of request opts = { - summarize_errors: true # Boolean | If false return 200 OK and mix of successfully created objects and any with validation errors + summarize_errors: false # Boolean | If false return 200 OK and mix of successfully created objects and any with validation errors } begin @@ -1769,7 +1771,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **expense_claim_id** | **String**| Unique identifier for a ExpenseClaim | + **expense_claim_id** | [**String**](.md)| Unique identifier for a ExpenseClaim | **history_records** | [**HistoryRecords**](HistoryRecords.md)| HistoryRecords containing an array of HistoryRecord objects in body of request | ### Return type @@ -1886,7 +1888,7 @@ invoice_id = '00000000-0000-0000-0000-000000000000' # String | Unique identifier file_name = 'xero-dev.jpg' # String | Name of the attachment body = 'body_example' # String | Byte array of file in body of request opts = { - include_online: true # Boolean | Allows an attachment to be seen by the end customer within their online invoice + include_online: false # Boolean | Allows an attachment to be seen by the end customer within their online invoice } begin @@ -1904,7 +1906,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **invoice_id** | **String**| Unique identifier for an Invoice | + **invoice_id** | [**String**](.md)| Unique identifier for an Invoice | **file_name** | **String**| Name of the attachment | **body** | **String**| Byte array of file in body of request | **include_online** | **Boolean**| Allows an attachment to be seen by the end customer within their online invoice | [optional] [default to false] @@ -1972,7 +1974,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **invoice_id** | **String**| Unique identifier for an Invoice | + **invoice_id** | [**String**](.md)| Unique identifier for an Invoice | **history_records** | [**HistoryRecords**](HistoryRecords.md)| HistoryRecords containing an array of HistoryRecord objects in body of request | ### Return type @@ -2023,7 +2025,7 @@ api_instance = xero_client. xero_tenant_id = 'YOUR_XERO_TENANT_ID' # String | Xero identifier for Tenant invoices = { "Invoices": [ { "Type": "ACCREC", "Contact": { "ContactID": "430fa14a-f945-44d3-9f97-5df5e28441b8" }, "LineItems": [ { "Description": "Acme Tires", "Quantity": 2, "UnitAmount": 20, "AccountCode": "200", "TaxType": "NONE", "LineAmount": 40 } ], "Date": "2019-03-11", "DueDate": "2018-12-10", "Reference": "Website Design", "Status": "AUTHORISED" } ] } # Invoices | Invoices with an array of invoice objects in body of request opts = { - summarize_errors: true, # Boolean | If false return 200 OK and mix of successfully created objects and any with validation errors + summarize_errors: false, # Boolean | If false return 200 OK and mix of successfully created objects and any with validation errors unitdp: 4 # Integer | e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts } @@ -2110,7 +2112,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **item_id** | **String**| Unique identifier for an Item | + **item_id** | [**String**](.md)| Unique identifier for an Item | **history_records** | [**HistoryRecords**](HistoryRecords.md)| HistoryRecords containing an array of HistoryRecord objects in body of request | ### Return type @@ -2161,7 +2163,7 @@ api_instance = xero_client. xero_tenant_id = 'YOUR_XERO_TENANT_ID' # String | Xero identifier for Tenant items = { "Items": [ { "Code": "code123", "Name": "Item Name XYZ", "Description": "Foobar", "InventoryAssetAccountCode": "140", "PurchaseDetails": { "COGSAccountCode": "500" } } ] } # Items | Items with an array of Item objects in body of request opts = { - summarize_errors: true, # Boolean | If false return 200 OK and mix of successfully created objects and any with validation errors + summarize_errors: false, # Boolean | If false return 200 OK and mix of successfully created objects and any with validation errors unitdp: 4 # Integer | e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts } @@ -2313,7 +2315,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **manual_journal_id** | **String**| Unique identifier for a ManualJournal | + **manual_journal_id** | [**String**](.md)| Unique identifier for a ManualJournal | **file_name** | **String**| Name of the attachment | **body** | **String**| Byte array of file in body of request | @@ -2380,7 +2382,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **manual_journal_id** | **String**| Unique identifier for a ManualJournal | + **manual_journal_id** | [**String**](.md)| Unique identifier for a ManualJournal | **history_records** | [**HistoryRecords**](HistoryRecords.md)| HistoryRecords containing an array of HistoryRecord objects in body of request | ### Return type @@ -2431,7 +2433,7 @@ api_instance = xero_client. xero_tenant_id = 'YOUR_XERO_TENANT_ID' # String | Xero identifier for Tenant manual_journals = { "ManualJournals": [ { "Narration": "Journal Desc", "JournalLines": [ { "LineAmount": 100, "AccountCode": "400", "Description": "Money Movement" }, { "LineAmount": -100, "AccountCode": "400", "Description": "Prepayment of things", "Tracking": [ { "Name": "North", "Option": "Region" } ] } ], "Date": "2019-03-14" } ] } # ManualJournals | ManualJournals array with ManualJournal object in body of request opts = { - summarize_errors: true # Boolean | If false return 200 OK and mix of successfully created objects and any with validation errors + summarize_errors: false # Boolean | If false return 200 OK and mix of successfully created objects and any with validation errors } begin @@ -2501,7 +2503,7 @@ xero_tenant_id = 'YOUR_XERO_TENANT_ID' # String | Xero identifier for Tenant overpayment_id = '00000000-0000-0000-0000-000000000000' # String | Unique identifier for a Overpayment allocations = { "Allocations": [ { "Invoice": { "InvoiceID": "00000000-0000-0000-0000-000000000000", "LineItems": [], "Contact": {}, "Type": "ACCPAY" }, "Amount": 10.00, "Date": "2019-03-12" } ] } # Allocations | Allocations array with Allocation object in body of request opts = { - summarize_errors: true # Boolean | If false return 200 OK and mix of successfully created objects and any with validation errors + summarize_errors: false # Boolean | If false return 200 OK and mix of successfully created objects and any with validation errors } begin @@ -2519,7 +2521,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **overpayment_id** | **String**| Unique identifier for a Overpayment | + **overpayment_id** | [**String**](.md)| Unique identifier for a Overpayment | **allocations** | [**Allocations**](Allocations.md)| Allocations array with Allocation object in body of request | **summarize_errors** | **Boolean**| If false return 200 OK and mix of successfully created objects and any with validation errors | [optional] [default to false] @@ -2586,7 +2588,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **overpayment_id** | **String**| Unique identifier for a Overpayment | + **overpayment_id** | [**String**](.md)| Unique identifier for a Overpayment | **history_records** | [**HistoryRecords**](HistoryRecords.md)| HistoryRecords containing an array of HistoryRecord objects in body of request | ### Return type @@ -2716,7 +2718,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **payment_id** | **String**| Unique identifier for a Payment | + **payment_id** | [**String**](.md)| Unique identifier for a Payment | **history_records** | [**HistoryRecords**](HistoryRecords.md)| HistoryRecords containing an array of HistoryRecord objects in body of request | ### Return type @@ -2831,7 +2833,7 @@ api_instance = xero_client. xero_tenant_id = 'YOUR_XERO_TENANT_ID' # String | Xero identifier for Tenant payments = { "Payments": [ { "Invoice": { "LineItems": [], "InvoiceID": "00000000-0000-0000-0000-000000000000" }, "Account": { "Code": "970" }, "Date": "2019-03-12", "Amount": 1 } ] } # Payments | Payments array with Payment object in body of request opts = { - summarize_errors: true # Boolean | If false return 200 OK and mix of successfully created objects and any with validation errors + summarize_errors: false # Boolean | If false return 200 OK and mix of successfully created objects and any with validation errors } begin @@ -2901,7 +2903,7 @@ xero_tenant_id = 'YOUR_XERO_TENANT_ID' # String | Xero identifier for Tenant prepayment_id = '00000000-0000-0000-0000-000000000000' # String | Unique identifier for a PrePayment allocations = { "Allocations": [ { "Invoice": { "LineItems": [], "InvoiceID": "00000000-0000-0000-0000-000000000000" }, "Amount": 1, "Date": "2019-01-10" } ] } # Allocations | Allocations with an array of Allocation object in body of request opts = { - summarize_errors: true # Boolean | If false return 200 OK and mix of successfully created objects and any with validation errors + summarize_errors: false # Boolean | If false return 200 OK and mix of successfully created objects and any with validation errors } begin @@ -2919,7 +2921,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **prepayment_id** | **String**| Unique identifier for a PrePayment | + **prepayment_id** | [**String**](.md)| Unique identifier for a PrePayment | **allocations** | [**Allocations**](Allocations.md)| Allocations with an array of Allocation object in body of request | **summarize_errors** | **Boolean**| If false return 200 OK and mix of successfully created objects and any with validation errors | [optional] [default to false] @@ -2986,7 +2988,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **prepayment_id** | **String**| Unique identifier for a PrePayment | + **prepayment_id** | [**String**](.md)| Unique identifier for a PrePayment | **history_records** | [**HistoryRecords**](HistoryRecords.md)| HistoryRecords containing an array of HistoryRecord objects in body of request | ### Return type @@ -3053,7 +3055,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **purchase_order_id** | **String**| Unique identifier for an Purchase Order | + **purchase_order_id** | [**String**](.md)| Unique identifier for an Purchase Order | **file_name** | **String**| Name of the attachment | **body** | **String**| Byte array of file in body of request | @@ -3120,7 +3122,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **purchase_order_id** | **String**| Unique identifier for an Purchase Order | + **purchase_order_id** | [**String**](.md)| Unique identifier for an Purchase Order | **history_records** | [**HistoryRecords**](HistoryRecords.md)| HistoryRecords containing an array of HistoryRecord objects in body of request | ### Return type @@ -3171,7 +3173,7 @@ api_instance = xero_client. xero_tenant_id = 'YOUR_XERO_TENANT_ID' # String | Xero identifier for Tenant purchase_orders = { "PurchaseOrders": [ { "Contact": { "ContactID": "00000000-0000-0000-0000-000000000000" }, "LineItems": [ { "Description": "Foobar", "Quantity": 1, "UnitAmount": 20, "AccountCode": "710" } ], "Date": "2019-03-13" } ] } # PurchaseOrders | PurchaseOrders with an array of PurchaseOrder object in body of request opts = { - summarize_errors: true # Boolean | If false return 200 OK and mix of successfully created objects and any with validation errors + summarize_errors: false # Boolean | If false return 200 OK and mix of successfully created objects and any with validation errors } begin @@ -3256,7 +3258,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **quote_id** | **String**| Unique identifier for an Quote | + **quote_id** | [**String**](.md)| Unique identifier for an Quote | **file_name** | **String**| Name of the attachment | **body** | **String**| Byte array of file in body of request | @@ -3323,7 +3325,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **quote_id** | **String**| Unique identifier for an Quote | + **quote_id** | [**String**](.md)| Unique identifier for an Quote | **history_records** | [**HistoryRecords**](HistoryRecords.md)| HistoryRecords containing an array of HistoryRecord objects in body of request | ### Return type @@ -3374,7 +3376,7 @@ api_instance = xero_client. xero_tenant_id = 'YOUR_XERO_TENANT_ID' # String | Xero identifier for Tenant quotes = { "Quotes": [ { "Contact": { "ContactID": "00000000-0000-0000-0000-000000000000" }, "LineItems": [ { "Description": "Foobar", "Quantity": 1, "UnitAmount": 20, "AccountCode": "12775" } ], "Date": "2020-02-01" } ] } # Quotes | Quotes with an array of Quote object in body of request opts = { - summarize_errors: true # Boolean | If false return 200 OK and mix of successfully created objects and any with validation errors + summarize_errors: false # Boolean | If false return 200 OK and mix of successfully created objects and any with validation errors } begin @@ -3528,7 +3530,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **receipt_id** | **String**| Unique identifier for a Receipt | + **receipt_id** | [**String**](.md)| Unique identifier for a Receipt | **file_name** | **String**| Name of the attachment | **body** | **String**| Byte array of file in body of request | @@ -3595,7 +3597,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **receipt_id** | **String**| Unique identifier for a Receipt | + **receipt_id** | [**String**](.md)| Unique identifier for a Receipt | **history_records** | [**HistoryRecords**](HistoryRecords.md)| HistoryRecords containing an array of HistoryRecord objects in body of request | ### Return type @@ -3662,7 +3664,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **repeating_invoice_id** | **String**| Unique identifier for a Repeating Invoice | + **repeating_invoice_id** | [**String**](.md)| Unique identifier for a Repeating Invoice | **file_name** | **String**| Name of the attachment | **body** | **String**| Byte array of file in body of request | @@ -3729,7 +3731,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **repeating_invoice_id** | **String**| Unique identifier for a Repeating Invoice | + **repeating_invoice_id** | [**String**](.md)| Unique identifier for a Repeating Invoice | **history_records** | [**HistoryRecords**](HistoryRecords.md)| HistoryRecords containing an array of HistoryRecord objects in body of request | ### Return type @@ -3780,7 +3782,7 @@ api_instance = xero_client. xero_tenant_id = 'YOUR_XERO_TENANT_ID' # String | Xero identifier for Tenant repeating_invoices = { "RepeatingInvoices": [ { "Schedule": { "Period": 1, "Unit": "MONTHLY", "DueDate": 10, "DueDateType": "OFFOLLOWINGMONTH", "StartDate": "\/Date(1555286400000+0000)\/" }, "Type": "ACCREC", "Reference": "[Week]", "ApprovedForSending": false, "SendCopy": false, "MarkAsSent": false, "IncludePDF": false, "Contact": { "ContactID": "430fa14a-f945-44d3-9f97-5df5e28441b8", "Name": "Liam Gallagher" }, "Status": "AUTHORISED", "LineAmountTypes": "Exclusive", "LineItems": [ { "Description": "Guitars Fender Strat", "UnitAmount": 5000.00, "TaxType": "OUTPUT2", "TaxAmount": 750.00, "LineAmount": 5000.00, "AccountCode": "200", "Tracking": [], "Quantity": 1.0000, "LineItemID": "13a8353c-d2af-4d5b-920c-438449f08900", "DiscountEnteredAsPercent": true } ], "CurrencyCode": "NZD" } ] } # RepeatingInvoices | RepeatingInvoices with an array of repeating invoice objects in body of request opts = { - summarize_errors: true # Boolean | If false return 200 OK and mix of successfully created objects and any with validation errors + summarize_errors: false # Boolean | If false return 200 OK and mix of successfully created objects and any with validation errors } begin @@ -3992,7 +3994,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **tracking_category_id** | **String**| Unique identifier for a TrackingCategory | + **tracking_category_id** | [**String**](.md)| Unique identifier for a TrackingCategory | **tracking_option** | [**TrackingOption**](TrackingOption.md)| TrackingOption object in body of request | ### Return type @@ -4057,7 +4059,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **account_id** | **String**| Unique identifier for Account object | + **account_id** | [**String**](.md)| Unique identifier for Account object | ### Return type @@ -4073,6 +4075,136 @@ Name | Type | Description | Notes - **Accept**: application/json +## delete_batch_payment + +> BatchPayments delete_batch_payment(xero_tenant_id, batch_payment_delete) + +Updates a specific batch payment for invoices and credit notes + +### 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 +batch_payment_delete = { "BatchPaymentID": "9bf296e9-0748-4d29-a3dc-24dde1098030", "Status":"DELETED" } # BatchPaymentDelete | +begin + #Updates a specific batch payment for invoices and credit notes + result = api_instance.delete_batch_payment(xero_tenant_id, batch_payment_delete) + p result +rescue XeroRuby::Accounting::ApiError => e + puts "Exception when calling AccountingApi->delete_batch_payment: #{e}" +end +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xero_tenant_id** | **String**| Xero identifier for Tenant | + **batch_payment_delete** | [**BatchPaymentDelete**](BatchPaymentDelete.md)| | + +### Return type + +[**BatchPayments**](BatchPayments.md) + +### Authorization + +[OAuth2](../README.md#OAuth2) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + + +## delete_batch_payment_by_url_param + +> BatchPayments delete_batch_payment_by_url_param(xero_tenant_id, batch_payment_id, batch_payment_delete_by_url_param) + +Updates a specific batch payment for invoices and credit notes + +### 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 +batch_payment_id = '00000000-0000-0000-0000-000000000000' # String | Unique identifier for BatchPayment +batch_payment_delete_by_url_param = { "Status":"DELETED" } # BatchPaymentDeleteByUrlParam | +begin + #Updates a specific batch payment for invoices and credit notes + result = api_instance.delete_batch_payment_by_url_param(xero_tenant_id, batch_payment_id, batch_payment_delete_by_url_param) + p result +rescue XeroRuby::Accounting::ApiError => e + puts "Exception when calling AccountingApi->delete_batch_payment_by_url_param: #{e}" +end +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xero_tenant_id** | **String**| Xero identifier for Tenant | + **batch_payment_id** | [**String**](.md)| Unique identifier for BatchPayment | + **batch_payment_delete_by_url_param** | [**BatchPaymentDeleteByUrlParam**](BatchPaymentDeleteByUrlParam.md)| | + +### Return type + +[**BatchPayments**](BatchPayments.md) + +### Authorization + +[OAuth2](../README.md#OAuth2) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + + ## delete_contact_group_contact > delete_contact_group_contact(xero_tenant_id, contact_group_id, contact_id) @@ -4121,8 +4253,8 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **contact_group_id** | **String**| Unique identifier for a Contact Group | - **contact_id** | **String**| Unique identifier for a Contact | + **contact_group_id** | [**String**](.md)| Unique identifier for a Contact Group | + **contact_id** | [**String**](.md)| Unique identifier for a Contact | ### Return type @@ -4185,7 +4317,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **contact_group_id** | **String**| Unique identifier for a Contact Group | + **contact_group_id** | [**String**](.md)| Unique identifier for a Contact Group | ### Return type @@ -4248,7 +4380,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **item_id** | **String**| Unique identifier for an Item | + **item_id** | [**String**](.md)| Unique identifier for an Item | ### Return type @@ -4311,7 +4443,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **linked_transaction_id** | **String**| Unique identifier for a LinkedTransaction | + **linked_transaction_id** | [**String**](.md)| Unique identifier for a LinkedTransaction | ### Return type @@ -4376,7 +4508,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **payment_id** | **String**| Unique identifier for a Payment | + **payment_id** | [**String**](.md)| Unique identifier for a Payment | **payment_delete** | [**PaymentDelete**](PaymentDelete.md)| | ### Return type @@ -4441,7 +4573,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **tracking_category_id** | **String**| Unique identifier for a TrackingCategory | + **tracking_category_id** | [**String**](.md)| Unique identifier for a TrackingCategory | ### Return type @@ -4506,8 +4638,8 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **tracking_category_id** | **String**| Unique identifier for a TrackingCategory | - **tracking_option_id** | **String**| Unique identifier for a Tracking Option | + **tracking_category_id** | [**String**](.md)| Unique identifier for a TrackingCategory | + **tracking_option_id** | [**String**](.md)| Unique identifier for a Tracking Option | ### Return type @@ -4571,7 +4703,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **invoice_id** | **String**| Unique identifier for an Invoice | + **invoice_id** | [**String**](.md)| Unique identifier for an Invoice | **request_empty** | [**RequestEmpty**](RequestEmpty.md)| | ### Return type @@ -4636,7 +4768,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **account_id** | **String**| Unique identifier for Account object | + **account_id** | [**String**](.md)| Unique identifier for Account object | ### Return type @@ -4702,7 +4834,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **account_id** | **String**| Unique identifier for Account object | + **account_id** | [**String**](.md)| Unique identifier for Account object | **file_name** | **String**| Name of the attachment | **content_type** | **String**| The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf | @@ -4770,8 +4902,8 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **account_id** | **String**| Unique identifier for Account object | - **attachment_id** | **String**| Unique identifier for Attachment object | + **account_id** | [**String**](.md)| Unique identifier for Account object | + **attachment_id** | [**String**](.md)| Unique identifier for Attachment object | **content_type** | **String**| The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf | ### Return type @@ -4836,7 +4968,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **account_id** | **String**| Unique identifier for Account object | + **account_id** | [**String**](.md)| Unique identifier for Account object | ### Return type @@ -4977,7 +5109,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **bank_transaction_id** | **String**| Xero generated unique identifier for a bank transaction | + **bank_transaction_id** | [**String**](.md)| Xero generated unique identifier for a bank transaction | **unitdp** | **Integer**| e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts | [optional] ### Return type @@ -5044,7 +5176,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **bank_transaction_id** | **String**| Xero generated unique identifier for a bank transaction | + **bank_transaction_id** | [**String**](.md)| Xero generated unique identifier for a bank transaction | **file_name** | **String**| Name of the attachment | **content_type** | **String**| The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf | @@ -5112,8 +5244,8 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **bank_transaction_id** | **String**| Xero generated unique identifier for a bank transaction | - **attachment_id** | **String**| Unique identifier for Attachment object | + **bank_transaction_id** | [**String**](.md)| Xero generated unique identifier for a bank transaction | + **attachment_id** | [**String**](.md)| Unique identifier for Attachment object | **content_type** | **String**| The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf | ### Return type @@ -5178,7 +5310,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **bank_transaction_id** | **String**| Xero generated unique identifier for a bank transaction | + **bank_transaction_id** | [**String**](.md)| Xero generated unique identifier for a bank transaction | ### Return type @@ -5229,7 +5361,7 @@ xero_tenant_id = 'YOUR_XERO_TENANT_ID' # String | Xero identifier for Tenant opts = { if_modified_since: DateTime.parse('2020-02-06T12:17:43.202-08:00'), # DateTime | Only records created or modified since this timestamp will be returned - where: 'Status=="AUTHORISED"', # String | Filter by an any element + where: 'Status==\"AUTHORISED\"', # String | Filter by an any element order: 'Type ASC', # String | Order by an any element @@ -5321,7 +5453,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **bank_transaction_id** | **String**| Xero generated unique identifier for a bank transaction | + **bank_transaction_id** | [**String**](.md)| Xero generated unique identifier for a bank transaction | ### Return type @@ -5385,7 +5517,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **bank_transfer_id** | **String**| Xero generated unique identifier for a bank transfer | + **bank_transfer_id** | [**String**](.md)| Xero generated unique identifier for a bank transfer | ### Return type @@ -5451,7 +5583,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **bank_transfer_id** | **String**| Xero generated unique identifier for a bank transfer | + **bank_transfer_id** | [**String**](.md)| Xero generated unique identifier for a bank transfer | **file_name** | **String**| Name of the attachment | **content_type** | **String**| The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf | @@ -5519,8 +5651,8 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **bank_transfer_id** | **String**| Xero generated unique identifier for a bank transfer | - **attachment_id** | **String**| Unique identifier for Attachment object | + **bank_transfer_id** | [**String**](.md)| Xero generated unique identifier for a bank transfer | + **attachment_id** | [**String**](.md)| Unique identifier for Attachment object | **content_type** | **String**| The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf | ### Return type @@ -5585,7 +5717,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **bank_transfer_id** | **String**| Xero generated unique identifier for a bank transfer | + **bank_transfer_id** | [**String**](.md)| Xero generated unique identifier for a bank transfer | ### Return type @@ -5649,7 +5781,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **bank_transfer_id** | **String**| Xero generated unique identifier for a bank transfer | + **bank_transfer_id** | [**String**](.md)| Xero generated unique identifier for a bank transfer | ### Return type @@ -5786,7 +5918,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **batch_payment_id** | **String**| Unique identifier for BatchPayment | + **batch_payment_id** | [**String**](.md)| Unique identifier for BatchPayment | ### Return type @@ -5837,7 +5969,7 @@ xero_tenant_id = 'YOUR_XERO_TENANT_ID' # String | Xero identifier for Tenant opts = { if_modified_since: DateTime.parse('2020-02-06T12:17:43.202-08:00'), # DateTime | Only records created or modified since this timestamp will be returned - where: 'Status=="AUTHORISED"', # String | Filter by an any element + where: 'Status==\"AUTHORISED\"', # String | Filter by an any element order: 'Date ASC' # String | Order by an any element } @@ -5923,7 +6055,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **branding_theme_id** | **String**| Unique identifier for a Branding Theme | + **branding_theme_id** | [**String**](.md)| Unique identifier for a Branding Theme | ### Return type @@ -5987,7 +6119,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **branding_theme_id** | **String**| Unique identifier for a Branding Theme | + **branding_theme_id** | [**String**](.md)| Unique identifier for a Branding Theme | ### Return type @@ -6119,7 +6251,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **budget_id** | **String**| Unique identifier for Budgets | + **budget_id** | [**String**](.md)| Unique identifier for Budgets | **date_to** | **Date**| Filter by start date | [optional] **date_from** | **Date**| Filter by end date | [optional] @@ -6170,7 +6302,7 @@ api_instance = xero_client. xero_tenant_id = 'YOUR_XERO_TENANT_ID' # String | Xero identifier for Tenant opts = { - ids: "00000000-0000-0000-0000-000000000000", # Array<String> | Filter by BudgetID. Allows you to retrieve a specific individual budget. + i_ds: ['"00000000-0000-0000-0000-000000000000"'], # Array | Filter by BudgetID. Allows you to retrieve a specific individual budget. date_to: Date.parse('2019-10-31'), # Date | Filter by start date @@ -6192,7 +6324,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **ids** | [**Array<String>**](String.md)| Filter by BudgetID. Allows you to retrieve a specific individual budget. | [optional] + **i_ds** | [**Array<String>**](String.md)| Filter by BudgetID. Allows you to retrieve a specific individual budget. | [optional] **date_to** | **Date**| Filter by start date | [optional] **date_from** | **Date**| Filter by end date | [optional] @@ -6258,7 +6390,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **contact_id** | **String**| Unique identifier for a Contact | + **contact_id** | [**String**](.md)| Unique identifier for a Contact | ### Return type @@ -6324,7 +6456,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **contact_id** | **String**| Unique identifier for a Contact | + **contact_id** | [**String**](.md)| Unique identifier for a Contact | **file_name** | **String**| Name of the attachment | **content_type** | **String**| The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf | @@ -6392,8 +6524,8 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **contact_id** | **String**| Unique identifier for a Contact | - **attachment_id** | **String**| Unique identifier for Attachment object | + **contact_id** | [**String**](.md)| Unique identifier for a Contact | + **attachment_id** | [**String**](.md)| Unique identifier for Attachment object | **content_type** | **String**| The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf | ### Return type @@ -6458,7 +6590,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **contact_id** | **String**| Unique identifier for a Contact | + **contact_id** | [**String**](.md)| Unique identifier for a Contact | ### Return type @@ -6586,7 +6718,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **contact_id** | **String**| Unique identifier for a Contact | + **contact_id** | [**String**](.md)| Unique identifier for a Contact | ### Return type @@ -6650,7 +6782,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **contact_group_id** | **String**| Unique identifier for a Contact Group | + **contact_group_id** | [**String**](.md)| Unique identifier for a Contact Group | ### Return type @@ -6699,7 +6831,7 @@ api_instance = xero_client. xero_tenant_id = 'YOUR_XERO_TENANT_ID' # String | Xero identifier for Tenant opts = { - where: 'Status=="ACTIVE"', # String | Filter by an any element + where: 'Status==\"ACTIVE\"', # String | Filter by an any element order: 'Name ASC' # String | Order by an any element } @@ -6784,7 +6916,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **contact_id** | **String**| Unique identifier for a Contact | + **contact_id** | [**String**](.md)| Unique identifier for a Contact | ### Return type @@ -6839,13 +6971,13 @@ opts = { order: 'Name ASC', # String | Order by an any element - ids: "00000000-0000-0000-0000-000000000000", # Array<String> | Filter by a comma separated list of ContactIDs. Allows you to retrieve a specific set of contacts in a single call. + i_ds: ['"00000000-0000-0000-0000-000000000000"'], # Array | Filter by a comma separated list of ContactIDs. Allows you to retrieve a specific set of contacts in a single call. page: 1, # Integer | e.g. page=1 - Up to 100 contacts will be returned in a single API call. include_archived: true, # Boolean | e.g. includeArchived=true - Contacts with a status of ARCHIVED will be included in the response - summary_only: true, # Boolean | 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. + summary_only: false, # Boolean | 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. search_term: 'searchTerm=Joe Bloggs' # String | Search parameter that performs a case-insensitive text search across the Name, FirstName, LastName, ContactNumber and EmailAddress fields. } @@ -6868,7 +7000,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] - **ids** | [**Array<String>**](String.md)| Filter by a comma separated list of ContactIDs. Allows you to retrieve a specific set of contacts in a single call. | [optional] + **i_ds** | [**Array<String>**](String.md)| Filter by a comma separated list of ContactIDs. Allows you to retrieve a specific set of contacts in a single call. | [optional] **page** | **Integer**| e.g. page=1 - Up to 100 contacts will be returned in a single API call. | [optional] **include_archived** | **Boolean**| e.g. includeArchived=true - Contacts with a status of ARCHIVED will be included in the response | [optional] **summary_only** | **Boolean**| 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] @@ -6940,7 +7072,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **credit_note_id** | **String**| Unique identifier for a Credit Note | + **credit_note_id** | [**String**](.md)| Unique identifier for a Credit Note | **unitdp** | **Integer**| e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts | [optional] ### Return type @@ -7005,7 +7137,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **credit_note_id** | **String**| Unique identifier for a Credit Note | + **credit_note_id** | [**String**](.md)| Unique identifier for a Credit Note | ### Return type @@ -7071,7 +7203,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **credit_note_id** | **String**| Unique identifier for a Credit Note | + **credit_note_id** | [**String**](.md)| Unique identifier for a Credit Note | **file_name** | **String**| Name of the attachment | **content_type** | **String**| The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf | @@ -7139,8 +7271,8 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **credit_note_id** | **String**| Unique identifier for a Credit Note | - **attachment_id** | **String**| Unique identifier for Attachment object | + **credit_note_id** | [**String**](.md)| Unique identifier for a Credit Note | + **attachment_id** | [**String**](.md)| Unique identifier for Attachment object | **content_type** | **String**| The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf | ### Return type @@ -7205,7 +7337,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **credit_note_id** | **String**| Unique identifier for a Credit Note | + **credit_note_id** | [**String**](.md)| Unique identifier for a Credit Note | ### Return type @@ -7269,7 +7401,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **credit_note_id** | **String**| Unique identifier for a Credit Note | + **credit_note_id** | [**String**](.md)| Unique identifier for a Credit Note | ### Return type @@ -7320,7 +7452,7 @@ xero_tenant_id = 'YOUR_XERO_TENANT_ID' # String | Xero identifier for Tenant opts = { if_modified_since: DateTime.parse('2020-02-06T12:17:43.202-08:00'), # DateTime | Only records created or modified since this timestamp will be returned - where: 'Status=="DRAFT"', # String | Filter by an any element + where: 'Status==\"DRAFT\"', # String | Filter by an any element order: 'CreditNoteNumber ASC', # String | Order by an any element @@ -7397,7 +7529,7 @@ api_instance = xero_client. xero_tenant_id = 'YOUR_XERO_TENANT_ID' # String | Xero identifier for Tenant opts = { - where: 'Code=="USD"', # String | Filter by an any element + where: 'Code==\"USD\"', # String | Filter by an any element order: 'Code ASC' # String | Order by an any element } @@ -7482,7 +7614,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **employee_id** | **String**| Unique identifier for a Employee | + **employee_id** | [**String**](.md)| Unique identifier for a Employee | ### Return type @@ -7533,7 +7665,7 @@ xero_tenant_id = 'YOUR_XERO_TENANT_ID' # String | Xero identifier for Tenant opts = { if_modified_since: DateTime.parse('2020-02-06T12:17:43.202-08:00'), # DateTime | Only records created or modified since this timestamp will be returned - where: 'Status=="ACTIVE"', # String | Filter by an any element + where: 'Status==\"ACTIVE\"', # String | Filter by an any element order: 'LastName ASC' # String | Order by an any element } @@ -7619,7 +7751,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **expense_claim_id** | **String**| Unique identifier for a ExpenseClaim | + **expense_claim_id** | [**String**](.md)| Unique identifier for a ExpenseClaim | ### Return type @@ -7683,7 +7815,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **expense_claim_id** | **String**| Unique identifier for a ExpenseClaim | + **expense_claim_id** | [**String**](.md)| Unique identifier for a ExpenseClaim | ### Return type @@ -7734,7 +7866,7 @@ xero_tenant_id = 'YOUR_XERO_TENANT_ID' # String | Xero identifier for Tenant opts = { if_modified_since: DateTime.parse('2020-02-06T12:17:43.202-08:00'), # DateTime | Only records created or modified since this timestamp will be returned - where: 'Status=="SUBMITTED"', # String | Filter by an any element + where: 'Status==\"SUBMITTED\"', # String | Filter by an any element order: 'Status ASC' # String | Order by an any element } @@ -7824,7 +7956,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **invoice_id** | **String**| Unique identifier for an Invoice | + **invoice_id** | [**String**](.md)| Unique identifier for an Invoice | **unitdp** | **Integer**| e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts | [optional] ### Return type @@ -7889,7 +8021,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **invoice_id** | **String**| Unique identifier for an Invoice | + **invoice_id** | [**String**](.md)| Unique identifier for an Invoice | ### Return type @@ -7955,7 +8087,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **invoice_id** | **String**| Unique identifier for an Invoice | + **invoice_id** | [**String**](.md)| Unique identifier for an Invoice | **file_name** | **String**| Name of the attachment | **content_type** | **String**| The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf | @@ -8023,8 +8155,8 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **invoice_id** | **String**| Unique identifier for an Invoice | - **attachment_id** | **String**| Unique identifier for Attachment object | + **invoice_id** | [**String**](.md)| Unique identifier for an Invoice | + **attachment_id** | [**String**](.md)| Unique identifier for Attachment object | **content_type** | **String**| The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf | ### Return type @@ -8089,7 +8221,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **invoice_id** | **String**| Unique identifier for an Invoice | + **invoice_id** | [**String**](.md)| Unique identifier for an Invoice | ### Return type @@ -8153,7 +8285,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **invoice_id** | **String**| Unique identifier for an Invoice | + **invoice_id** | [**String**](.md)| Unique identifier for an Invoice | ### Return type @@ -8266,17 +8398,17 @@ xero_tenant_id = 'YOUR_XERO_TENANT_ID' # String | Xero identifier for Tenant opts = { if_modified_since: DateTime.parse('2020-02-06T12:17:43.202-08:00'), # DateTime | Only records created or modified since this timestamp will be returned - where: 'Status=="DRAFT"', # String | Filter by an any element + where: 'Status==\"DRAFT\"', # String | Filter by an any element order: 'InvoiceNumber ASC', # String | Order by an any element - ids: "00000000-0000-0000-0000-000000000000", # Array<String> | Filter by a comma-separated list of InvoicesIDs. + i_ds: ['"00000000-0000-0000-0000-000000000000"'], # Array | Filter by a comma-separated list of InvoicesIDs. - invoice_numbers: "INV-001", "INV-002", # Array<String> | Filter by a comma-separated list of InvoiceNumbers. + invoice_numbers: ['"INV-001", "INV-002"'], # Array | Filter by a comma-separated list of InvoiceNumbers. - contact_ids: "00000000-0000-0000-0000-000000000000", # Array<String> | Filter by a comma-separated list of ContactIDs. + contact_i_ds: ['"00000000-0000-0000-0000-000000000000"'], # Array | Filter by a comma-separated list of ContactIDs. - statuses: "DRAFT", "SUBMITTED", # Array<String> | Filter by a comma-separated list Statuses. For faster response times we recommend using these explicit parameters instead of passing OR conditions into the Where filter. + statuses: ['"DRAFT", "SUBMITTED"'], # Array | Filter by a comma-separated list Statuses. For faster response times we recommend using these explicit parameters instead of passing OR conditions into the Where filter. page: 1, # Integer | e.g. page=1 – Up to 100 invoices will be returned in a single API call with line items shown for each invoice @@ -8286,7 +8418,7 @@ opts = { unitdp: 4, # Integer | e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts - summary_only: true # Boolean | 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. + summary_only: false # Boolean | 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. } begin @@ -8307,9 +8439,9 @@ 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] - **ids** | [**Array<String>**](String.md)| Filter by a comma-separated list of InvoicesIDs. | [optional] + **i_ds** | [**Array<String>**](String.md)| Filter by a comma-separated list of InvoicesIDs. | [optional] **invoice_numbers** | [**Array<String>**](String.md)| Filter by a comma-separated list of InvoiceNumbers. | [optional] - **contact_ids** | [**Array<String>**](String.md)| Filter by a comma-separated list of ContactIDs. | [optional] + **contact_i_ds** | [**Array<String>**](String.md)| Filter by a comma-separated list of ContactIDs. | [optional] **statuses** | [**Array<String>**](String.md)| Filter by a comma-separated list Statuses. For faster response times we recommend using these explicit parameters instead of passing OR conditions into the Where filter. | [optional] **page** | **Integer**| e.g. page=1 – Up to 100 invoices will be returned in a single API call with line items shown for each invoice | [optional] **include_archived** | **Boolean**| e.g. includeArchived=true - Invoices with a status of ARCHIVED will be included in the response | [optional] @@ -8383,7 +8515,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **item_id** | **String**| Unique identifier for an Item | + **item_id** | [**String**](.md)| Unique identifier for an Item | **unitdp** | **Integer**| e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts | [optional] ### Return type @@ -8448,7 +8580,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **item_id** | **String**| Unique identifier for an Item | + **item_id** | [**String**](.md)| Unique identifier for an Item | ### Return type @@ -8588,7 +8720,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **journal_id** | **String**| Unique identifier for a Journal | + **journal_id** | [**String**](.md)| Unique identifier for a Journal | ### Return type @@ -8789,7 +8921,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **linked_transaction_id** | **String**| Unique identifier for a LinkedTransaction | + **linked_transaction_id** | [**String**](.md)| Unique identifier for a LinkedTransaction | ### Return type @@ -8867,11 +8999,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | **page** | **Integer**| Up to 100 linked transactions will be returned in a single API call. Use the page parameter to specify the page to be returned e.g. page=1. | [optional] - **linked_transaction_id** | **String**| The Xero identifier for an Linked Transaction | [optional] - **source_transaction_id** | **String**| Filter by the SourceTransactionID. Get the linked transactions created from a particular ACCPAY invoice | [optional] - **contact_id** | **String**| Filter by the ContactID. Get all the linked transactions that have been assigned to a particular customer. | [optional] + **linked_transaction_id** | [**String**](.md)| The Xero identifier for an Linked Transaction | [optional] + **source_transaction_id** | [**String**](.md)| Filter by the SourceTransactionID. Get the linked transactions created from a particular ACCPAY invoice | [optional] + **contact_id** | [**String**](.md)| Filter by the ContactID. Get all the linked transactions that have been assigned to a particular customer. | [optional] **status** | **String**| Filter by the combination of ContactID and Status. Get the linked transactions associated to a customer and with a status | [optional] - **target_transaction_id** | **String**| Filter by the TargetTransactionID. Get all the linked transactions allocated to a particular ACCREC invoice | [optional] + **target_transaction_id** | [**String**](.md)| Filter by the TargetTransactionID. Get all the linked transactions allocated to a particular ACCREC invoice | [optional] ### Return type @@ -8935,7 +9067,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **manual_journal_id** | **String**| Unique identifier for a ManualJournal | + **manual_journal_id** | [**String**](.md)| Unique identifier for a ManualJournal | ### Return type @@ -9001,7 +9133,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **manual_journal_id** | **String**| Unique identifier for a ManualJournal | + **manual_journal_id** | [**String**](.md)| Unique identifier for a ManualJournal | **file_name** | **String**| Name of the attachment | **content_type** | **String**| The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf | @@ -9069,8 +9201,8 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **manual_journal_id** | **String**| Unique identifier for a ManualJournal | - **attachment_id** | **String**| Unique identifier for Attachment object | + **manual_journal_id** | [**String**](.md)| Unique identifier for a ManualJournal | + **attachment_id** | [**String**](.md)| Unique identifier for Attachment object | **content_type** | **String**| The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf | ### Return type @@ -9135,7 +9267,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **manual_journal_id** | **String**| Unique identifier for a ManualJournal | + **manual_journal_id** | [**String**](.md)| Unique identifier for a ManualJournal | ### Return type @@ -9186,7 +9318,7 @@ xero_tenant_id = 'YOUR_XERO_TENANT_ID' # String | Xero identifier for Tenant opts = { if_modified_since: DateTime.parse('2020-02-06T12:17:43.202-08:00'), # DateTime | Only records created or modified since this timestamp will be returned - where: 'Status=="DRAFT"', # String | Filter by an any element + where: 'Status==\"DRAFT\"', # String | Filter by an any element order: 'Date ASC', # String | Order by an any element @@ -9275,7 +9407,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **manual_journal_id** | **String**| Unique identifier for a ManualJournal | + **manual_journal_id** | [**String**](.md)| Unique identifier for a ManualJournal | ### Return type @@ -9339,7 +9471,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **invoice_id** | **String**| Unique identifier for an Invoice | + **invoice_id** | [**String**](.md)| Unique identifier for an Invoice | ### Return type @@ -9465,7 +9597,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **organisation_id** | **String**| The unique Xero identifier for an organisation | + **organisation_id** | [**String**](.md)| The unique Xero identifier for an organisation | ### Return type @@ -9591,7 +9723,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **overpayment_id** | **String**| Unique identifier for a Overpayment | + **overpayment_id** | [**String**](.md)| Unique identifier for a Overpayment | ### Return type @@ -9655,7 +9787,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **overpayment_id** | **String**| Unique identifier for a Overpayment | + **overpayment_id** | [**String**](.md)| Unique identifier for a Overpayment | ### Return type @@ -9706,7 +9838,7 @@ xero_tenant_id = 'YOUR_XERO_TENANT_ID' # String | Xero identifier for Tenant opts = { if_modified_since: DateTime.parse('2020-02-06T12:17:43.202-08:00'), # DateTime | Only records created or modified since this timestamp will be returned - where: 'Status=="AUTHORISED"', # String | Filter by an any element + where: 'Status==\"AUTHORISED\"', # String | Filter by an any element order: 'Status ASC', # String | Order by an any element @@ -9798,7 +9930,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **payment_id** | **String**| Unique identifier for a Payment | + **payment_id** | [**String**](.md)| Unique identifier for a Payment | ### Return type @@ -9862,7 +9994,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **payment_id** | **String**| Unique identifier for a Payment | + **payment_id** | [**String**](.md)| Unique identifier for a Payment | ### Return type @@ -9975,7 +10107,7 @@ xero_tenant_id = 'YOUR_XERO_TENANT_ID' # String | Xero identifier for Tenant opts = { if_modified_since: DateTime.parse('2020-02-06T12:17:43.202-08:00'), # DateTime | Only records created or modified since this timestamp will be returned - where: 'Status=="AUTHORISED"', # String | Filter by an any element + where: 'Status==\"AUTHORISED\"', # String | Filter by an any element order: 'Amount ASC', # String | Order by an any element @@ -10064,7 +10196,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **prepayment_id** | **String**| Unique identifier for a PrePayment | + **prepayment_id** | [**String**](.md)| Unique identifier for a PrePayment | ### Return type @@ -10128,7 +10260,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **prepayment_id** | **String**| Unique identifier for a PrePayment | + **prepayment_id** | [**String**](.md)| Unique identifier for a PrePayment | ### Return type @@ -10179,7 +10311,7 @@ xero_tenant_id = 'YOUR_XERO_TENANT_ID' # String | Xero identifier for Tenant opts = { if_modified_since: DateTime.parse('2020-02-06T12:17:43.202-08:00'), # DateTime | Only records created or modified since this timestamp will be returned - where: 'Status=="AUTHORISED"', # String | Filter by an any element + where: 'Status==\"AUTHORISED\"', # String | Filter by an any element order: 'Reference ASC', # String | Order by an any element @@ -10271,7 +10403,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **purchase_order_id** | **String**| Unique identifier for an Purchase Order | + **purchase_order_id** | [**String**](.md)| Unique identifier for an Purchase Order | ### Return type @@ -10335,7 +10467,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **purchase_order_id** | **String**| Unique identifier for an Purchase Order | + **purchase_order_id** | [**String**](.md)| Unique identifier for an Purchase Order | ### Return type @@ -10401,7 +10533,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **purchase_order_id** | **String**| Unique identifier for an Purchase Order | + **purchase_order_id** | [**String**](.md)| Unique identifier for an Purchase Order | **file_name** | **String**| Name of the attachment | **content_type** | **String**| The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf | @@ -10469,8 +10601,8 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **purchase_order_id** | **String**| Unique identifier for an Purchase Order | - **attachment_id** | **String**| Unique identifier for Attachment object | + **purchase_order_id** | [**String**](.md)| Unique identifier for an Purchase Order | + **attachment_id** | [**String**](.md)| Unique identifier for Attachment object | **content_type** | **String**| The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf | ### Return type @@ -10535,7 +10667,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **purchase_order_id** | **String**| Unique identifier for an Purchase Order | + **purchase_order_id** | [**String**](.md)| Unique identifier for an Purchase Order | ### Return type @@ -10663,7 +10795,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **purchase_order_id** | **String**| Unique identifier for an Purchase Order | + **purchase_order_id** | [**String**](.md)| Unique identifier for an Purchase Order | ### Return type @@ -10714,7 +10846,7 @@ xero_tenant_id = 'YOUR_XERO_TENANT_ID' # String | Xero identifier for Tenant opts = { if_modified_since: DateTime.parse('2020-02-06T12:17:43.202-08:00'), # DateTime | Only records created or modified since this timestamp will be returned - status: 'DRAFT', # String | Filter by purchase order status + status: 'SUBMITTED', # String | Filter by purchase order status date_from: '2019-12-01', # String | Filter by purchase order date (e.g. GET https://.../PurchaseOrders?DateFrom=2015-12-01&DateTo=2015-12-31 @@ -10809,7 +10941,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **quote_id** | **String**| Unique identifier for an Quote | + **quote_id** | [**String**](.md)| Unique identifier for an Quote | ### Return type @@ -10873,7 +11005,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **quote_id** | **String**| Unique identifier for an Quote | + **quote_id** | [**String**](.md)| Unique identifier for an Quote | ### Return type @@ -10939,7 +11071,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **quote_id** | **String**| Unique identifier for an Quote | + **quote_id** | [**String**](.md)| Unique identifier for an Quote | **file_name** | **String**| Name of the attachment | **content_type** | **String**| The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf | @@ -11007,8 +11139,8 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **quote_id** | **String**| Unique identifier for an Quote | - **attachment_id** | **String**| Unique identifier for Attachment object | + **quote_id** | [**String**](.md)| Unique identifier for an Quote | + **attachment_id** | [**String**](.md)| Unique identifier for Attachment object | **content_type** | **String**| The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf | ### Return type @@ -11073,7 +11205,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **quote_id** | **String**| Unique identifier for an Quote | + **quote_id** | [**String**](.md)| Unique identifier for an Quote | ### Return type @@ -11137,7 +11269,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **quote_id** | **String**| Unique identifier for an Quote | + **quote_id** | [**String**](.md)| Unique identifier for an Quote | ### Return type @@ -11227,7 +11359,7 @@ Name | Type | Description | Notes **date_to** | **Date**| Filter for quotes before a particular date | [optional] **expiry_date_from** | **Date**| Filter for quotes expiring after a particular date | [optional] **expiry_date_to** | **Date**| Filter for quotes before a particular date | [optional] - **contact_id** | **String**| Filter for quotes belonging to a particular contact | [optional] + **contact_id** | [**String**](.md)| Filter for quotes belonging to a particular contact | [optional] **status** | **String**| Filter for quotes of a particular Status | [optional] **page** | **Integer**| e.g. page=1 – Up to 100 Quotes will be returned in a single API call with line items shown for each quote | [optional] **order** | **String**| Order by an any element | [optional] @@ -11299,7 +11431,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **receipt_id** | **String**| Unique identifier for a Receipt | + **receipt_id** | [**String**](.md)| Unique identifier for a Receipt | **unitdp** | **Integer**| e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts | [optional] ### Return type @@ -11366,7 +11498,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **receipt_id** | **String**| Unique identifier for a Receipt | + **receipt_id** | [**String**](.md)| Unique identifier for a Receipt | **file_name** | **String**| Name of the attachment | **content_type** | **String**| The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf | @@ -11434,8 +11566,8 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **receipt_id** | **String**| Unique identifier for a Receipt | - **attachment_id** | **String**| Unique identifier for Attachment object | + **receipt_id** | [**String**](.md)| Unique identifier for a Receipt | + **attachment_id** | [**String**](.md)| Unique identifier for Attachment object | **content_type** | **String**| The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf | ### Return type @@ -11500,7 +11632,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **receipt_id** | **String**| Unique identifier for a Receipt | + **receipt_id** | [**String**](.md)| Unique identifier for a Receipt | ### Return type @@ -11564,7 +11696,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **receipt_id** | **String**| Unique identifier for a Receipt | + **receipt_id** | [**String**](.md)| Unique identifier for a Receipt | ### Return type @@ -11615,7 +11747,7 @@ xero_tenant_id = 'YOUR_XERO_TENANT_ID' # String | Xero identifier for Tenant opts = { if_modified_since: DateTime.parse('2020-02-06T12:17:43.202-08:00'), # DateTime | Only records created or modified since this timestamp will be returned - where: 'Status=="DRAFT"', # String | Filter by an any element + where: 'Status==\"DRAFT\"', # String | Filter by an any element order: 'ReceiptNumber ASC', # String | Order by an any element @@ -11704,7 +11836,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **repeating_invoice_id** | **String**| Unique identifier for a Repeating Invoice | + **repeating_invoice_id** | [**String**](.md)| Unique identifier for a Repeating Invoice | ### Return type @@ -11770,7 +11902,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **repeating_invoice_id** | **String**| Unique identifier for a Repeating Invoice | + **repeating_invoice_id** | [**String**](.md)| Unique identifier for a Repeating Invoice | **file_name** | **String**| Name of the attachment | **content_type** | **String**| The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf | @@ -11838,8 +11970,8 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **repeating_invoice_id** | **String**| Unique identifier for a Repeating Invoice | - **attachment_id** | **String**| Unique identifier for Attachment object | + **repeating_invoice_id** | [**String**](.md)| Unique identifier for a Repeating Invoice | + **attachment_id** | [**String**](.md)| Unique identifier for Attachment object | **content_type** | **String**| The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf | ### Return type @@ -11904,7 +12036,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **repeating_invoice_id** | **String**| Unique identifier for a Repeating Invoice | + **repeating_invoice_id** | [**String**](.md)| Unique identifier for a Repeating Invoice | ### Return type @@ -11968,7 +12100,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **repeating_invoice_id** | **String**| Unique identifier for a Repeating Invoice | + **repeating_invoice_id** | [**String**](.md)| Unique identifier for a Repeating Invoice | ### Return type @@ -12017,7 +12149,7 @@ api_instance = xero_client. xero_tenant_id = 'YOUR_XERO_TENANT_ID' # String | Xero identifier for Tenant opts = { - where: 'Status=="DRAFT"', # String | Filter by an any element + where: 'Status==\"DRAFT\"', # String | Filter by an any element order: 'Total ASC' # String | Order by an any element } @@ -12110,7 +12242,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **contact_id** | **String**| Unique identifier for a Contact | + **contact_id** | [**String**](.md)| Unique identifier for a Contact | **date** | **Date**| The date of the Aged Payables By Contact report | [optional] **from_date** | **Date**| filter by the from date of the report e.g. 2021-02-01 | [optional] **to_date** | **Date**| filter by the to date of the report e.g. 2021-02-28 | [optional] @@ -12185,7 +12317,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **contact_id** | **String**| Unique identifier for a Contact | + **contact_id** | [**String**](.md)| Unique identifier for a Contact | **date** | **Date**| The date of the Aged Receivables By Contact report | [optional] **from_date** | **Date**| filter by the from date of the report e.g. 2021-02-01 | [optional] **to_date** | **Date**| filter by the to date of the report e.g. 2021-02-28 | [optional] @@ -12889,7 +13021,7 @@ api_instance = xero_client. xero_tenant_id = 'YOUR_XERO_TENANT_ID' # String | Xero identifier for Tenant opts = { - where: 'Status=="ACTIVE"', # String | Filter by an any element + where: 'Status==\"ACTIVE\"', # String | Filter by an any element order: 'Name ASC', # String | Order by an any element @@ -12962,7 +13094,7 @@ api_instance = xero_client. xero_tenant_id = 'YOUR_XERO_TENANT_ID' # String | Xero identifier for Tenant opts = { - where: 'Status=="ACTIVE"', # String | Filter by an any element + where: 'Status==\"ACTIVE\"', # String | Filter by an any element order: 'Name ASC', # String | Order by an any element @@ -13050,7 +13182,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **tracking_category_id** | **String**| Unique identifier for a TrackingCategory | + **tracking_category_id** | [**String**](.md)| Unique identifier for a TrackingCategory | ### Return type @@ -13114,7 +13246,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **user_id** | **String**| Unique identifier for a User | + **user_id** | [**String**](.md)| Unique identifier for a User | ### Return type @@ -13316,7 +13448,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **account_id** | **String**| Unique identifier for Account object | + **account_id** | [**String**](.md)| Unique identifier for Account object | **accounts** | [**Accounts**](Accounts.md)| Request of type Accounts array with one Account | ### Return type @@ -13383,7 +13515,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **account_id** | **String**| Unique identifier for Account object | + **account_id** | [**String**](.md)| Unique identifier for Account object | **file_name** | **String**| Name of the attachment | **body** | **String**| Byte array of file in body of request | @@ -13454,7 +13586,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **bank_transaction_id** | **String**| Xero generated unique identifier for a bank transaction | + **bank_transaction_id** | [**String**](.md)| Xero generated unique identifier for a bank transaction | **bank_transactions** | [**BankTransactions**](BankTransactions.md)| | **unitdp** | **Integer**| e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts | [optional] @@ -13522,7 +13654,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **bank_transaction_id** | **String**| Xero generated unique identifier for a bank transaction | + **bank_transaction_id** | [**String**](.md)| Xero generated unique identifier for a bank transaction | **file_name** | **String**| Name of the attachment | **body** | **String**| Byte array of file in body of request | @@ -13589,7 +13721,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **bank_transfer_id** | **String**| Xero generated unique identifier for a bank transfer | + **bank_transfer_id** | [**String**](.md)| Xero generated unique identifier for a bank transfer | **file_name** | **String**| Name of the attachment | **body** | **String**| Byte array of file in body of request | @@ -13656,7 +13788,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **contact_id** | **String**| Unique identifier for a Contact | + **contact_id** | [**String**](.md)| Unique identifier for a Contact | **contacts** | [**Contacts**](Contacts.md)| an array of Contacts containing single Contact object with properties to update | ### Return type @@ -13722,7 +13854,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **contact_id** | **String**| Unique identifier for a Contact | + **contact_id** | [**String**](.md)| Unique identifier for a Contact | **file_name** | **String**| Name of the attachment | **body** | **String**| Byte array of file in body of request | @@ -13789,7 +13921,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **contact_group_id** | **String**| Unique identifier for a Contact Group | + **contact_group_id** | [**String**](.md)| Unique identifier for a Contact Group | **contact_groups** | [**ContactGroups**](ContactGroups.md)| an array of Contact groups with Name of specific group to update | ### Return type @@ -13859,7 +13991,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **credit_note_id** | **String**| Unique identifier for a Credit Note | + **credit_note_id** | [**String**](.md)| Unique identifier for a Credit Note | **credit_notes** | [**CreditNotes**](CreditNotes.md)| an array of Credit Notes containing credit note details to update | **unitdp** | **Integer**| e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts | [optional] @@ -13927,7 +14059,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **credit_note_id** | **String**| Unique identifier for a Credit Note | + **credit_note_id** | [**String**](.md)| Unique identifier for a Credit Note | **file_name** | **String**| Name of the attachment | **body** | **String**| Byte array of file in body of request | @@ -13994,7 +14126,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **expense_claim_id** | **String**| Unique identifier for a ExpenseClaim | + **expense_claim_id** | [**String**](.md)| Unique identifier for a ExpenseClaim | **expense_claims** | [**ExpenseClaims**](ExpenseClaims.md)| | ### Return type @@ -14064,7 +14196,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **invoice_id** | **String**| Unique identifier for an Invoice | + **invoice_id** | [**String**](.md)| Unique identifier for an Invoice | **invoices** | [**Invoices**](Invoices.md)| | **unitdp** | **Integer**| e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts | [optional] @@ -14132,7 +14264,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **invoice_id** | **String**| Unique identifier for an Invoice | + **invoice_id** | [**String**](.md)| Unique identifier for an Invoice | **file_name** | **String**| Name of the attachment | **body** | **String**| Byte array of file in body of request | @@ -14203,7 +14335,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **item_id** | **String**| Unique identifier for an Item | + **item_id** | [**String**](.md)| Unique identifier for an Item | **items** | [**Items**](Items.md)| | **unitdp** | **Integer**| e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts | [optional] @@ -14270,7 +14402,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **linked_transaction_id** | **String**| Unique identifier for a LinkedTransaction | + **linked_transaction_id** | [**String**](.md)| Unique identifier for a LinkedTransaction | **linked_transactions** | [**LinkedTransactions**](LinkedTransactions.md)| | ### Return type @@ -14336,7 +14468,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **manual_journal_id** | **String**| Unique identifier for a ManualJournal | + **manual_journal_id** | [**String**](.md)| Unique identifier for a ManualJournal | **manual_journals** | [**ManualJournals**](ManualJournals.md)| | ### Return type @@ -14403,7 +14535,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **manual_journal_id** | **String**| Unique identifier for a ManualJournal | + **manual_journal_id** | [**String**](.md)| Unique identifier for a ManualJournal | **file_name** | **String**| Name of the attachment | **body** | **String**| Byte array of file in body of request | @@ -14455,7 +14587,7 @@ api_instance = xero_client. xero_tenant_id = 'YOUR_XERO_TENANT_ID' # String | Xero identifier for Tenant bank_transactions = { "BankTransactions": [ { "Type": "SPEND", "Contact": { "ContactID": "00000000-0000-0000-0000-000000000000" }, "Lineitems": [ { "Description": "Foobar", "Quantity": 1, "UnitAmount": 20, "AccountCode": "400" } ], "BankAccount": { "Code": "088" } } ] } # BankTransactions | opts = { - summarize_errors: true, # Boolean | If false return 200 OK and mix of successfully created objects and any with validation errors + summarize_errors: false, # Boolean | If false return 200 OK and mix of successfully created objects and any with validation errors unitdp: 4 # Integer | e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts } @@ -14527,7 +14659,7 @@ api_instance = xero_client. xero_tenant_id = 'YOUR_XERO_TENANT_ID' # String | Xero identifier for Tenant contacts = { "Contacts": [ { "Name": "Bruce Banner", "EmailAddress": "hulk@avengers.com", "Phones": [ { "PhoneType": "MOBILE", "PhoneNumber": "555-1212", "PhoneAreaCode": "415" } ], "PaymentTerms": { "Bills": { "Day": 15, "Type": "OFCURRENTMONTH" }, "Sales": { "Day": 10, "Type": "DAYSAFTERBILLMONTH" } } } ] } # Contacts | opts = { - summarize_errors: true # Boolean | If false return 200 OK and mix of successfully created objects and any with validation errors + summarize_errors: false # Boolean | If false return 200 OK and mix of successfully created objects and any with validation errors } begin @@ -14596,7 +14728,7 @@ api_instance = xero_client. xero_tenant_id = 'YOUR_XERO_TENANT_ID' # String | Xero identifier for Tenant credit_notes = { "CreditNotes":[ { "Type":"ACCPAYCREDIT", "Contact":{ "ContactID":"430fa14a-f945-44d3-9f97-5df5e28441b8" }, "Date":"2019-01-05", "Status":"AUTHORISED", "Reference": "HelloWorld", "LineItems":[ { "Description":"Foobar", "Quantity":2.0, "UnitAmount":20.0, "AccountCode":"400" } ] } ] } # CreditNotes | an array of Credit Notes with a single CreditNote object. opts = { - summarize_errors: true, # Boolean | If false return 200 OK and mix of successfully created objects and any with validation errors + summarize_errors: false, # Boolean | If false return 200 OK and mix of successfully created objects and any with validation errors unitdp: 4 # Integer | e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts } @@ -14668,7 +14800,7 @@ api_instance = xero_client. xero_tenant_id = 'YOUR_XERO_TENANT_ID' # String | Xero identifier for Tenant employees = { "Employees": [ { "FirstName": "Nick", "LastName": "Fury", "ExternalLink": { "Url": "http://twitter.com/#!/search/Nick+Fury" } } ] } # Employees | Employees with array of Employee object in body of request opts = { - summarize_errors: true # Boolean | If false return 200 OK and mix of successfully created objects and any with validation errors + summarize_errors: false # Boolean | If false return 200 OK and mix of successfully created objects and any with validation errors } begin @@ -14737,7 +14869,7 @@ api_instance = xero_client. xero_tenant_id = 'YOUR_XERO_TENANT_ID' # String | Xero identifier for Tenant invoices = { "Invoices": [ { "Type": "ACCREC", "Contact": { "ContactID": "430fa14a-f945-44d3-9f97-5df5e28441b8" }, "LineItems": [ { "Description": "Acme Tires", "Quantity": 2, "UnitAmount": 20, "AccountCode": "200", "TaxType": "NONE", "LineAmount": 40 } ], "Date": "2019-03-11", "DueDate": "2018-12-10", "Reference": "Website Design", "Status": "AUTHORISED" } ] } # Invoices | opts = { - summarize_errors: true, # Boolean | If false return 200 OK and mix of successfully created objects and any with validation errors + summarize_errors: false, # Boolean | If false return 200 OK and mix of successfully created objects and any with validation errors unitdp: 4 # Integer | e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts } @@ -14809,7 +14941,7 @@ api_instance = xero_client. xero_tenant_id = 'YOUR_XERO_TENANT_ID' # String | Xero identifier for Tenant items = { "Items": [ { "Code": "ItemCode123", "Name": "ItemName XYZ", "Description": "Item Description ABC" } ] } # Items | opts = { - summarize_errors: true, # Boolean | If false return 200 OK and mix of successfully created objects and any with validation errors + summarize_errors: false, # Boolean | If false return 200 OK and mix of successfully created objects and any with validation errors unitdp: 4 # Integer | e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts } @@ -14881,7 +15013,7 @@ api_instance = xero_client. xero_tenant_id = 'YOUR_XERO_TENANT_ID' # String | Xero identifier for Tenant manual_journals = { "ManualJournals": [ { "Narration": "Journal Desc", "JournalLines": [ { "LineAmount": 100, "AccountCode": "400", "Description": "Money Movement" }, { "LineAmount": -100, "AccountCode": "400", "Description": "Prepayment of things", "Tracking": [ { "Name": "North", "Option": "Region" } ] } ], "Date": "2019-03-14" } ] } # ManualJournals | ManualJournals array with ManualJournal object in body of request opts = { - summarize_errors: true # Boolean | If false return 200 OK and mix of successfully created objects and any with validation errors + summarize_errors: false # Boolean | If false return 200 OK and mix of successfully created objects and any with validation errors } begin @@ -14950,7 +15082,7 @@ api_instance = xero_client. xero_tenant_id = 'YOUR_XERO_TENANT_ID' # String | Xero identifier for Tenant purchase_orders = { "PurchaseOrders": [ { "Contact": { "ContactID": "00000000-0000-0000-0000-000000000000" }, "LineItems": [ { "Description": "Foobar", "Quantity": 1, "UnitAmount": 20, "AccountCode": "710" } ], "Date": "2019-03-13" } ] } # PurchaseOrders | opts = { - summarize_errors: true # Boolean | If false return 200 OK and mix of successfully created objects and any with validation errors + summarize_errors: false # Boolean | If false return 200 OK and mix of successfully created objects and any with validation errors } begin @@ -15019,7 +15151,7 @@ api_instance = xero_client. xero_tenant_id = 'YOUR_XERO_TENANT_ID' # String | Xero identifier for Tenant quotes = { "Quotes": [ { "Contact": { "ContactID": "00000000-0000-0000-0000-000000000000" }, "LineItems": [ { "Description": "Foobar", "Quantity": 1, "UnitAmount": 20, "AccountCode": "12775" } ], "Date": "2020-02-01" } ] } # Quotes | opts = { - summarize_errors: true # Boolean | If false return 200 OK and mix of successfully created objects and any with validation errors + summarize_errors: false # Boolean | If false return 200 OK and mix of successfully created objects and any with validation errors } begin @@ -15088,7 +15220,7 @@ api_instance = xero_client. xero_tenant_id = 'YOUR_XERO_TENANT_ID' # String | Xero identifier for Tenant repeating_invoices = { "RepeatingInvoices": [ { "Schedule": { "Period": 1, "Unit": "MONTHLY", "DueDate": 10, "DueDateType": "OFFOLLOWINGMONTH", "StartDate": "\/Date(1555286400000+0000)\/" }, "Type": "ACCREC", "Reference": "[Week]", "ApprovedForSending": false, "SendCopy": false, "MarkAsSent": false, "IncludePDF": false, "Contact": { "ContactID": "430fa14a-f945-44d3-9f97-5df5e28441b8", "Name": "Liam Gallagher" }, "Status": "AUTHORISED", "LineAmountTypes": "Exclusive", "LineItems": [ { "Description": "Guitars Fender Strat", "UnitAmount": 5000.00, "TaxType": "OUTPUT2", "TaxAmount": 750.00, "LineAmount": 5000.00, "AccountCode": "200", "Tracking": [], "Quantity": 1.0000, "LineItemID": "13a8353c-d2af-4d5b-920c-438449f08900", "DiscountEnteredAsPercent": true } ], "CurrencyCode": "NZD" } ] } # RepeatingInvoices | RepeatingInvoices with an array of repeating invoice objects in body of request opts = { - summarize_errors: true # Boolean | If false return 200 OK and mix of successfully created objects and any with validation errors + summarize_errors: false # Boolean | If false return 200 OK and mix of successfully created objects and any with validation errors } begin @@ -15172,7 +15304,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **purchase_order_id** | **String**| Unique identifier for an Purchase Order | + **purchase_order_id** | [**String**](.md)| Unique identifier for an Purchase Order | **purchase_orders** | [**PurchaseOrders**](PurchaseOrders.md)| | ### Return type @@ -15239,7 +15371,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **purchase_order_id** | **String**| Unique identifier for an Purchase Order | + **purchase_order_id** | [**String**](.md)| Unique identifier for an Purchase Order | **file_name** | **String**| Name of the attachment | **body** | **String**| Byte array of file in body of request | @@ -15306,7 +15438,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **quote_id** | **String**| Unique identifier for an Quote | + **quote_id** | [**String**](.md)| Unique identifier for an Quote | **quotes** | [**Quotes**](Quotes.md)| | ### Return type @@ -15373,7 +15505,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **quote_id** | **String**| Unique identifier for an Quote | + **quote_id** | [**String**](.md)| Unique identifier for an Quote | **file_name** | **String**| Name of the attachment | **body** | **String**| Byte array of file in body of request | @@ -15444,7 +15576,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **receipt_id** | **String**| Unique identifier for a Receipt | + **receipt_id** | [**String**](.md)| Unique identifier for a Receipt | **receipts** | [**Receipts**](Receipts.md)| | **unitdp** | **Integer**| e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts | [optional] @@ -15512,7 +15644,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **receipt_id** | **String**| Unique identifier for a Receipt | + **receipt_id** | [**String**](.md)| Unique identifier for a Receipt | **file_name** | **String**| Name of the attachment | **body** | **String**| Byte array of file in body of request | @@ -15579,7 +15711,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **repeating_invoice_id** | **String**| Unique identifier for a Repeating Invoice | + **repeating_invoice_id** | [**String**](.md)| Unique identifier for a Repeating Invoice | **repeating_invoices** | [**RepeatingInvoices**](RepeatingInvoices.md)| | ### Return type @@ -15646,7 +15778,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **repeating_invoice_id** | **String**| Unique identifier for a Repeating Invoice | + **repeating_invoice_id** | [**String**](.md)| Unique identifier for a Repeating Invoice | **file_name** | **String**| Name of the attachment | **body** | **String**| Byte array of file in body of request | @@ -15777,7 +15909,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **tracking_category_id** | **String**| Unique identifier for a TrackingCategory | + **tracking_category_id** | [**String**](.md)| Unique identifier for a TrackingCategory | **tracking_category** | [**TrackingCategory**](TrackingCategory.md)| | ### Return type @@ -15844,8 +15976,8 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **tracking_category_id** | **String**| Unique identifier for a TrackingCategory | - **tracking_option_id** | **String**| Unique identifier for a Tracking Option | + **tracking_category_id** | [**String**](.md)| Unique identifier for a TrackingCategory | + **tracking_option_id** | [**String**](.md)| Unique identifier for a Tracking Option | **tracking_option** | [**TrackingOption**](TrackingOption.md)| | ### Return type diff --git a/docs/accounting/BatchPaymentDelete.md b/docs/accounting/BatchPaymentDelete.md new file mode 100644 index 00000000..1e355d78 --- /dev/null +++ b/docs/accounting/BatchPaymentDelete.md @@ -0,0 +1,19 @@ +# XeroRuby::Accounting::BatchPaymentDelete + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**batch_payment_id** | **String** | The Xero generated unique identifier for the bank transaction (read-only) | +**status** | **String** | The status of the batch payment. | [default to 'DELETED'] + +## Code Sample + +```ruby +require 'XeroRuby::Accounting' + +instance = XeroRuby::Accounting::BatchPaymentDelete.new(batch_payment_id: null, + status: null) +``` + + diff --git a/docs/accounting/BatchPaymentDeleteByUrlParam.md b/docs/accounting/BatchPaymentDeleteByUrlParam.md new file mode 100644 index 00000000..101ffa17 --- /dev/null +++ b/docs/accounting/BatchPaymentDeleteByUrlParam.md @@ -0,0 +1,17 @@ +# XeroRuby::Accounting::BatchPaymentDeleteByUrlParam + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | **String** | The status of the batch payment. | [default to 'DELETED'] + +## Code Sample + +```ruby +require 'XeroRuby::Accounting' + +instance = XeroRuby::Accounting::BatchPaymentDeleteByUrlParam.new(status: null) +``` + + diff --git a/docs/app_store/AppStoreApi.md b/docs/app_store/AppStoreApi.md index b48c2aba..8f757bca 100644 --- a/docs/app_store/AppStoreApi.md +++ b/docs/app_store/AppStoreApi.md @@ -54,7 +54,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **subscription_id** | **String**| Unique identifier for Subscription object | + **subscription_id** | [**String**](.md)| Unique identifier for Subscription object | ### Return type diff --git a/docs/app_store/ProblemDetails.md b/docs/app_store/ProblemDetails.md index c4a7995f..615f9535 100644 --- a/docs/app_store/ProblemDetails.md +++ b/docs/app_store/ProblemDetails.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **detail** | **String** | | [optional] -**extensions** | **Object** | | [optional] +**extensions** | [**Object**](.md) | | [optional] **instance** | **String** | | [optional] **status** | **Integer** | | [optional] **title** | **String** | | [optional] diff --git a/docs/assets/AssetApi.md b/docs/assets/AssetApi.md index eb3b45fd..398d2787 100644 --- a/docs/assets/AssetApi.md +++ b/docs/assets/AssetApi.md @@ -198,7 +198,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **id** | **String**| fixed asset id for single object | + **id** | [**String**](.md)| fixed asset id for single object | ### Return type @@ -376,15 +376,15 @@ api_instance = xero_client. xero_tenant_id = 'YOUR_XERO_TENANT_ID' # String | Xero identifier for Tenant -status = # AssetStatusQueryParam | Required when retrieving a collection of assets. See Asset Status Codes +status = XeroRuby::Assets::AssetStatusQueryParam.new # AssetStatusQueryParam | Required when retrieving a collection of assets. See Asset Status Codes opts = { page: 1, # Integer | Results are paged. This specifies which page of the results to return. The default page is 1. page_size: 5, # Integer | The number of records returned per page. By default the number of records returned is 10. - order_by: 'AssetType', # String | Requests can be ordered by AssetType, AssetName, AssetNumber, PurchaseDate and PurchasePrice. If the asset status is DISPOSED it also allows DisposalDate and DisposalPrice. + order_by: 'AssetName', # String | Requests can be ordered by AssetType, AssetName, AssetNumber, PurchaseDate and PurchasePrice. If the asset status is DISPOSED it also allows DisposalDate and DisposalPrice. - sort_direction: 'asc', # String | ASC or DESC + sort_direction: 'ASC', # String | ASC or DESC filter_by: 'Company Car' # String | A string that can be used to filter the list to only return assets containing the text. Checks it against the AssetName, AssetNumber, Description and AssetTypeName fields. } diff --git a/docs/files/FilesApi.md b/docs/files/FilesApi.md index 75e81b82..bce7b8bc 100644 --- a/docs/files/FilesApi.md +++ b/docs/files/FilesApi.md @@ -78,7 +78,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **file_id** | **String**| File id for single object | + **file_id** | [**String**](.md)| File id for single object | **association** | [**Association**](Association.md)| | [optional] ### Return type @@ -213,7 +213,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **file_id** | **String**| File id for single object | + **file_id** | [**String**](.md)| File id for single object | ### Return type @@ -279,8 +279,8 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **file_id** | **String**| File id for single object | - **object_id** | **String**| Object id for single object | + **file_id** | [**String**](.md)| File id for single object | + **object_id** | [**String**](.md)| Object id for single object | ### Return type @@ -345,7 +345,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **folder_id** | **String**| Folder id for single object | + **folder_id** | [**String**](.md)| Folder id for single object | ### Return type @@ -411,7 +411,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **object_id** | **String**| Object id for single object | + **object_id** | [**String**](.md)| Object id for single object | ### Return type @@ -475,7 +475,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **file_id** | **String**| File id for single object | + **file_id** | [**String**](.md)| File id for single object | ### Return type @@ -541,7 +541,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **file_id** | **String**| File id for single object | + **file_id** | [**String**](.md)| File id for single object | ### Return type @@ -607,7 +607,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **file_id** | **String**| File id for single object | + **file_id** | [**String**](.md)| File id for single object | ### Return type @@ -660,7 +660,7 @@ opts = { page: 2, # Integer | number of records to skip for pagination - sort: 'Name' # String | values to sort by + sort: 'CreatedDateUTC DESC' # String | values to sort by } begin @@ -746,7 +746,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **folder_id** | **String**| Folder id for single object | + **folder_id** | [**String**](.md)| Folder id for single object | ### Return type @@ -797,7 +797,7 @@ api_instance = xero_client. xero_tenant_id = 'YOUR_XERO_TENANT_ID' # String | Xero identifier for Tenant opts = { - sort: 'Name' # String | values to sort by + sort: 'CreatedDateUTC DESC' # String | values to sort by } begin @@ -949,7 +949,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **file_id** | **String**| File id for single object | + **file_id** | [**String**](.md)| File id for single object | **file_object** | [**FileObject**](FileObject.md)| | [optional] ### Return type @@ -1017,7 +1017,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **folder_id** | **String**| Folder id for single object | + **folder_id** | [**String**](.md)| Folder id for single object | **folder** | [**Folder**](Folder.md)| | ### Return type @@ -1162,7 +1162,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **folder_id** | **String**| pass required folder id to save file to specific folder | + **folder_id** | [**String**](.md)| pass required folder id to save file to specific folder | **body** | **String**| | **name** | **String**| exact name of the file you are uploading | **filename** | **String**| | diff --git a/docs/files/UploadObject.md b/docs/files/UploadObject.md new file mode 100644 index 00000000..c86cdef2 --- /dev/null +++ b/docs/files/UploadObject.md @@ -0,0 +1,23 @@ +# XeroRuby::Files::UploadObject + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**body** | **String** | | +**name** | **String** | exact name of the file you are uploading | +**filename** | **String** | | +**mime_type** | **String** | | [optional] + +## Code Sample + +```ruby +require 'XeroRuby::Files' + +instance = XeroRuby::Files::UploadObject.new(body: null, + name: null, + filename: null, + mime_type: null) +``` + + diff --git a/docs/finance/FinanceApi.md b/docs/finance/FinanceApi.md index 59986445..26f0c978 100644 --- a/docs/finance/FinanceApi.md +++ b/docs/finance/FinanceApi.md @@ -332,7 +332,7 @@ api_instance = xero_client. xero_tenant_id = 'YOUR_XERO_TENANT_ID' # String | Xero identifier for Tenant -bank_account_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | string, GUID Bank account Id +bank_account_id = 'bank_account_id_example' # String | string, GUID Bank account Id from_date = '2020-07-01' # String | date, yyyy-MM-dd Specifies the start date of the query period. The maximum range of the query period is 12 months. If the specified query period is more than 12 months the request will be rejected. to_date = '2021-06-30' # String | date, yyyy-MM-dd Specifies the end date of the query period. If the end date is a future date, the request will be rejected. opts = { @@ -354,7 +354,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **bank_account_id** | **String**| string, GUID Bank account Id | + **bank_account_id** | [**String**](.md)| string, GUID Bank account Id | **from_date** | **String**| date, yyyy-MM-dd Specifies the start date of the query period. The maximum range of the query period is 12 months. If the specified query period is more than 12 months the request will be rejected. | **to_date** | **String**| date, yyyy-MM-dd Specifies the end date of the query period. If the end date is a future date, the request will be rejected. | **summary_only** | **Boolean**| boolean, true/false The default value is true if no parameter is provided. In summary mode, the response will exclude the computation-heavy LineItems fields from bank transaction, invoice, credit note, prepayment and overpayment data, making the API calls quicker and more efficient. | [optional] @@ -624,7 +624,7 @@ api_instance = xero_client. xero_tenant_id = 'YOUR_XERO_TENANT_ID' # String | Xero identifier for Tenant opts = { - contact_ids: ["00000000-0000-0000-0000-000000000000","00000000-0000-0000-0000-000000000000"], # Array<String> | Specifies the customer contacts to be included in the report. If no parameter is provided, all customer contacts will be included + contact_ids: ['[\"00000000-0000-0000-0000-000000000000\",\"00000000-0000-0000-0000-000000000000\"]'], # Array | Specifies the customer contacts to be included in the report. If no parameter is provided, all customer contacts will be included include_manual_journals: true, # Boolean | Specifies whether to include the manual journals in the report. If no parameter is provided, manual journals will not be included. @@ -702,7 +702,7 @@ api_instance = xero_client. xero_tenant_id = 'YOUR_XERO_TENANT_ID' # String | Xero identifier for Tenant opts = { - contact_ids: ["00000000-0000-0000-0000-000000000000","00000000-0000-0000-0000-000000000000"], # Array<String> | Specifies the customer contacts to be included in the report. If no parameter is provided, all customer contacts will be included + contact_ids: ['[\"00000000-0000-0000-0000-000000000000\",\"00000000-0000-0000-0000-000000000000\"]'], # Array | Specifies the customer contacts to be included in the report. If no parameter is provided, all customer contacts will be included include_manual_journals: true, # Boolean | Specifies whether to include the manual journals in the report. If no parameter is provided, manual journals will not be included. diff --git a/docs/payroll_au/PayrollAuApi.md b/docs/payroll_au/PayrollAuApi.md index f7e9b2a5..7909e1a3 100644 --- a/docs/payroll_au/PayrollAuApi.md +++ b/docs/payroll_au/PayrollAuApi.md @@ -532,7 +532,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **employee_id** | **String**| Employee id for single object | + **employee_id** | [**String**](.md)| Employee id for single object | ### Return type @@ -583,7 +583,7 @@ xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant opts = { if_modified_since: DateTime.parse('2020-02-06T12:17:43.202-08:00'), # DateTime | Only records created or modified since this timestamp will be returned - where: 'Status=="ACTIVE"', # String | Filter by an any element + where: 'Status==\"ACTIVE\"', # String | Filter by an any element order: 'EmailAddress%20DESC', # String | Order by an any element @@ -672,7 +672,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **leave_application_id** | **String**| Leave Application id for single object | + **leave_application_id** | [**String**](.md)| Leave Application id for single object | ### Return type @@ -723,7 +723,7 @@ xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant opts = { if_modified_since: DateTime.parse('2020-02-06T12:17:43.202-08:00'), # DateTime | Only records created or modified since this timestamp will be returned - where: 'Status=="ACTIVE"', # String | Filter by an any element + where: 'Status==\"ACTIVE\"', # String | Filter by an any element order: 'EmailAddress%20DESC', # String | Order by an any element @@ -799,7 +799,7 @@ xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant opts = { if_modified_since: DateTime.parse('2020-02-06T12:17:43.202-08:00'), # DateTime | Only records created or modified since this timestamp will be returned - where: 'Status=="ACTIVE"', # String | Filter by an any element + where: 'Status==\"ACTIVE\"', # String | Filter by an any element order: 'EmailAddress%20DESC', # String | Order by an any element @@ -888,7 +888,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **pay_run_id** | **String**| PayRun id for single object | + **pay_run_id** | [**String**](.md)| PayRun id for single object | ### Return type @@ -939,7 +939,7 @@ xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant opts = { if_modified_since: DateTime.parse('2020-02-06T12:17:43.202-08:00'), # DateTime | Only records created or modified since this timestamp will be returned - where: 'Status=="ACTIVE"', # String | Filter by an any element + where: 'Status==\"ACTIVE\"', # String | Filter by an any element order: 'EmailAddress%20DESC', # String | Order by an any element @@ -1028,7 +1028,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **payroll_calendar_id** | **String**| Payroll Calendar id for single object | + **payroll_calendar_id** | [**String**](.md)| Payroll Calendar id for single object | ### Return type @@ -1079,7 +1079,7 @@ xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant opts = { if_modified_since: DateTime.parse('2020-02-06T12:17:43.202-08:00'), # DateTime | Only records created or modified since this timestamp will be returned - where: 'Status=="ACTIVE"', # String | Filter by an any element + where: 'Status==\"ACTIVE\"', # String | Filter by an any element order: 'EmailAddress%20DESC', # String | Order by an any element @@ -1168,7 +1168,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **payslip_id** | **String**| Payslip id for single object | + **payslip_id** | [**String**](.md)| Payslip id for single object | ### Return type @@ -1294,7 +1294,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **super_fund_id** | **String**| Superfund id for single object | + **super_fund_id** | [**String**](.md)| Superfund id for single object | ### Return type @@ -1415,7 +1415,7 @@ xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant opts = { if_modified_since: DateTime.parse('2020-02-06T12:17:43.202-08:00'), # DateTime | Only records created or modified since this timestamp will be returned - where: 'Status=="ACTIVE"', # String | Filter by an any element + where: 'Status==\"ACTIVE\"', # String | Filter by an any element order: 'EmailAddress%20DESC', # String | Order by an any element @@ -1504,7 +1504,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **timesheet_id** | **String**| Timesheet id for single object | + **timesheet_id** | [**String**](.md)| Timesheet id for single object | ### Return type @@ -1555,7 +1555,7 @@ xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant opts = { if_modified_since: DateTime.parse('2020-02-06T12:17:43.202-08:00'), # DateTime | Only records created or modified since this timestamp will be returned - where: 'Status=="ACTIVE"', # String | Filter by an any element + where: 'Status==\"ACTIVE\"', # String | Filter by an any element order: 'EmailAddress%20DESC', # String | Order by an any element @@ -1632,7 +1632,7 @@ api_instance = xero_client. xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant employee_id = '4ff1e5cc-9835-40d5-bb18-09fdb118db9c' # String | Employee id for single object opts = { - employee: [ { "MiddleNames": "Frank" } ] # Array<Employee> | + employee: [ { "MiddleNames": "Frank" } ] # Array | } begin @@ -1650,7 +1650,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **employee_id** | **String**| Employee id for single object | + **employee_id** | [**String**](.md)| Employee id for single object | **employee** | [**Array<Employee>**](Employee.md)| | [optional] ### Return type @@ -1716,7 +1716,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **leave_application_id** | **String**| Leave Application id for single object | + **leave_application_id** | [**String**](.md)| Leave Application id for single object | **leave_application** | [**Array<LeaveApplication>**](LeaveApplication.md)| | ### Return type @@ -1769,7 +1769,7 @@ api_instance = xero_client. xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant pay_run_id = '4ff1e5cc-9835-40d5-bb18-09fdb118db9c' # String | PayRun id for single object opts = { - pay_run: # Array<PayRun> | + pay_run: [XeroRuby::PayrollAu::PayRun.new] # Array | } begin @@ -1787,7 +1787,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **pay_run_id** | **String**| PayRun id for single object | + **pay_run_id** | [**String**](.md)| PayRun id for single object | **pay_run** | [**Array<PayRun>**](PayRun.md)| | [optional] ### Return type @@ -1840,7 +1840,7 @@ api_instance = xero_client. xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant payslip_id = '4ff1e5cc-9835-40d5-bb18-09fdb118db9c' # String | Payslip id for single object opts = { - payslip_lines: { "Payslip": { "EmployeeID": "cdfb8371-0b21-4b8a-8903-1024df6c391e", "DeductionLines": [ { "DeductionTypeID": "727af5e8-b347-4ae7-85fc-9b82266d0aec", "CalculationType": "FIXEDAMOUNT", "NumberOfUnits": 10 } ] } } # Array<PayslipLines> | + payslip_lines: { "Payslip": { "EmployeeID": "cdfb8371-0b21-4b8a-8903-1024df6c391e", "DeductionLines": [ { "DeductionTypeID": "727af5e8-b347-4ae7-85fc-9b82266d0aec", "CalculationType": "FIXEDAMOUNT", "NumberOfUnits": 10 } ] } } # Array | } begin @@ -1858,7 +1858,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **payslip_id** | **String**| Payslip id for single object | + **payslip_id** | [**String**](.md)| Payslip id for single object | **payslip_lines** | [**Array<PayslipLines>**](PayslipLines.md)| | [optional] ### Return type @@ -1911,7 +1911,7 @@ api_instance = xero_client. xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant super_fund_id = '4ff1e5cc-9835-40d5-bb18-09fdb118db9c' # String | Superfund id for single object opts = { - super_fund: [ { "Type":"REGULATED", "Name":"Nice23534" } ] # Array<SuperFund> | + super_fund: [ { "Type":"REGULATED", "Name":"Nice23534" } ] # Array | } begin @@ -1929,7 +1929,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **super_fund_id** | **String**| Superfund id for single object | + **super_fund_id** | [**String**](.md)| Superfund id for single object | **super_fund** | [**Array<SuperFund>**](SuperFund.md)| | [optional] ### Return type @@ -1982,7 +1982,7 @@ api_instance = xero_client. xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant timesheet_id = '4ff1e5cc-9835-40d5-bb18-09fdb118db9c' # String | Timesheet id for single object opts = { - timesheet: [ { "EmployeeID":"b34e89ff-770d-4099-b7e5-f968767118bc", "StartDate":"/Date(1573171200000+0000)/", "EndDate":"/Date(1573689600000+0000)/", "Status":"APPROVED", "Hours":22.0, "TimesheetID":"a7eb0a79-8511-4ee7-b473-3a25f28abcb9", "TimesheetLines":[ { "EarningsRateID":"ab874dfb-ab09-4c91-954e-43acf6fc23b4", "TrackingItemID":"af5e9ce2-2349-4136-be99-3561b189f473", "NumberOfUnits":[ 2.0, 10.0, 0.0, 0.0, 5.0, 0.0, 5.0 ], "UpdatedDateUTC":"/Date(1573516185127+0000)/" } ] } ] # Array<Timesheet> | + timesheet: [ { "EmployeeID":"b34e89ff-770d-4099-b7e5-f968767118bc", "StartDate":"/Date(1573171200000+0000)/", "EndDate":"/Date(1573689600000+0000)/", "Status":"APPROVED", "Hours":22.0, "TimesheetID":"a7eb0a79-8511-4ee7-b473-3a25f28abcb9", "TimesheetLines":[ { "EarningsRateID":"ab874dfb-ab09-4c91-954e-43acf6fc23b4", "TrackingItemID":"af5e9ce2-2349-4136-be99-3561b189f473", "NumberOfUnits":[ 2.0, 10.0, 0.0, 0.0, 5.0, 0.0, 5.0 ], "UpdatedDateUTC":"/Date(1573516185127+0000)/" } ] } ] # Array | } begin @@ -2000,7 +2000,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **timesheet_id** | **String**| Timesheet id for single object | + **timesheet_id** | [**String**](.md)| Timesheet id for single object | **timesheet** | [**Array<Timesheet>**](Timesheet.md)| | [optional] ### Return type diff --git a/docs/payroll_nz/Employee.md b/docs/payroll_nz/Employee.md index 7b7318ef..c25100ce 100644 --- a/docs/payroll_nz/Employee.md +++ b/docs/payroll_nz/Employee.md @@ -28,13 +28,13 @@ instance = XeroRuby::PayrollNz::Employee.new(employee_id: d90457c4-f1be-4f2e-b4e title: Mrs, first_name: Karen, last_name: Jones, - date_of_birth: Wed Jan 02 00:00:00 UTC 2019, + date_of_birth: Wed Jan 02 00:00:00 GMT 2019, address: null, email: developer@me.com, gender: F, phone_number: 415-555-1212, - start_date: Sun Jan 19 00:00:00 UTC 2020, - end_date: Sun Jan 19 00:00:00 UTC 2020, + start_date: Sun Jan 19 00:00:00 GMT 2020, + end_date: Sun Jan 19 00:00:00 GMT 2020, payroll_calendar_id: null, updated_date_utc: null, created_date_utc: null) diff --git a/docs/payroll_nz/PayrollNzApi.md b/docs/payroll_nz/PayrollNzApi.md index 5efb35bc..cf4be8f2 100644 --- a/docs/payroll_nz/PayrollNzApi.md +++ b/docs/payroll_nz/PayrollNzApi.md @@ -107,7 +107,7 @@ api_instance = xero_client. xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant -timesheet_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | Identifier for the timesheet +timesheet_id = 'timesheet_id_example' # String | Identifier for the timesheet begin #Approves a timesheet result = api_instance.approve_timesheet(xero_tenant_id, timesheet_id) @@ -123,7 +123,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **timesheet_id** | **String**| Identifier for the timesheet | + **timesheet_id** | [**String**](.md)| Identifier for the timesheet | ### Return type @@ -380,7 +380,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **employee_id** | **String**| Employee id for single object | + **employee_id** | [**String**](.md)| Employee id for single object | **earnings_template** | [**EarningsTemplate**](EarningsTemplate.md)| | ### Return type @@ -446,7 +446,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **employee_id** | **String**| Employee id for single object | + **employee_id** | [**String**](.md)| Employee id for single object | **employee_leave** | [**EmployeeLeave**](EmployeeLeave.md)| | ### Return type @@ -512,7 +512,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **employee_id** | **String**| Employee id for single object | + **employee_id** | [**String**](.md)| Employee id for single object | **employee_leave_setup** | [**EmployeeLeaveSetup**](EmployeeLeaveSetup.md)| | ### Return type @@ -578,7 +578,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **employee_id** | **String**| Employee id for single object | + **employee_id** | [**String**](.md)| Employee id for single object | **employee_leave_type** | [**EmployeeLeaveType**](EmployeeLeaveType.md)| | ### Return type @@ -644,7 +644,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **employee_id** | **String**| Employee id for single object | + **employee_id** | [**String**](.md)| Employee id for single object | **employee_opening_balance** | [**Array<EmployeeOpeningBalance>**](EmployeeOpeningBalance.md)| | ### Return type @@ -694,7 +694,7 @@ api_instance = xero_client. xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant employee_id = '4ff1e5cc-9835-40d5-bb18-09fdb118db9c' # String | Employee id for single object -payment_method = # PaymentMethod | +payment_method = XeroRuby::PayrollNz::PaymentMethod.new # PaymentMethod | begin #Creates a payment method for an employee result = api_instance.create_employee_payment_method(xero_tenant_id, employee_id, payment_method) @@ -710,7 +710,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **employee_id** | **String**| Employee id for single object | + **employee_id** | [**String**](.md)| Employee id for single object | **payment_method** | [**PaymentMethod**](PaymentMethod.md)| | ### Return type @@ -776,7 +776,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **employee_id** | **String**| Employee id for single object | + **employee_id** | [**String**](.md)| Employee id for single object | **salary_and_wage** | [**SalaryAndWage**](SalaryAndWage.md)| | ### Return type @@ -842,7 +842,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **employee_id** | **String**| Employee id for single object | + **employee_id** | [**String**](.md)| Employee id for single object | **employment** | [**Employment**](Employment.md)| | ### Return type @@ -972,7 +972,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **employee_id** | **String**| Employee id for single object | + **employee_id** | [**String**](.md)| Employee id for single object | **earnings_template** | [**Array<EarningsTemplate>**](EarningsTemplate.md)| | ### Return type @@ -1341,7 +1341,7 @@ api_instance = xero_client. xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant -timesheet_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | Identifier for the timesheet +timesheet_id = 'timesheet_id_example' # String | Identifier for the timesheet timesheet_line = { "date": "2020-08-03", "earningsRateID": "f9d8f5b5-9049-47f4-8541-35e200f750a5", "numberOfUnits": 1 } # TimesheetLine | begin #Create a new timesheet line for a specific time sheet @@ -1358,7 +1358,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **timesheet_id** | **String**| Identifier for the timesheet | + **timesheet_id** | [**String**](.md)| Identifier for the timesheet | **timesheet_line** | [**TimesheetLine**](TimesheetLine.md)| | ### Return type @@ -1424,8 +1424,8 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **employee_id** | **String**| Employee id for single object | - **pay_template_earning_id** | **String**| Id for single pay template earnings object | + **employee_id** | [**String**](.md)| Employee id for single object | + **pay_template_earning_id** | [**String**](.md)| Id for single pay template earnings object | ### Return type @@ -1490,8 +1490,8 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **employee_id** | **String**| Employee id for single object | - **leave_id** | **String**| Leave id for single object | + **employee_id** | [**String**](.md)| Employee id for single object | + **leave_id** | [**String**](.md)| Leave id for single object | ### Return type @@ -1556,8 +1556,8 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **employee_id** | **String**| Employee id for single object | - **salary_and_wages_id** | **String**| Id for single salary and wages object | + **employee_id** | [**String**](.md)| Employee id for single object | + **salary_and_wages_id** | [**String**](.md)| Id for single salary and wages object | ### Return type @@ -1605,7 +1605,7 @@ api_instance = xero_client. xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant -timesheet_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | Identifier for the timesheet +timesheet_id = 'timesheet_id_example' # String | Identifier for the timesheet begin #Deletes a timesheet result = api_instance.delete_timesheet(xero_tenant_id, timesheet_id) @@ -1621,7 +1621,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **timesheet_id** | **String**| Identifier for the timesheet | + **timesheet_id** | [**String**](.md)| Identifier for the timesheet | ### Return type @@ -1669,8 +1669,8 @@ api_instance = xero_client. xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant -timesheet_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | Identifier for the timesheet -timesheet_line_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | Identifier for the timesheet line +timesheet_id = 'timesheet_id_example' # String | Identifier for the timesheet +timesheet_line_id = 'timesheet_line_id_example' # String | Identifier for the timesheet line begin #Deletes a timesheet line for a specific timesheet result = api_instance.delete_timesheet_line(xero_tenant_id, timesheet_id, timesheet_line_id) @@ -1686,8 +1686,8 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **timesheet_id** | **String**| Identifier for the timesheet | - **timesheet_line_id** | **String**| Identifier for the timesheet line | + **timesheet_id** | [**String**](.md)| Identifier for the timesheet | + **timesheet_line_id** | [**String**](.md)| Identifier for the timesheet line | ### Return type @@ -1735,7 +1735,7 @@ api_instance = xero_client. xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant -deduction_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | Identifier for the deduction +deduction_id = 'deduction_id_example' # String | Identifier for the deduction begin #Retrieves a single deduction by using a unique deduction ID result = api_instance.get_deduction(xero_tenant_id, deduction_id) @@ -1751,7 +1751,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **deduction_id** | **String**| Identifier for the deduction | + **deduction_id** | [**String**](.md)| Identifier for the deduction | ### Return type @@ -1866,7 +1866,7 @@ api_instance = xero_client. xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant -earnings_rate_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | Identifier for the earnings rate +earnings_rate_id = 'earnings_rate_id_example' # String | Identifier for the earnings rate begin #Retrieves a specific earnings rates by using a unique earnings rate id result = api_instance.get_earnings_rate(xero_tenant_id, earnings_rate_id) @@ -1882,7 +1882,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **earnings_rate_id** | **String**| Identifier for the earnings rate | + **earnings_rate_id** | [**String**](.md)| Identifier for the earnings rate | ### Return type @@ -2013,7 +2013,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **employee_id** | **String**| Employee id for single object | + **employee_id** | [**String**](.md)| Employee id for single object | ### Return type @@ -2077,7 +2077,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **employee_id** | **String**| Employee id for single object | + **employee_id** | [**String**](.md)| Employee id for single object | ### Return type @@ -2147,7 +2147,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **employee_id** | **String**| Employee id for single object | + **employee_id** | [**String**](.md)| Employee id for single object | **start_date** | **Date**| Filter by start date | [optional] **end_date** | **Date**| Filter by end date | [optional] @@ -2213,7 +2213,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **employee_id** | **String**| Employee id for single object | + **employee_id** | [**String**](.md)| Employee id for single object | ### Return type @@ -2277,7 +2277,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **employee_id** | **String**| Employee id for single object | + **employee_id** | [**String**](.md)| Employee id for single object | ### Return type @@ -2341,7 +2341,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **employee_id** | **String**| Employee id for single object | + **employee_id** | [**String**](.md)| Employee id for single object | ### Return type @@ -2405,7 +2405,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **employee_id** | **String**| Employee id for single object | + **employee_id** | [**String**](.md)| Employee id for single object | ### Return type @@ -2469,7 +2469,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **employee_id** | **String**| Employee id for single object | + **employee_id** | [**String**](.md)| Employee id for single object | ### Return type @@ -2534,8 +2534,8 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **employee_id** | **String**| Employee id for single object | - **salary_and_wages_id** | **String**| Id for single pay template earnings object | + **employee_id** | [**String**](.md)| Employee id for single object | + **salary_and_wages_id** | [**String**](.md)| Id for single pay template earnings object | ### Return type @@ -2603,7 +2603,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **employee_id** | **String**| Employee id for single object | + **employee_id** | [**String**](.md)| Employee id for single object | **page** | **Integer**| Page number which specifies the set of records to retrieve. By default the number of the records per set is 100. | [optional] ### Return type @@ -2668,7 +2668,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **employee_id** | **String**| Employee id for single object | + **employee_id** | [**String**](.md)| Employee id for single object | ### Return type @@ -2786,7 +2786,7 @@ api_instance = xero_client. xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant -leave_type_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | Identifier for the leave type +leave_type_id = 'leave_type_id_example' # String | Identifier for the leave type begin #Retrieves a specific leave type by using a unique leave type ID result = api_instance.get_leave_type(xero_tenant_id, leave_type_id) @@ -2802,7 +2802,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **leave_type_id** | **String**| Identifier for the leave type | + **leave_type_id** | [**String**](.md)| Identifier for the leave type | ### Return type @@ -2920,7 +2920,7 @@ api_instance = xero_client. xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant -pay_run_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | Identifier for the pay run +pay_run_id = 'pay_run_id_example' # String | Identifier for the pay run begin #Retrieves a specific pay run by using a unique pay run ID result = api_instance.get_pay_run(xero_tenant_id, pay_run_id) @@ -2936,7 +2936,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **pay_run_id** | **String**| Identifier for the pay run | + **pay_run_id** | [**String**](.md)| Identifier for the pay run | ### Return type @@ -2984,7 +2984,7 @@ api_instance = xero_client. xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant -payroll_calendar_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | Identifier for the payrun calendars +payroll_calendar_id = 'payroll_calendar_id_example' # String | Identifier for the payrun calendars begin #Retrieves a specific payrun calendar by using a unique payroll calendar ID result = api_instance.get_pay_run_calendar(xero_tenant_id, payroll_calendar_id) @@ -3000,7 +3000,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **payroll_calendar_id** | **String**| Identifier for the payrun calendars | + **payroll_calendar_id** | [**String**](.md)| Identifier for the payrun calendars | ### Return type @@ -3118,7 +3118,7 @@ xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant opts = { page: 56, # Integer | Page number which specifies the set of records to retrieve. By default the number of the records per set is 100. - status: 'Draft' # String | By default get payruns will return all the payruns for an organization. You can add GET https://api.xero.com/payroll.xro/2.0/payRuns?statu={PayRunStatus} to filter the payruns by status. + status: 'status_example' # String | By default get payruns will return all the payruns for an organization. You can add GET https://api.xero.com/payroll.xro/2.0/payRuns?statu={PayRunStatus} to filter the payruns by status. } begin @@ -3185,7 +3185,7 @@ api_instance = xero_client. xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant -pay_slip_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | Identifier for the payslip +pay_slip_id = 'pay_slip_id_example' # String | Identifier for the payslip begin #Retrieves a specific payslip by a unique pay slip ID result = api_instance.get_pay_slip(xero_tenant_id, pay_slip_id) @@ -3201,7 +3201,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **pay_slip_id** | **String**| Identifier for the payslip | + **pay_slip_id** | [**String**](.md)| Identifier for the payslip | ### Return type @@ -3249,7 +3249,7 @@ api_instance = xero_client. xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant -pay_run_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | PayrunID which specifies the containing payrun of payslips to retrieve. By default, the API does not group payslips by payrun. +pay_run_id = 'pay_run_id_example' # String | PayrunID which specifies the containing payrun of payslips to retrieve. By default, the API does not group payslips by payrun. opts = { page: 56 # Integer | Page number which specifies the set of records to retrieve. By default the number of the records per set is 100. } @@ -3269,7 +3269,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **pay_run_id** | **String**| PayrunID which specifies the containing payrun of payslips to retrieve. By default, the API does not group payslips by payrun. | + **pay_run_id** | [**String**](.md)| PayrunID which specifies the containing payrun of payslips to retrieve. By default, the API does not group payslips by payrun. | **page** | **Integer**| Page number which specifies the set of records to retrieve. By default the number of the records per set is 100. | [optional] ### Return type @@ -3318,7 +3318,7 @@ api_instance = xero_client. xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant -reimbursement_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | Identifier for the reimbursement +reimbursement_id = 'reimbursement_id_example' # String | Identifier for the reimbursement begin #Retrieves a specific reimbursement by using a unique reimbursement ID result = api_instance.get_reimbursement(xero_tenant_id, reimbursement_id) @@ -3334,7 +3334,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **reimbursement_id** | **String**| Identifier for the reimbursement | + **reimbursement_id** | [**String**](.md)| Identifier for the reimbursement | ### Return type @@ -3511,7 +3511,7 @@ api_instance = xero_client. xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant -id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | Identifier for the statutory deduction +id = 'id_example' # String | Identifier for the statutory deduction begin #Retrieves a specific statutory deduction by using a unique statutory deductions id result = api_instance.get_statutory_deduction(xero_tenant_id, id) @@ -3527,7 +3527,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **id** | **String**| Identifier for the statutory deduction | + **id** | [**String**](.md)| Identifier for the statutory deduction | ### Return type @@ -3642,7 +3642,7 @@ api_instance = xero_client. xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant -superannuation_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | Identifier for the superannuation +superannuation_id = 'superannuation_id_example' # String | Identifier for the superannuation begin #Retrieves a specific superannuation using a unique superannuation ID result = api_instance.get_superannuation(xero_tenant_id, superannuation_id) @@ -3658,7 +3658,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **superannuation_id** | **String**| Identifier for the superannuation | + **superannuation_id** | [**String**](.md)| Identifier for the superannuation | ### Return type @@ -3773,7 +3773,7 @@ api_instance = xero_client. xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant -timesheet_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | Identifier for the timesheet +timesheet_id = 'timesheet_id_example' # String | Identifier for the timesheet begin #Retrieves a specific timesheet by using a unique timesheet ID result = api_instance.get_timesheet(xero_tenant_id, timesheet_id) @@ -3789,7 +3789,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **timesheet_id** | **String**| Identifier for the timesheet | + **timesheet_id** | [**String**](.md)| Identifier for the timesheet | ### Return type @@ -3981,7 +3981,7 @@ api_instance = xero_client. xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant -timesheet_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | Identifier for the timesheet +timesheet_id = 'timesheet_id_example' # String | Identifier for the timesheet begin #Reverts a timesheet to draft result = api_instance.revert_timesheet(xero_tenant_id, timesheet_id) @@ -3997,7 +3997,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **timesheet_id** | **String**| Identifier for the timesheet | + **timesheet_id** | [**String**](.md)| Identifier for the timesheet | ### Return type @@ -4062,7 +4062,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **employee_id** | **String**| Employee id for single object | + **employee_id** | [**String**](.md)| Employee id for single object | **employee** | [**Employee**](Employee.md)| | ### Return type @@ -4129,8 +4129,8 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **employee_id** | **String**| Employee id for single object | - **pay_template_earning_id** | **String**| Id for single pay template earnings object | + **employee_id** | [**String**](.md)| Employee id for single object | + **pay_template_earning_id** | [**String**](.md)| Id for single pay template earnings object | **earnings_template** | [**EarningsTemplate**](EarningsTemplate.md)| | ### Return type @@ -4197,8 +4197,8 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **employee_id** | **String**| Employee id for single object | - **leave_id** | **String**| Leave id for single object | + **employee_id** | [**String**](.md)| Employee id for single object | + **leave_id** | [**String**](.md)| Leave id for single object | **employee_leave** | [**EmployeeLeave**](EmployeeLeave.md)| | ### Return type @@ -4265,8 +4265,8 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **employee_id** | **String**| Employee id for single object | - **salary_and_wages_id** | **String**| Id for single pay template earnings object | + **employee_id** | [**String**](.md)| Employee id for single object | + **salary_and_wages_id** | [**String**](.md)| Id for single pay template earnings object | **salary_and_wage** | [**SalaryAndWage**](SalaryAndWage.md)| | ### Return type @@ -4316,7 +4316,7 @@ api_instance = xero_client. xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant employee_id = '4ff1e5cc-9835-40d5-bb18-09fdb118db9c' # String | Employee id for single object -employee_tax = # EmployeeTax | +employee_tax = XeroRuby::PayrollNz::EmployeeTax.new # EmployeeTax | begin #Updates the tax records for a specific employee result = api_instance.update_employee_tax(xero_tenant_id, employee_id, employee_tax) @@ -4332,7 +4332,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **employee_id** | **String**| Employee id for single object | + **employee_id** | [**String**](.md)| Employee id for single object | **employee_tax** | [**EmployeeTax**](EmployeeTax.md)| | ### Return type @@ -4381,7 +4381,7 @@ api_instance = xero_client. xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant -pay_run_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | Identifier for the pay run +pay_run_id = 'pay_run_id_example' # String | Identifier for the pay run pay_run = { "paymentDate": "2019-07-01" } # PayRun | begin #Updates a pay run @@ -4398,7 +4398,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **pay_run_id** | **String**| Identifier for the pay run | + **pay_run_id** | [**String**](.md)| Identifier for the pay run | **pay_run** | [**PayRun**](PayRun.md)| | ### Return type @@ -4447,7 +4447,7 @@ api_instance = xero_client. xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant -pay_slip_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | Identifier for the payslip +pay_slip_id = 'pay_slip_id_example' # String | Identifier for the payslip pay_slip = { "earningsLines": [ { "earningsLineID": "f9d8f5b5-9049-47f4-8541-35e200f750a5", "earningsRateID": "f9d8f5b5-9049-47f4-8541-35e200f750a5", "displayName": "Ordinary Time", "ratePerUnit": 25, "numberOfUnits": 0, "amount": 0, "isLinkedToTimesheet": false, "isSystemGenerated": true }, { "earningsLineID": "65b83d94-f20f-45e1-85ae-387fcf460c26", "earningsRateID": "65b83d94-f20f-45e1-85ae-387fcf460c26", "displayName": "Salary", "ratePerUnit": 0, "numberOfUnits": 8, "amount": 0, "isLinkedToTimesheet": false, "isSystemGenerated": false } ], "leaveEarningsLines": [ { "earningsLineID": "0441497f-5dc7-4cd3-a90d-f2e07e21b2a6", "earningsRateID": "39b3560a-5d2f-4538-924a-4349dc86396e", "displayName": "Holiday Pay", "fixedAmount": 268.8, "amount": 268.8, "isLinkedToTimesheet": false, "isSystemGenerated": true } ], "deductionLines": [ { "deductionTypeID": "a3760fe4-68a4-4e38-8326-fe616af7dc74", "amount": 100 } ], "leaveAccrualLines": [ { "leaveTypeID": "0441497f-5dc7-4cd3-a90d-f2e07e21b2a6", "numberOfUnits": 268.8 }, { "leaveTypeID": "b0b1b79e-2a25-46c2-ad08-ca25ef48d7e4", "numberOfUnits": 0 }, { "leaveTypeID": "f2f994cf-1899-46f3-ad4f-5d92d78c3719", "numberOfUnits": 0 }, { "leaveTypeID": "34129765-11cb-4d8c-b568-84a2219beda3", "numberOfUnits": 0 } ], "superannuationLines": [ { "superannuationTypeID": "563273ea-0dae-4f82-86a4-e0db77c008ea", "displayName": "KiwiSaver", "amount": 108.86, "fixedAmount": 3, "percentage": 3, "manualAdjustment": false } ], "employeeTaxLines": [ { "taxLineID": "1084146b-e890-489c-aed3-06de80f63d84", "amount": 1057.22, "globalTaxTypeID": "11", "manualAdjustment": false } ], "employerTaxLines": [ { "taxLineID": "6f9eb8cd-0f4a-440b-939c-bdb0f6ad694c", "amount": 18.9, "globalTaxTypeID": "10", "manualAdjustment": false } ], "statutoryDeductionLines": [ { "statutoryDeductionTypeID": "b5efd8d1-0c93-4a14-a314-b5cba4a4e6b3", "amount": 108.86 } ], "grossEarningsHistory": { "daysPaid": 3, "unpaidWeeks": 0 } } # PaySlip | begin #Creates an employee pay slip @@ -4464,7 +4464,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **pay_slip_id** | **String**| Identifier for the payslip | + **pay_slip_id** | [**String**](.md)| Identifier for the payslip | **pay_slip** | [**PaySlip**](PaySlip.md)| | ### Return type @@ -4513,8 +4513,8 @@ api_instance = xero_client. xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant -timesheet_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | Identifier for the timesheet -timesheet_line_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | Identifier for the timesheet line +timesheet_id = 'timesheet_id_example' # String | Identifier for the timesheet +timesheet_line_id = 'timesheet_line_id_example' # String | Identifier for the timesheet line timesheet_line = { "date": "2020-08-04", "earningsRateID": "f9d8f5b5-9049-47f4-8541-35e200f750a5", "numberOfUnits": 2 } # TimesheetLine | begin #Updates a timesheet line for a specific timesheet @@ -4531,8 +4531,8 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **timesheet_id** | **String**| Identifier for the timesheet | - **timesheet_line_id** | **String**| Identifier for the timesheet line | + **timesheet_id** | [**String**](.md)| Identifier for the timesheet | + **timesheet_line_id** | [**String**](.md)| Identifier for the timesheet line | **timesheet_line** | [**TimesheetLine**](TimesheetLine.md)| | ### Return type diff --git a/docs/payroll_uk/Employee.md b/docs/payroll_uk/Employee.md index 5838098e..26a67074 100644 --- a/docs/payroll_uk/Employee.md +++ b/docs/payroll_uk/Employee.md @@ -30,13 +30,13 @@ instance = XeroRuby::PayrollUk::Employee.new(employee_id: d90457c4-f1be-4f2e-b4e title: Mrs, first_name: Karen, last_name: Jones, - date_of_birth: Wed Jan 02 00:00:00 UTC 2019, + date_of_birth: Wed Jan 02 00:00:00 GMT 2019, address: null, email: developer@me.com, gender: F, phone_number: 415-555-1212, - start_date: Sun Jan 19 00:00:00 UTC 2020, - end_date: Sun Jan 19 00:00:00 UTC 2020, + start_date: Sun Jan 19 00:00:00 GMT 2020, + end_date: Sun Jan 19 00:00:00 GMT 2020, payroll_calendar_id: null, updated_date_utc: null, created_date_utc: null, diff --git a/docs/payroll_uk/PayrollUkApi.md b/docs/payroll_uk/PayrollUkApi.md index 2927684d..9376b1a7 100644 --- a/docs/payroll_uk/PayrollUkApi.md +++ b/docs/payroll_uk/PayrollUkApi.md @@ -109,7 +109,7 @@ api_instance = xero_client. xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant -timesheet_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | Identifier for the timesheet +timesheet_id = 'timesheet_id_example' # String | Identifier for the timesheet begin #Approves a specific timesheet result = api_instance.approve_timesheet(xero_tenant_id, timesheet_id) @@ -125,7 +125,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **timesheet_id** | **String**| Identifier for the timesheet | + **timesheet_id** | [**String**](.md)| Identifier for the timesheet | ### Return type @@ -430,7 +430,7 @@ api_instance = xero_client. xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant employee_id = '4ff1e5cc-9835-40d5-bb18-09fdb118db9c' # String | Employee id for single object -earnings_template = # EarningsTemplate | +earnings_template = XeroRuby::PayrollUk::EarningsTemplate.new # EarningsTemplate | begin #Creates an earnings template records for a specific employee result = api_instance.create_employee_earnings_template(xero_tenant_id, employee_id, earnings_template) @@ -446,7 +446,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **employee_id** | **String**| Employee id for single object | + **employee_id** | [**String**](.md)| Employee id for single object | **earnings_template** | [**EarningsTemplate**](EarningsTemplate.md)| | ### Return type @@ -512,7 +512,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **employee_id** | **String**| Employee id for single object | + **employee_id** | [**String**](.md)| Employee id for single object | **employee_leave** | [**EmployeeLeave**](EmployeeLeave.md)| | ### Return type @@ -578,7 +578,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **employee_id** | **String**| Employee id for single object | + **employee_id** | [**String**](.md)| Employee id for single object | **employee_leave_type** | [**EmployeeLeaveType**](EmployeeLeaveType.md)| | ### Return type @@ -644,7 +644,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **employee_id** | **String**| Employee id for single object | + **employee_id** | [**String**](.md)| Employee id for single object | **employee_opening_balances** | [**EmployeeOpeningBalances**](EmployeeOpeningBalances.md)| | ### Return type @@ -710,7 +710,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **employee_id** | **String**| Employee id for single object | + **employee_id** | [**String**](.md)| Employee id for single object | **payment_method** | [**PaymentMethod**](PaymentMethod.md)| | ### Return type @@ -776,7 +776,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **employee_id** | **String**| Employee id for single object | + **employee_id** | [**String**](.md)| Employee id for single object | **salary_and_wage** | [**SalaryAndWage**](SalaryAndWage.md)| | ### Return type @@ -906,7 +906,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **employee_id** | **String**| Employee id for single object | + **employee_id** | [**String**](.md)| Employee id for single object | **employment** | [**Employment**](Employment.md)| | ### Return type @@ -1036,7 +1036,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **employee_id** | **String**| Employee id for single object | + **employee_id** | [**String**](.md)| Employee id for single object | **earnings_template** | [**Array<EarningsTemplate>**](EarningsTemplate.md)| | ### Return type @@ -1277,7 +1277,7 @@ api_instance = xero_client. xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant -timesheet_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | Identifier for the timesheet +timesheet_id = 'timesheet_id_example' # String | Identifier for the timesheet timesheet_line = { "date": "2020-04-14", "earningsRateID": "87f5b43a-cf51-4b74-92de-94c819e82d27", "numberOfUnits": 1 } # TimesheetLine | begin #Creates a new timesheet line for a specific timesheet using a unique timesheet ID @@ -1294,7 +1294,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **timesheet_id** | **String**| Identifier for the timesheet | + **timesheet_id** | [**String**](.md)| Identifier for the timesheet | **timesheet_line** | [**TimesheetLine**](TimesheetLine.md)| | ### Return type @@ -1359,8 +1359,8 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **employee_id** | **String**| Employee id for single object | - **pay_template_earning_id** | **String**| Id for single pay template earnings object | + **employee_id** | [**String**](.md)| Employee id for single object | + **pay_template_earning_id** | [**String**](.md)| Id for single pay template earnings object | ### Return type @@ -1425,8 +1425,8 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **employee_id** | **String**| Employee id for single object | - **leave_id** | **String**| Leave id for single object | + **employee_id** | [**String**](.md)| Employee id for single object | + **leave_id** | [**String**](.md)| Leave id for single object | ### Return type @@ -1490,8 +1490,8 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **employee_id** | **String**| Employee id for single object | - **salary_and_wages_id** | **String**| Id for single salary and wages object | + **employee_id** | [**String**](.md)| Employee id for single object | + **salary_and_wages_id** | [**String**](.md)| Id for single salary and wages object | ### Return type @@ -1539,7 +1539,7 @@ api_instance = xero_client. xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant -timesheet_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | Identifier for the timesheet +timesheet_id = 'timesheet_id_example' # String | Identifier for the timesheet begin #Deletes a specific timesheet result = api_instance.delete_timesheet(xero_tenant_id, timesheet_id) @@ -1555,7 +1555,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **timesheet_id** | **String**| Identifier for the timesheet | + **timesheet_id** | [**String**](.md)| Identifier for the timesheet | ### Return type @@ -1603,8 +1603,8 @@ api_instance = xero_client. xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant -timesheet_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | Identifier for the timesheet -timesheet_line_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | Identifier for the timesheet line +timesheet_id = 'timesheet_id_example' # String | Identifier for the timesheet +timesheet_line_id = 'timesheet_line_id_example' # String | Identifier for the timesheet line begin #Deletes a specific timesheet line result = api_instance.delete_timesheet_line(xero_tenant_id, timesheet_id, timesheet_line_id) @@ -1620,8 +1620,8 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **timesheet_id** | **String**| Identifier for the timesheet | - **timesheet_line_id** | **String**| Identifier for the timesheet line | + **timesheet_id** | [**String**](.md)| Identifier for the timesheet | + **timesheet_line_id** | [**String**](.md)| Identifier for the timesheet line | ### Return type @@ -1669,7 +1669,7 @@ api_instance = xero_client. xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant -id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | Identifier for the benefit +id = 'id_example' # String | Identifier for the benefit begin #Retrieves a specific benefit by using a unique benefit ID result = api_instance.get_benefit(xero_tenant_id, id) @@ -1685,7 +1685,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **id** | **String**| Identifier for the benefit | + **id** | [**String**](.md)| Identifier for the benefit | ### Return type @@ -1800,7 +1800,7 @@ api_instance = xero_client. xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant -deduction_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | Identifier for the deduction +deduction_id = 'deduction_id_example' # String | Identifier for the deduction begin #Retrieves a specific deduction by using a unique deduction ID result = api_instance.get_deduction(xero_tenant_id, deduction_id) @@ -1816,7 +1816,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **deduction_id** | **String**| Identifier for the deduction | + **deduction_id** | [**String**](.md)| Identifier for the deduction | ### Return type @@ -1931,7 +1931,7 @@ api_instance = xero_client. xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant -id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | Identifier for the deduction +id = 'id_example' # String | Identifier for the deduction begin #Retrieves a specific earnings orders by using a unique earnings orders id result = api_instance.get_earnings_order(xero_tenant_id, id) @@ -1947,7 +1947,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **id** | **String**| Identifier for the deduction | + **id** | [**String**](.md)| Identifier for the deduction | ### Return type @@ -2062,7 +2062,7 @@ api_instance = xero_client. xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant -earnings_rate_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | Identifier for the earnings rate +earnings_rate_id = 'earnings_rate_id_example' # String | Identifier for the earnings rate begin #Retrieves a specific earnings rates by using a unique earnings rate id result = api_instance.get_earnings_rate(xero_tenant_id, earnings_rate_id) @@ -2078,7 +2078,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **earnings_rate_id** | **String**| Identifier for the earnings rate | + **earnings_rate_id** | [**String**](.md)| Identifier for the earnings rate | ### Return type @@ -2209,7 +2209,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **employee_id** | **String**| Employee id for single object | + **employee_id** | [**String**](.md)| Employee id for single object | ### Return type @@ -2274,8 +2274,8 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **employee_id** | **String**| Employee id for single object | - **leave_id** | **String**| Leave id for single object | + **employee_id** | [**String**](.md)| Employee id for single object | + **leave_id** | [**String**](.md)| Leave id for single object | ### Return type @@ -2339,7 +2339,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **employee_id** | **String**| Employee id for single object | + **employee_id** | [**String**](.md)| Employee id for single object | ### Return type @@ -2409,7 +2409,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **employee_id** | **String**| Employee id for single object | + **employee_id** | [**String**](.md)| Employee id for single object | **start_date** | **Date**| Filter by start date | [optional] **end_date** | **Date**| Filter by end date | [optional] @@ -2475,7 +2475,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **employee_id** | **String**| Employee id for single object | + **employee_id** | [**String**](.md)| Employee id for single object | ### Return type @@ -2539,7 +2539,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **employee_id** | **String**| Employee id for single object | + **employee_id** | [**String**](.md)| Employee id for single object | ### Return type @@ -2603,7 +2603,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **employee_id** | **String**| Employee id for single object | + **employee_id** | [**String**](.md)| Employee id for single object | ### Return type @@ -2667,7 +2667,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **employee_id** | **String**| Employee id for single object | + **employee_id** | [**String**](.md)| Employee id for single object | ### Return type @@ -2731,7 +2731,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **employee_id** | **String**| Employee id for single object | + **employee_id** | [**String**](.md)| Employee id for single object | ### Return type @@ -2796,8 +2796,8 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **employee_id** | **String**| Employee id for single object | - **salary_and_wages_id** | **String**| Id for single pay template earnings object | + **employee_id** | [**String**](.md)| Employee id for single object | + **salary_and_wages_id** | [**String**](.md)| Id for single pay template earnings object | ### Return type @@ -2865,7 +2865,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **employee_id** | **String**| Employee id for single object | + **employee_id** | [**String**](.md)| Employee id for single object | **page** | **Integer**| Page number which specifies the set of records to retrieve. By default the number of the records per set is 100. | [optional] ### Return type @@ -2936,7 +2936,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **employee_id** | **String**| Employee id for single object | + **employee_id** | [**String**](.md)| Employee id for single object | **leave_type** | **String**| Filter by the type of statutory leave | [optional] **as_of_date** | **Date**| The date from which to calculate balance remaining. If not specified, current date UTC is used. | [optional] @@ -3002,7 +3002,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **statutory_sick_leave_id** | **String**| Statutory sick leave id for single object | + **statutory_sick_leave_id** | [**String**](.md)| Statutory sick leave id for single object | ### Return type @@ -3066,7 +3066,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **employee_id** | **String**| Employee id for single object | + **employee_id** | [**String**](.md)| Employee id for single object | ### Return type @@ -3184,7 +3184,7 @@ api_instance = xero_client. xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant -leave_type_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | Identifier for the leave type +leave_type_id = 'leave_type_id_example' # String | Identifier for the leave type begin #Retrieves a specific leave type by using a unique leave type ID result = api_instance.get_leave_type(xero_tenant_id, leave_type_id) @@ -3200,7 +3200,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **leave_type_id** | **String**| Identifier for the leave type | + **leave_type_id** | [**String**](.md)| Identifier for the leave type | ### Return type @@ -3318,7 +3318,7 @@ api_instance = xero_client. xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant -pay_run_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | Identifier for the pay run +pay_run_id = 'pay_run_id_example' # String | Identifier for the pay run begin #Retrieves a specific pay run by using a unique pay run ID result = api_instance.get_pay_run(xero_tenant_id, pay_run_id) @@ -3334,7 +3334,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **pay_run_id** | **String**| Identifier for the pay run | + **pay_run_id** | [**String**](.md)| Identifier for the pay run | ### Return type @@ -3382,7 +3382,7 @@ api_instance = xero_client. xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant -pay_run_calendar_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | Identifier for the payrun calendars +pay_run_calendar_id = 'pay_run_calendar_id_example' # String | Identifier for the payrun calendars begin #Retrieves a specific payrun calendar by using a unique payrun calendar ID result = api_instance.get_pay_run_calendar(xero_tenant_id, pay_run_calendar_id) @@ -3398,7 +3398,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **pay_run_calendar_id** | **String**| Identifier for the payrun calendars | + **pay_run_calendar_id** | [**String**](.md)| Identifier for the payrun calendars | ### Return type @@ -3516,7 +3516,7 @@ xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant opts = { page: 56, # Integer | Page number which specifies the set of records to retrieve. By default the number of the records per set is 100. - status: 'Draft' # String | By default get payruns will return all the payruns for an organization. You can add GET https://api.xero.com/payroll.xro/2.0/payRuns?statu={PayRunStatus} to filter the payruns by status. + status: 'status_example' # String | By default get payruns will return all the payruns for an organization. You can add GET https://api.xero.com/payroll.xro/2.0/payRuns?statu={PayRunStatus} to filter the payruns by status. } begin @@ -3583,7 +3583,7 @@ api_instance = xero_client. xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant -payslip_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | Identifier for the payslip +payslip_id = 'payslip_id_example' # String | Identifier for the payslip begin #Retrieves a specific payslip by using a unique payslip ID result = api_instance.get_pay_slip(xero_tenant_id, payslip_id) @@ -3599,7 +3599,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **payslip_id** | **String**| Identifier for the payslip | + **payslip_id** | [**String**](.md)| Identifier for the payslip | ### Return type @@ -3647,7 +3647,7 @@ api_instance = xero_client. xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant -pay_run_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | PayrunID which specifies the containing payrun of payslips to retrieve. By default, the API does not group payslips by payrun. +pay_run_id = 'pay_run_id_example' # String | PayrunID which specifies the containing payrun of payslips to retrieve. By default, the API does not group payslips by payrun. opts = { page: 56 # Integer | Page number which specifies the set of records to retrieve. By default the number of the records per set is 100. } @@ -3667,7 +3667,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **pay_run_id** | **String**| PayrunID which specifies the containing payrun of payslips to retrieve. By default, the API does not group payslips by payrun. | + **pay_run_id** | [**String**](.md)| PayrunID which specifies the containing payrun of payslips to retrieve. By default, the API does not group payslips by payrun. | **page** | **Integer**| Page number which specifies the set of records to retrieve. By default the number of the records per set is 100. | [optional] ### Return type @@ -3716,7 +3716,7 @@ api_instance = xero_client. xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant -reimbursement_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | Identifier for the reimbursement +reimbursement_id = 'reimbursement_id_example' # String | Identifier for the reimbursement begin #Retrieves a specific reimbursement by using a unique reimbursement id result = api_instance.get_reimbursement(xero_tenant_id, reimbursement_id) @@ -3732,7 +3732,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **reimbursement_id** | **String**| Identifier for the reimbursement | + **reimbursement_id** | [**String**](.md)| Identifier for the reimbursement | ### Return type @@ -3929,7 +3929,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **employee_id** | **String**| Employee id for single object | + **employee_id** | [**String**](.md)| Employee id for single object | **active_only** | **Boolean**| Filter response with leaves that are currently active or yet to be taken. If not specified, all leaves (past, current, and future scheduled) are returned | [optional] ### Return type @@ -3978,7 +3978,7 @@ api_instance = xero_client. xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant -timesheet_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | Identifier for the timesheet +timesheet_id = 'timesheet_id_example' # String | Identifier for the timesheet begin #Retrieve a specific timesheet by using a unique timesheet ID result = api_instance.get_timesheet(xero_tenant_id, timesheet_id) @@ -3994,7 +3994,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **timesheet_id** | **String**| Identifier for the timesheet | + **timesheet_id** | [**String**](.md)| Identifier for the timesheet | ### Return type @@ -4186,7 +4186,7 @@ api_instance = xero_client. xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant -timesheet_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | Identifier for the timesheet +timesheet_id = 'timesheet_id_example' # String | Identifier for the timesheet begin #Reverts a specific timesheet to draft result = api_instance.revert_timesheet(xero_tenant_id, timesheet_id) @@ -4202,7 +4202,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **timesheet_id** | **String**| Identifier for the timesheet | + **timesheet_id** | [**String**](.md)| Identifier for the timesheet | ### Return type @@ -4267,7 +4267,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **employee_id** | **String**| Employee id for single object | + **employee_id** | [**String**](.md)| Employee id for single object | **employee** | [**Employee**](Employee.md)| | ### Return type @@ -4334,8 +4334,8 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **employee_id** | **String**| Employee id for single object | - **pay_template_earning_id** | **String**| Id for single pay template earnings object | + **employee_id** | [**String**](.md)| Employee id for single object | + **pay_template_earning_id** | [**String**](.md)| Id for single pay template earnings object | **earnings_template** | [**EarningsTemplate**](EarningsTemplate.md)| | ### Return type @@ -4402,8 +4402,8 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **employee_id** | **String**| Employee id for single object | - **leave_id** | **String**| Leave id for single object | + **employee_id** | [**String**](.md)| Employee id for single object | + **leave_id** | [**String**](.md)| Leave id for single object | **employee_leave** | [**EmployeeLeave**](EmployeeLeave.md)| | ### Return type @@ -4469,7 +4469,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **employee_id** | **String**| Employee id for single object | + **employee_id** | [**String**](.md)| Employee id for single object | **employee_opening_balances** | [**EmployeeOpeningBalances**](EmployeeOpeningBalances.md)| | ### Return type @@ -4536,8 +4536,8 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **employee_id** | **String**| Employee id for single object | - **salary_and_wages_id** | **String**| Id for single pay template earnings object | + **employee_id** | [**String**](.md)| Employee id for single object | + **salary_and_wages_id** | [**String**](.md)| Id for single pay template earnings object | **salary_and_wage** | [**SalaryAndWage**](SalaryAndWage.md)| | ### Return type @@ -4586,7 +4586,7 @@ api_instance = xero_client. xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant -pay_run_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | Identifier for the pay run +pay_run_id = 'pay_run_id_example' # String | Identifier for the pay run pay_run = { "paymentDate": "2020-05-01" } # PayRun | begin #Updates a specific pay run @@ -4603,7 +4603,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **pay_run_id** | **String**| Identifier for the pay run | + **pay_run_id** | [**String**](.md)| Identifier for the pay run | **pay_run** | [**PayRun**](PayRun.md)| | ### Return type @@ -4652,8 +4652,8 @@ api_instance = xero_client. xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant -timesheet_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | Identifier for the timesheet -timesheet_line_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | Identifier for the timesheet line +timesheet_id = 'timesheet_id_example' # String | Identifier for the timesheet +timesheet_line_id = 'timesheet_line_id_example' # String | Identifier for the timesheet line timesheet_line = { "date": "2020-04-14", "earningsRateID": "87f5b43a-cf51-4b74-92de-94c819e82d27", "numberOfUnits": 2 } # TimesheetLine | begin #Updates a specific timesheet line for a specific timesheet @@ -4670,8 +4670,8 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **timesheet_id** | **String**| Identifier for the timesheet | - **timesheet_line_id** | **String**| Identifier for the timesheet line | + **timesheet_id** | [**String**](.md)| Identifier for the timesheet | + **timesheet_line_id** | [**String**](.md)| Identifier for the timesheet line | **timesheet_line** | [**TimesheetLine**](TimesheetLine.md)| | ### Return type diff --git a/docs/projects/Error.md b/docs/projects/Error.md index d958a794..2cf3f496 100644 --- a/docs/projects/Error.md +++ b/docs/projects/Error.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **message** | **String** | Exception message | [optional] -**model_state** | **Object** | Array of Elements of validation Errors | [optional] +**model_state** | [**Object**](.md) | Array of Elements of validation Errors | [optional] ## Code Sample diff --git a/docs/projects/ProjectApi.md b/docs/projects/ProjectApi.md index 7d8b37d3..da65b9d4 100644 --- a/docs/projects/ProjectApi.md +++ b/docs/projects/ProjectApi.md @@ -121,7 +121,7 @@ api_instance = xero_client. xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant -project_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | You can create a task on a specified projectId +project_id = 'project_id_example' # String | You can create a task on a specified projectId task_create_or_update = { "status": "INPROGRESS" } # TaskCreateOrUpdate | The task object you are creating begin #Allows you to create a task @@ -137,7 +137,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **project_id** | **String**| You can create a task on a specified projectId | + **project_id** | [**String**](.md)| You can create a task on a specified projectId | **task_create_or_update** | [**TaskCreateOrUpdate**](TaskCreateOrUpdate.md)| The task object you are creating | ### Return type @@ -188,7 +188,7 @@ api_instance = xero_client. xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant -project_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | You can specify an individual project by appending the projectId to the endpoint +project_id = 'project_id_example' # String | You can specify an individual project by appending the projectId to the endpoint time_entry_create_or_update = { "userId": "00000000-0000-0000-0000-000000000000", "taskId": "00000000-0000-0000-0000-000000000000", "dateUtc": "2020-02-26T15:00:00Z", "duration":30, "description": "My description" } # TimeEntryCreateOrUpdate | The time entry object you are creating begin #Creates a time entry for a specific project @@ -205,7 +205,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **project_id** | **String**| You can specify an individual project by appending the projectId to the endpoint | + **project_id** | [**String**](.md)| You can specify an individual project by appending the projectId to the endpoint | **time_entry_create_or_update** | [**TimeEntryCreateOrUpdate**](TimeEntryCreateOrUpdate.md)| The time entry object you are creating | ### Return type @@ -256,8 +256,8 @@ api_instance = xero_client. xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant -project_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | You can specify an individual project by appending the projectId to the endpoint -task_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | You can specify an individual task by appending the id to the endpoint +project_id = 'project_id_example' # String | You can specify an individual project by appending the projectId to the endpoint +task_id = 'task_id_example' # String | You can specify an individual task by appending the id to the endpoint begin #Allows you to delete a task api_instance.delete_task(xero_tenant_id, project_id, task_id) @@ -272,8 +272,8 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **project_id** | **String**| You can specify an individual project by appending the projectId to the endpoint | - **task_id** | **String**| You can specify an individual task by appending the id to the endpoint | + **project_id** | [**String**](.md)| You can specify an individual project by appending the projectId to the endpoint | + **task_id** | [**String**](.md)| You can specify an individual task by appending the id to the endpoint | ### Return type @@ -323,8 +323,8 @@ api_instance = xero_client. xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant -project_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | You can specify an individual project by appending the projectId to the endpoint -time_entry_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | You can specify an individual task by appending the id to the endpoint +project_id = 'project_id_example' # String | You can specify an individual project by appending the projectId to the endpoint +time_entry_id = 'time_entry_id_example' # String | You can specify an individual task by appending the id to the endpoint begin #Deletes a time entry for a specific project api_instance.delete_time_entry(xero_tenant_id, project_id, time_entry_id) @@ -339,8 +339,8 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **project_id** | **String**| You can specify an individual project by appending the projectId to the endpoint | - **time_entry_id** | **String**| You can specify an individual task by appending the id to the endpoint | + **project_id** | [**String**](.md)| You can specify an individual project by appending the projectId to the endpoint | + **time_entry_id** | [**String**](.md)| You can specify an individual task by appending the id to the endpoint | ### Return type @@ -390,7 +390,7 @@ api_instance = xero_client. xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant -project_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | You can specify an individual project by appending the projectId to the endpoint +project_id = 'project_id_example' # String | You can specify an individual project by appending the projectId to the endpoint begin #Retrieves a single project result = api_instance.get_project(xero_tenant_id, project_id) @@ -406,7 +406,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **project_id** | **String**| You can specify an individual project by appending the projectId to the endpoint | + **project_id** | [**String**](.md)| You can specify an individual project by appending the projectId to the endpoint | ### Return type @@ -459,7 +459,7 @@ xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant opts = { page: 1, # Integer | set to 1 by default. The requested number of the page in paged response - Must be a number greater than 0. - page_size: 100 # Integer | Optional, it is set to 50 by default. The number of items to return per page in a paged response - Must be a number between 1 and 500. + page_size: 50 # Integer | Optional, it is set to 50 by default. The number of items to return per page in a paged response - Must be a number between 1 and 500. } begin @@ -529,15 +529,15 @@ api_instance = xero_client. xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant opts = { - project_ids: , # Array<String> | Search for all projects that match a comma separated list of projectIds + project_ids: ['project_ids_example'], # Array | Search for all projects that match a comma separated list of projectIds - contact_id: '38400000-8cf0-11bd-b23e-10b96e4ef00d', # String | Filter for projects for a specific contact + contact_id: 'contact_id_example', # String | Filter for projects for a specific contact states: 'states_example', # String | Filter for projects in a particular state (INPROGRESS or CLOSED) page: 1, # Integer | set to 1 by default. The requested number of the page in paged response - Must be a number greater than 0. - page_size: 100 # Integer | Optional, it is set to 50 by default. The number of items to return per page in a paged response - Must be a number between 1 and 500. + page_size: 50 # Integer | Optional, it is set to 50 by default. The number of items to return per page in a paged response - Must be a number between 1 and 500. } begin @@ -556,7 +556,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | **project_ids** | [**Array<String>**](String.md)| Search for all projects that match a comma separated list of projectIds | [optional] - **contact_id** | **String**| Filter for projects for a specific contact | [optional] + **contact_id** | [**String**](.md)| Filter for projects for a specific contact | [optional] **states** | **String**| Filter for projects in a particular state (INPROGRESS or CLOSED) | [optional] **page** | **Integer**| set to 1 by default. The requested number of the page in paged response - Must be a number greater than 0. | [optional] [default to 1] **page_size** | **Integer**| Optional, it is set to 50 by default. The number of items to return per page in a paged response - Must be a number between 1 and 500. | [optional] [default to 50] @@ -609,8 +609,8 @@ api_instance = xero_client. xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant -project_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | You can specify an individual project by appending the projectId to the endpoint -task_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | You can specify an individual task by appending the taskId to the endpoint, i.e. GET https://.../tasks/{taskID} +project_id = 'project_id_example' # String | You can specify an individual project by appending the projectId to the endpoint +task_id = 'task_id_example' # String | You can specify an individual task by appending the taskId to the endpoint, i.e. GET https://.../tasks/{taskID} begin #Retrieves a single project task result = api_instance.get_task(xero_tenant_id, project_id, task_id) @@ -626,8 +626,8 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **project_id** | **String**| You can specify an individual project by appending the projectId to the endpoint | - **task_id** | **String**| You can specify an individual task by appending the taskId to the endpoint, i.e. GET https://.../tasks/{taskID} | + **project_id** | [**String**](.md)| You can specify an individual project by appending the projectId to the endpoint | + **task_id** | [**String**](.md)| You can specify an individual task by appending the taskId to the endpoint, i.e. GET https://.../tasks/{taskID} | ### Return type @@ -677,7 +677,7 @@ api_instance = xero_client. xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant -project_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | You can specify an individual project by appending the projectId to the endpoint +project_id = 'project_id_example' # String | You can specify an individual project by appending the projectId to the endpoint opts = { page: 1, # Integer | Set to 1 by default. The requested number of the page in paged response - Must be a number greater than 0. @@ -685,7 +685,7 @@ opts = { task_ids: 'task_ids_example', # String | taskIdsSearch for all tasks that match a comma separated list of taskIds, i.e. GET https://.../tasks?taskIds={taskID},{taskID} - charge_type: # ChargeType | + charge_type: XeroRuby::Projects::ChargeType.new # ChargeType | } begin @@ -703,7 +703,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **project_id** | **String**| You can specify an individual project by appending the projectId to the endpoint | + **project_id** | [**String**](.md)| You can specify an individual project by appending the projectId to the endpoint | **page** | **Integer**| Set to 1 by default. The requested number of the page in paged response - Must be a number greater than 0. | [optional] **page_size** | **Integer**| Optional, it is set to 50 by default. The number of items to return per page in a paged response - Must be a number between 1 and 500. | [optional] **task_ids** | **String**| taskIdsSearch for all tasks that match a comma separated list of taskIds, i.e. GET https://.../tasks?taskIds={taskID},{taskID} | [optional] @@ -757,21 +757,21 @@ api_instance = xero_client. xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant -project_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | Identifier of the project, that the task (which the time entry is logged against) belongs to. +project_id = 'project_id_example' # String | Identifier of the project, that the task (which the time entry is logged against) belongs to. opts = { - user_id: '38400000-8cf0-11bd-b23e-10b96e4ef00d', # String | The xero user identifier of the person who logged time. + user_id: 'user_id_example', # String | The xero user identifier of the person who logged time. - task_id: '38400000-8cf0-11bd-b23e-10b96e4ef00d', # String | Identifier of the task that time entry is logged against. + task_id: 'task_id_example', # String | Identifier of the task that time entry is logged against. - invoice_id: '38400000-8cf0-11bd-b23e-10b96e4ef00d', # String | Finds all time entries for this invoice. + invoice_id: 'invoice_id_example', # String | Finds all time entries for this invoice. - contact_id: '38400000-8cf0-11bd-b23e-10b96e4ef00d', # String | Finds all time entries for this contact identifier. + contact_id: 'contact_id_example', # String | Finds all time entries for this contact identifier. page: 1, # Integer | Set to 1 by default. The requested number of the page in paged response - Must be a number greater than 0. page_size: 10, # Integer | Optional, it is set to 50 by default. The number of items to return per page in a paged response - Must be a number between 1 and 500. - states: , # Array<String> | Comma-separated list of states to find. Will find all time entries that are in the status of whatever is specified. + states: ['states_example'], # Array | Comma-separated list of states to find. Will find all time entries that are in the status of whatever is specified. is_chargeable: true, # Boolean | Finds all time entries which relate to tasks with the charge type `TIME` or `FIXED`. @@ -795,11 +795,11 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **project_id** | **String**| Identifier of the project, that the task (which the time entry is logged against) belongs to. | - **user_id** | **String**| The xero user identifier of the person who logged time. | [optional] - **task_id** | **String**| Identifier of the task that time entry is logged against. | [optional] - **invoice_id** | **String**| Finds all time entries for this invoice. | [optional] - **contact_id** | **String**| Finds all time entries for this contact identifier. | [optional] + **project_id** | [**String**](.md)| Identifier of the project, that the task (which the time entry is logged against) belongs to. | + **user_id** | [**String**](.md)| The xero user identifier of the person who logged time. | [optional] + **task_id** | [**String**](.md)| Identifier of the task that time entry is logged against. | [optional] + **invoice_id** | [**String**](.md)| Finds all time entries for this invoice. | [optional] + **contact_id** | [**String**](.md)| Finds all time entries for this contact identifier. | [optional] **page** | **Integer**| Set to 1 by default. The requested number of the page in paged response - Must be a number greater than 0. | [optional] **page_size** | **Integer**| Optional, it is set to 50 by default. The number of items to return per page in a paged response - Must be a number between 1 and 500. | [optional] **states** | [**Array<String>**](String.md)| Comma-separated list of states to find. Will find all time entries that are in the status of whatever is specified. | [optional] @@ -855,8 +855,8 @@ api_instance = xero_client. xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant -project_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | You can specify an individual project by appending the projectId to the endpoint -time_entry_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | You can specify an individual time entry by appending the id to the endpoint +project_id = 'project_id_example' # String | You can specify an individual project by appending the projectId to the endpoint +time_entry_id = 'time_entry_id_example' # String | You can specify an individual time entry by appending the id to the endpoint begin #Retrieves a single time entry for a specific project result = api_instance.get_time_entry(xero_tenant_id, project_id, time_entry_id) @@ -872,8 +872,8 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **project_id** | **String**| You can specify an individual project by appending the projectId to the endpoint | - **time_entry_id** | **String**| You can specify an individual time entry by appending the id to the endpoint | + **project_id** | [**String**](.md)| You can specify an individual project by appending the projectId to the endpoint | + **time_entry_id** | [**String**](.md)| You can specify an individual time entry by appending the id to the endpoint | ### Return type @@ -923,7 +923,7 @@ api_instance = xero_client. xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant -project_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | You can specify an individual project by appending the projectId to the endpoint +project_id = 'project_id_example' # String | You can specify an individual project by appending the projectId to the endpoint project_patch = { "status": "INPROGRESS" } # ProjectPatch | Update the status of an existing Project begin #creates a project for the specified contact @@ -939,7 +939,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **project_id** | **String**| You can specify an individual project by appending the projectId to the endpoint | + **project_id** | [**String**](.md)| You can specify an individual project by appending the projectId to the endpoint | **project_patch** | [**ProjectPatch**](ProjectPatch.md)| Update the status of an existing Project | ### Return type @@ -990,7 +990,7 @@ api_instance = xero_client. xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant -project_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | You can specify an individual project by appending the projectId to the endpoint +project_id = 'project_id_example' # String | You can specify an individual project by appending the projectId to the endpoint project_create_or_update = { "name": "New Kitchen", "deadlineUtc": "2017-04-23T18:25:43.511Z", "estimateAmount": 99.99 } # ProjectCreateOrUpdate | Request of type ProjectCreateOrUpdate begin #Updates a specific project @@ -1006,7 +1006,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **project_id** | **String**| You can specify an individual project by appending the projectId to the endpoint | + **project_id** | [**String**](.md)| You can specify an individual project by appending the projectId to the endpoint | **project_create_or_update** | [**ProjectCreateOrUpdate**](ProjectCreateOrUpdate.md)| Request of type ProjectCreateOrUpdate | ### Return type @@ -1057,9 +1057,9 @@ api_instance = xero_client. xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant -project_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | You can specify an individual project by appending the projectId to the endpoint -task_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | You can specify an individual task by appending the id to the endpoint -task_create_or_update = # TaskCreateOrUpdate | The task object you are updating +project_id = 'project_id_example' # String | You can specify an individual project by appending the projectId to the endpoint +task_id = 'task_id_example' # String | You can specify an individual task by appending the id to the endpoint +task_create_or_update = XeroRuby::Projects::TaskCreateOrUpdate.new # TaskCreateOrUpdate | The task object you are updating begin #Allows you to update a task api_instance.update_task(xero_tenant_id, project_id, task_id, task_create_or_update) @@ -1074,8 +1074,8 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **project_id** | **String**| You can specify an individual project by appending the projectId to the endpoint | - **task_id** | **String**| You can specify an individual task by appending the id to the endpoint | + **project_id** | [**String**](.md)| You can specify an individual project by appending the projectId to the endpoint | + **task_id** | [**String**](.md)| You can specify an individual task by appending the id to the endpoint | **task_create_or_update** | [**TaskCreateOrUpdate**](TaskCreateOrUpdate.md)| The task object you are updating | ### Return type @@ -1126,8 +1126,8 @@ api_instance = xero_client. xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant -project_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | You can specify an individual project by appending the projectId to the endpoint -time_entry_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | You can specify an individual time entry by appending the id to the endpoint +project_id = 'project_id_example' # String | You can specify an individual project by appending the projectId to the endpoint +time_entry_id = 'time_entry_id_example' # String | You can specify an individual time entry by appending the id to the endpoint time_entry_create_or_update = { "userId": "00000000-0000-0000-0000-000000000000", "taskId": "00000000-0000-0000-0000-000000000000", "dateUtc": "2020-02-27T15:00:00Z", "duration":45, "description": "My UPDATED description" } # TimeEntryCreateOrUpdate | The time entry object you are updating begin #Updates a time entry for a specific project @@ -1143,8 +1143,8 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xero_tenant_id** | **String**| Xero identifier for Tenant | - **project_id** | **String**| You can specify an individual project by appending the projectId to the endpoint | - **time_entry_id** | **String**| You can specify an individual time entry by appending the id to the endpoint | + **project_id** | [**String**](.md)| You can specify an individual project by appending the projectId to the endpoint | + **time_entry_id** | [**String**](.md)| You can specify an individual time entry by appending the id to the endpoint | **time_entry_create_or_update** | [**TimeEntryCreateOrUpdate**](TimeEntryCreateOrUpdate.md)| The time entry object you are updating | ### Return type diff --git a/lib/xero-ruby.rb b/lib/xero-ruby.rb index 4bd98559..cfd385f9 100644 --- a/lib/xero-ruby.rb +++ b/lib/xero-ruby.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -353,6 +353,7 @@ require 'xero-ruby/models/files/folders' require 'xero-ruby/models/files/object_group' require 'xero-ruby/models/files/object_type' +require 'xero-ruby/models/files/upload_object' require 'xero-ruby/models/files/user' require 'xero-ruby/models/projects/amount' require 'xero-ruby/models/projects/charge_type' @@ -404,6 +405,8 @@ require 'xero-ruby/models/accounting/bank_transfer' require 'xero-ruby/models/accounting/bank_transfers' require 'xero-ruby/models/accounting/batch_payment' +require 'xero-ruby/models/accounting/batch_payment_delete' +require 'xero-ruby/models/accounting/batch_payment_delete_by_url_param' require 'xero-ruby/models/accounting/batch_payment_details' require 'xero-ruby/models/accounting/batch_payments' require 'xero-ruby/models/accounting/bill' diff --git a/lib/xero-ruby/api/accounting_api.rb b/lib/xero-ruby/api/accounting_api.rb index aa3a200e..f26f3712 100644 --- a/lib/xero-ruby/api/accounting_api.rb +++ b/lib/xero-ruby/api/accounting_api.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -4729,6 +4729,166 @@ def delete_account_with_http_info(xero_tenant_id, account_id, options = {}) return data, status_code, headers end + # Updates a specific batch payment for invoices and credit notes + # @param xero_tenant_id [String] Xero identifier for Tenant + # @param batch_payment_delete [BatchPaymentDelete] + # @param [Hash] opts the optional parameters + # @return [BatchPayments] + def delete_batch_payment(xero_tenant_id, batch_payment_delete, opts = {}) + data, _status_code, _headers = delete_batch_payment_with_http_info(xero_tenant_id, batch_payment_delete, opts) + data + end + + # Updates a specific batch payment for invoices and credit notes + # @param xero_tenant_id [String] Xero identifier for Tenant + # @param batch_payment_delete [BatchPaymentDelete] + # @param [Hash] opts the optional parameters + # @return [Array<(BatchPayments, Integer, Hash)>] BatchPayments data, response status code and response headers + def delete_batch_payment_with_http_info(xero_tenant_id, batch_payment_delete, options = {}) + opts = options.dup + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: AccountingApi.delete_batch_payment ...' + end + # verify the required parameter 'xero_tenant_id' is set + if @api_client.config.client_side_validation && xero_tenant_id.nil? + fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling AccountingApi.delete_batch_payment" + end + # verify the required parameter 'batch_payment_delete' is set + if @api_client.config.client_side_validation && batch_payment_delete.nil? + fail ArgumentError, "Missing the required parameter 'batch_payment_delete' when calling AccountingApi.delete_batch_payment" + end + # resource path + local_var_path = '/BatchPayments' + + # camelize keys of incoming `where` opts + opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil? + + # query parameters + query_params = opts[:query_params] || {} + + # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations: + query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil? + query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil? + + # header parameters + header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) + # HTTP header 'Content-Type' + header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) + header_params[:'xero-tenant-id'] = xero_tenant_id + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:body] || @api_client.object_to_http_body(batch_payment_delete) + + # return_type + return_type = opts[:return_type] || 'BatchPayments' + + # auth_names + auth_names = opts[:auth_names] || ['OAuth2'] + + new_options = opts.merge( + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type + ) + + data, status_code, headers = @api_client.call_api(:POST, local_var_path, "AccountingApi", new_options) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: AccountingApi#delete_batch_payment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + + # Updates a specific batch payment for invoices and credit notes + # @param xero_tenant_id [String] Xero identifier for Tenant + # @param batch_payment_id [String] Unique identifier for BatchPayment + # @param batch_payment_delete_by_url_param [BatchPaymentDeleteByUrlParam] + # @param [Hash] opts the optional parameters + # @return [BatchPayments] + def delete_batch_payment_by_url_param(xero_tenant_id, batch_payment_id, batch_payment_delete_by_url_param, opts = {}) + data, _status_code, _headers = delete_batch_payment_by_url_param_with_http_info(xero_tenant_id, batch_payment_id, batch_payment_delete_by_url_param, opts) + data + end + + # Updates a specific batch payment for invoices and credit notes + # @param xero_tenant_id [String] Xero identifier for Tenant + # @param batch_payment_id [String] Unique identifier for BatchPayment + # @param batch_payment_delete_by_url_param [BatchPaymentDeleteByUrlParam] + # @param [Hash] opts the optional parameters + # @return [Array<(BatchPayments, Integer, Hash)>] BatchPayments data, response status code and response headers + def delete_batch_payment_by_url_param_with_http_info(xero_tenant_id, batch_payment_id, batch_payment_delete_by_url_param, options = {}) + opts = options.dup + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: AccountingApi.delete_batch_payment_by_url_param ...' + end + # verify the required parameter 'xero_tenant_id' is set + if @api_client.config.client_side_validation && xero_tenant_id.nil? + fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling AccountingApi.delete_batch_payment_by_url_param" + end + # verify the required parameter 'batch_payment_id' is set + if @api_client.config.client_side_validation && batch_payment_id.nil? + fail ArgumentError, "Missing the required parameter 'batch_payment_id' when calling AccountingApi.delete_batch_payment_by_url_param" + end + # verify the required parameter 'batch_payment_delete_by_url_param' is set + if @api_client.config.client_side_validation && batch_payment_delete_by_url_param.nil? + fail ArgumentError, "Missing the required parameter 'batch_payment_delete_by_url_param' when calling AccountingApi.delete_batch_payment_by_url_param" + end + # resource path + local_var_path = '/BatchPayments/{BatchPaymentID}'.sub('{' + 'BatchPaymentID' + '}', batch_payment_id.to_s) + + # camelize keys of incoming `where` opts + opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil? + + # query parameters + query_params = opts[:query_params] || {} + + # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations: + query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil? + query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil? + + # header parameters + header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) + # HTTP header 'Content-Type' + header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) + header_params[:'xero-tenant-id'] = xero_tenant_id + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:body] || @api_client.object_to_http_body(batch_payment_delete_by_url_param) + + # return_type + return_type = opts[:return_type] || 'BatchPayments' + + # auth_names + auth_names = opts[:auth_names] || ['OAuth2'] + + new_options = opts.merge( + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type + ) + + data, status_code, headers = @api_client.call_api(:POST, local_var_path, "AccountingApi", new_options) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: AccountingApi#delete_batch_payment_by_url_param\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + # Deletes a specific contact from a contact group using a unique contact Id # @param xero_tenant_id [String] Xero identifier for Tenant # @param contact_group_id [String] Unique identifier for a Contact Group @@ -5684,7 +5844,7 @@ def get_account_attachments_with_http_info(xero_tenant_id, account_id, options = # Retrieves the full chart of accounts # @param xero_tenant_id [String] Xero identifier for Tenant # @param [Hash] opts the optional parameters - # @option opts [Time] :if_modified_since Only records created or modified since this timestamp will be returned + # @option opts [DateTime] :if_modified_since Only records created or modified since this timestamp will be returned # @option opts [String] :where Filter by an any element # @option opts [String] :order Order by an any element # @return [Accounts] @@ -5696,7 +5856,7 @@ def get_accounts(xero_tenant_id, opts = {}) # Retrieves the full chart of accounts # @param xero_tenant_id [String] Xero identifier for Tenant # @param [Hash] opts the optional parameters - # @option opts [Time] :if_modified_since Only records created or modified since this timestamp will be returned + # @option opts [DateTime] :if_modified_since Only records created or modified since this timestamp will be returned # @option opts [String] :where Filter by an any element # @option opts [String] :order Order by an any element # @return [Array<(Accounts, Integer, Hash)>] Accounts data, response status code and response headers @@ -6091,7 +6251,7 @@ def get_bank_transaction_attachments_with_http_info(xero_tenant_id, bank_transac # Retrieves any spent or received money transactions # @param xero_tenant_id [String] Xero identifier for Tenant # @param [Hash] opts the optional parameters - # @option opts [Time] :if_modified_since Only records created or modified since this timestamp will be returned + # @option opts [DateTime] :if_modified_since Only records created or modified since this timestamp will be returned # @option opts [String] :where Filter by an any element # @option opts [String] :order Order by an any element # @option opts [Integer] :page Up to 100 bank transactions will be returned in a single API call with line items details @@ -6105,7 +6265,7 @@ def get_bank_transactions(xero_tenant_id, opts = {}) # Retrieves any spent or received money transactions # @param xero_tenant_id [String] Xero identifier for Tenant # @param [Hash] opts the optional parameters - # @option opts [Time] :if_modified_since Only records created or modified since this timestamp will be returned + # @option opts [DateTime] :if_modified_since Only records created or modified since this timestamp will be returned # @option opts [String] :where Filter by an any element # @option opts [String] :order Order by an any element # @option opts [Integer] :page Up to 100 bank transactions will be returned in a single API call with line items details @@ -6651,7 +6811,7 @@ def get_bank_transfer_history_with_http_info(xero_tenant_id, bank_transfer_id, o # Retrieves all bank transfers # @param xero_tenant_id [String] Xero identifier for Tenant # @param [Hash] opts the optional parameters - # @option opts [Time] :if_modified_since Only records created or modified since this timestamp will be returned + # @option opts [DateTime] :if_modified_since Only records created or modified since this timestamp will be returned # @option opts [String] :where Filter by an any element # @option opts [String] :order Order by an any element # @return [BankTransfers] @@ -6663,7 +6823,7 @@ def get_bank_transfers(xero_tenant_id, opts = {}) # Retrieves all bank transfers # @param xero_tenant_id [String] Xero identifier for Tenant # @param [Hash] opts the optional parameters - # @option opts [Time] :if_modified_since Only records created or modified since this timestamp will be returned + # @option opts [DateTime] :if_modified_since Only records created or modified since this timestamp will be returned # @option opts [String] :where Filter by an any element # @option opts [String] :order Order by an any element # @return [Array<(BankTransfers, Integer, Hash)>] BankTransfers data, response status code and response headers @@ -6804,7 +6964,7 @@ def get_batch_payment_history_with_http_info(xero_tenant_id, batch_payment_id, o # Retrieves either one or many batch payments for invoices # @param xero_tenant_id [String] Xero identifier for Tenant # @param [Hash] opts the optional parameters - # @option opts [Time] :if_modified_since Only records created or modified since this timestamp will be returned + # @option opts [DateTime] :if_modified_since Only records created or modified since this timestamp will be returned # @option opts [String] :where Filter by an any element # @option opts [String] :order Order by an any element # @return [BatchPayments] @@ -6816,7 +6976,7 @@ def get_batch_payments(xero_tenant_id, opts = {}) # Retrieves either one or many batch payments for invoices # @param xero_tenant_id [String] Xero identifier for Tenant # @param [Hash] opts the optional parameters - # @option opts [Time] :if_modified_since Only records created or modified since this timestamp will be returned + # @option opts [DateTime] :if_modified_since Only records created or modified since this timestamp will be returned # @option opts [String] :where Filter by an any element # @option opts [String] :order Order by an any element # @return [Array<(BatchPayments, Integer, Hash)>] BatchPayments data, response status code and response headers @@ -7182,7 +7342,7 @@ def get_budget_with_http_info(xero_tenant_id, budget_id, options = {}) # Retrieve a list of budgets # @param xero_tenant_id [String] Xero identifier for Tenant # @param [Hash] opts the optional parameters - # @option opts [Array] :ids Filter by BudgetID. Allows you to retrieve a specific individual budget. + # @option opts [Array] :i_ds Filter by BudgetID. Allows you to retrieve a specific individual budget. # @option opts [Date] :date_to Filter by start date # @option opts [Date] :date_from Filter by end date # @return [Budgets] @@ -7194,7 +7354,7 @@ def get_budgets(xero_tenant_id, opts = {}) # Retrieve a list of budgets # @param xero_tenant_id [String] Xero identifier for Tenant # @param [Hash] opts the optional parameters - # @option opts [Array] :ids Filter by BudgetID. Allows you to retrieve a specific individual budget. + # @option opts [Array] :i_ds Filter by BudgetID. Allows you to retrieve a specific individual budget. # @option opts [Date] :date_to Filter by start date # @option opts [Date] :date_from Filter by end date # @return [Array<(Budgets, Integer, Hash)>] Budgets data, response status code and response headers @@ -7215,7 +7375,7 @@ def get_budgets_with_http_info(xero_tenant_id, options = {}) # query parameters query_params = opts[:query_params] || {} - query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil? + query_params[:'IDs'] = @api_client.build_collection_param(opts[:'i_ds'], :csv) if !opts[:'i_ds'].nil? query_params[:'DateTo'] = opts[:'date_to'] if !opts[:'date_to'].nil? query_params[:'DateFrom'] = opts[:'date_from'] if !opts[:'date_from'].nil? @@ -7961,10 +8121,10 @@ def get_contact_history_with_http_info(xero_tenant_id, contact_id, options = {}) # Retrieves all contacts in a Xero organisation # @param xero_tenant_id [String] Xero identifier for Tenant # @param [Hash] opts the optional parameters - # @option opts [Time] :if_modified_since Only records created or modified since this timestamp will be returned + # @option opts [DateTime] :if_modified_since Only records created or modified since this timestamp will be returned # @option opts [String] :where Filter by an any element # @option opts [String] :order Order by an any element - # @option opts [Array] :ids Filter by a comma separated list of ContactIDs. Allows you to retrieve a specific set of contacts in a single call. + # @option opts [Array] :i_ds Filter by a comma separated list of ContactIDs. Allows you to retrieve a specific set of contacts in a single call. # @option opts [Integer] :page e.g. page=1 - Up to 100 contacts will be returned in a single API call. # @option opts [Boolean] :include_archived e.g. includeArchived=true - Contacts with a status of ARCHIVED will be included in the response # @option opts [Boolean] :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. (default to false) @@ -7978,10 +8138,10 @@ def get_contacts(xero_tenant_id, opts = {}) # Retrieves all contacts in a Xero organisation # @param xero_tenant_id [String] Xero identifier for Tenant # @param [Hash] opts the optional parameters - # @option opts [Time] :if_modified_since Only records created or modified since this timestamp will be returned + # @option opts [DateTime] :if_modified_since Only records created or modified since this timestamp will be returned # @option opts [String] :where Filter by an any element # @option opts [String] :order Order by an any element - # @option opts [Array] :ids Filter by a comma separated list of ContactIDs. Allows you to retrieve a specific set of contacts in a single call. + # @option opts [Array] :i_ds Filter by a comma separated list of ContactIDs. Allows you to retrieve a specific set of contacts in a single call. # @option opts [Integer] :page e.g. page=1 - Up to 100 contacts will be returned in a single API call. # @option opts [Boolean] :include_archived e.g. includeArchived=true - Contacts with a status of ARCHIVED will be included in the response # @option opts [Boolean] :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. @@ -8006,7 +8166,7 @@ def get_contacts_with_http_info(xero_tenant_id, options = {}) query_params = opts[:query_params] || {} query_params[:'where'] = opts[:'where'] if !opts[:'where'].nil? query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil? - query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil? + query_params[:'IDs'] = @api_client.build_collection_param(opts[:'i_ds'], :csv) if !opts[:'i_ds'].nil? query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil? query_params[:'includeArchived'] = opts[:'include_archived'] if !opts[:'include_archived'].nil? query_params[:'summaryOnly'] = opts[:'summary_only'] if !opts[:'summary_only'].nil? @@ -8533,7 +8693,7 @@ def get_credit_note_history_with_http_info(xero_tenant_id, credit_note_id, optio # Retrieves any credit notes # @param xero_tenant_id [String] Xero identifier for Tenant # @param [Hash] opts the optional parameters - # @option opts [Time] :if_modified_since Only records created or modified since this timestamp will be returned + # @option opts [DateTime] :if_modified_since Only records created or modified since this timestamp will be returned # @option opts [String] :where Filter by an any element # @option opts [String] :order Order by an any element # @option opts [Integer] :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 @@ -8547,7 +8707,7 @@ def get_credit_notes(xero_tenant_id, opts = {}) # Retrieves any credit notes # @param xero_tenant_id [String] Xero identifier for Tenant # @param [Hash] opts the optional parameters - # @option opts [Time] :if_modified_since Only records created or modified since this timestamp will be returned + # @option opts [DateTime] :if_modified_since Only records created or modified since this timestamp will be returned # @option opts [String] :where Filter by an any element # @option opts [String] :order Order by an any element # @option opts [Integer] :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 @@ -8767,7 +8927,7 @@ def get_employee_with_http_info(xero_tenant_id, employee_id, options = {}) # Retrieves employees used in Xero payrun # @param xero_tenant_id [String] Xero identifier for Tenant # @param [Hash] opts the optional parameters - # @option opts [Time] :if_modified_since Only records created or modified since this timestamp will be returned + # @option opts [DateTime] :if_modified_since Only records created or modified since this timestamp will be returned # @option opts [String] :where Filter by an any element # @option opts [String] :order Order by an any element # @return [Employees] @@ -8779,7 +8939,7 @@ def get_employees(xero_tenant_id, opts = {}) # Retrieves employees used in Xero payrun # @param xero_tenant_id [String] Xero identifier for Tenant # @param [Hash] opts the optional parameters - # @option opts [Time] :if_modified_since Only records created or modified since this timestamp will be returned + # @option opts [DateTime] :if_modified_since Only records created or modified since this timestamp will be returned # @option opts [String] :where Filter by an any element # @option opts [String] :order Order by an any element # @return [Array<(Employees, Integer, Hash)>] Employees data, response status code and response headers @@ -8995,7 +9155,7 @@ def get_expense_claim_history_with_http_info(xero_tenant_id, expense_claim_id, o # Retrieves expense claims # @param xero_tenant_id [String] Xero identifier for Tenant # @param [Hash] opts the optional parameters - # @option opts [Time] :if_modified_since Only records created or modified since this timestamp will be returned + # @option opts [DateTime] :if_modified_since Only records created or modified since this timestamp will be returned # @option opts [String] :where Filter by an any element # @option opts [String] :order Order by an any element # @return [ExpenseClaims] @@ -9007,7 +9167,7 @@ def get_expense_claims(xero_tenant_id, opts = {}) # Retrieves expense claims # @param xero_tenant_id [String] Xero identifier for Tenant # @param [Hash] opts the optional parameters - # @option opts [Time] :if_modified_since Only records created or modified since this timestamp will be returned + # @option opts [DateTime] :if_modified_since Only records created or modified since this timestamp will be returned # @option opts [String] :where Filter by an any element # @option opts [String] :order Order by an any element # @return [Array<(ExpenseClaims, Integer, Hash)>] ExpenseClaims data, response status code and response headers @@ -9621,12 +9781,12 @@ def get_invoice_reminders_with_http_info(xero_tenant_id, options = {}) # Retrieves sales invoices or purchase bills # @param xero_tenant_id [String] Xero identifier for Tenant # @param [Hash] opts the optional parameters - # @option opts [Time] :if_modified_since Only records created or modified since this timestamp will be returned + # @option opts [DateTime] :if_modified_since Only records created or modified since this timestamp will be returned # @option opts [String] :where Filter by an any element # @option opts [String] :order Order by an any element - # @option opts [Array] :ids Filter by a comma-separated list of InvoicesIDs. + # @option opts [Array] :i_ds Filter by a comma-separated list of InvoicesIDs. # @option opts [Array] :invoice_numbers Filter by a comma-separated list of InvoiceNumbers. - # @option opts [Array] :contact_ids Filter by a comma-separated list of ContactIDs. + # @option opts [Array] :contact_i_ds Filter by a comma-separated list of ContactIDs. # @option opts [Array] :statuses Filter by a comma-separated list Statuses. For faster response times we recommend using these explicit parameters instead of passing OR conditions into the Where filter. # @option opts [Integer] :page e.g. page=1 – Up to 100 invoices will be returned in a single API call with line items shown for each invoice # @option opts [Boolean] :include_archived e.g. includeArchived=true - Invoices with a status of ARCHIVED will be included in the response @@ -9642,12 +9802,12 @@ def get_invoices(xero_tenant_id, opts = {}) # Retrieves sales invoices or purchase bills # @param xero_tenant_id [String] Xero identifier for Tenant # @param [Hash] opts the optional parameters - # @option opts [Time] :if_modified_since Only records created or modified since this timestamp will be returned + # @option opts [DateTime] :if_modified_since Only records created or modified since this timestamp will be returned # @option opts [String] :where Filter by an any element # @option opts [String] :order Order by an any element - # @option opts [Array] :ids Filter by a comma-separated list of InvoicesIDs. + # @option opts [Array] :i_ds Filter by a comma-separated list of InvoicesIDs. # @option opts [Array] :invoice_numbers Filter by a comma-separated list of InvoiceNumbers. - # @option opts [Array] :contact_ids Filter by a comma-separated list of ContactIDs. + # @option opts [Array] :contact_i_ds Filter by a comma-separated list of ContactIDs. # @option opts [Array] :statuses Filter by a comma-separated list Statuses. For faster response times we recommend using these explicit parameters instead of passing OR conditions into the Where filter. # @option opts [Integer] :page e.g. page=1 – Up to 100 invoices will be returned in a single API call with line items shown for each invoice # @option opts [Boolean] :include_archived e.g. includeArchived=true - Invoices with a status of ARCHIVED will be included in the response @@ -9674,9 +9834,9 @@ def get_invoices_with_http_info(xero_tenant_id, options = {}) query_params = opts[:query_params] || {} query_params[:'where'] = opts[:'where'] if !opts[:'where'].nil? query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil? - query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil? + query_params[:'IDs'] = @api_client.build_collection_param(opts[:'i_ds'], :csv) if !opts[:'i_ds'].nil? query_params[:'InvoiceNumbers'] = @api_client.build_collection_param(opts[:'invoice_numbers'], :csv) if !opts[:'invoice_numbers'].nil? - query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil? + query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_i_ds'], :csv) if !opts[:'contact_i_ds'].nil? query_params[:'Statuses'] = @api_client.build_collection_param(opts[:'statuses'], :csv) if !opts[:'statuses'].nil? query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil? query_params[:'includeArchived'] = opts[:'include_archived'] if !opts[:'include_archived'].nil? @@ -9879,7 +10039,7 @@ def get_item_history_with_http_info(xero_tenant_id, item_id, options = {}) # Retrieves items # @param xero_tenant_id [String] Xero identifier for Tenant # @param [Hash] opts the optional parameters - # @option opts [Time] :if_modified_since Only records created or modified since this timestamp will be returned + # @option opts [DateTime] :if_modified_since Only records created or modified since this timestamp will be returned # @option opts [String] :where Filter by an any element # @option opts [String] :order Order by an any element # @option opts [Integer] :unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts @@ -9892,7 +10052,7 @@ def get_items(xero_tenant_id, opts = {}) # Retrieves items # @param xero_tenant_id [String] Xero identifier for Tenant # @param [Hash] opts the optional parameters - # @option opts [Time] :if_modified_since Only records created or modified since this timestamp will be returned + # @option opts [DateTime] :if_modified_since Only records created or modified since this timestamp will be returned # @option opts [String] :where Filter by an any element # @option opts [String] :order Order by an any element # @option opts [Integer] :unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts @@ -10110,7 +10270,7 @@ def get_journal_by_number_with_http_info(xero_tenant_id, journal_number, options # Retrieves journals # @param xero_tenant_id [String] Xero identifier for Tenant # @param [Hash] opts the optional parameters - # @option opts [Time] :if_modified_since Only records created or modified since this timestamp will be returned + # @option opts [DateTime] :if_modified_since Only records created or modified since this timestamp will be returned # @option opts [Integer] :offset Offset by a specified journal number. e.g. journals with a JournalNumber greater than the offset will be returned # @option opts [Boolean] :payments_only Filter to retrieve journals on a cash basis. Journals are returned on an accrual basis by default. # @return [Journals] @@ -10122,7 +10282,7 @@ def get_journals(xero_tenant_id, opts = {}) # Retrieves journals # @param xero_tenant_id [String] Xero identifier for Tenant # @param [Hash] opts the optional parameters - # @option opts [Time] :if_modified_since Only records created or modified since this timestamp will be returned + # @option opts [DateTime] :if_modified_since Only records created or modified since this timestamp will be returned # @option opts [Integer] :offset Offset by a specified journal number. e.g. journals with a JournalNumber greater than the offset will be returned # @option opts [Boolean] :payments_only Filter to retrieve journals on a cash basis. Journals are returned on an accrual basis by default. # @return [Array<(Journals, Integer, Hash)>] Journals data, response status code and response headers @@ -10676,7 +10836,7 @@ def get_manual_journal_attachments_with_http_info(xero_tenant_id, manual_journal # Retrieves manual journals # @param xero_tenant_id [String] Xero identifier for Tenant # @param [Hash] opts the optional parameters - # @option opts [Time] :if_modified_since Only records created or modified since this timestamp will be returned + # @option opts [DateTime] :if_modified_since Only records created or modified since this timestamp will be returned # @option opts [String] :where Filter by an any element # @option opts [String] :order Order by an any element # @option opts [Integer] :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 @@ -10689,7 +10849,7 @@ def get_manual_journals(xero_tenant_id, opts = {}) # Retrieves manual journals # @param xero_tenant_id [String] Xero identifier for Tenant # @param [Hash] opts the optional parameters - # @option opts [Time] :if_modified_since Only records created or modified since this timestamp will be returned + # @option opts [DateTime] :if_modified_since Only records created or modified since this timestamp will be returned # @option opts [String] :where Filter by an any element # @option opts [String] :order Order by an any element # @option opts [Integer] :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 @@ -11270,7 +11430,7 @@ def get_overpayment_history_with_http_info(xero_tenant_id, overpayment_id, optio # Retrieves overpayments # @param xero_tenant_id [String] Xero identifier for Tenant # @param [Hash] opts the optional parameters - # @option opts [Time] :if_modified_since Only records created or modified since this timestamp will be returned + # @option opts [DateTime] :if_modified_since Only records created or modified since this timestamp will be returned # @option opts [String] :where Filter by an any element # @option opts [String] :order Order by an any element # @option opts [Integer] :page e.g. page=1 – Up to 100 overpayments will be returned in a single API call with line items shown for each overpayment @@ -11284,7 +11444,7 @@ def get_overpayments(xero_tenant_id, opts = {}) # Retrieves overpayments # @param xero_tenant_id [String] Xero identifier for Tenant # @param [Hash] opts the optional parameters - # @option opts [Time] :if_modified_since Only records created or modified since this timestamp will be returned + # @option opts [DateTime] :if_modified_since Only records created or modified since this timestamp will be returned # @option opts [String] :where Filter by an any element # @option opts [String] :order Order by an any element # @option opts [Integer] :page e.g. page=1 – Up to 100 overpayments will be returned in a single API call with line items shown for each overpayment @@ -11573,7 +11733,7 @@ def get_payment_services_with_http_info(xero_tenant_id, options = {}) # Retrieves payments for invoices and credit notes # @param xero_tenant_id [String] Xero identifier for Tenant # @param [Hash] opts the optional parameters - # @option opts [Time] :if_modified_since Only records created or modified since this timestamp will be returned + # @option opts [DateTime] :if_modified_since Only records created or modified since this timestamp will be returned # @option opts [String] :where Filter by an any element # @option opts [String] :order Order by an any element # @option opts [Integer] :page Up to 100 payments will be returned in a single API call @@ -11586,7 +11746,7 @@ def get_payments(xero_tenant_id, opts = {}) # Retrieves payments for invoices and credit notes # @param xero_tenant_id [String] Xero identifier for Tenant # @param [Hash] opts the optional parameters - # @option opts [Time] :if_modified_since Only records created or modified since this timestamp will be returned + # @option opts [DateTime] :if_modified_since Only records created or modified since this timestamp will be returned # @option opts [String] :where Filter by an any element # @option opts [String] :order Order by an any element # @option opts [Integer] :page Up to 100 payments will be returned in a single API call @@ -11804,7 +11964,7 @@ def get_prepayment_history_with_http_info(xero_tenant_id, prepayment_id, options # Retrieves prepayments # @param xero_tenant_id [String] Xero identifier for Tenant # @param [Hash] opts the optional parameters - # @option opts [Time] :if_modified_since Only records created or modified since this timestamp will be returned + # @option opts [DateTime] :if_modified_since Only records created or modified since this timestamp will be returned # @option opts [String] :where Filter by an any element # @option opts [String] :order Order by an any element # @option opts [Integer] :page e.g. page=1 – Up to 100 prepayments will be returned in a single API call with line items shown for each overpayment @@ -11818,7 +11978,7 @@ def get_prepayments(xero_tenant_id, opts = {}) # Retrieves prepayments # @param xero_tenant_id [String] Xero identifier for Tenant # @param [Hash] opts the optional parameters - # @option opts [Time] :if_modified_since Only records created or modified since this timestamp will be returned + # @option opts [DateTime] :if_modified_since Only records created or modified since this timestamp will be returned # @option opts [String] :where Filter by an any element # @option opts [String] :order Order by an any element # @option opts [Integer] :page e.g. page=1 – Up to 100 prepayments will be returned in a single API call with line items shown for each overpayment @@ -12439,7 +12599,7 @@ def get_purchase_order_history_with_http_info(xero_tenant_id, purchase_order_id, # Retrieves purchase orders # @param xero_tenant_id [String] Xero identifier for Tenant # @param [Hash] opts the optional parameters - # @option opts [Time] :if_modified_since Only records created or modified since this timestamp will be returned + # @option opts [DateTime] :if_modified_since Only records created or modified since this timestamp will be returned # @option opts [String] :status Filter by purchase order status # @option opts [String] :date_from Filter by purchase order date (e.g. GET https://.../PurchaseOrders?DateFrom=2015-12-01&DateTo=2015-12-31 # @option opts [String] :date_to Filter by purchase order date (e.g. GET https://.../PurchaseOrders?DateFrom=2015-12-01&DateTo=2015-12-31 @@ -12454,7 +12614,7 @@ def get_purchase_orders(xero_tenant_id, opts = {}) # Retrieves purchase orders # @param xero_tenant_id [String] Xero identifier for Tenant # @param [Hash] opts the optional parameters - # @option opts [Time] :if_modified_since Only records created or modified since this timestamp will be returned + # @option opts [DateTime] :if_modified_since Only records created or modified since this timestamp will be returned # @option opts [String] :status Filter by purchase order status # @option opts [String] :date_from Filter by purchase order date (e.g. GET https://.../PurchaseOrders?DateFrom=2015-12-01&DateTo=2015-12-31 # @option opts [String] :date_to Filter by purchase order date (e.g. GET https://.../PurchaseOrders?DateFrom=2015-12-01&DateTo=2015-12-31 @@ -13006,7 +13166,7 @@ def get_quote_history_with_http_info(xero_tenant_id, quote_id, options = {}) # Retrieves sales quotes # @param xero_tenant_id [String] Xero identifier for Tenant # @param [Hash] opts the optional parameters - # @option opts [Time] :if_modified_since Only records created or modified since this timestamp will be returned + # @option opts [DateTime] :if_modified_since Only records created or modified since this timestamp will be returned # @option opts [Date] :date_from Filter for quotes after a particular date # @option opts [Date] :date_to Filter for quotes before a particular date # @option opts [Date] :expiry_date_from Filter for quotes expiring after a particular date @@ -13025,7 +13185,7 @@ def get_quotes(xero_tenant_id, opts = {}) # Retrieves sales quotes # @param xero_tenant_id [String] Xero identifier for Tenant # @param [Hash] opts the optional parameters - # @option opts [Time] :if_modified_since Only records created or modified since this timestamp will be returned + # @option opts [DateTime] :if_modified_since Only records created or modified since this timestamp will be returned # @option opts [Date] :date_from Filter for quotes after a particular date # @option opts [Date] :date_to Filter for quotes before a particular date # @option opts [Date] :expiry_date_from Filter for quotes expiring after a particular date @@ -13509,7 +13669,7 @@ def get_receipt_history_with_http_info(xero_tenant_id, receipt_id, options = {}) # Retrieves draft expense claim receipts for any user # @param xero_tenant_id [String] Xero identifier for Tenant # @param [Hash] opts the optional parameters - # @option opts [Time] :if_modified_since Only records created or modified since this timestamp will be returned + # @option opts [DateTime] :if_modified_since Only records created or modified since this timestamp will be returned # @option opts [String] :where Filter by an any element # @option opts [String] :order Order by an any element # @option opts [Integer] :unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts @@ -13522,7 +13682,7 @@ def get_receipts(xero_tenant_id, opts = {}) # Retrieves draft expense claim receipts for any user # @param xero_tenant_id [String] Xero identifier for Tenant # @param [Hash] opts the optional parameters - # @option opts [Time] :if_modified_since Only records created or modified since this timestamp will be returned + # @option opts [DateTime] :if_modified_since Only records created or modified since this timestamp will be returned # @option opts [String] :where Filter by an any element # @option opts [String] :order Order by an any element # @option opts [Integer] :unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts @@ -15255,7 +15415,7 @@ def get_user_with_http_info(xero_tenant_id, user_id, options = {}) # Retrieves users # @param xero_tenant_id [String] Xero identifier for Tenant # @param [Hash] opts the optional parameters - # @option opts [Time] :if_modified_since Only records created or modified since this timestamp will be returned + # @option opts [DateTime] :if_modified_since Only records created or modified since this timestamp will be returned # @option opts [String] :where Filter by an any element # @option opts [String] :order Order by an any element # @return [Users] @@ -15267,7 +15427,7 @@ def get_users(xero_tenant_id, opts = {}) # Retrieves users # @param xero_tenant_id [String] Xero identifier for Tenant # @param [Hash] opts the optional parameters - # @option opts [Time] :if_modified_since Only records created or modified since this timestamp will be returned + # @option opts [DateTime] :if_modified_since Only records created or modified since this timestamp will be returned # @option opts [String] :where Filter by an any element # @option opts [String] :order Order by an any element # @return [Array<(Users, Integer, Hash)>] Users data, response status code and response headers diff --git a/lib/xero-ruby/api/app_store_api.rb b/lib/xero-ruby/api/app_store_api.rb index fb03360c..da928f6d 100644 --- a/lib/xero-ruby/api/app_store_api.rb +++ b/lib/xero-ruby/api/app_store_api.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/api/asset_api.rb b/lib/xero-ruby/api/asset_api.rb index 75e53a75..51d8ac95 100644 --- a/lib/xero-ruby/api/asset_api.rb +++ b/lib/xero-ruby/api/asset_api.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/api/files_api.rb b/lib/xero-ruby/api/files_api.rb index a001b3c3..50a7878f 100644 --- a/lib/xero-ruby/api/files_api.rb +++ b/lib/xero-ruby/api/files_api.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/api/finance_api.rb b/lib/xero-ruby/api/finance_api.rb index e97f9f7c..db694e8b 100644 --- a/lib/xero-ruby/api/finance_api.rb +++ b/lib/xero-ruby/api/finance_api.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/api/payroll_au_api.rb b/lib/xero-ruby/api/payroll_au_api.rb index 18e7307c..d75b7877 100644 --- a/lib/xero-ruby/api/payroll_au_api.rb +++ b/lib/xero-ruby/api/payroll_au_api.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -633,7 +633,7 @@ def get_employee_with_http_info(xero_tenant_id, employee_id, options = {}) # Searches payroll employees # @param xero_tenant_id [String] Xero identifier for Tenant # @param [Hash] opts the optional parameters - # @option opts [Time] :if_modified_since Only records created or modified since this timestamp will be returned + # @option opts [DateTime] :if_modified_since Only records created or modified since this timestamp will be returned # @option opts [String] :where Filter by an any element # @option opts [String] :order Order by an any element # @option opts [Integer] :page e.g. page=1 – Up to 100 employees will be returned in a single API call @@ -646,7 +646,7 @@ def get_employees(xero_tenant_id, opts = {}) # Searches payroll employees # @param xero_tenant_id [String] Xero identifier for Tenant # @param [Hash] opts the optional parameters - # @option opts [Time] :if_modified_since Only records created or modified since this timestamp will be returned + # @option opts [DateTime] :if_modified_since Only records created or modified since this timestamp will be returned # @option opts [String] :where Filter by an any element # @option opts [String] :order Order by an any element # @option opts [Integer] :page e.g. page=1 – Up to 100 employees will be returned in a single API call @@ -789,7 +789,7 @@ def get_leave_application_with_http_info(xero_tenant_id, leave_application_id, o # Retrieves leave applications # @param xero_tenant_id [String] Xero identifier for Tenant # @param [Hash] opts the optional parameters - # @option opts [Time] :if_modified_since Only records created or modified since this timestamp will be returned + # @option opts [DateTime] :if_modified_since Only records created or modified since this timestamp will be returned # @option opts [String] :where Filter by an any element # @option opts [String] :order Order by an any element # @option opts [Integer] :page e.g. page=1 – Up to 100 objects will be returned in a single API call @@ -802,7 +802,7 @@ def get_leave_applications(xero_tenant_id, opts = {}) # Retrieves leave applications # @param xero_tenant_id [String] Xero identifier for Tenant # @param [Hash] opts the optional parameters - # @option opts [Time] :if_modified_since Only records created or modified since this timestamp will be returned + # @option opts [DateTime] :if_modified_since Only records created or modified since this timestamp will be returned # @option opts [String] :where Filter by an any element # @option opts [String] :order Order by an any element # @option opts [Integer] :page e.g. page=1 – Up to 100 objects will be returned in a single API call @@ -870,7 +870,7 @@ def get_leave_applications_with_http_info(xero_tenant_id, options = {}) # Retrieves pay items # @param xero_tenant_id [String] Xero identifier for Tenant # @param [Hash] opts the optional parameters - # @option opts [Time] :if_modified_since Only records created or modified since this timestamp will be returned + # @option opts [DateTime] :if_modified_since Only records created or modified since this timestamp will be returned # @option opts [String] :where Filter by an any element # @option opts [String] :order Order by an any element # @option opts [Integer] :page e.g. page=1 – Up to 100 objects will be returned in a single API call @@ -883,7 +883,7 @@ def get_pay_items(xero_tenant_id, opts = {}) # Retrieves pay items # @param xero_tenant_id [String] Xero identifier for Tenant # @param [Hash] opts the optional parameters - # @option opts [Time] :if_modified_since Only records created or modified since this timestamp will be returned + # @option opts [DateTime] :if_modified_since Only records created or modified since this timestamp will be returned # @option opts [String] :where Filter by an any element # @option opts [String] :order Order by an any element # @option opts [Integer] :page e.g. page=1 – Up to 100 objects will be returned in a single API call @@ -1026,7 +1026,7 @@ def get_pay_run_with_http_info(xero_tenant_id, pay_run_id, options = {}) # Retrieves pay runs # @param xero_tenant_id [String] Xero identifier for Tenant # @param [Hash] opts the optional parameters - # @option opts [Time] :if_modified_since Only records created or modified since this timestamp will be returned + # @option opts [DateTime] :if_modified_since Only records created or modified since this timestamp will be returned # @option opts [String] :where Filter by an any element # @option opts [String] :order Order by an any element # @option opts [Integer] :page e.g. page=1 – Up to 100 PayRuns will be returned in a single API call @@ -1039,7 +1039,7 @@ def get_pay_runs(xero_tenant_id, opts = {}) # Retrieves pay runs # @param xero_tenant_id [String] Xero identifier for Tenant # @param [Hash] opts the optional parameters - # @option opts [Time] :if_modified_since Only records created or modified since this timestamp will be returned + # @option opts [DateTime] :if_modified_since Only records created or modified since this timestamp will be returned # @option opts [String] :where Filter by an any element # @option opts [String] :order Order by an any element # @option opts [Integer] :page e.g. page=1 – Up to 100 PayRuns will be returned in a single API call @@ -1182,7 +1182,7 @@ def get_payroll_calendar_with_http_info(xero_tenant_id, payroll_calendar_id, opt # Retrieves payroll calendars # @param xero_tenant_id [String] Xero identifier for Tenant # @param [Hash] opts the optional parameters - # @option opts [Time] :if_modified_since Only records created or modified since this timestamp will be returned + # @option opts [DateTime] :if_modified_since Only records created or modified since this timestamp will be returned # @option opts [String] :where Filter by an any element # @option opts [String] :order Order by an any element # @option opts [Integer] :page e.g. page=1 – Up to 100 objects will be returned in a single API call @@ -1195,7 +1195,7 @@ def get_payroll_calendars(xero_tenant_id, opts = {}) # Retrieves payroll calendars # @param xero_tenant_id [String] Xero identifier for Tenant # @param [Hash] opts the optional parameters - # @option opts [Time] :if_modified_since Only records created or modified since this timestamp will be returned + # @option opts [DateTime] :if_modified_since Only records created or modified since this timestamp will be returned # @option opts [String] :where Filter by an any element # @option opts [String] :order Order by an any element # @option opts [Integer] :page e.g. page=1 – Up to 100 objects will be returned in a single API call @@ -1557,7 +1557,7 @@ def get_superfund_products_with_http_info(xero_tenant_id, options = {}) # Retrieves superfunds # @param xero_tenant_id [String] Xero identifier for Tenant # @param [Hash] opts the optional parameters - # @option opts [Time] :if_modified_since Only records created or modified since this timestamp will be returned + # @option opts [DateTime] :if_modified_since Only records created or modified since this timestamp will be returned # @option opts [String] :where Filter by an any element # @option opts [String] :order Order by an any element # @option opts [Integer] :page e.g. page=1 – Up to 100 SuperFunds will be returned in a single API call @@ -1570,7 +1570,7 @@ def get_superfunds(xero_tenant_id, opts = {}) # Retrieves superfunds # @param xero_tenant_id [String] Xero identifier for Tenant # @param [Hash] opts the optional parameters - # @option opts [Time] :if_modified_since Only records created or modified since this timestamp will be returned + # @option opts [DateTime] :if_modified_since Only records created or modified since this timestamp will be returned # @option opts [String] :where Filter by an any element # @option opts [String] :order Order by an any element # @option opts [Integer] :page e.g. page=1 – Up to 100 SuperFunds will be returned in a single API call @@ -1713,7 +1713,7 @@ def get_timesheet_with_http_info(xero_tenant_id, timesheet_id, options = {}) # Retrieves timesheets # @param xero_tenant_id [String] Xero identifier for Tenant # @param [Hash] opts the optional parameters - # @option opts [Time] :if_modified_since Only records created or modified since this timestamp will be returned + # @option opts [DateTime] :if_modified_since Only records created or modified since this timestamp will be returned # @option opts [String] :where Filter by an any element # @option opts [String] :order Order by an any element # @option opts [Integer] :page e.g. page=1 – Up to 100 timesheets will be returned in a single API call @@ -1726,7 +1726,7 @@ def get_timesheets(xero_tenant_id, opts = {}) # Retrieves timesheets # @param xero_tenant_id [String] Xero identifier for Tenant # @param [Hash] opts the optional parameters - # @option opts [Time] :if_modified_since Only records created or modified since this timestamp will be returned + # @option opts [DateTime] :if_modified_since Only records created or modified since this timestamp will be returned # @option opts [String] :where Filter by an any element # @option opts [String] :order Order by an any element # @option opts [Integer] :page e.g. page=1 – Up to 100 timesheets will be returned in a single API call diff --git a/lib/xero-ruby/api/payroll_nz_api.rb b/lib/xero-ruby/api/payroll_nz_api.rb index ddd98ced..ce9427c7 100644 --- a/lib/xero-ruby/api/payroll_nz_api.rb +++ b/lib/xero-ruby/api/payroll_nz_api.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/api/payroll_uk_api.rb b/lib/xero-ruby/api/payroll_uk_api.rb index 6735c92b..ad2599b9 100644 --- a/lib/xero-ruby/api/payroll_uk_api.rb +++ b/lib/xero-ruby/api/payroll_uk_api.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/api/project_api.rb b/lib/xero-ruby/api/project_api.rb index 1f637ec2..f4732a25 100644 --- a/lib/xero-ruby/api/project_api.rb +++ b/lib/xero-ruby/api/project_api.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -870,8 +870,8 @@ def get_tasks_with_http_info(xero_tenant_id, project_id, options = {}) # @option opts [Integer] :page_size Optional, it is set to 50 by default. The number of items to return per page in a paged response - Must be a number between 1 and 500. # @option opts [Array] :states Comma-separated list of states to find. Will find all time entries that are in the status of whatever is specified. # @option opts [Boolean] :is_chargeable Finds all time entries which relate to tasks with the charge type `TIME` or `FIXED`. - # @option opts [Time] :date_after_utc ISO 8601 UTC date. Finds all time entries on or after this date filtered on the `dateUtc` field. - # @option opts [Time] :date_before_utc ISO 8601 UTC date. Finds all time entries on or before this date filtered on the `dateUtc` field. + # @option opts [DateTime] :date_after_utc ISO 8601 UTC date. Finds all time entries on or after this date filtered on the `dateUtc` field. + # @option opts [DateTime] :date_before_utc ISO 8601 UTC date. Finds all time entries on or before this date filtered on the `dateUtc` field. # @return [TimeEntries] def get_time_entries(xero_tenant_id, project_id, opts = {}) data, _status_code, _headers = get_time_entries_with_http_info(xero_tenant_id, project_id, opts) @@ -891,8 +891,8 @@ def get_time_entries(xero_tenant_id, project_id, opts = {}) # @option opts [Integer] :page_size Optional, it is set to 50 by default. The number of items to return per page in a paged response - Must be a number between 1 and 500. # @option opts [Array] :states Comma-separated list of states to find. Will find all time entries that are in the status of whatever is specified. # @option opts [Boolean] :is_chargeable Finds all time entries which relate to tasks with the charge type `TIME` or `FIXED`. - # @option opts [Time] :date_after_utc ISO 8601 UTC date. Finds all time entries on or after this date filtered on the `dateUtc` field. - # @option opts [Time] :date_before_utc ISO 8601 UTC date. Finds all time entries on or before this date filtered on the `dateUtc` field. + # @option opts [DateTime] :date_after_utc ISO 8601 UTC date. Finds all time entries on or after this date filtered on the `dateUtc` field. + # @option opts [DateTime] :date_before_utc ISO 8601 UTC date. Finds all time entries on or before this date filtered on the `dateUtc` field. # @return [Array<(TimeEntries, Integer, Hash)>] TimeEntries data, response status code and response headers def get_time_entries_with_http_info(xero_tenant_id, project_id, options = {}) opts = options.dup diff --git a/lib/xero-ruby/api_client.rb b/lib/xero-ruby/api_client.rb index e38bfa47..7cd762e4 100644 --- a/lib/xero-ruby/api_client.rb +++ b/lib/xero-ruby/api_client.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/api_error.rb b/lib/xero-ruby/api_error.rb index 91e1ec38..74cd4a72 100644 --- a/lib/xero-ruby/api_error.rb +++ b/lib/xero-ruby/api_error.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/configuration.rb b/lib/xero-ruby/configuration.rb index a4f5d366..7710f557 100644 --- a/lib/xero-ruby/configuration.rb +++ b/lib/xero-ruby/configuration.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/accounting/account.rb b/lib/xero-ruby/models/accounting/account.rb index f38c1fe6..b454f197 100644 --- a/lib/xero-ruby/models/accounting/account.rb +++ b/lib/xero-ruby/models/accounting/account.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -278,6 +278,9 @@ def initialize(attributes = {}) end if attributes.key?(:'validation_errors') + if (value = attributes[:'validation_errors']).is_a?(Array) + self.validation_errors = value + end end end diff --git a/lib/xero-ruby/models/accounting/account_type.rb b/lib/xero-ruby/models/accounting/account_type.rb index bc475155..ca1473a4 100644 --- a/lib/xero-ruby/models/accounting/account_type.rb +++ b/lib/xero-ruby/models/accounting/account_type.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/accounting/accounts.rb b/lib/xero-ruby/models/accounting/accounts.rb index 90136329..23f94324 100644 --- a/lib/xero-ruby/models/accounting/accounts.rb +++ b/lib/xero-ruby/models/accounting/accounts.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -49,6 +49,9 @@ def initialize(attributes = {}) } if attributes.key?(:'accounts') + if (value = attributes[:'accounts']).is_a?(Array) + self.accounts = value + end end end diff --git a/lib/xero-ruby/models/accounting/accounts_payable.rb b/lib/xero-ruby/models/accounting/accounts_payable.rb index 520e8881..5fec3ade 100644 --- a/lib/xero-ruby/models/accounting/accounts_payable.rb +++ b/lib/xero-ruby/models/accounting/accounts_payable.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/accounting/accounts_receivable.rb b/lib/xero-ruby/models/accounting/accounts_receivable.rb index 8f4c1f52..bcac47fd 100644 --- a/lib/xero-ruby/models/accounting/accounts_receivable.rb +++ b/lib/xero-ruby/models/accounting/accounts_receivable.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/accounting/action.rb b/lib/xero-ruby/models/accounting/action.rb index d818612b..60f84824 100644 --- a/lib/xero-ruby/models/accounting/action.rb +++ b/lib/xero-ruby/models/accounting/action.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/accounting/actions.rb b/lib/xero-ruby/models/accounting/actions.rb index f49dc997..4d58db73 100644 --- a/lib/xero-ruby/models/accounting/actions.rb +++ b/lib/xero-ruby/models/accounting/actions.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -49,6 +49,9 @@ def initialize(attributes = {}) } if attributes.key?(:'actions') + if (value = attributes[:'actions']).is_a?(Array) + self.actions = value + end end end diff --git a/lib/xero-ruby/models/accounting/address.rb b/lib/xero-ruby/models/accounting/address.rb index 6c8738c5..2461943c 100644 --- a/lib/xero-ruby/models/accounting/address.rb +++ b/lib/xero-ruby/models/accounting/address.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/accounting/address_for_organisation.rb b/lib/xero-ruby/models/accounting/address_for_organisation.rb index 29c26ba4..88267601 100644 --- a/lib/xero-ruby/models/accounting/address_for_organisation.rb +++ b/lib/xero-ruby/models/accounting/address_for_organisation.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/accounting/allocation.rb b/lib/xero-ruby/models/accounting/allocation.rb index e17afb60..53c348af 100644 --- a/lib/xero-ruby/models/accounting/allocation.rb +++ b/lib/xero-ruby/models/accounting/allocation.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -112,6 +112,9 @@ def initialize(attributes = {}) end if attributes.key?(:'validation_errors') + if (value = attributes[:'validation_errors']).is_a?(Array) + self.validation_errors = value + end end end diff --git a/lib/xero-ruby/models/accounting/allocations.rb b/lib/xero-ruby/models/accounting/allocations.rb index 2889543a..f9c0bc30 100644 --- a/lib/xero-ruby/models/accounting/allocations.rb +++ b/lib/xero-ruby/models/accounting/allocations.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -49,6 +49,9 @@ def initialize(attributes = {}) } if attributes.key?(:'allocations') + if (value = attributes[:'allocations']).is_a?(Array) + self.allocations = value + end end end diff --git a/lib/xero-ruby/models/accounting/attachment.rb b/lib/xero-ruby/models/accounting/attachment.rb index abd74ab9..5cb13d0d 100644 --- a/lib/xero-ruby/models/accounting/attachment.rb +++ b/lib/xero-ruby/models/accounting/attachment.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/accounting/attachments.rb b/lib/xero-ruby/models/accounting/attachments.rb index b0933d70..448b044a 100644 --- a/lib/xero-ruby/models/accounting/attachments.rb +++ b/lib/xero-ruby/models/accounting/attachments.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -49,6 +49,9 @@ def initialize(attributes = {}) } if attributes.key?(:'attachments') + if (value = attributes[:'attachments']).is_a?(Array) + self.attachments = value + end end end diff --git a/lib/xero-ruby/models/accounting/balance_details.rb b/lib/xero-ruby/models/accounting/balance_details.rb index e60c2da9..ebf3947a 100644 --- a/lib/xero-ruby/models/accounting/balance_details.rb +++ b/lib/xero-ruby/models/accounting/balance_details.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/accounting/balances.rb b/lib/xero-ruby/models/accounting/balances.rb index c5529906..4010ba24 100644 --- a/lib/xero-ruby/models/accounting/balances.rb +++ b/lib/xero-ruby/models/accounting/balances.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/accounting/bank_transaction.rb b/lib/xero-ruby/models/accounting/bank_transaction.rb index 6aa264d7..cd8dd61c 100644 --- a/lib/xero-ruby/models/accounting/bank_transaction.rb +++ b/lib/xero-ruby/models/accounting/bank_transaction.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -195,6 +195,9 @@ def initialize(attributes = {}) end if attributes.key?(:'line_items') + if (value = attributes[:'line_items']).is_a?(Array) + self.line_items = value + end end if attributes.key?(:'bank_account') @@ -272,6 +275,9 @@ def initialize(attributes = {}) end if attributes.key?(:'validation_errors') + if (value = attributes[:'validation_errors']).is_a?(Array) + self.validation_errors = value + end end end diff --git a/lib/xero-ruby/models/accounting/bank_transactions.rb b/lib/xero-ruby/models/accounting/bank_transactions.rb index 05f17c91..56f9feb4 100644 --- a/lib/xero-ruby/models/accounting/bank_transactions.rb +++ b/lib/xero-ruby/models/accounting/bank_transactions.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -49,6 +49,9 @@ def initialize(attributes = {}) } if attributes.key?(:'bank_transactions') + if (value = attributes[:'bank_transactions']).is_a?(Array) + self.bank_transactions = value + end end end diff --git a/lib/xero-ruby/models/accounting/bank_transfer.rb b/lib/xero-ruby/models/accounting/bank_transfer.rb index 67d3b675..6d2b47aa 100644 --- a/lib/xero-ruby/models/accounting/bank_transfer.rb +++ b/lib/xero-ruby/models/accounting/bank_transfer.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -172,6 +172,9 @@ def initialize(attributes = {}) end if attributes.key?(:'validation_errors') + if (value = attributes[:'validation_errors']).is_a?(Array) + self.validation_errors = value + end end end diff --git a/lib/xero-ruby/models/accounting/bank_transfers.rb b/lib/xero-ruby/models/accounting/bank_transfers.rb index 16210eb1..c8495b8e 100644 --- a/lib/xero-ruby/models/accounting/bank_transfers.rb +++ b/lib/xero-ruby/models/accounting/bank_transfers.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -49,6 +49,9 @@ def initialize(attributes = {}) } if attributes.key?(:'bank_transfers') + if (value = attributes[:'bank_transfers']).is_a?(Array) + self.bank_transfers = value + end end end diff --git a/lib/xero-ruby/models/accounting/batch_payment.rb b/lib/xero-ruby/models/accounting/batch_payment.rb index 9d441f9f..54147fb8 100644 --- a/lib/xero-ruby/models/accounting/batch_payment.rb +++ b/lib/xero-ruby/models/accounting/batch_payment.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -195,6 +195,9 @@ def initialize(attributes = {}) end if attributes.key?(:'payments') + if (value = attributes[:'payments']).is_a?(Array) + self.payments = value + end end if attributes.key?(:'type') @@ -218,6 +221,9 @@ def initialize(attributes = {}) end if attributes.key?(:'validation_errors') + if (value = attributes[:'validation_errors']).is_a?(Array) + self.validation_errors = value + end end end diff --git a/lib/xero-ruby/models/accounting/batch_payment_delete.rb b/lib/xero-ruby/models/accounting/batch_payment_delete.rb new file mode 100644 index 00000000..48c215c9 --- /dev/null +++ b/lib/xero-ruby/models/accounting/batch_payment_delete.rb @@ -0,0 +1,244 @@ +=begin +#Xero Accounting API + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +Contact: api@xero.com +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 4.3.1 + +=end + +require 'time' +require 'date' + +module XeroRuby::Accounting + require 'bigdecimal' + + class BatchPaymentDelete + # The Xero generated unique identifier for the bank transaction (read-only) + attr_accessor :batch_payment_id + + # The status of the batch payment. + attr_accessor :status + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'batch_payment_id' => :'BatchPaymentID', + :'status' => :'Status' + } + end + + # Attribute type mapping. + def self.openapi_types + { + :'batch_payment_id' => :'String', + :'status' => :'String' + } + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `XeroRuby::Accounting::BatchPaymentDelete` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `XeroRuby::Accounting::BatchPaymentDelete`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'batch_payment_id') + self.batch_payment_id = attributes[:'batch_payment_id'] + end + + if attributes.key?(:'status') + self.status = attributes[:'status'] + else + self.status = 'DELETED' + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + if @batch_payment_id.nil? + invalid_properties.push('invalid value for "batch_payment_id", batch_payment_id cannot be nil.') + end + + if @status.nil? + invalid_properties.push('invalid value for "status", status cannot be nil.') + end + + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + return false if @batch_payment_id.nil? + return false if @status.nil? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + batch_payment_id == o.batch_payment_id && + status == o.status + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [batch_payment_id, status].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + new.build_from_hash(attributes) + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.openapi_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end # or else data not found in attributes(hash), not an issue as the data can be optional + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(parse_date(value)) + when :Date + Date.parse(parse_date(value)) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :BigDecimal + BigDecimal(value.to_s) + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + XeroRuby::Accounting.const_get(type).build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash(downcase: false) + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + next if value.nil? + key = downcase ? attr : param + hash[key] = _to_hash(value, downcase: downcase) + end + hash + end + + # Returns the object in the form of hash with snake_case + def to_attributes + to_hash(downcase: true) + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value, downcase: false) + if value.is_a?(Array) + value.map do |v| + v.to_hash(downcase: downcase) + end + elsif value.is_a?(Hash) + {}.tap do |hash| + value.map { |k, v| hash[k] = _to_hash(v, downcase: downcase) } + end + elsif value.respond_to? :to_hash + value.to_hash(downcase: downcase) + else + value + end + end + + def parse_date(datestring) + if datestring.include?('Date') + date_pattern = /\/Date\((-?\d+)(\+\d+)?\)\// + original, date, timezone = *date_pattern.match(datestring) + date = (date.to_i / 1000) + Time.at(date).utc.strftime('%Y-%m-%dT%H:%M:%S%z').to_s + elsif /(\d\d\d\d)-(\d\d)/.match(datestring) # handles dates w/out Days: YYYY-MM*-DD + Time.parse(datestring + '-01').strftime('%Y-%m-%dT%H:%M:%S').to_s + else # handle date 'types' for small subset of payroll API's + Time.parse(datestring).strftime('%Y-%m-%dT%H:%M:%S').to_s + end + end + end +end diff --git a/lib/xero-ruby/models/accounting/batch_payment_delete_by_url_param.rb b/lib/xero-ruby/models/accounting/batch_payment_delete_by_url_param.rb new file mode 100644 index 00000000..d4190871 --- /dev/null +++ b/lib/xero-ruby/models/accounting/batch_payment_delete_by_url_param.rb @@ -0,0 +1,229 @@ +=begin +#Xero Accounting API + +#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +Contact: api@xero.com +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 4.3.1 + +=end + +require 'time' +require 'date' + +module XeroRuby::Accounting + require 'bigdecimal' + + class BatchPaymentDeleteByUrlParam + # The status of the batch payment. + attr_accessor :status + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'status' => :'Status' + } + end + + # Attribute type mapping. + def self.openapi_types + { + :'status' => :'String' + } + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `XeroRuby::Accounting::BatchPaymentDeleteByUrlParam` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `XeroRuby::Accounting::BatchPaymentDeleteByUrlParam`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'status') + self.status = attributes[:'status'] + else + self.status = 'DELETED' + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + if @status.nil? + invalid_properties.push('invalid value for "status", status cannot be nil.') + end + + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + return false if @status.nil? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + status == o.status + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [status].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + new.build_from_hash(attributes) + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.openapi_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end # or else data not found in attributes(hash), not an issue as the data can be optional + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(parse_date(value)) + when :Date + Date.parse(parse_date(value)) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :BigDecimal + BigDecimal(value.to_s) + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + XeroRuby::Accounting.const_get(type).build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash(downcase: false) + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + next if value.nil? + key = downcase ? attr : param + hash[key] = _to_hash(value, downcase: downcase) + end + hash + end + + # Returns the object in the form of hash with snake_case + def to_attributes + to_hash(downcase: true) + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value, downcase: false) + if value.is_a?(Array) + value.map do |v| + v.to_hash(downcase: downcase) + end + elsif value.is_a?(Hash) + {}.tap do |hash| + value.map { |k, v| hash[k] = _to_hash(v, downcase: downcase) } + end + elsif value.respond_to? :to_hash + value.to_hash(downcase: downcase) + else + value + end + end + + def parse_date(datestring) + if datestring.include?('Date') + date_pattern = /\/Date\((-?\d+)(\+\d+)?\)\// + original, date, timezone = *date_pattern.match(datestring) + date = (date.to_i / 1000) + Time.at(date).utc.strftime('%Y-%m-%dT%H:%M:%S%z').to_s + elsif /(\d\d\d\d)-(\d\d)/.match(datestring) # handles dates w/out Days: YYYY-MM*-DD + Time.parse(datestring + '-01').strftime('%Y-%m-%dT%H:%M:%S').to_s + else # handle date 'types' for small subset of payroll API's + Time.parse(datestring).strftime('%Y-%m-%dT%H:%M:%S').to_s + end + end + end +end diff --git a/lib/xero-ruby/models/accounting/batch_payment_details.rb b/lib/xero-ruby/models/accounting/batch_payment_details.rb index 97602db9..2a126f4d 100644 --- a/lib/xero-ruby/models/accounting/batch_payment_details.rb +++ b/lib/xero-ruby/models/accounting/batch_payment_details.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/accounting/batch_payments.rb b/lib/xero-ruby/models/accounting/batch_payments.rb index 59fe5d97..616b0a4a 100644 --- a/lib/xero-ruby/models/accounting/batch_payments.rb +++ b/lib/xero-ruby/models/accounting/batch_payments.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -49,6 +49,9 @@ def initialize(attributes = {}) } if attributes.key?(:'batch_payments') + if (value = attributes[:'batch_payments']).is_a?(Array) + self.batch_payments = value + end end end diff --git a/lib/xero-ruby/models/accounting/bill.rb b/lib/xero-ruby/models/accounting/bill.rb index bc345858..31a00cef 100644 --- a/lib/xero-ruby/models/accounting/bill.rb +++ b/lib/xero-ruby/models/accounting/bill.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/accounting/branding_theme.rb b/lib/xero-ruby/models/accounting/branding_theme.rb index ed41a85e..7104e8af 100644 --- a/lib/xero-ruby/models/accounting/branding_theme.rb +++ b/lib/xero-ruby/models/accounting/branding_theme.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/accounting/branding_themes.rb b/lib/xero-ruby/models/accounting/branding_themes.rb index e760e716..44da3381 100644 --- a/lib/xero-ruby/models/accounting/branding_themes.rb +++ b/lib/xero-ruby/models/accounting/branding_themes.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -49,6 +49,9 @@ def initialize(attributes = {}) } if attributes.key?(:'branding_themes') + if (value = attributes[:'branding_themes']).is_a?(Array) + self.branding_themes = value + end end end diff --git a/lib/xero-ruby/models/accounting/budget.rb b/lib/xero-ruby/models/accounting/budget.rb index 73a77182..f8923a1e 100644 --- a/lib/xero-ruby/models/accounting/budget.rb +++ b/lib/xero-ruby/models/accounting/budget.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -114,9 +114,15 @@ def initialize(attributes = {}) end if attributes.key?(:'budget_lines') + if (value = attributes[:'budget_lines']).is_a?(Array) + self.budget_lines = value + end end if attributes.key?(:'tracking') + if (value = attributes[:'tracking']).is_a?(Array) + self.tracking = value + end end end diff --git a/lib/xero-ruby/models/accounting/budget_balance.rb b/lib/xero-ruby/models/accounting/budget_balance.rb index 773200cf..6702daad 100644 --- a/lib/xero-ruby/models/accounting/budget_balance.rb +++ b/lib/xero-ruby/models/accounting/budget_balance.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/accounting/budget_line.rb b/lib/xero-ruby/models/accounting/budget_line.rb index 3b5f4c55..20beb5ee 100644 --- a/lib/xero-ruby/models/accounting/budget_line.rb +++ b/lib/xero-ruby/models/accounting/budget_line.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -67,6 +67,9 @@ def initialize(attributes = {}) end if attributes.key?(:'budget_balances') + if (value = attributes[:'budget_balances']).is_a?(Array) + self.budget_balances = value + end end end diff --git a/lib/xero-ruby/models/accounting/budgets.rb b/lib/xero-ruby/models/accounting/budgets.rb index 74a2e570..79ff99b1 100644 --- a/lib/xero-ruby/models/accounting/budgets.rb +++ b/lib/xero-ruby/models/accounting/budgets.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -49,6 +49,9 @@ def initialize(attributes = {}) } if attributes.key?(:'budgets') + if (value = attributes[:'budgets']).is_a?(Array) + self.budgets = value + end end end diff --git a/lib/xero-ruby/models/accounting/cis_org_setting.rb b/lib/xero-ruby/models/accounting/cis_org_setting.rb index 22bc5c16..cbc75da2 100644 --- a/lib/xero-ruby/models/accounting/cis_org_setting.rb +++ b/lib/xero-ruby/models/accounting/cis_org_setting.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/accounting/cis_org_settings.rb b/lib/xero-ruby/models/accounting/cis_org_settings.rb index edbdb85c..4018f636 100644 --- a/lib/xero-ruby/models/accounting/cis_org_settings.rb +++ b/lib/xero-ruby/models/accounting/cis_org_settings.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -49,6 +49,9 @@ def initialize(attributes = {}) } if attributes.key?(:'cis_settings') + if (value = attributes[:'cis_settings']).is_a?(Array) + self.cis_settings = value + end end end diff --git a/lib/xero-ruby/models/accounting/cis_setting.rb b/lib/xero-ruby/models/accounting/cis_setting.rb index bf80d11b..777f140a 100644 --- a/lib/xero-ruby/models/accounting/cis_setting.rb +++ b/lib/xero-ruby/models/accounting/cis_setting.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/accounting/cis_settings.rb b/lib/xero-ruby/models/accounting/cis_settings.rb index 706046b9..f88812da 100644 --- a/lib/xero-ruby/models/accounting/cis_settings.rb +++ b/lib/xero-ruby/models/accounting/cis_settings.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -49,6 +49,9 @@ def initialize(attributes = {}) } if attributes.key?(:'cis_settings') + if (value = attributes[:'cis_settings']).is_a?(Array) + self.cis_settings = value + end end end diff --git a/lib/xero-ruby/models/accounting/contact.rb b/lib/xero-ruby/models/accounting/contact.rb index 0ee67ab0..cc4ebe93 100644 --- a/lib/xero-ruby/models/accounting/contact.rb +++ b/lib/xero-ruby/models/accounting/contact.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -334,6 +334,9 @@ def initialize(attributes = {}) end if attributes.key?(:'contact_persons') + if (value = attributes[:'contact_persons']).is_a?(Array) + self.contact_persons = value + end end if attributes.key?(:'bank_account_details') @@ -353,9 +356,15 @@ def initialize(attributes = {}) end if attributes.key?(:'addresses') + if (value = attributes[:'addresses']).is_a?(Array) + self.addresses = value + end end if attributes.key?(:'phones') + if (value = attributes[:'phones']).is_a?(Array) + self.phones = value + end end if attributes.key?(:'is_supplier') @@ -391,9 +400,15 @@ def initialize(attributes = {}) end if attributes.key?(:'sales_tracking_categories') + if (value = attributes[:'sales_tracking_categories']).is_a?(Array) + self.sales_tracking_categories = value + end end if attributes.key?(:'purchases_tracking_categories') + if (value = attributes[:'purchases_tracking_categories']).is_a?(Array) + self.purchases_tracking_categories = value + end end if attributes.key?(:'tracking_category_name') @@ -413,6 +428,9 @@ def initialize(attributes = {}) end if attributes.key?(:'contact_groups') + if (value = attributes[:'contact_groups']).is_a?(Array) + self.contact_groups = value + end end if attributes.key?(:'website') @@ -436,6 +454,9 @@ def initialize(attributes = {}) end if attributes.key?(:'attachments') + if (value = attributes[:'attachments']).is_a?(Array) + self.attachments = value + end end if attributes.key?(:'has_attachments') @@ -445,6 +466,9 @@ def initialize(attributes = {}) end if attributes.key?(:'validation_errors') + if (value = attributes[:'validation_errors']).is_a?(Array) + self.validation_errors = value + end end if attributes.key?(:'has_validation_errors') diff --git a/lib/xero-ruby/models/accounting/contact_group.rb b/lib/xero-ruby/models/accounting/contact_group.rb index 150ee4f9..7008352d 100644 --- a/lib/xero-ruby/models/accounting/contact_group.rb +++ b/lib/xero-ruby/models/accounting/contact_group.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -100,6 +100,9 @@ def initialize(attributes = {}) end if attributes.key?(:'contacts') + if (value = attributes[:'contacts']).is_a?(Array) + self.contacts = value + end end end diff --git a/lib/xero-ruby/models/accounting/contact_groups.rb b/lib/xero-ruby/models/accounting/contact_groups.rb index 83a824f6..5d1d9fc7 100644 --- a/lib/xero-ruby/models/accounting/contact_groups.rb +++ b/lib/xero-ruby/models/accounting/contact_groups.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -49,6 +49,9 @@ def initialize(attributes = {}) } if attributes.key?(:'contact_groups') + if (value = attributes[:'contact_groups']).is_a?(Array) + self.contact_groups = value + end end end diff --git a/lib/xero-ruby/models/accounting/contact_person.rb b/lib/xero-ruby/models/accounting/contact_person.rb index f621a08b..f0e6742d 100644 --- a/lib/xero-ruby/models/accounting/contact_person.rb +++ b/lib/xero-ruby/models/accounting/contact_person.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/accounting/contacts.rb b/lib/xero-ruby/models/accounting/contacts.rb index f4f20b91..4f89ab8d 100644 --- a/lib/xero-ruby/models/accounting/contacts.rb +++ b/lib/xero-ruby/models/accounting/contacts.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -49,6 +49,9 @@ def initialize(attributes = {}) } if attributes.key?(:'contacts') + if (value = attributes[:'contacts']).is_a?(Array) + self.contacts = value + end end end diff --git a/lib/xero-ruby/models/accounting/conversion_balances.rb b/lib/xero-ruby/models/accounting/conversion_balances.rb index 675e435e..91555e78 100644 --- a/lib/xero-ruby/models/accounting/conversion_balances.rb +++ b/lib/xero-ruby/models/accounting/conversion_balances.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -68,6 +68,9 @@ def initialize(attributes = {}) end if attributes.key?(:'balance_details') + if (value = attributes[:'balance_details']).is_a?(Array) + self.balance_details = value + end end end diff --git a/lib/xero-ruby/models/accounting/conversion_date.rb b/lib/xero-ruby/models/accounting/conversion_date.rb index a4c1d095..e558ff2f 100644 --- a/lib/xero-ruby/models/accounting/conversion_date.rb +++ b/lib/xero-ruby/models/accounting/conversion_date.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/accounting/country_code.rb b/lib/xero-ruby/models/accounting/country_code.rb index dc450270..6f6fb186 100644 --- a/lib/xero-ruby/models/accounting/country_code.rb +++ b/lib/xero-ruby/models/accounting/country_code.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/accounting/credit_note.rb b/lib/xero-ruby/models/accounting/credit_note.rb index 7134b182..69e865e5 100644 --- a/lib/xero-ruby/models/accounting/credit_note.rb +++ b/lib/xero-ruby/models/accounting/credit_note.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -248,6 +248,9 @@ def initialize(attributes = {}) end if attributes.key?(:'line_items') + if (value = attributes[:'line_items']).is_a?(Array) + self.line_items = value + end end if attributes.key?(:'sub_total') @@ -307,6 +310,9 @@ def initialize(attributes = {}) end if attributes.key?(:'allocations') + if (value = attributes[:'allocations']).is_a?(Array) + self.allocations = value + end end if attributes.key?(:'applied_amount') @@ -314,6 +320,9 @@ def initialize(attributes = {}) end if attributes.key?(:'payments') + if (value = attributes[:'payments']).is_a?(Array) + self.payments = value + end end if attributes.key?(:'branding_theme_id') @@ -337,9 +346,15 @@ def initialize(attributes = {}) end if attributes.key?(:'validation_errors') + if (value = attributes[:'validation_errors']).is_a?(Array) + self.validation_errors = value + end end if attributes.key?(:'warnings') + if (value = attributes[:'warnings']).is_a?(Array) + self.warnings = value + end end end diff --git a/lib/xero-ruby/models/accounting/credit_notes.rb b/lib/xero-ruby/models/accounting/credit_notes.rb index d2e96f0c..0e69cb8f 100644 --- a/lib/xero-ruby/models/accounting/credit_notes.rb +++ b/lib/xero-ruby/models/accounting/credit_notes.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -49,6 +49,9 @@ def initialize(attributes = {}) } if attributes.key?(:'credit_notes') + if (value = attributes[:'credit_notes']).is_a?(Array) + self.credit_notes = value + end end end diff --git a/lib/xero-ruby/models/accounting/currencies.rb b/lib/xero-ruby/models/accounting/currencies.rb index cd027b94..84df70d6 100644 --- a/lib/xero-ruby/models/accounting/currencies.rb +++ b/lib/xero-ruby/models/accounting/currencies.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -49,6 +49,9 @@ def initialize(attributes = {}) } if attributes.key?(:'currencies') + if (value = attributes[:'currencies']).is_a?(Array) + self.currencies = value + end end end diff --git a/lib/xero-ruby/models/accounting/currency.rb b/lib/xero-ruby/models/accounting/currency.rb index c79e8c54..49aaab6f 100644 --- a/lib/xero-ruby/models/accounting/currency.rb +++ b/lib/xero-ruby/models/accounting/currency.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/accounting/currency_code.rb b/lib/xero-ruby/models/accounting/currency_code.rb index be2be465..14c68636 100644 --- a/lib/xero-ruby/models/accounting/currency_code.rb +++ b/lib/xero-ruby/models/accounting/currency_code.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/accounting/element.rb b/lib/xero-ruby/models/accounting/element.rb index 48028c9e..e2973a85 100644 --- a/lib/xero-ruby/models/accounting/element.rb +++ b/lib/xero-ruby/models/accounting/element.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -84,6 +84,9 @@ def initialize(attributes = {}) } if attributes.key?(:'validation_errors') + if (value = attributes[:'validation_errors']).is_a?(Array) + self.validation_errors = value + end end if attributes.key?(:'batch_payment_id') diff --git a/lib/xero-ruby/models/accounting/employee.rb b/lib/xero-ruby/models/accounting/employee.rb index 8cea14e9..a7cd9cfb 100644 --- a/lib/xero-ruby/models/accounting/employee.rb +++ b/lib/xero-ruby/models/accounting/employee.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -138,6 +138,9 @@ def initialize(attributes = {}) end if attributes.key?(:'validation_errors') + if (value = attributes[:'validation_errors']).is_a?(Array) + self.validation_errors = value + end end end diff --git a/lib/xero-ruby/models/accounting/employees.rb b/lib/xero-ruby/models/accounting/employees.rb index 7636fb51..3b8391ff 100644 --- a/lib/xero-ruby/models/accounting/employees.rb +++ b/lib/xero-ruby/models/accounting/employees.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -49,6 +49,9 @@ def initialize(attributes = {}) } if attributes.key?(:'employees') + if (value = attributes[:'employees']).is_a?(Array) + self.employees = value + end end end diff --git a/lib/xero-ruby/models/accounting/error.rb b/lib/xero-ruby/models/accounting/error.rb index dd02db64..62e7a84c 100644 --- a/lib/xero-ruby/models/accounting/error.rb +++ b/lib/xero-ruby/models/accounting/error.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -76,6 +76,9 @@ def initialize(attributes = {}) end if attributes.key?(:'elements') + if (value = attributes[:'elements']).is_a?(Array) + self.elements = value + end end end diff --git a/lib/xero-ruby/models/accounting/expense_claim.rb b/lib/xero-ruby/models/accounting/expense_claim.rb index 965b9be6..4fa9b262 100644 --- a/lib/xero-ruby/models/accounting/expense_claim.rb +++ b/lib/xero-ruby/models/accounting/expense_claim.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -139,6 +139,9 @@ def initialize(attributes = {}) end if attributes.key?(:'payments') + if (value = attributes[:'payments']).is_a?(Array) + self.payments = value + end end if attributes.key?(:'user') @@ -146,6 +149,9 @@ def initialize(attributes = {}) end if attributes.key?(:'receipts') + if (value = attributes[:'receipts']).is_a?(Array) + self.receipts = value + end end if attributes.key?(:'updated_date_utc') diff --git a/lib/xero-ruby/models/accounting/expense_claims.rb b/lib/xero-ruby/models/accounting/expense_claims.rb index 0396b284..43a20bc4 100644 --- a/lib/xero-ruby/models/accounting/expense_claims.rb +++ b/lib/xero-ruby/models/accounting/expense_claims.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -49,6 +49,9 @@ def initialize(attributes = {}) } if attributes.key?(:'expense_claims') + if (value = attributes[:'expense_claims']).is_a?(Array) + self.expense_claims = value + end end end diff --git a/lib/xero-ruby/models/accounting/external_link.rb b/lib/xero-ruby/models/accounting/external_link.rb index ea9f52da..0ebe3911 100644 --- a/lib/xero-ruby/models/accounting/external_link.rb +++ b/lib/xero-ruby/models/accounting/external_link.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/accounting/history_record.rb b/lib/xero-ruby/models/accounting/history_record.rb index b5921219..949c3ab2 100644 --- a/lib/xero-ruby/models/accounting/history_record.rb +++ b/lib/xero-ruby/models/accounting/history_record.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/accounting/history_records.rb b/lib/xero-ruby/models/accounting/history_records.rb index 48c43297..58f9ab12 100644 --- a/lib/xero-ruby/models/accounting/history_records.rb +++ b/lib/xero-ruby/models/accounting/history_records.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -49,6 +49,9 @@ def initialize(attributes = {}) } if attributes.key?(:'history_records') + if (value = attributes[:'history_records']).is_a?(Array) + self.history_records = value + end end end diff --git a/lib/xero-ruby/models/accounting/import_summary.rb b/lib/xero-ruby/models/accounting/import_summary.rb index 96e3f5d5..061ad95f 100644 --- a/lib/xero-ruby/models/accounting/import_summary.rb +++ b/lib/xero-ruby/models/accounting/import_summary.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/accounting/import_summary_accounts.rb b/lib/xero-ruby/models/accounting/import_summary_accounts.rb index 171bf299..aa6e17be 100644 --- a/lib/xero-ruby/models/accounting/import_summary_accounts.rb +++ b/lib/xero-ruby/models/accounting/import_summary_accounts.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/accounting/import_summary_object.rb b/lib/xero-ruby/models/accounting/import_summary_object.rb index daf6f7e4..3f38dc82 100644 --- a/lib/xero-ruby/models/accounting/import_summary_object.rb +++ b/lib/xero-ruby/models/accounting/import_summary_object.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/accounting/import_summary_organisation.rb b/lib/xero-ruby/models/accounting/import_summary_organisation.rb index 755c3f7a..de9ad97b 100644 --- a/lib/xero-ruby/models/accounting/import_summary_organisation.rb +++ b/lib/xero-ruby/models/accounting/import_summary_organisation.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/accounting/invoice.rb b/lib/xero-ruby/models/accounting/invoice.rb index 8267a15f..0c46aa69 100644 --- a/lib/xero-ruby/models/accounting/invoice.rb +++ b/lib/xero-ruby/models/accounting/invoice.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -288,6 +288,9 @@ def initialize(attributes = {}) end if attributes.key?(:'line_items') + if (value = attributes[:'line_items']).is_a?(Array) + self.line_items = value + end end if attributes.key?(:'date') @@ -385,12 +388,21 @@ def initialize(attributes = {}) end if attributes.key?(:'payments') + if (value = attributes[:'payments']).is_a?(Array) + self.payments = value + end end if attributes.key?(:'prepayments') + if (value = attributes[:'prepayments']).is_a?(Array) + self.prepayments = value + end end if attributes.key?(:'overpayments') + if (value = attributes[:'overpayments']).is_a?(Array) + self.overpayments = value + end end if attributes.key?(:'amount_due') @@ -414,9 +426,15 @@ def initialize(attributes = {}) end if attributes.key?(:'credit_notes') + if (value = attributes[:'credit_notes']).is_a?(Array) + self.credit_notes = value + end end if attributes.key?(:'attachments') + if (value = attributes[:'attachments']).is_a?(Array) + self.attachments = value + end end if attributes.key?(:'has_errors') @@ -430,9 +448,15 @@ def initialize(attributes = {}) end if attributes.key?(:'validation_errors') + if (value = attributes[:'validation_errors']).is_a?(Array) + self.validation_errors = value + end end if attributes.key?(:'warnings') + if (value = attributes[:'warnings']).is_a?(Array) + self.warnings = value + end end end diff --git a/lib/xero-ruby/models/accounting/invoice_reminder.rb b/lib/xero-ruby/models/accounting/invoice_reminder.rb index 6bd37e07..59764ede 100644 --- a/lib/xero-ruby/models/accounting/invoice_reminder.rb +++ b/lib/xero-ruby/models/accounting/invoice_reminder.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/accounting/invoice_reminders.rb b/lib/xero-ruby/models/accounting/invoice_reminders.rb index 4ab37a87..579d2c37 100644 --- a/lib/xero-ruby/models/accounting/invoice_reminders.rb +++ b/lib/xero-ruby/models/accounting/invoice_reminders.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -49,6 +49,9 @@ def initialize(attributes = {}) } if attributes.key?(:'invoice_reminders') + if (value = attributes[:'invoice_reminders']).is_a?(Array) + self.invoice_reminders = value + end end end diff --git a/lib/xero-ruby/models/accounting/invoices.rb b/lib/xero-ruby/models/accounting/invoices.rb index 143a98a1..f6fe97e1 100644 --- a/lib/xero-ruby/models/accounting/invoices.rb +++ b/lib/xero-ruby/models/accounting/invoices.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -49,6 +49,9 @@ def initialize(attributes = {}) } if attributes.key?(:'invoices') + if (value = attributes[:'invoices']).is_a?(Array) + self.invoices = value + end end end diff --git a/lib/xero-ruby/models/accounting/item.rb b/lib/xero-ruby/models/accounting/item.rb index d8182c63..2e796893 100644 --- a/lib/xero-ruby/models/accounting/item.rb +++ b/lib/xero-ruby/models/accounting/item.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -184,6 +184,9 @@ def initialize(attributes = {}) end if attributes.key?(:'validation_errors') + if (value = attributes[:'validation_errors']).is_a?(Array) + self.validation_errors = value + end end end diff --git a/lib/xero-ruby/models/accounting/items.rb b/lib/xero-ruby/models/accounting/items.rb index 0df459f3..1ad45703 100644 --- a/lib/xero-ruby/models/accounting/items.rb +++ b/lib/xero-ruby/models/accounting/items.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -49,6 +49,9 @@ def initialize(attributes = {}) } if attributes.key?(:'items') + if (value = attributes[:'items']).is_a?(Array) + self.items = value + end end end diff --git a/lib/xero-ruby/models/accounting/journal.rb b/lib/xero-ruby/models/accounting/journal.rb index c17a0dc7..c426c441 100644 --- a/lib/xero-ruby/models/accounting/journal.rb +++ b/lib/xero-ruby/models/accounting/journal.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -159,6 +159,9 @@ def initialize(attributes = {}) end if attributes.key?(:'journal_lines') + if (value = attributes[:'journal_lines']).is_a?(Array) + self.journal_lines = value + end end end diff --git a/lib/xero-ruby/models/accounting/journal_line.rb b/lib/xero-ruby/models/accounting/journal_line.rb index d234aacc..5164c95a 100644 --- a/lib/xero-ruby/models/accounting/journal_line.rb +++ b/lib/xero-ruby/models/accounting/journal_line.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -148,6 +148,9 @@ def initialize(attributes = {}) end if attributes.key?(:'tracking_categories') + if (value = attributes[:'tracking_categories']).is_a?(Array) + self.tracking_categories = value + end end end diff --git a/lib/xero-ruby/models/accounting/journals.rb b/lib/xero-ruby/models/accounting/journals.rb index e30d1af0..93796fa3 100644 --- a/lib/xero-ruby/models/accounting/journals.rb +++ b/lib/xero-ruby/models/accounting/journals.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -49,6 +49,9 @@ def initialize(attributes = {}) } if attributes.key?(:'journals') + if (value = attributes[:'journals']).is_a?(Array) + self.journals = value + end end end diff --git a/lib/xero-ruby/models/accounting/line_amount_types.rb b/lib/xero-ruby/models/accounting/line_amount_types.rb index 05d66b23..0a85bc72 100644 --- a/lib/xero-ruby/models/accounting/line_amount_types.rb +++ b/lib/xero-ruby/models/accounting/line_amount_types.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/accounting/line_item.rb b/lib/xero-ruby/models/accounting/line_item.rb index 2abe54e3..0fe16318 100644 --- a/lib/xero-ruby/models/accounting/line_item.rb +++ b/lib/xero-ruby/models/accounting/line_item.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -163,6 +163,9 @@ def initialize(attributes = {}) end if attributes.key?(:'tracking') + if (value = attributes[:'tracking']).is_a?(Array) + self.tracking = value + end end if attributes.key?(:'discount_rate') diff --git a/lib/xero-ruby/models/accounting/line_item_item.rb b/lib/xero-ruby/models/accounting/line_item_item.rb index 5cc90c60..5b495424 100644 --- a/lib/xero-ruby/models/accounting/line_item_item.rb +++ b/lib/xero-ruby/models/accounting/line_item_item.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/accounting/line_item_tracking.rb b/lib/xero-ruby/models/accounting/line_item_tracking.rb index 7e87174f..f1117e30 100644 --- a/lib/xero-ruby/models/accounting/line_item_tracking.rb +++ b/lib/xero-ruby/models/accounting/line_item_tracking.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/accounting/linked_transaction.rb b/lib/xero-ruby/models/accounting/linked_transaction.rb index 74e7bb82..890d465f 100644 --- a/lib/xero-ruby/models/accounting/linked_transaction.rb +++ b/lib/xero-ruby/models/accounting/linked_transaction.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -169,6 +169,9 @@ def initialize(attributes = {}) end if attributes.key?(:'validation_errors') + if (value = attributes[:'validation_errors']).is_a?(Array) + self.validation_errors = value + end end end diff --git a/lib/xero-ruby/models/accounting/linked_transactions.rb b/lib/xero-ruby/models/accounting/linked_transactions.rb index a13e7e21..6e4b99e8 100644 --- a/lib/xero-ruby/models/accounting/linked_transactions.rb +++ b/lib/xero-ruby/models/accounting/linked_transactions.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -49,6 +49,9 @@ def initialize(attributes = {}) } if attributes.key?(:'linked_transactions') + if (value = attributes[:'linked_transactions']).is_a?(Array) + self.linked_transactions = value + end end end diff --git a/lib/xero-ruby/models/accounting/manual_journal.rb b/lib/xero-ruby/models/accounting/manual_journal.rb index c3faed9c..2becb10d 100644 --- a/lib/xero-ruby/models/accounting/manual_journal.rb +++ b/lib/xero-ruby/models/accounting/manual_journal.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -145,6 +145,9 @@ def initialize(attributes = {}) end if attributes.key?(:'journal_lines') + if (value = attributes[:'journal_lines']).is_a?(Array) + self.journal_lines = value + end end if attributes.key?(:'date') @@ -186,12 +189,21 @@ def initialize(attributes = {}) end if attributes.key?(:'warnings') + if (value = attributes[:'warnings']).is_a?(Array) + self.warnings = value + end end if attributes.key?(:'validation_errors') + if (value = attributes[:'validation_errors']).is_a?(Array) + self.validation_errors = value + end end if attributes.key?(:'attachments') + if (value = attributes[:'attachments']).is_a?(Array) + self.attachments = value + end end end diff --git a/lib/xero-ruby/models/accounting/manual_journal_line.rb b/lib/xero-ruby/models/accounting/manual_journal_line.rb index 586c467c..07b66034 100644 --- a/lib/xero-ruby/models/accounting/manual_journal_line.rb +++ b/lib/xero-ruby/models/accounting/manual_journal_line.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -104,6 +104,9 @@ def initialize(attributes = {}) end if attributes.key?(:'tracking') + if (value = attributes[:'tracking']).is_a?(Array) + self.tracking = value + end end if attributes.key?(:'tax_amount') diff --git a/lib/xero-ruby/models/accounting/manual_journals.rb b/lib/xero-ruby/models/accounting/manual_journals.rb index 64cf76b2..5c90a305 100644 --- a/lib/xero-ruby/models/accounting/manual_journals.rb +++ b/lib/xero-ruby/models/accounting/manual_journals.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -49,6 +49,9 @@ def initialize(attributes = {}) } if attributes.key?(:'manual_journals') + if (value = attributes[:'manual_journals']).is_a?(Array) + self.manual_journals = value + end end end diff --git a/lib/xero-ruby/models/accounting/online_invoice.rb b/lib/xero-ruby/models/accounting/online_invoice.rb index 713f83c9..500660a0 100644 --- a/lib/xero-ruby/models/accounting/online_invoice.rb +++ b/lib/xero-ruby/models/accounting/online_invoice.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/accounting/online_invoices.rb b/lib/xero-ruby/models/accounting/online_invoices.rb index 13106d57..ccfc3315 100644 --- a/lib/xero-ruby/models/accounting/online_invoices.rb +++ b/lib/xero-ruby/models/accounting/online_invoices.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -49,6 +49,9 @@ def initialize(attributes = {}) } if attributes.key?(:'online_invoices') + if (value = attributes[:'online_invoices']).is_a?(Array) + self.online_invoices = value + end end end diff --git a/lib/xero-ruby/models/accounting/organisation.rb b/lib/xero-ruby/models/accounting/organisation.rb index 58a7876b..e70b0a63 100644 --- a/lib/xero-ruby/models/accounting/organisation.rb +++ b/lib/xero-ruby/models/accounting/organisation.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -420,12 +420,21 @@ def initialize(attributes = {}) end if attributes.key?(:'addresses') + if (value = attributes[:'addresses']).is_a?(Array) + self.addresses = value + end end if attributes.key?(:'phones') + if (value = attributes[:'phones']).is_a?(Array) + self.phones = value + end end if attributes.key?(:'external_links') + if (value = attributes[:'external_links']).is_a?(Array) + self.external_links = value + end end if attributes.key?(:'payment_terms') diff --git a/lib/xero-ruby/models/accounting/organisations.rb b/lib/xero-ruby/models/accounting/organisations.rb index 4ea9565e..7375938c 100644 --- a/lib/xero-ruby/models/accounting/organisations.rb +++ b/lib/xero-ruby/models/accounting/organisations.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -49,6 +49,9 @@ def initialize(attributes = {}) } if attributes.key?(:'organisations') + if (value = attributes[:'organisations']).is_a?(Array) + self.organisations = value + end end end diff --git a/lib/xero-ruby/models/accounting/overpayment.rb b/lib/xero-ruby/models/accounting/overpayment.rb index 871978a5..378b7abd 100644 --- a/lib/xero-ruby/models/accounting/overpayment.rb +++ b/lib/xero-ruby/models/accounting/overpayment.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -187,6 +187,9 @@ def initialize(attributes = {}) end if attributes.key?(:'line_items') + if (value = attributes[:'line_items']).is_a?(Array) + self.line_items = value + end end if attributes.key?(:'sub_total') @@ -222,6 +225,9 @@ def initialize(attributes = {}) end if attributes.key?(:'allocations') + if (value = attributes[:'allocations']).is_a?(Array) + self.allocations = value + end end if attributes.key?(:'applied_amount') @@ -229,6 +235,9 @@ def initialize(attributes = {}) end if attributes.key?(:'payments') + if (value = attributes[:'payments']).is_a?(Array) + self.payments = value + end end if attributes.key?(:'has_attachments') @@ -238,6 +247,9 @@ def initialize(attributes = {}) end if attributes.key?(:'attachments') + if (value = attributes[:'attachments']).is_a?(Array) + self.attachments = value + end end end diff --git a/lib/xero-ruby/models/accounting/overpayments.rb b/lib/xero-ruby/models/accounting/overpayments.rb index 068a382f..42c86f57 100644 --- a/lib/xero-ruby/models/accounting/overpayments.rb +++ b/lib/xero-ruby/models/accounting/overpayments.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -49,6 +49,9 @@ def initialize(attributes = {}) } if attributes.key?(:'overpayments') + if (value = attributes[:'overpayments']).is_a?(Array) + self.overpayments = value + end end end diff --git a/lib/xero-ruby/models/accounting/payment.rb b/lib/xero-ruby/models/accounting/payment.rb index 741fe706..4692ea00 100644 --- a/lib/xero-ruby/models/accounting/payment.rb +++ b/lib/xero-ruby/models/accounting/payment.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -310,6 +310,9 @@ def initialize(attributes = {}) end if attributes.key?(:'validation_errors') + if (value = attributes[:'validation_errors']).is_a?(Array) + self.validation_errors = value + end end end diff --git a/lib/xero-ruby/models/accounting/payment_delete.rb b/lib/xero-ruby/models/accounting/payment_delete.rb index 6a86b014..7b9a3af0 100644 --- a/lib/xero-ruby/models/accounting/payment_delete.rb +++ b/lib/xero-ruby/models/accounting/payment_delete.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/accounting/payment_service.rb b/lib/xero-ruby/models/accounting/payment_service.rb index f37a9449..12d6a983 100644 --- a/lib/xero-ruby/models/accounting/payment_service.rb +++ b/lib/xero-ruby/models/accounting/payment_service.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -94,6 +94,9 @@ def initialize(attributes = {}) end if attributes.key?(:'validation_errors') + if (value = attributes[:'validation_errors']).is_a?(Array) + self.validation_errors = value + end end end diff --git a/lib/xero-ruby/models/accounting/payment_services.rb b/lib/xero-ruby/models/accounting/payment_services.rb index 4b248a7e..6ddf39d5 100644 --- a/lib/xero-ruby/models/accounting/payment_services.rb +++ b/lib/xero-ruby/models/accounting/payment_services.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -49,6 +49,9 @@ def initialize(attributes = {}) } if attributes.key?(:'payment_services') + if (value = attributes[:'payment_services']).is_a?(Array) + self.payment_services = value + end end end diff --git a/lib/xero-ruby/models/accounting/payment_term.rb b/lib/xero-ruby/models/accounting/payment_term.rb index caa50084..c70b9634 100644 --- a/lib/xero-ruby/models/accounting/payment_term.rb +++ b/lib/xero-ruby/models/accounting/payment_term.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/accounting/payment_term_type.rb b/lib/xero-ruby/models/accounting/payment_term_type.rb index 6243c0d9..a2606af5 100644 --- a/lib/xero-ruby/models/accounting/payment_term_type.rb +++ b/lib/xero-ruby/models/accounting/payment_term_type.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/accounting/payments.rb b/lib/xero-ruby/models/accounting/payments.rb index c81977e0..4d0df9c9 100644 --- a/lib/xero-ruby/models/accounting/payments.rb +++ b/lib/xero-ruby/models/accounting/payments.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -49,6 +49,9 @@ def initialize(attributes = {}) } if attributes.key?(:'payments') + if (value = attributes[:'payments']).is_a?(Array) + self.payments = value + end end end diff --git a/lib/xero-ruby/models/accounting/phone.rb b/lib/xero-ruby/models/accounting/phone.rb index 9acee3ef..45557efd 100644 --- a/lib/xero-ruby/models/accounting/phone.rb +++ b/lib/xero-ruby/models/accounting/phone.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/accounting/prepayment.rb b/lib/xero-ruby/models/accounting/prepayment.rb index 56bc584e..f8e3c30a 100644 --- a/lib/xero-ruby/models/accounting/prepayment.rb +++ b/lib/xero-ruby/models/accounting/prepayment.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -193,6 +193,9 @@ def initialize(attributes = {}) end if attributes.key?(:'line_items') + if (value = attributes[:'line_items']).is_a?(Array) + self.line_items = value + end end if attributes.key?(:'sub_total') @@ -232,9 +235,15 @@ def initialize(attributes = {}) end if attributes.key?(:'allocations') + if (value = attributes[:'allocations']).is_a?(Array) + self.allocations = value + end end if attributes.key?(:'payments') + if (value = attributes[:'payments']).is_a?(Array) + self.payments = value + end end if attributes.key?(:'applied_amount') @@ -248,6 +257,9 @@ def initialize(attributes = {}) end if attributes.key?(:'attachments') + if (value = attributes[:'attachments']).is_a?(Array) + self.attachments = value + end end end diff --git a/lib/xero-ruby/models/accounting/prepayments.rb b/lib/xero-ruby/models/accounting/prepayments.rb index 97d4f5ab..7dc0aded 100644 --- a/lib/xero-ruby/models/accounting/prepayments.rb +++ b/lib/xero-ruby/models/accounting/prepayments.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -49,6 +49,9 @@ def initialize(attributes = {}) } if attributes.key?(:'prepayments') + if (value = attributes[:'prepayments']).is_a?(Array) + self.prepayments = value + end end end diff --git a/lib/xero-ruby/models/accounting/purchase.rb b/lib/xero-ruby/models/accounting/purchase.rb index 5b182d60..06360e16 100644 --- a/lib/xero-ruby/models/accounting/purchase.rb +++ b/lib/xero-ruby/models/accounting/purchase.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/accounting/purchase_order.rb b/lib/xero-ruby/models/accounting/purchase_order.rb index aaa35fde..404654b7 100644 --- a/lib/xero-ruby/models/accounting/purchase_order.rb +++ b/lib/xero-ruby/models/accounting/purchase_order.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -215,6 +215,9 @@ def initialize(attributes = {}) end if attributes.key?(:'line_items') + if (value = attributes[:'line_items']).is_a?(Array) + self.line_items = value + end end if attributes.key?(:'date') @@ -312,12 +315,21 @@ def initialize(attributes = {}) end if attributes.key?(:'validation_errors') + if (value = attributes[:'validation_errors']).is_a?(Array) + self.validation_errors = value + end end if attributes.key?(:'warnings') + if (value = attributes[:'warnings']).is_a?(Array) + self.warnings = value + end end if attributes.key?(:'attachments') + if (value = attributes[:'attachments']).is_a?(Array) + self.attachments = value + end end end diff --git a/lib/xero-ruby/models/accounting/purchase_orders.rb b/lib/xero-ruby/models/accounting/purchase_orders.rb index a5c8e36f..a5707e83 100644 --- a/lib/xero-ruby/models/accounting/purchase_orders.rb +++ b/lib/xero-ruby/models/accounting/purchase_orders.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -49,6 +49,9 @@ def initialize(attributes = {}) } if attributes.key?(:'purchase_orders') + if (value = attributes[:'purchase_orders']).is_a?(Array) + self.purchase_orders = value + end end end diff --git a/lib/xero-ruby/models/accounting/quote.rb b/lib/xero-ruby/models/accounting/quote.rb index 27ad97f2..4be0eae0 100644 --- a/lib/xero-ruby/models/accounting/quote.rb +++ b/lib/xero-ruby/models/accounting/quote.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -184,6 +184,9 @@ def initialize(attributes = {}) end if attributes.key?(:'line_items') + if (value = attributes[:'line_items']).is_a?(Array) + self.line_items = value + end end if attributes.key?(:'date') @@ -255,6 +258,9 @@ def initialize(attributes = {}) end if attributes.key?(:'validation_errors') + if (value = attributes[:'validation_errors']).is_a?(Array) + self.validation_errors = value + end end end diff --git a/lib/xero-ruby/models/accounting/quote_line_amount_types.rb b/lib/xero-ruby/models/accounting/quote_line_amount_types.rb index 8d0aac83..9d56e9c8 100644 --- a/lib/xero-ruby/models/accounting/quote_line_amount_types.rb +++ b/lib/xero-ruby/models/accounting/quote_line_amount_types.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/accounting/quote_status_codes.rb b/lib/xero-ruby/models/accounting/quote_status_codes.rb index ef5bcaaa..0cee3956 100644 --- a/lib/xero-ruby/models/accounting/quote_status_codes.rb +++ b/lib/xero-ruby/models/accounting/quote_status_codes.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/accounting/quotes.rb b/lib/xero-ruby/models/accounting/quotes.rb index de7ea854..707a5793 100644 --- a/lib/xero-ruby/models/accounting/quotes.rb +++ b/lib/xero-ruby/models/accounting/quotes.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -49,6 +49,9 @@ def initialize(attributes = {}) } if attributes.key?(:'quotes') + if (value = attributes[:'quotes']).is_a?(Array) + self.quotes = value + end end end diff --git a/lib/xero-ruby/models/accounting/receipt.rb b/lib/xero-ruby/models/accounting/receipt.rb index cd3f60f4..4a6c19e4 100644 --- a/lib/xero-ruby/models/accounting/receipt.rb +++ b/lib/xero-ruby/models/accounting/receipt.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -169,6 +169,9 @@ def initialize(attributes = {}) end if attributes.key?(:'line_items') + if (value = attributes[:'line_items']).is_a?(Array) + self.line_items = value + end end if attributes.key?(:'user') @@ -222,12 +225,21 @@ def initialize(attributes = {}) end if attributes.key?(:'validation_errors') + if (value = attributes[:'validation_errors']).is_a?(Array) + self.validation_errors = value + end end if attributes.key?(:'warnings') + if (value = attributes[:'warnings']).is_a?(Array) + self.warnings = value + end end if attributes.key?(:'attachments') + if (value = attributes[:'attachments']).is_a?(Array) + self.attachments = value + end end end diff --git a/lib/xero-ruby/models/accounting/receipts.rb b/lib/xero-ruby/models/accounting/receipts.rb index 1d4cdbc1..9a29e210 100644 --- a/lib/xero-ruby/models/accounting/receipts.rb +++ b/lib/xero-ruby/models/accounting/receipts.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -49,6 +49,9 @@ def initialize(attributes = {}) } if attributes.key?(:'receipts') + if (value = attributes[:'receipts']).is_a?(Array) + self.receipts = value + end end end diff --git a/lib/xero-ruby/models/accounting/repeating_invoice.rb b/lib/xero-ruby/models/accounting/repeating_invoice.rb index 198a5305..0a298924 100644 --- a/lib/xero-ruby/models/accounting/repeating_invoice.rb +++ b/lib/xero-ruby/models/accounting/repeating_invoice.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -183,6 +183,9 @@ def initialize(attributes = {}) end if attributes.key?(:'line_items') + if (value = attributes[:'line_items']).is_a?(Array) + self.line_items = value + end end if attributes.key?(:'line_amount_types') @@ -232,6 +235,9 @@ def initialize(attributes = {}) end if attributes.key?(:'attachments') + if (value = attributes[:'attachments']).is_a?(Array) + self.attachments = value + end end if attributes.key?(:'approved_for_sending') diff --git a/lib/xero-ruby/models/accounting/repeating_invoices.rb b/lib/xero-ruby/models/accounting/repeating_invoices.rb index 4bb06b21..a7fd6f9e 100644 --- a/lib/xero-ruby/models/accounting/repeating_invoices.rb +++ b/lib/xero-ruby/models/accounting/repeating_invoices.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -49,6 +49,9 @@ def initialize(attributes = {}) } if attributes.key?(:'repeating_invoices') + if (value = attributes[:'repeating_invoices']).is_a?(Array) + self.repeating_invoices = value + end end end diff --git a/lib/xero-ruby/models/accounting/report.rb b/lib/xero-ruby/models/accounting/report.rb index f7e41d61..f202fa6a 100644 --- a/lib/xero-ruby/models/accounting/report.rb +++ b/lib/xero-ruby/models/accounting/report.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -117,6 +117,9 @@ def initialize(attributes = {}) end if attributes.key?(:'contacts') + if (value = attributes[:'contacts']).is_a?(Array) + self.contacts = value + end end end diff --git a/lib/xero-ruby/models/accounting/report_attribute.rb b/lib/xero-ruby/models/accounting/report_attribute.rb index e1660340..6f9ff896 100644 --- a/lib/xero-ruby/models/accounting/report_attribute.rb +++ b/lib/xero-ruby/models/accounting/report_attribute.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/accounting/report_cell.rb b/lib/xero-ruby/models/accounting/report_cell.rb index 171a8d98..48fcf739 100644 --- a/lib/xero-ruby/models/accounting/report_cell.rb +++ b/lib/xero-ruby/models/accounting/report_cell.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -58,6 +58,9 @@ def initialize(attributes = {}) end if attributes.key?(:'attributes') + if (value = attributes[:'attributes']).is_a?(Array) + self.attributes = value + end end end diff --git a/lib/xero-ruby/models/accounting/report_fields.rb b/lib/xero-ruby/models/accounting/report_fields.rb index d133d3a7..dfe6c6c9 100644 --- a/lib/xero-ruby/models/accounting/report_fields.rb +++ b/lib/xero-ruby/models/accounting/report_fields.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/accounting/report_row.rb b/lib/xero-ruby/models/accounting/report_row.rb index 19f2540a..00355d1b 100644 --- a/lib/xero-ruby/models/accounting/report_row.rb +++ b/lib/xero-ruby/models/accounting/report_row.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -67,6 +67,9 @@ def initialize(attributes = {}) end if attributes.key?(:'cells') + if (value = attributes[:'cells']).is_a?(Array) + self.cells = value + end end end diff --git a/lib/xero-ruby/models/accounting/report_rows.rb b/lib/xero-ruby/models/accounting/report_rows.rb index 393c38d3..7298b334 100644 --- a/lib/xero-ruby/models/accounting/report_rows.rb +++ b/lib/xero-ruby/models/accounting/report_rows.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -72,9 +72,15 @@ def initialize(attributes = {}) end if attributes.key?(:'cells') + if (value = attributes[:'cells']).is_a?(Array) + self.cells = value + end end if attributes.key?(:'rows') + if (value = attributes[:'rows']).is_a?(Array) + self.rows = value + end end end diff --git a/lib/xero-ruby/models/accounting/report_with_row.rb b/lib/xero-ruby/models/accounting/report_with_row.rb index eb15a718..57b3f8fe 100644 --- a/lib/xero-ruby/models/accounting/report_with_row.rb +++ b/lib/xero-ruby/models/accounting/report_with_row.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -105,6 +105,9 @@ def initialize(attributes = {}) end if attributes.key?(:'report_titles') + if (value = attributes[:'report_titles']).is_a?(Array) + self.report_titles = value + end end if attributes.key?(:'report_date') @@ -112,6 +115,9 @@ def initialize(attributes = {}) end if attributes.key?(:'rows') + if (value = attributes[:'rows']).is_a?(Array) + self.rows = value + end end if attributes.key?(:'updated_date_utc') @@ -119,6 +125,9 @@ def initialize(attributes = {}) end if attributes.key?(:'fields') + if (value = attributes[:'fields']).is_a?(Array) + self.fields = value + end end end diff --git a/lib/xero-ruby/models/accounting/report_with_rows.rb b/lib/xero-ruby/models/accounting/report_with_rows.rb index 5337d47c..bd554062 100644 --- a/lib/xero-ruby/models/accounting/report_with_rows.rb +++ b/lib/xero-ruby/models/accounting/report_with_rows.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -49,6 +49,9 @@ def initialize(attributes = {}) } if attributes.key?(:'reports') + if (value = attributes[:'reports']).is_a?(Array) + self.reports = value + end end end diff --git a/lib/xero-ruby/models/accounting/reports.rb b/lib/xero-ruby/models/accounting/reports.rb index ae594f2f..402015ad 100644 --- a/lib/xero-ruby/models/accounting/reports.rb +++ b/lib/xero-ruby/models/accounting/reports.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -49,6 +49,9 @@ def initialize(attributes = {}) } if attributes.key?(:'reports') + if (value = attributes[:'reports']).is_a?(Array) + self.reports = value + end end end diff --git a/lib/xero-ruby/models/accounting/request_empty.rb b/lib/xero-ruby/models/accounting/request_empty.rb index be2c842b..c2df72b8 100644 --- a/lib/xero-ruby/models/accounting/request_empty.rb +++ b/lib/xero-ruby/models/accounting/request_empty.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/accounting/row_type.rb b/lib/xero-ruby/models/accounting/row_type.rb index b6f8773d..be6966ba 100644 --- a/lib/xero-ruby/models/accounting/row_type.rb +++ b/lib/xero-ruby/models/accounting/row_type.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/accounting/sales_tracking_category.rb b/lib/xero-ruby/models/accounting/sales_tracking_category.rb index f29d93b5..4ed2276f 100644 --- a/lib/xero-ruby/models/accounting/sales_tracking_category.rb +++ b/lib/xero-ruby/models/accounting/sales_tracking_category.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/accounting/schedule.rb b/lib/xero-ruby/models/accounting/schedule.rb index c88859fe..e3ae3b76 100644 --- a/lib/xero-ruby/models/accounting/schedule.rb +++ b/lib/xero-ruby/models/accounting/schedule.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/accounting/setup.rb b/lib/xero-ruby/models/accounting/setup.rb index 22f9dd16..1b19350c 100644 --- a/lib/xero-ruby/models/accounting/setup.rb +++ b/lib/xero-ruby/models/accounting/setup.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -63,9 +63,15 @@ def initialize(attributes = {}) end if attributes.key?(:'conversion_balances') + if (value = attributes[:'conversion_balances']).is_a?(Array) + self.conversion_balances = value + end end if attributes.key?(:'accounts') + if (value = attributes[:'accounts']).is_a?(Array) + self.accounts = value + end end end diff --git a/lib/xero-ruby/models/accounting/tax_component.rb b/lib/xero-ruby/models/accounting/tax_component.rb index 953e67e6..cde6f301 100644 --- a/lib/xero-ruby/models/accounting/tax_component.rb +++ b/lib/xero-ruby/models/accounting/tax_component.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/accounting/tax_rate.rb b/lib/xero-ruby/models/accounting/tax_rate.rb index 12b100e5..94ddaf3b 100644 --- a/lib/xero-ruby/models/accounting/tax_rate.rb +++ b/lib/xero-ruby/models/accounting/tax_rate.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -220,6 +220,9 @@ def initialize(attributes = {}) end if attributes.key?(:'tax_components') + if (value = attributes[:'tax_components']).is_a?(Array) + self.tax_components = value + end end if attributes.key?(:'status') diff --git a/lib/xero-ruby/models/accounting/tax_rates.rb b/lib/xero-ruby/models/accounting/tax_rates.rb index 8616d86e..cf1ae05e 100644 --- a/lib/xero-ruby/models/accounting/tax_rates.rb +++ b/lib/xero-ruby/models/accounting/tax_rates.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -49,6 +49,9 @@ def initialize(attributes = {}) } if attributes.key?(:'tax_rates') + if (value = attributes[:'tax_rates']).is_a?(Array) + self.tax_rates = value + end end end diff --git a/lib/xero-ruby/models/accounting/tax_type.rb b/lib/xero-ruby/models/accounting/tax_type.rb index ac799d4e..4742f01e 100644 --- a/lib/xero-ruby/models/accounting/tax_type.rb +++ b/lib/xero-ruby/models/accounting/tax_type.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/accounting/ten_ninety_nine_contact.rb b/lib/xero-ruby/models/accounting/ten_ninety_nine_contact.rb index afff796e..33ce6591 100644 --- a/lib/xero-ruby/models/accounting/ten_ninety_nine_contact.rb +++ b/lib/xero-ruby/models/accounting/ten_ninety_nine_contact.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/accounting/time_zone.rb b/lib/xero-ruby/models/accounting/time_zone.rb index b49fc4a5..8e07572b 100644 --- a/lib/xero-ruby/models/accounting/time_zone.rb +++ b/lib/xero-ruby/models/accounting/time_zone.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/accounting/tracking_categories.rb b/lib/xero-ruby/models/accounting/tracking_categories.rb index e87ff504..15c30a37 100644 --- a/lib/xero-ruby/models/accounting/tracking_categories.rb +++ b/lib/xero-ruby/models/accounting/tracking_categories.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -49,6 +49,9 @@ def initialize(attributes = {}) } if attributes.key?(:'tracking_categories') + if (value = attributes[:'tracking_categories']).is_a?(Array) + self.tracking_categories = value + end end end diff --git a/lib/xero-ruby/models/accounting/tracking_category.rb b/lib/xero-ruby/models/accounting/tracking_category.rb index 8b1c8829..b6dcbc7d 100644 --- a/lib/xero-ruby/models/accounting/tracking_category.rb +++ b/lib/xero-ruby/models/accounting/tracking_category.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -119,6 +119,9 @@ def initialize(attributes = {}) end if attributes.key?(:'options') + if (value = attributes[:'options']).is_a?(Array) + self.options = value + end end end diff --git a/lib/xero-ruby/models/accounting/tracking_option.rb b/lib/xero-ruby/models/accounting/tracking_option.rb index 3b86bdde..41546b94 100644 --- a/lib/xero-ruby/models/accounting/tracking_option.rb +++ b/lib/xero-ruby/models/accounting/tracking_option.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/accounting/tracking_options.rb b/lib/xero-ruby/models/accounting/tracking_options.rb index c2578850..94ccbfd4 100644 --- a/lib/xero-ruby/models/accounting/tracking_options.rb +++ b/lib/xero-ruby/models/accounting/tracking_options.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -49,6 +49,9 @@ def initialize(attributes = {}) } if attributes.key?(:'options') + if (value = attributes[:'options']).is_a?(Array) + self.options = value + end end end diff --git a/lib/xero-ruby/models/accounting/user.rb b/lib/xero-ruby/models/accounting/user.rb index 999f8ecd..ba5b5aba 100644 --- a/lib/xero-ruby/models/accounting/user.rb +++ b/lib/xero-ruby/models/accounting/user.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/accounting/users.rb b/lib/xero-ruby/models/accounting/users.rb index c98f5ccd..cf81f223 100644 --- a/lib/xero-ruby/models/accounting/users.rb +++ b/lib/xero-ruby/models/accounting/users.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -49,6 +49,9 @@ def initialize(attributes = {}) } if attributes.key?(:'users') + if (value = attributes[:'users']).is_a?(Array) + self.users = value + end end end diff --git a/lib/xero-ruby/models/accounting/validation_error.rb b/lib/xero-ruby/models/accounting/validation_error.rb index 65c281a7..1e9d0fa7 100644 --- a/lib/xero-ruby/models/accounting/validation_error.rb +++ b/lib/xero-ruby/models/accounting/validation_error.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/app_store/plan.rb b/lib/xero-ruby/models/app_store/plan.rb index cf9064b1..b0f06f02 100644 --- a/lib/xero-ruby/models/app_store/plan.rb +++ b/lib/xero-ruby/models/app_store/plan.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -101,6 +101,9 @@ def initialize(attributes = {}) end if attributes.key?(:'subscription_items') + if (value = attributes[:'subscription_items']).is_a?(Array) + self.subscription_items = value + end end end diff --git a/lib/xero-ruby/models/app_store/price.rb b/lib/xero-ruby/models/app_store/price.rb index 70cbdb88..40128e43 100644 --- a/lib/xero-ruby/models/app_store/price.rb +++ b/lib/xero-ruby/models/app_store/price.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/app_store/problem_details.rb b/lib/xero-ruby/models/app_store/problem_details.rb index 41cb9fe3..6d17e8ad 100644 --- a/lib/xero-ruby/models/app_store/problem_details.rb +++ b/lib/xero-ruby/models/app_store/problem_details.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/app_store/product.rb b/lib/xero-ruby/models/app_store/product.rb index ab746834..66738f63 100644 --- a/lib/xero-ruby/models/app_store/product.rb +++ b/lib/xero-ruby/models/app_store/product.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/app_store/subscription.rb b/lib/xero-ruby/models/app_store/subscription.rb index 7264e96a..d0467be9 100644 --- a/lib/xero-ruby/models/app_store/subscription.rb +++ b/lib/xero-ruby/models/app_store/subscription.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -82,12 +82,12 @@ def self.attribute_map # Attribute type mapping. def self.openapi_types { - :'current_period_end' => :'Time', - :'end_date' => :'Time', + :'current_period_end' => :'DateTime', + :'end_date' => :'DateTime', :'id' => :'String', :'organisation_id' => :'String', :'plans' => :'Array', - :'start_date' => :'Time', + :'start_date' => :'DateTime', :'status' => :'String', :'test_mode' => :'Boolean' } @@ -125,6 +125,9 @@ def initialize(attributes = {}) end if attributes.key?(:'plans') + if (value = attributes[:'plans']).is_a?(Array) + self.plans = value + end end if attributes.key?(:'start_date') diff --git a/lib/xero-ruby/models/app_store/subscription_item.rb b/lib/xero-ruby/models/app_store/subscription_item.rb index 156e51fc..b3d20d25 100644 --- a/lib/xero-ruby/models/app_store/subscription_item.rb +++ b/lib/xero-ruby/models/app_store/subscription_item.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -82,12 +82,12 @@ def self.attribute_map # Attribute type mapping. def self.openapi_types { - :'end_date' => :'Time', + :'end_date' => :'DateTime', :'id' => :'String', :'price' => :'Price', :'product' => :'Product', :'quantity' => :'Integer', - :'start_date' => :'Time', + :'start_date' => :'DateTime', :'status' => :'String', :'test_mode' => :'Boolean' } diff --git a/lib/xero-ruby/models/assets/asset.rb b/lib/xero-ruby/models/assets/asset.rb index a524c296..c5da7e25 100644 --- a/lib/xero-ruby/models/assets/asset.rb +++ b/lib/xero-ruby/models/assets/asset.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/assets/asset_status.rb b/lib/xero-ruby/models/assets/asset_status.rb index 15628175..002c4bc2 100644 --- a/lib/xero-ruby/models/assets/asset_status.rb +++ b/lib/xero-ruby/models/assets/asset_status.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/assets/asset_status_query_param.rb b/lib/xero-ruby/models/assets/asset_status_query_param.rb index bc352068..c751d12f 100644 --- a/lib/xero-ruby/models/assets/asset_status_query_param.rb +++ b/lib/xero-ruby/models/assets/asset_status_query_param.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/assets/asset_type.rb b/lib/xero-ruby/models/assets/asset_type.rb index e7be1401..70537638 100644 --- a/lib/xero-ruby/models/assets/asset_type.rb +++ b/lib/xero-ruby/models/assets/asset_type.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/assets/assets.rb b/lib/xero-ruby/models/assets/assets.rb index b84b4157..3a57b19f 100644 --- a/lib/xero-ruby/models/assets/assets.rb +++ b/lib/xero-ruby/models/assets/assets.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -58,6 +58,9 @@ def initialize(attributes = {}) end if attributes.key?(:'items') + if (value = attributes[:'items']).is_a?(Array) + self.items = value + end end end diff --git a/lib/xero-ruby/models/assets/book_depreciation_detail.rb b/lib/xero-ruby/models/assets/book_depreciation_detail.rb index d61f55b8..a96c0892 100644 --- a/lib/xero-ruby/models/assets/book_depreciation_detail.rb +++ b/lib/xero-ruby/models/assets/book_depreciation_detail.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/assets/book_depreciation_setting.rb b/lib/xero-ruby/models/assets/book_depreciation_setting.rb index f43e5a76..9bd12f4f 100644 --- a/lib/xero-ruby/models/assets/book_depreciation_setting.rb +++ b/lib/xero-ruby/models/assets/book_depreciation_setting.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/assets/error.rb b/lib/xero-ruby/models/assets/error.rb index 6f752ff2..bf5fba80 100644 --- a/lib/xero-ruby/models/assets/error.rb +++ b/lib/xero-ruby/models/assets/error.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -69,9 +69,15 @@ def initialize(attributes = {}) } if attributes.key?(:'resource_validation_errors') + if (value = attributes[:'resource_validation_errors']).is_a?(Array) + self.resource_validation_errors = value + end end if attributes.key?(:'field_validation_errors') + if (value = attributes[:'field_validation_errors']).is_a?(Array) + self.field_validation_errors = value + end end if attributes.key?(:'type') diff --git a/lib/xero-ruby/models/assets/field_validation_errors_element.rb b/lib/xero-ruby/models/assets/field_validation_errors_element.rb index 35b5bcaa..03ffb35a 100644 --- a/lib/xero-ruby/models/assets/field_validation_errors_element.rb +++ b/lib/xero-ruby/models/assets/field_validation_errors_element.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/assets/pagination.rb b/lib/xero-ruby/models/assets/pagination.rb index 40599122..87286dd7 100644 --- a/lib/xero-ruby/models/assets/pagination.rb +++ b/lib/xero-ruby/models/assets/pagination.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/assets/resource_validation_errors_element.rb b/lib/xero-ruby/models/assets/resource_validation_errors_element.rb index 83c3ca50..04f9ddc3 100644 --- a/lib/xero-ruby/models/assets/resource_validation_errors_element.rb +++ b/lib/xero-ruby/models/assets/resource_validation_errors_element.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/assets/setting.rb b/lib/xero-ruby/models/assets/setting.rb index 63744f1f..ca489503 100644 --- a/lib/xero-ruby/models/assets/setting.rb +++ b/lib/xero-ruby/models/assets/setting.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/files/association.rb b/lib/xero-ruby/models/files/association.rb index 8b337030..ac43f100 100644 --- a/lib/xero-ruby/models/files/association.rb +++ b/lib/xero-ruby/models/files/association.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/files/file_object.rb b/lib/xero-ruby/models/files/file_object.rb index 2e875395..278b4dbe 100644 --- a/lib/xero-ruby/models/files/file_object.rb +++ b/lib/xero-ruby/models/files/file_object.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/files/files.rb b/lib/xero-ruby/models/files/files.rb index f0d76fa3..adb79c44 100644 --- a/lib/xero-ruby/models/files/files.rb +++ b/lib/xero-ruby/models/files/files.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -76,6 +76,9 @@ def initialize(attributes = {}) end if attributes.key?(:'items') + if (value = attributes[:'items']).is_a?(Array) + self.items = value + end end end diff --git a/lib/xero-ruby/models/files/folder.rb b/lib/xero-ruby/models/files/folder.rb index c1146ab5..0e410cbb 100644 --- a/lib/xero-ruby/models/files/folder.rb +++ b/lib/xero-ruby/models/files/folder.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/files/folders.rb b/lib/xero-ruby/models/files/folders.rb index 0b9ea5fa..628cc476 100644 --- a/lib/xero-ruby/models/files/folders.rb +++ b/lib/xero-ruby/models/files/folders.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -49,6 +49,9 @@ def initialize(attributes = {}) } if attributes.key?(:'folders') + if (value = attributes[:'folders']).is_a?(Array) + self.folders = value + end end end diff --git a/lib/xero-ruby/models/files/object_group.rb b/lib/xero-ruby/models/files/object_group.rb index c8141c04..5df114da 100644 --- a/lib/xero-ruby/models/files/object_group.rb +++ b/lib/xero-ruby/models/files/object_group.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/files/object_type.rb b/lib/xero-ruby/models/files/object_type.rb index 18bf90b1..f8d62cfc 100644 --- a/lib/xero-ruby/models/files/object_type.rb +++ b/lib/xero-ruby/models/files/object_type.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/files/upload_object.rb b/lib/xero-ruby/models/files/upload_object.rb new file mode 100644 index 00000000..7a812839 --- /dev/null +++ b/lib/xero-ruby/models/files/upload_object.rb @@ -0,0 +1,267 @@ +=begin +#Xero Files API + +#These endpoints are specific to Xero Files API + +Contact: api@xero.com +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 4.3.1 + +=end + +require 'time' +require 'date' + +module XeroRuby::Files + require 'bigdecimal' + + class UploadObject + + attr_accessor :body + + # exact name of the file you are uploading + attr_accessor :name + + + attr_accessor :filename + + + attr_accessor :mime_type + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'body' => :'body', + :'name' => :'name', + :'filename' => :'filename', + :'mime_type' => :'mimeType' + } + end + + # Attribute type mapping. + def self.openapi_types + { + :'body' => :'String', + :'name' => :'String', + :'filename' => :'String', + :'mime_type' => :'String' + } + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `XeroRuby::Files::UploadObject` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `XeroRuby::Files::UploadObject`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'body') + self.body = attributes[:'body'] + end + + if attributes.key?(:'name') + self.name = attributes[:'name'] + end + + if attributes.key?(:'filename') + self.filename = attributes[:'filename'] + end + + if attributes.key?(:'mime_type') + self.mime_type = attributes[:'mime_type'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + if @body.nil? + invalid_properties.push('invalid value for "body", body cannot be nil.') + end + + if @name.nil? + invalid_properties.push('invalid value for "name", name cannot be nil.') + end + + if @filename.nil? + invalid_properties.push('invalid value for "filename", filename cannot be nil.') + end + + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + return false if @body.nil? + return false if @name.nil? + return false if @filename.nil? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + body == o.body && + name == o.name && + filename == o.filename && + mime_type == o.mime_type + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [body, name, filename, mime_type].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + new.build_from_hash(attributes) + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.openapi_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end # or else data not found in attributes(hash), not an issue as the data can be optional + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(parse_date(value)) + when :Date + Date.parse(parse_date(value)) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :BigDecimal + BigDecimal(value.to_s) + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + XeroRuby::Files.const_get(type).build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash(downcase: false) + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + next if value.nil? + key = downcase ? attr : param + hash[key] = _to_hash(value, downcase: downcase) + end + hash + end + + # Returns the object in the form of hash with snake_case + def to_attributes + to_hash(downcase: true) + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value, downcase: false) + if value.is_a?(Array) + value.map do |v| + v.to_hash(downcase: downcase) + end + elsif value.is_a?(Hash) + {}.tap do |hash| + value.map { |k, v| hash[k] = _to_hash(v, downcase: downcase) } + end + elsif value.respond_to? :to_hash + value.to_hash(downcase: downcase) + else + value + end + end + + def parse_date(datestring) + if datestring.include?('Date') + date_pattern = /\/Date\((-?\d+)(\+\d+)?\)\// + original, date, timezone = *date_pattern.match(datestring) + date = (date.to_i / 1000) + Time.at(date).utc.strftime('%Y-%m-%dT%H:%M:%S%z').to_s + elsif /(\d\d\d\d)-(\d\d)/.match(datestring) # handles dates w/out Days: YYYY-MM*-DD + Time.parse(datestring + '-01').strftime('%Y-%m-%dT%H:%M:%S').to_s + else # handle date 'types' for small subset of payroll API's + Time.parse(datestring).strftime('%Y-%m-%dT%H:%M:%S').to_s + end + end + end +end diff --git a/lib/xero-ruby/models/files/user.rb b/lib/xero-ruby/models/files/user.rb index f409524e..d6b96d5c 100644 --- a/lib/xero-ruby/models/files/user.rb +++ b/lib/xero-ruby/models/files/user.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/finance/account_usage.rb b/lib/xero-ruby/models/finance/account_usage.rb index 8d49cc55..a41d1bfd 100644 --- a/lib/xero-ruby/models/finance/account_usage.rb +++ b/lib/xero-ruby/models/finance/account_usage.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -89,7 +89,7 @@ def self.openapi_types :'account_name' => :'String', :'reporting_code' => :'String', :'reporting_code_name' => :'String', - :'report_code_updated_date_utc' => :'Time' + :'report_code_updated_date_utc' => :'DateTime' } end diff --git a/lib/xero-ruby/models/finance/account_usage_response.rb b/lib/xero-ruby/models/finance/account_usage_response.rb index 91cd6590..d7326a0b 100644 --- a/lib/xero-ruby/models/finance/account_usage_response.rb +++ b/lib/xero-ruby/models/finance/account_usage_response.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -76,6 +76,9 @@ def initialize(attributes = {}) end if attributes.key?(:'account_usage') + if (value = attributes[:'account_usage']).is_a?(Array) + self.account_usage = value + end end end diff --git a/lib/xero-ruby/models/finance/balance_sheet_account_detail.rb b/lib/xero-ruby/models/finance/balance_sheet_account_detail.rb index c7092090..4ef3a6d0 100644 --- a/lib/xero-ruby/models/finance/balance_sheet_account_detail.rb +++ b/lib/xero-ruby/models/finance/balance_sheet_account_detail.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/finance/balance_sheet_account_group.rb b/lib/xero-ruby/models/finance/balance_sheet_account_group.rb index c45164b8..bc0b1432 100644 --- a/lib/xero-ruby/models/finance/balance_sheet_account_group.rb +++ b/lib/xero-ruby/models/finance/balance_sheet_account_group.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -54,6 +54,9 @@ def initialize(attributes = {}) } if attributes.key?(:'account_types') + if (value = attributes[:'account_types']).is_a?(Array) + self.account_types = value + end end if attributes.key?(:'total') diff --git a/lib/xero-ruby/models/finance/balance_sheet_account_type.rb b/lib/xero-ruby/models/finance/balance_sheet_account_type.rb index 8d356cdb..69441180 100644 --- a/lib/xero-ruby/models/finance/balance_sheet_account_type.rb +++ b/lib/xero-ruby/models/finance/balance_sheet_account_type.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -63,6 +63,9 @@ def initialize(attributes = {}) end if attributes.key?(:'accounts') + if (value = attributes[:'accounts']).is_a?(Array) + self.accounts = value + end end if attributes.key?(:'total') diff --git a/lib/xero-ruby/models/finance/balance_sheet_response.rb b/lib/xero-ruby/models/finance/balance_sheet_response.rb index 182a6800..d6daef73 100644 --- a/lib/xero-ruby/models/finance/balance_sheet_response.rb +++ b/lib/xero-ruby/models/finance/balance_sheet_response.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/finance/bank_statement_accounting_response.rb b/lib/xero-ruby/models/finance/bank_statement_accounting_response.rb index bbce2d19..a926fec1 100644 --- a/lib/xero-ruby/models/finance/bank_statement_accounting_response.rb +++ b/lib/xero-ruby/models/finance/bank_statement_accounting_response.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -76,6 +76,9 @@ def initialize(attributes = {}) end if attributes.key?(:'statements') + if (value = attributes[:'statements']).is_a?(Array) + self.statements = value + end end end diff --git a/lib/xero-ruby/models/finance/bank_statement_response.rb b/lib/xero-ruby/models/finance/bank_statement_response.rb index 937b49f3..2d663aac 100644 --- a/lib/xero-ruby/models/finance/bank_statement_response.rb +++ b/lib/xero-ruby/models/finance/bank_statement_response.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/finance/bank_transaction_response.rb b/lib/xero-ruby/models/finance/bank_transaction_response.rb index 4c69ce2b..1fe21ade 100644 --- a/lib/xero-ruby/models/finance/bank_transaction_response.rb +++ b/lib/xero-ruby/models/finance/bank_transaction_response.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -94,6 +94,9 @@ def initialize(attributes = {}) end if attributes.key?(:'line_items') + if (value = attributes[:'line_items']).is_a?(Array) + self.line_items = value + end end end diff --git a/lib/xero-ruby/models/finance/cash_account_response.rb b/lib/xero-ruby/models/finance/cash_account_response.rb index 5047ebbb..13b92e90 100644 --- a/lib/xero-ruby/models/finance/cash_account_response.rb +++ b/lib/xero-ruby/models/finance/cash_account_response.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/finance/cash_balance.rb b/lib/xero-ruby/models/finance/cash_balance.rb index 42563413..25812241 100644 --- a/lib/xero-ruby/models/finance/cash_balance.rb +++ b/lib/xero-ruby/models/finance/cash_balance.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/finance/cash_validation_response.rb b/lib/xero-ruby/models/finance/cash_validation_response.rb index df403a04..312b17de 100644 --- a/lib/xero-ruby/models/finance/cash_validation_response.rb +++ b/lib/xero-ruby/models/finance/cash_validation_response.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/finance/cashflow_account.rb b/lib/xero-ruby/models/finance/cashflow_account.rb index 0c230e18..4d9fc27a 100644 --- a/lib/xero-ruby/models/finance/cashflow_account.rb +++ b/lib/xero-ruby/models/finance/cashflow_account.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/finance/cashflow_activity.rb b/lib/xero-ruby/models/finance/cashflow_activity.rb index 648ec201..6e397cf7 100644 --- a/lib/xero-ruby/models/finance/cashflow_activity.rb +++ b/lib/xero-ruby/models/finance/cashflow_activity.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -67,6 +67,9 @@ def initialize(attributes = {}) end if attributes.key?(:'cashflow_types') + if (value = attributes[:'cashflow_types']).is_a?(Array) + self.cashflow_types = value + end end end diff --git a/lib/xero-ruby/models/finance/cashflow_response.rb b/lib/xero-ruby/models/finance/cashflow_response.rb index bdbf9e7e..4d9fbe31 100644 --- a/lib/xero-ruby/models/finance/cashflow_response.rb +++ b/lib/xero-ruby/models/finance/cashflow_response.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -76,6 +76,9 @@ def initialize(attributes = {}) end if attributes.key?(:'cashflow_activities') + if (value = attributes[:'cashflow_activities']).is_a?(Array) + self.cashflow_activities = value + end end end diff --git a/lib/xero-ruby/models/finance/cashflow_type.rb b/lib/xero-ruby/models/finance/cashflow_type.rb index 92bb02ba..8782a5a7 100644 --- a/lib/xero-ruby/models/finance/cashflow_type.rb +++ b/lib/xero-ruby/models/finance/cashflow_type.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -67,6 +67,9 @@ def initialize(attributes = {}) end if attributes.key?(:'accounts') + if (value = attributes[:'accounts']).is_a?(Array) + self.accounts = value + end end end diff --git a/lib/xero-ruby/models/finance/contact_detail.rb b/lib/xero-ruby/models/finance/contact_detail.rb index ebe8f38d..16c150d9 100644 --- a/lib/xero-ruby/models/finance/contact_detail.rb +++ b/lib/xero-ruby/models/finance/contact_detail.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -94,6 +94,9 @@ def initialize(attributes = {}) end if attributes.key?(:'account_codes') + if (value = attributes[:'account_codes']).is_a?(Array) + self.account_codes = value + end end end diff --git a/lib/xero-ruby/models/finance/contact_response.rb b/lib/xero-ruby/models/finance/contact_response.rb index cdafa4e6..6cda373d 100644 --- a/lib/xero-ruby/models/finance/contact_response.rb +++ b/lib/xero-ruby/models/finance/contact_response.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/finance/contact_total_detail.rb b/lib/xero-ruby/models/finance/contact_total_detail.rb index 4645f97c..b4f00b96 100644 --- a/lib/xero-ruby/models/finance/contact_total_detail.rb +++ b/lib/xero-ruby/models/finance/contact_total_detail.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/finance/contact_total_other.rb b/lib/xero-ruby/models/finance/contact_total_other.rb index 6a6b352c..7a2ecf47 100644 --- a/lib/xero-ruby/models/finance/contact_total_other.rb +++ b/lib/xero-ruby/models/finance/contact_total_other.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/finance/credit_note_response.rb b/lib/xero-ruby/models/finance/credit_note_response.rb index 7f41636c..8883ae79 100644 --- a/lib/xero-ruby/models/finance/credit_note_response.rb +++ b/lib/xero-ruby/models/finance/credit_note_response.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -76,6 +76,9 @@ def initialize(attributes = {}) end if attributes.key?(:'line_items') + if (value = attributes[:'line_items']).is_a?(Array) + self.line_items = value + end end end diff --git a/lib/xero-ruby/models/finance/current_statement_response.rb b/lib/xero-ruby/models/finance/current_statement_response.rb index 9d943223..846f6a7e 100644 --- a/lib/xero-ruby/models/finance/current_statement_response.rb +++ b/lib/xero-ruby/models/finance/current_statement_response.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -53,7 +53,7 @@ def self.openapi_types :'end_date' => :'Date', :'start_balance' => :'BigDecimal', :'end_balance' => :'BigDecimal', - :'imported_date_time_utc' => :'Time', + :'imported_date_time_utc' => :'DateTime', :'import_source_type' => :'String' } end diff --git a/lib/xero-ruby/models/finance/data_source_response.rb b/lib/xero-ruby/models/finance/data_source_response.rb index 546e9fea..1dadc392 100644 --- a/lib/xero-ruby/models/finance/data_source_response.rb +++ b/lib/xero-ruby/models/finance/data_source_response.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/finance/history_record_response.rb b/lib/xero-ruby/models/finance/history_record_response.rb index 2c79ae39..8847b3b1 100644 --- a/lib/xero-ruby/models/finance/history_record_response.rb +++ b/lib/xero-ruby/models/finance/history_record_response.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -47,7 +47,7 @@ def self.openapi_types { :'changes' => :'String', :'date_utc_string' => :'String', - :'date_utc' => :'Time', + :'date_utc' => :'DateTime', :'user' => :'String', :'details' => :'String' } diff --git a/lib/xero-ruby/models/finance/income_by_contact_response.rb b/lib/xero-ruby/models/finance/income_by_contact_response.rb index 3fcfd65b..607093d3 100644 --- a/lib/xero-ruby/models/finance/income_by_contact_response.rb +++ b/lib/xero-ruby/models/finance/income_by_contact_response.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -99,6 +99,9 @@ def initialize(attributes = {}) end if attributes.key?(:'contacts') + if (value = attributes[:'contacts']).is_a?(Array) + self.contacts = value + end end if attributes.key?(:'manual_journals') diff --git a/lib/xero-ruby/models/finance/invoice_response.rb b/lib/xero-ruby/models/finance/invoice_response.rb index fcee10df..763084db 100644 --- a/lib/xero-ruby/models/finance/invoice_response.rb +++ b/lib/xero-ruby/models/finance/invoice_response.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -76,6 +76,9 @@ def initialize(attributes = {}) end if attributes.key?(:'line_items') + if (value = attributes[:'line_items']).is_a?(Array) + self.line_items = value + end end end diff --git a/lib/xero-ruby/models/finance/line_item_response.rb b/lib/xero-ruby/models/finance/line_item_response.rb index c27a3a8d..0b2a8287 100644 --- a/lib/xero-ruby/models/finance/line_item_response.rb +++ b/lib/xero-ruby/models/finance/line_item_response.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/finance/lock_history_model.rb b/lib/xero-ruby/models/finance/lock_history_model.rb index ee95b040..17e21ff0 100644 --- a/lib/xero-ruby/models/finance/lock_history_model.rb +++ b/lib/xero-ruby/models/finance/lock_history_model.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -39,7 +39,7 @@ def self.openapi_types { :'hard_lock_date' => :'Date', :'soft_lock_date' => :'Date', - :'updated_date_utc' => :'Time' + :'updated_date_utc' => :'DateTime' } end diff --git a/lib/xero-ruby/models/finance/lock_history_response.rb b/lib/xero-ruby/models/finance/lock_history_response.rb index 9a3ef34d..343daec2 100644 --- a/lib/xero-ruby/models/finance/lock_history_response.rb +++ b/lib/xero-ruby/models/finance/lock_history_response.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -67,6 +67,9 @@ def initialize(attributes = {}) end if attributes.key?(:'lock_dates') + if (value = attributes[:'lock_dates']).is_a?(Array) + self.lock_dates = value + end end end diff --git a/lib/xero-ruby/models/finance/manual_journal_total.rb b/lib/xero-ruby/models/finance/manual_journal_total.rb index 75b68697..bc1de25a 100644 --- a/lib/xero-ruby/models/finance/manual_journal_total.rb +++ b/lib/xero-ruby/models/finance/manual_journal_total.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/finance/overpayment_response.rb b/lib/xero-ruby/models/finance/overpayment_response.rb index bbef9745..31c3c419 100644 --- a/lib/xero-ruby/models/finance/overpayment_response.rb +++ b/lib/xero-ruby/models/finance/overpayment_response.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -76,6 +76,9 @@ def initialize(attributes = {}) end if attributes.key?(:'line_items') + if (value = attributes[:'line_items']).is_a?(Array) + self.line_items = value + end end end diff --git a/lib/xero-ruby/models/finance/payment_response.rb b/lib/xero-ruby/models/finance/payment_response.rb index 4381e19b..52682f3c 100644 --- a/lib/xero-ruby/models/finance/payment_response.rb +++ b/lib/xero-ruby/models/finance/payment_response.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/finance/pnl_account.rb b/lib/xero-ruby/models/finance/pnl_account.rb index 4415d4ed..978839c0 100644 --- a/lib/xero-ruby/models/finance/pnl_account.rb +++ b/lib/xero-ruby/models/finance/pnl_account.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/finance/pnl_account_class.rb b/lib/xero-ruby/models/finance/pnl_account_class.rb index 25bf1a4d..66668e49 100644 --- a/lib/xero-ruby/models/finance/pnl_account_class.rb +++ b/lib/xero-ruby/models/finance/pnl_account_class.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -58,6 +58,9 @@ def initialize(attributes = {}) end if attributes.key?(:'account_types') + if (value = attributes[:'account_types']).is_a?(Array) + self.account_types = value + end end end diff --git a/lib/xero-ruby/models/finance/pnl_account_type.rb b/lib/xero-ruby/models/finance/pnl_account_type.rb index c97c843b..fd852f55 100644 --- a/lib/xero-ruby/models/finance/pnl_account_type.rb +++ b/lib/xero-ruby/models/finance/pnl_account_type.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -67,6 +67,9 @@ def initialize(attributes = {}) end if attributes.key?(:'accounts') + if (value = attributes[:'accounts']).is_a?(Array) + self.accounts = value + end end end diff --git a/lib/xero-ruby/models/finance/practice_response.rb b/lib/xero-ruby/models/finance/practice_response.rb index 49213cd5..33bb7eaf 100644 --- a/lib/xero-ruby/models/finance/practice_response.rb +++ b/lib/xero-ruby/models/finance/practice_response.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/finance/prepayment_response.rb b/lib/xero-ruby/models/finance/prepayment_response.rb index fa9f2a96..f1020d5e 100644 --- a/lib/xero-ruby/models/finance/prepayment_response.rb +++ b/lib/xero-ruby/models/finance/prepayment_response.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -76,6 +76,9 @@ def initialize(attributes = {}) end if attributes.key?(:'line_items') + if (value = attributes[:'line_items']).is_a?(Array) + self.line_items = value + end end end diff --git a/lib/xero-ruby/models/finance/problem.rb b/lib/xero-ruby/models/finance/problem.rb index e77fc828..5be95192 100644 --- a/lib/xero-ruby/models/finance/problem.rb +++ b/lib/xero-ruby/models/finance/problem.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/finance/problem_type.rb b/lib/xero-ruby/models/finance/problem_type.rb index 5a4ff1b7..561934b6 100644 --- a/lib/xero-ruby/models/finance/problem_type.rb +++ b/lib/xero-ruby/models/finance/problem_type.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/finance/profit_and_loss_response.rb b/lib/xero-ruby/models/finance/profit_and_loss_response.rb index 7ae2c5e6..0925c0ac 100644 --- a/lib/xero-ruby/models/finance/profit_and_loss_response.rb +++ b/lib/xero-ruby/models/finance/profit_and_loss_response.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/finance/report_history_model.rb b/lib/xero-ruby/models/finance/report_history_model.rb index 93700d9b..452ce2e7 100644 --- a/lib/xero-ruby/models/finance/report_history_model.rb +++ b/lib/xero-ruby/models/finance/report_history_model.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -39,7 +39,7 @@ def self.openapi_types { :'report_name' => :'String', :'report_date_text' => :'String', - :'published_date_utc' => :'Time' + :'published_date_utc' => :'DateTime' } end diff --git a/lib/xero-ruby/models/finance/report_history_response.rb b/lib/xero-ruby/models/finance/report_history_response.rb index fd382437..2c583f58 100644 --- a/lib/xero-ruby/models/finance/report_history_response.rb +++ b/lib/xero-ruby/models/finance/report_history_response.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -67,6 +67,9 @@ def initialize(attributes = {}) end if attributes.key?(:'reports') + if (value = attributes[:'reports']).is_a?(Array) + self.reports = value + end end end diff --git a/lib/xero-ruby/models/finance/statement_balance_response.rb b/lib/xero-ruby/models/finance/statement_balance_response.rb index e624c0ed..1cc393c7 100644 --- a/lib/xero-ruby/models/finance/statement_balance_response.rb +++ b/lib/xero-ruby/models/finance/statement_balance_response.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/finance/statement_line_response.rb b/lib/xero-ruby/models/finance/statement_line_response.rb index 5d0d991c..3c5feb6b 100644 --- a/lib/xero-ruby/models/finance/statement_line_response.rb +++ b/lib/xero-ruby/models/finance/statement_line_response.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -153,9 +153,15 @@ def initialize(attributes = {}) end if attributes.key?(:'payments') + if (value = attributes[:'payments']).is_a?(Array) + self.payments = value + end end if attributes.key?(:'bank_transactions') + if (value = attributes[:'bank_transactions']).is_a?(Array) + self.bank_transactions = value + end end end diff --git a/lib/xero-ruby/models/finance/statement_lines_response.rb b/lib/xero-ruby/models/finance/statement_lines_response.rb index ee7387f3..71d651a1 100644 --- a/lib/xero-ruby/models/finance/statement_lines_response.rb +++ b/lib/xero-ruby/models/finance/statement_lines_response.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/finance/statement_response.rb b/lib/xero-ruby/models/finance/statement_response.rb index 41266d48..cab85a5a 100644 --- a/lib/xero-ruby/models/finance/statement_response.rb +++ b/lib/xero-ruby/models/finance/statement_response.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -60,7 +60,7 @@ def self.openapi_types :'statement_id' => :'String', :'start_date' => :'Date', :'end_date' => :'Date', - :'imported_date_time_utc' => :'Time', + :'imported_date_time_utc' => :'DateTime', :'import_source' => :'String', :'start_balance' => :'BigDecimal', :'end_balance' => :'BigDecimal', @@ -112,6 +112,9 @@ def initialize(attributes = {}) end if attributes.key?(:'statement_lines') + if (value = attributes[:'statement_lines']).is_a?(Array) + self.statement_lines = value + end end end diff --git a/lib/xero-ruby/models/finance/total_detail.rb b/lib/xero-ruby/models/finance/total_detail.rb index ab99d94a..7f6edd65 100644 --- a/lib/xero-ruby/models/finance/total_detail.rb +++ b/lib/xero-ruby/models/finance/total_detail.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/finance/total_other.rb b/lib/xero-ruby/models/finance/total_other.rb index dadbbe8a..61d39e09 100644 --- a/lib/xero-ruby/models/finance/total_other.rb +++ b/lib/xero-ruby/models/finance/total_other.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/finance/trial_balance_account.rb b/lib/xero-ruby/models/finance/trial_balance_account.rb index 5bc39cf8..c0dbc577 100644 --- a/lib/xero-ruby/models/finance/trial_balance_account.rb +++ b/lib/xero-ruby/models/finance/trial_balance_account.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/finance/trial_balance_entry.rb b/lib/xero-ruby/models/finance/trial_balance_entry.rb index 4c2594fa..4e620ac8 100644 --- a/lib/xero-ruby/models/finance/trial_balance_entry.rb +++ b/lib/xero-ruby/models/finance/trial_balance_entry.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/finance/trial_balance_movement.rb b/lib/xero-ruby/models/finance/trial_balance_movement.rb index d140e5f3..c15b8152 100644 --- a/lib/xero-ruby/models/finance/trial_balance_movement.rb +++ b/lib/xero-ruby/models/finance/trial_balance_movement.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/finance/trial_balance_response.rb b/lib/xero-ruby/models/finance/trial_balance_response.rb index 75eb98a2..12e3df25 100644 --- a/lib/xero-ruby/models/finance/trial_balance_response.rb +++ b/lib/xero-ruby/models/finance/trial_balance_response.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -67,6 +67,9 @@ def initialize(attributes = {}) end if attributes.key?(:'accounts') + if (value = attributes[:'accounts']).is_a?(Array) + self.accounts = value + end end end diff --git a/lib/xero-ruby/models/finance/user_activities_response.rb b/lib/xero-ruby/models/finance/user_activities_response.rb index 968d40ee..57f111c2 100644 --- a/lib/xero-ruby/models/finance/user_activities_response.rb +++ b/lib/xero-ruby/models/finance/user_activities_response.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -67,6 +67,9 @@ def initialize(attributes = {}) end if attributes.key?(:'users') + if (value = attributes[:'users']).is_a?(Array) + self.users = value + end end end diff --git a/lib/xero-ruby/models/finance/user_response.rb b/lib/xero-ruby/models/finance/user_response.rb index 3d9e6af8..0399cb46 100644 --- a/lib/xero-ruby/models/finance/user_response.rb +++ b/lib/xero-ruby/models/finance/user_response.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -74,8 +74,8 @@ def self.attribute_map def self.openapi_types { :'user_id' => :'String', - :'user_created_date_utc' => :'Time', - :'last_login_date_utc' => :'Time', + :'user_created_date_utc' => :'DateTime', + :'last_login_date_utc' => :'DateTime', :'is_external_partner' => :'Boolean', :'has_accountant_role' => :'Boolean', :'month_period' => :'String', @@ -144,9 +144,15 @@ def initialize(attributes = {}) end if attributes.key?(:'attached_practices') + if (value = attributes[:'attached_practices']).is_a?(Array) + self.attached_practices = value + end end if attributes.key?(:'history_records') + if (value = attributes[:'history_records']).is_a?(Array) + self.history_records = value + end end end diff --git a/lib/xero-ruby/models/payroll_au/account.rb b/lib/xero-ruby/models/payroll_au/account.rb index 430feae9..5daf896e 100644 --- a/lib/xero-ruby/models/payroll_au/account.rb +++ b/lib/xero-ruby/models/payroll_au/account.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_au/account_type.rb b/lib/xero-ruby/models/payroll_au/account_type.rb index ac627eb7..58de64ac 100644 --- a/lib/xero-ruby/models/payroll_au/account_type.rb +++ b/lib/xero-ruby/models/payroll_au/account_type.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_au/allowance_category.rb b/lib/xero-ruby/models/payroll_au/allowance_category.rb index a182bcf9..d80c49b5 100644 --- a/lib/xero-ruby/models/payroll_au/allowance_category.rb +++ b/lib/xero-ruby/models/payroll_au/allowance_category.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_au/allowance_type.rb b/lib/xero-ruby/models/payroll_au/allowance_type.rb index be8f7e8d..87f4a3e2 100644 --- a/lib/xero-ruby/models/payroll_au/allowance_type.rb +++ b/lib/xero-ruby/models/payroll_au/allowance_type.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_au/api_exception.rb b/lib/xero-ruby/models/payroll_au/api_exception.rb index a9b5a8df..fbf04706 100644 --- a/lib/xero-ruby/models/payroll_au/api_exception.rb +++ b/lib/xero-ruby/models/payroll_au/api_exception.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_au/bank_account.rb b/lib/xero-ruby/models/payroll_au/bank_account.rb index 49a6de9e..db169587 100644 --- a/lib/xero-ruby/models/payroll_au/bank_account.rb +++ b/lib/xero-ruby/models/payroll_au/bank_account.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_au/calendar_type.rb b/lib/xero-ruby/models/payroll_au/calendar_type.rb index 78ad409d..e3381787 100644 --- a/lib/xero-ruby/models/payroll_au/calendar_type.rb +++ b/lib/xero-ruby/models/payroll_au/calendar_type.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_au/deduction_line.rb b/lib/xero-ruby/models/payroll_au/deduction_line.rb index e3220e3e..27cf2a5c 100644 --- a/lib/xero-ruby/models/payroll_au/deduction_line.rb +++ b/lib/xero-ruby/models/payroll_au/deduction_line.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_au/deduction_type.rb b/lib/xero-ruby/models/payroll_au/deduction_type.rb index 89eef310..ec8cfe01 100644 --- a/lib/xero-ruby/models/payroll_au/deduction_type.rb +++ b/lib/xero-ruby/models/payroll_au/deduction_type.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_au/deduction_type_calculation_type.rb b/lib/xero-ruby/models/payroll_au/deduction_type_calculation_type.rb index 75b59804..0af56965 100644 --- a/lib/xero-ruby/models/payroll_au/deduction_type_calculation_type.rb +++ b/lib/xero-ruby/models/payroll_au/deduction_type_calculation_type.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_au/earnings_line.rb b/lib/xero-ruby/models/payroll_au/earnings_line.rb index e2315c44..c8ffcccd 100644 --- a/lib/xero-ruby/models/payroll_au/earnings_line.rb +++ b/lib/xero-ruby/models/payroll_au/earnings_line.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_au/earnings_rate.rb b/lib/xero-ruby/models/payroll_au/earnings_rate.rb index 2082cdbb..e40238c1 100644 --- a/lib/xero-ruby/models/payroll_au/earnings_rate.rb +++ b/lib/xero-ruby/models/payroll_au/earnings_rate.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_au/earnings_rate_calculation_type.rb b/lib/xero-ruby/models/payroll_au/earnings_rate_calculation_type.rb index 90ed7cf0..315da62b 100644 --- a/lib/xero-ruby/models/payroll_au/earnings_rate_calculation_type.rb +++ b/lib/xero-ruby/models/payroll_au/earnings_rate_calculation_type.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_au/earnings_type.rb b/lib/xero-ruby/models/payroll_au/earnings_type.rb index eaf3b4d0..3f22a0a5 100644 --- a/lib/xero-ruby/models/payroll_au/earnings_type.rb +++ b/lib/xero-ruby/models/payroll_au/earnings_type.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_au/employee.rb b/lib/xero-ruby/models/payroll_au/employee.rb index fbf04c06..af0191a2 100644 --- a/lib/xero-ruby/models/payroll_au/employee.rb +++ b/lib/xero-ruby/models/payroll_au/employee.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -325,6 +325,9 @@ def initialize(attributes = {}) end if attributes.key?(:'bank_accounts') + if (value = attributes[:'bank_accounts']).is_a?(Array) + self.bank_accounts = value + end end if attributes.key?(:'pay_template') @@ -340,12 +343,21 @@ def initialize(attributes = {}) end if attributes.key?(:'leave_balances') + if (value = attributes[:'leave_balances']).is_a?(Array) + self.leave_balances = value + end end if attributes.key?(:'leave_lines') + if (value = attributes[:'leave_lines']).is_a?(Array) + self.leave_lines = value + end end if attributes.key?(:'super_memberships') + if (value = attributes[:'super_memberships']).is_a?(Array) + self.super_memberships = value + end end if attributes.key?(:'status') @@ -357,6 +369,9 @@ def initialize(attributes = {}) end if attributes.key?(:'validation_errors') + if (value = attributes[:'validation_errors']).is_a?(Array) + self.validation_errors = value + end end end diff --git a/lib/xero-ruby/models/payroll_au/employee_status.rb b/lib/xero-ruby/models/payroll_au/employee_status.rb index 5788b90f..c3d143de 100644 --- a/lib/xero-ruby/models/payroll_au/employee_status.rb +++ b/lib/xero-ruby/models/payroll_au/employee_status.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_au/employees.rb b/lib/xero-ruby/models/payroll_au/employees.rb index d1e17eb5..b42388f1 100644 --- a/lib/xero-ruby/models/payroll_au/employees.rb +++ b/lib/xero-ruby/models/payroll_au/employees.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -49,6 +49,9 @@ def initialize(attributes = {}) } if attributes.key?(:'employees') + if (value = attributes[:'employees']).is_a?(Array) + self.employees = value + end end end diff --git a/lib/xero-ruby/models/payroll_au/employment_basis.rb b/lib/xero-ruby/models/payroll_au/employment_basis.rb index 346905a4..58398453 100644 --- a/lib/xero-ruby/models/payroll_au/employment_basis.rb +++ b/lib/xero-ruby/models/payroll_au/employment_basis.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_au/employment_termination_payment_type.rb b/lib/xero-ruby/models/payroll_au/employment_termination_payment_type.rb index 64e5caf7..f005c46d 100644 --- a/lib/xero-ruby/models/payroll_au/employment_termination_payment_type.rb +++ b/lib/xero-ruby/models/payroll_au/employment_termination_payment_type.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_au/entitlement_final_pay_payout_type.rb b/lib/xero-ruby/models/payroll_au/entitlement_final_pay_payout_type.rb index 68aa88f0..5370f5c4 100644 --- a/lib/xero-ruby/models/payroll_au/entitlement_final_pay_payout_type.rb +++ b/lib/xero-ruby/models/payroll_au/entitlement_final_pay_payout_type.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_au/home_address.rb b/lib/xero-ruby/models/payroll_au/home_address.rb index 47e48be9..7ae8243b 100644 --- a/lib/xero-ruby/models/payroll_au/home_address.rb +++ b/lib/xero-ruby/models/payroll_au/home_address.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_au/leave_accrual_line.rb b/lib/xero-ruby/models/payroll_au/leave_accrual_line.rb index 0ea76144..9f0b2bf6 100644 --- a/lib/xero-ruby/models/payroll_au/leave_accrual_line.rb +++ b/lib/xero-ruby/models/payroll_au/leave_accrual_line.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_au/leave_application.rb b/lib/xero-ruby/models/payroll_au/leave_application.rb index 08956c24..818c92a5 100644 --- a/lib/xero-ruby/models/payroll_au/leave_application.rb +++ b/lib/xero-ruby/models/payroll_au/leave_application.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -122,6 +122,9 @@ def initialize(attributes = {}) end if attributes.key?(:'leave_periods') + if (value = attributes[:'leave_periods']).is_a?(Array) + self.leave_periods = value + end end if attributes.key?(:'updated_date_utc') @@ -129,6 +132,9 @@ def initialize(attributes = {}) end if attributes.key?(:'validation_errors') + if (value = attributes[:'validation_errors']).is_a?(Array) + self.validation_errors = value + end end end diff --git a/lib/xero-ruby/models/payroll_au/leave_applications.rb b/lib/xero-ruby/models/payroll_au/leave_applications.rb index 0804a03c..9afdea0b 100644 --- a/lib/xero-ruby/models/payroll_au/leave_applications.rb +++ b/lib/xero-ruby/models/payroll_au/leave_applications.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -49,6 +49,9 @@ def initialize(attributes = {}) } if attributes.key?(:'leave_applications') + if (value = attributes[:'leave_applications']).is_a?(Array) + self.leave_applications = value + end end end diff --git a/lib/xero-ruby/models/payroll_au/leave_balance.rb b/lib/xero-ruby/models/payroll_au/leave_balance.rb index 869162aa..a53556a7 100644 --- a/lib/xero-ruby/models/payroll_au/leave_balance.rb +++ b/lib/xero-ruby/models/payroll_au/leave_balance.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_au/leave_earnings_line.rb b/lib/xero-ruby/models/payroll_au/leave_earnings_line.rb index e2fad763..aa0336f1 100644 --- a/lib/xero-ruby/models/payroll_au/leave_earnings_line.rb +++ b/lib/xero-ruby/models/payroll_au/leave_earnings_line.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_au/leave_line.rb b/lib/xero-ruby/models/payroll_au/leave_line.rb index 6a82b288..e077e742 100644 --- a/lib/xero-ruby/models/payroll_au/leave_line.rb +++ b/lib/xero-ruby/models/payroll_au/leave_line.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_au/leave_line_calculation_type.rb b/lib/xero-ruby/models/payroll_au/leave_line_calculation_type.rb index fcbe12bc..dbb35038 100644 --- a/lib/xero-ruby/models/payroll_au/leave_line_calculation_type.rb +++ b/lib/xero-ruby/models/payroll_au/leave_line_calculation_type.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_au/leave_lines.rb b/lib/xero-ruby/models/payroll_au/leave_lines.rb index 91c983c5..77f4f20e 100644 --- a/lib/xero-ruby/models/payroll_au/leave_lines.rb +++ b/lib/xero-ruby/models/payroll_au/leave_lines.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -50,6 +50,9 @@ def initialize(attributes = {}) } if attributes.key?(:'employee') + if (value = attributes[:'employee']).is_a?(Array) + self.employee = value + end end end diff --git a/lib/xero-ruby/models/payroll_au/leave_period.rb b/lib/xero-ruby/models/payroll_au/leave_period.rb index f013018e..d4a064dc 100644 --- a/lib/xero-ruby/models/payroll_au/leave_period.rb +++ b/lib/xero-ruby/models/payroll_au/leave_period.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_au/leave_period_status.rb b/lib/xero-ruby/models/payroll_au/leave_period_status.rb index 4f9fa771..40e88553 100644 --- a/lib/xero-ruby/models/payroll_au/leave_period_status.rb +++ b/lib/xero-ruby/models/payroll_au/leave_period_status.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_au/leave_type.rb b/lib/xero-ruby/models/payroll_au/leave_type.rb index 8e158f34..44cb727c 100644 --- a/lib/xero-ruby/models/payroll_au/leave_type.rb +++ b/lib/xero-ruby/models/payroll_au/leave_type.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_au/leave_type_contribution_type.rb b/lib/xero-ruby/models/payroll_au/leave_type_contribution_type.rb index ca24c1c5..cb1ba269 100644 --- a/lib/xero-ruby/models/payroll_au/leave_type_contribution_type.rb +++ b/lib/xero-ruby/models/payroll_au/leave_type_contribution_type.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_au/manual_tax_type.rb b/lib/xero-ruby/models/payroll_au/manual_tax_type.rb index 98c723c4..223552ac 100644 --- a/lib/xero-ruby/models/payroll_au/manual_tax_type.rb +++ b/lib/xero-ruby/models/payroll_au/manual_tax_type.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_au/opening_balances.rb b/lib/xero-ruby/models/payroll_au/opening_balances.rb index 75a45229..a7a7e8e9 100644 --- a/lib/xero-ruby/models/payroll_au/opening_balances.rb +++ b/lib/xero-ruby/models/payroll_au/opening_balances.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -87,18 +87,33 @@ def initialize(attributes = {}) end if attributes.key?(:'earnings_lines') + if (value = attributes[:'earnings_lines']).is_a?(Array) + self.earnings_lines = value + end end if attributes.key?(:'deduction_lines') + if (value = attributes[:'deduction_lines']).is_a?(Array) + self.deduction_lines = value + end end if attributes.key?(:'super_lines') + if (value = attributes[:'super_lines']).is_a?(Array) + self.super_lines = value + end end if attributes.key?(:'reimbursement_lines') + if (value = attributes[:'reimbursement_lines']).is_a?(Array) + self.reimbursement_lines = value + end end if attributes.key?(:'leave_lines') + if (value = attributes[:'leave_lines']).is_a?(Array) + self.leave_lines = value + end end end diff --git a/lib/xero-ruby/models/payroll_au/pay_item.rb b/lib/xero-ruby/models/payroll_au/pay_item.rb index 50dc1cc3..96e7c883 100644 --- a/lib/xero-ruby/models/payroll_au/pay_item.rb +++ b/lib/xero-ruby/models/payroll_au/pay_item.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -64,15 +64,27 @@ def initialize(attributes = {}) } if attributes.key?(:'earnings_rates') + if (value = attributes[:'earnings_rates']).is_a?(Array) + self.earnings_rates = value + end end if attributes.key?(:'deduction_types') + if (value = attributes[:'deduction_types']).is_a?(Array) + self.deduction_types = value + end end if attributes.key?(:'leave_types') + if (value = attributes[:'leave_types']).is_a?(Array) + self.leave_types = value + end end if attributes.key?(:'reimbursement_types') + if (value = attributes[:'reimbursement_types']).is_a?(Array) + self.reimbursement_types = value + end end end diff --git a/lib/xero-ruby/models/payroll_au/pay_items.rb b/lib/xero-ruby/models/payroll_au/pay_items.rb index cdcb9efc..5d2a45a5 100644 --- a/lib/xero-ruby/models/payroll_au/pay_items.rb +++ b/lib/xero-ruby/models/payroll_au/pay_items.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_au/pay_run.rb b/lib/xero-ruby/models/payroll_au/pay_run.rb index bbd6440a..d8676045 100644 --- a/lib/xero-ruby/models/payroll_au/pay_run.rb +++ b/lib/xero-ruby/models/payroll_au/pay_run.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -156,6 +156,9 @@ def initialize(attributes = {}) end if attributes.key?(:'payslips') + if (value = attributes[:'payslips']).is_a?(Array) + self.payslips = value + end end if attributes.key?(:'wages') @@ -183,6 +186,9 @@ def initialize(attributes = {}) end if attributes.key?(:'validation_errors') + if (value = attributes[:'validation_errors']).is_a?(Array) + self.validation_errors = value + end end end diff --git a/lib/xero-ruby/models/payroll_au/pay_run_status.rb b/lib/xero-ruby/models/payroll_au/pay_run_status.rb index ea6b6d78..25c55eab 100644 --- a/lib/xero-ruby/models/payroll_au/pay_run_status.rb +++ b/lib/xero-ruby/models/payroll_au/pay_run_status.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_au/pay_runs.rb b/lib/xero-ruby/models/payroll_au/pay_runs.rb index 38247ed6..dd8b1974 100644 --- a/lib/xero-ruby/models/payroll_au/pay_runs.rb +++ b/lib/xero-ruby/models/payroll_au/pay_runs.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -49,6 +49,9 @@ def initialize(attributes = {}) } if attributes.key?(:'pay_runs') + if (value = attributes[:'pay_runs']).is_a?(Array) + self.pay_runs = value + end end end diff --git a/lib/xero-ruby/models/payroll_au/pay_template.rb b/lib/xero-ruby/models/payroll_au/pay_template.rb index 4cd5aacc..c153aedc 100644 --- a/lib/xero-ruby/models/payroll_au/pay_template.rb +++ b/lib/xero-ruby/models/payroll_au/pay_template.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -69,18 +69,33 @@ def initialize(attributes = {}) } if attributes.key?(:'earnings_lines') + if (value = attributes[:'earnings_lines']).is_a?(Array) + self.earnings_lines = value + end end if attributes.key?(:'deduction_lines') + if (value = attributes[:'deduction_lines']).is_a?(Array) + self.deduction_lines = value + end end if attributes.key?(:'super_lines') + if (value = attributes[:'super_lines']).is_a?(Array) + self.super_lines = value + end end if attributes.key?(:'reimbursement_lines') + if (value = attributes[:'reimbursement_lines']).is_a?(Array) + self.reimbursement_lines = value + end end if attributes.key?(:'leave_lines') + if (value = attributes[:'leave_lines']).is_a?(Array) + self.leave_lines = value + end end end diff --git a/lib/xero-ruby/models/payroll_au/payment_frequency_type.rb b/lib/xero-ruby/models/payroll_au/payment_frequency_type.rb index 8771621a..1ad37d22 100644 --- a/lib/xero-ruby/models/payroll_au/payment_frequency_type.rb +++ b/lib/xero-ruby/models/payroll_au/payment_frequency_type.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_au/payroll_calendar.rb b/lib/xero-ruby/models/payroll_au/payroll_calendar.rb index d595a85a..311b6daf 100644 --- a/lib/xero-ruby/models/payroll_au/payroll_calendar.rb +++ b/lib/xero-ruby/models/payroll_au/payroll_calendar.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -112,6 +112,9 @@ def initialize(attributes = {}) end if attributes.key?(:'validation_errors') + if (value = attributes[:'validation_errors']).is_a?(Array) + self.validation_errors = value + end end end diff --git a/lib/xero-ruby/models/payroll_au/payroll_calendars.rb b/lib/xero-ruby/models/payroll_au/payroll_calendars.rb index 997ad07a..05950313 100644 --- a/lib/xero-ruby/models/payroll_au/payroll_calendars.rb +++ b/lib/xero-ruby/models/payroll_au/payroll_calendars.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -49,6 +49,9 @@ def initialize(attributes = {}) } if attributes.key?(:'payroll_calendars') + if (value = attributes[:'payroll_calendars']).is_a?(Array) + self.payroll_calendars = value + end end end diff --git a/lib/xero-ruby/models/payroll_au/payslip.rb b/lib/xero-ruby/models/payroll_au/payslip.rb index c38b0662..cb2f49f7 100644 --- a/lib/xero-ruby/models/payroll_au/payslip.rb +++ b/lib/xero-ruby/models/payroll_au/payslip.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -179,27 +179,51 @@ def initialize(attributes = {}) end if attributes.key?(:'earnings_lines') + if (value = attributes[:'earnings_lines']).is_a?(Array) + self.earnings_lines = value + end end if attributes.key?(:'leave_earnings_lines') + if (value = attributes[:'leave_earnings_lines']).is_a?(Array) + self.leave_earnings_lines = value + end end if attributes.key?(:'timesheet_earnings_lines') + if (value = attributes[:'timesheet_earnings_lines']).is_a?(Array) + self.timesheet_earnings_lines = value + end end if attributes.key?(:'deduction_lines') + if (value = attributes[:'deduction_lines']).is_a?(Array) + self.deduction_lines = value + end end if attributes.key?(:'leave_accrual_lines') + if (value = attributes[:'leave_accrual_lines']).is_a?(Array) + self.leave_accrual_lines = value + end end if attributes.key?(:'reimbursement_lines') + if (value = attributes[:'reimbursement_lines']).is_a?(Array) + self.reimbursement_lines = value + end end if attributes.key?(:'superannuation_lines') + if (value = attributes[:'superannuation_lines']).is_a?(Array) + self.superannuation_lines = value + end end if attributes.key?(:'tax_lines') + if (value = attributes[:'tax_lines']).is_a?(Array) + self.tax_lines = value + end end if attributes.key?(:'updated_date_utc') diff --git a/lib/xero-ruby/models/payroll_au/payslip_lines.rb b/lib/xero-ruby/models/payroll_au/payslip_lines.rb index 015c0c95..e50e939f 100644 --- a/lib/xero-ruby/models/payroll_au/payslip_lines.rb +++ b/lib/xero-ruby/models/payroll_au/payslip_lines.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -84,27 +84,51 @@ def initialize(attributes = {}) } if attributes.key?(:'earnings_lines') + if (value = attributes[:'earnings_lines']).is_a?(Array) + self.earnings_lines = value + end end if attributes.key?(:'leave_earnings_lines') + if (value = attributes[:'leave_earnings_lines']).is_a?(Array) + self.leave_earnings_lines = value + end end if attributes.key?(:'timesheet_earnings_lines') + if (value = attributes[:'timesheet_earnings_lines']).is_a?(Array) + self.timesheet_earnings_lines = value + end end if attributes.key?(:'deduction_lines') + if (value = attributes[:'deduction_lines']).is_a?(Array) + self.deduction_lines = value + end end if attributes.key?(:'leave_accrual_lines') + if (value = attributes[:'leave_accrual_lines']).is_a?(Array) + self.leave_accrual_lines = value + end end if attributes.key?(:'reimbursement_lines') + if (value = attributes[:'reimbursement_lines']).is_a?(Array) + self.reimbursement_lines = value + end end if attributes.key?(:'superannuation_lines') + if (value = attributes[:'superannuation_lines']).is_a?(Array) + self.superannuation_lines = value + end end if attributes.key?(:'tax_lines') + if (value = attributes[:'tax_lines']).is_a?(Array) + self.tax_lines = value + end end end diff --git a/lib/xero-ruby/models/payroll_au/payslip_object.rb b/lib/xero-ruby/models/payroll_au/payslip_object.rb index b801becd..0ca8f496 100644 --- a/lib/xero-ruby/models/payroll_au/payslip_object.rb +++ b/lib/xero-ruby/models/payroll_au/payslip_object.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_au/payslip_summary.rb b/lib/xero-ruby/models/payroll_au/payslip_summary.rb index f6763137..2930496d 100644 --- a/lib/xero-ruby/models/payroll_au/payslip_summary.rb +++ b/lib/xero-ruby/models/payroll_au/payslip_summary.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_au/payslips.rb b/lib/xero-ruby/models/payroll_au/payslips.rb index 6f4c58eb..18fba1e0 100644 --- a/lib/xero-ruby/models/payroll_au/payslips.rb +++ b/lib/xero-ruby/models/payroll_au/payslips.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -49,6 +49,9 @@ def initialize(attributes = {}) } if attributes.key?(:'payslips') + if (value = attributes[:'payslips']).is_a?(Array) + self.payslips = value + end end end diff --git a/lib/xero-ruby/models/payroll_au/rate_type.rb b/lib/xero-ruby/models/payroll_au/rate_type.rb index cc60302b..57f0b043 100644 --- a/lib/xero-ruby/models/payroll_au/rate_type.rb +++ b/lib/xero-ruby/models/payroll_au/rate_type.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_au/reimbursement_line.rb b/lib/xero-ruby/models/payroll_au/reimbursement_line.rb index 4ddfa62a..83de1570 100644 --- a/lib/xero-ruby/models/payroll_au/reimbursement_line.rb +++ b/lib/xero-ruby/models/payroll_au/reimbursement_line.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_au/reimbursement_lines.rb b/lib/xero-ruby/models/payroll_au/reimbursement_lines.rb index 6c807caf..61afac3a 100644 --- a/lib/xero-ruby/models/payroll_au/reimbursement_lines.rb +++ b/lib/xero-ruby/models/payroll_au/reimbursement_lines.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -50,6 +50,9 @@ def initialize(attributes = {}) } if attributes.key?(:'reimbursement_lines') + if (value = attributes[:'reimbursement_lines']).is_a?(Array) + self.reimbursement_lines = value + end end end diff --git a/lib/xero-ruby/models/payroll_au/reimbursement_type.rb b/lib/xero-ruby/models/payroll_au/reimbursement_type.rb index 65fd056d..f92f5e8e 100644 --- a/lib/xero-ruby/models/payroll_au/reimbursement_type.rb +++ b/lib/xero-ruby/models/payroll_au/reimbursement_type.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_au/residency_status.rb b/lib/xero-ruby/models/payroll_au/residency_status.rb index 95c10085..8b9a0693 100644 --- a/lib/xero-ruby/models/payroll_au/residency_status.rb +++ b/lib/xero-ruby/models/payroll_au/residency_status.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_au/settings.rb b/lib/xero-ruby/models/payroll_au/settings.rb index ad06a685..c2d81507 100644 --- a/lib/xero-ruby/models/payroll_au/settings.rb +++ b/lib/xero-ruby/models/payroll_au/settings.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -59,6 +59,9 @@ def initialize(attributes = {}) } if attributes.key?(:'accounts') + if (value = attributes[:'accounts']).is_a?(Array) + self.accounts = value + end end if attributes.key?(:'tracking_categories') diff --git a/lib/xero-ruby/models/payroll_au/settings_object.rb b/lib/xero-ruby/models/payroll_au/settings_object.rb index 4b17d512..1e1db114 100644 --- a/lib/xero-ruby/models/payroll_au/settings_object.rb +++ b/lib/xero-ruby/models/payroll_au/settings_object.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_au/settings_tracking_categories.rb b/lib/xero-ruby/models/payroll_au/settings_tracking_categories.rb index 6e67f88e..a008b623 100644 --- a/lib/xero-ruby/models/payroll_au/settings_tracking_categories.rb +++ b/lib/xero-ruby/models/payroll_au/settings_tracking_categories.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_au/settings_tracking_categories_employee_groups.rb b/lib/xero-ruby/models/payroll_au/settings_tracking_categories_employee_groups.rb index 2ed39bac..c123448d 100644 --- a/lib/xero-ruby/models/payroll_au/settings_tracking_categories_employee_groups.rb +++ b/lib/xero-ruby/models/payroll_au/settings_tracking_categories_employee_groups.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_au/settings_tracking_categories_timesheet_categories.rb b/lib/xero-ruby/models/payroll_au/settings_tracking_categories_timesheet_categories.rb index 928a5526..dcd14871 100644 --- a/lib/xero-ruby/models/payroll_au/settings_tracking_categories_timesheet_categories.rb +++ b/lib/xero-ruby/models/payroll_au/settings_tracking_categories_timesheet_categories.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_au/state.rb b/lib/xero-ruby/models/payroll_au/state.rb index a2891586..a3b4c065 100644 --- a/lib/xero-ruby/models/payroll_au/state.rb +++ b/lib/xero-ruby/models/payroll_au/state.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_au/super_fund.rb b/lib/xero-ruby/models/payroll_au/super_fund.rb index d98ab707..b65df1ec 100644 --- a/lib/xero-ruby/models/payroll_au/super_fund.rb +++ b/lib/xero-ruby/models/payroll_au/super_fund.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -157,6 +157,9 @@ def initialize(attributes = {}) end if attributes.key?(:'validation_errors') + if (value = attributes[:'validation_errors']).is_a?(Array) + self.validation_errors = value + end end end diff --git a/lib/xero-ruby/models/payroll_au/super_fund_product.rb b/lib/xero-ruby/models/payroll_au/super_fund_product.rb index c834e3c6..12d9e4cf 100644 --- a/lib/xero-ruby/models/payroll_au/super_fund_product.rb +++ b/lib/xero-ruby/models/payroll_au/super_fund_product.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_au/super_fund_products.rb b/lib/xero-ruby/models/payroll_au/super_fund_products.rb index 8837bf86..8c72c4ad 100644 --- a/lib/xero-ruby/models/payroll_au/super_fund_products.rb +++ b/lib/xero-ruby/models/payroll_au/super_fund_products.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -49,6 +49,9 @@ def initialize(attributes = {}) } if attributes.key?(:'super_fund_products') + if (value = attributes[:'super_fund_products']).is_a?(Array) + self.super_fund_products = value + end end end diff --git a/lib/xero-ruby/models/payroll_au/super_fund_type.rb b/lib/xero-ruby/models/payroll_au/super_fund_type.rb index f44ac9a1..50ad43b6 100644 --- a/lib/xero-ruby/models/payroll_au/super_fund_type.rb +++ b/lib/xero-ruby/models/payroll_au/super_fund_type.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_au/super_funds.rb b/lib/xero-ruby/models/payroll_au/super_funds.rb index 3695df0e..9a02ceb4 100644 --- a/lib/xero-ruby/models/payroll_au/super_funds.rb +++ b/lib/xero-ruby/models/payroll_au/super_funds.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -49,6 +49,9 @@ def initialize(attributes = {}) } if attributes.key?(:'super_funds') + if (value = attributes[:'super_funds']).is_a?(Array) + self.super_funds = value + end end end diff --git a/lib/xero-ruby/models/payroll_au/super_line.rb b/lib/xero-ruby/models/payroll_au/super_line.rb index 73ba5d34..dd45b242 100644 --- a/lib/xero-ruby/models/payroll_au/super_line.rb +++ b/lib/xero-ruby/models/payroll_au/super_line.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_au/super_membership.rb b/lib/xero-ruby/models/payroll_au/super_membership.rb index fb51abc8..aa19178e 100644 --- a/lib/xero-ruby/models/payroll_au/super_membership.rb +++ b/lib/xero-ruby/models/payroll_au/super_membership.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_au/superannuation_calculation_type.rb b/lib/xero-ruby/models/payroll_au/superannuation_calculation_type.rb index 4ac5fabb..fca870bb 100644 --- a/lib/xero-ruby/models/payroll_au/superannuation_calculation_type.rb +++ b/lib/xero-ruby/models/payroll_au/superannuation_calculation_type.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_au/superannuation_contribution_type.rb b/lib/xero-ruby/models/payroll_au/superannuation_contribution_type.rb index 983b9431..e1dad732 100644 --- a/lib/xero-ruby/models/payroll_au/superannuation_contribution_type.rb +++ b/lib/xero-ruby/models/payroll_au/superannuation_contribution_type.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_au/superannuation_line.rb b/lib/xero-ruby/models/payroll_au/superannuation_line.rb index e48d46db..8aa90fb6 100644 --- a/lib/xero-ruby/models/payroll_au/superannuation_line.rb +++ b/lib/xero-ruby/models/payroll_au/superannuation_line.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_au/tax_declaration.rb b/lib/xero-ruby/models/payroll_au/tax_declaration.rb index b40aa4c5..f30693fa 100644 --- a/lib/xero-ruby/models/payroll_au/tax_declaration.rb +++ b/lib/xero-ruby/models/payroll_au/tax_declaration.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_au/tax_line.rb b/lib/xero-ruby/models/payroll_au/tax_line.rb index dec03079..2dda2081 100644 --- a/lib/xero-ruby/models/payroll_au/tax_line.rb +++ b/lib/xero-ruby/models/payroll_au/tax_line.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_au/tfn_exemption_type.rb b/lib/xero-ruby/models/payroll_au/tfn_exemption_type.rb index f670470e..deac84e9 100644 --- a/lib/xero-ruby/models/payroll_au/tfn_exemption_type.rb +++ b/lib/xero-ruby/models/payroll_au/tfn_exemption_type.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_au/timesheet.rb b/lib/xero-ruby/models/payroll_au/timesheet.rb index d8c43f4e..73423605 100644 --- a/lib/xero-ruby/models/payroll_au/timesheet.rb +++ b/lib/xero-ruby/models/payroll_au/timesheet.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -113,6 +113,9 @@ def initialize(attributes = {}) end if attributes.key?(:'timesheet_lines') + if (value = attributes[:'timesheet_lines']).is_a?(Array) + self.timesheet_lines = value + end end if attributes.key?(:'updated_date_utc') @@ -120,6 +123,9 @@ def initialize(attributes = {}) end if attributes.key?(:'validation_errors') + if (value = attributes[:'validation_errors']).is_a?(Array) + self.validation_errors = value + end end end diff --git a/lib/xero-ruby/models/payroll_au/timesheet_line.rb b/lib/xero-ruby/models/payroll_au/timesheet_line.rb index 8b447836..484d02cc 100644 --- a/lib/xero-ruby/models/payroll_au/timesheet_line.rb +++ b/lib/xero-ruby/models/payroll_au/timesheet_line.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -72,6 +72,9 @@ def initialize(attributes = {}) end if attributes.key?(:'number_of_units') + if (value = attributes[:'number_of_units']).is_a?(Array) + self.number_of_units = value + end end if attributes.key?(:'updated_date_utc') diff --git a/lib/xero-ruby/models/payroll_au/timesheet_object.rb b/lib/xero-ruby/models/payroll_au/timesheet_object.rb index 43d9b9c4..32a9e348 100644 --- a/lib/xero-ruby/models/payroll_au/timesheet_object.rb +++ b/lib/xero-ruby/models/payroll_au/timesheet_object.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_au/timesheet_status.rb b/lib/xero-ruby/models/payroll_au/timesheet_status.rb index b7f3ab7e..fc327175 100644 --- a/lib/xero-ruby/models/payroll_au/timesheet_status.rb +++ b/lib/xero-ruby/models/payroll_au/timesheet_status.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_au/timesheets.rb b/lib/xero-ruby/models/payroll_au/timesheets.rb index 2c8865b1..63f0ccc3 100644 --- a/lib/xero-ruby/models/payroll_au/timesheets.rb +++ b/lib/xero-ruby/models/payroll_au/timesheets.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -49,6 +49,9 @@ def initialize(attributes = {}) } if attributes.key?(:'timesheets') + if (value = attributes[:'timesheets']).is_a?(Array) + self.timesheets = value + end end end diff --git a/lib/xero-ruby/models/payroll_au/validation_error.rb b/lib/xero-ruby/models/payroll_au/validation_error.rb index 3ae7f803..19dadeed 100644 --- a/lib/xero-ruby/models/payroll_au/validation_error.rb +++ b/lib/xero-ruby/models/payroll_au/validation_error.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_nz/account.rb b/lib/xero-ruby/models/payroll_nz/account.rb index c2208566..faf82d62 100644 --- a/lib/xero-ruby/models/payroll_nz/account.rb +++ b/lib/xero-ruby/models/payroll_nz/account.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_nz/accounts.rb b/lib/xero-ruby/models/payroll_nz/accounts.rb index a89dcbe7..ac94a90a 100644 --- a/lib/xero-ruby/models/payroll_nz/accounts.rb +++ b/lib/xero-ruby/models/payroll_nz/accounts.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -49,6 +49,9 @@ def initialize(attributes = {}) } if attributes.key?(:'accounts') + if (value = attributes[:'accounts']).is_a?(Array) + self.accounts = value + end end end diff --git a/lib/xero-ruby/models/payroll_nz/address.rb b/lib/xero-ruby/models/payroll_nz/address.rb index c8d8c300..c7d4316a 100644 --- a/lib/xero-ruby/models/payroll_nz/address.rb +++ b/lib/xero-ruby/models/payroll_nz/address.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_nz/bank_account.rb b/lib/xero-ruby/models/payroll_nz/bank_account.rb index e3d8d82c..007417c5 100644 --- a/lib/xero-ruby/models/payroll_nz/bank_account.rb +++ b/lib/xero-ruby/models/payroll_nz/bank_account.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_nz/benefit.rb b/lib/xero-ruby/models/payroll_nz/benefit.rb index 5682e550..8e8ca905 100644 --- a/lib/xero-ruby/models/payroll_nz/benefit.rb +++ b/lib/xero-ruby/models/payroll_nz/benefit.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_nz/calendar_type.rb b/lib/xero-ruby/models/payroll_nz/calendar_type.rb index 0f0b2e54..55a48606 100644 --- a/lib/xero-ruby/models/payroll_nz/calendar_type.rb +++ b/lib/xero-ruby/models/payroll_nz/calendar_type.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_nz/deduction.rb b/lib/xero-ruby/models/payroll_nz/deduction.rb index 73409845..d2d91681 100644 --- a/lib/xero-ruby/models/payroll_nz/deduction.rb +++ b/lib/xero-ruby/models/payroll_nz/deduction.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_nz/deduction_line.rb b/lib/xero-ruby/models/payroll_nz/deduction_line.rb index 3124e073..930e00c6 100644 --- a/lib/xero-ruby/models/payroll_nz/deduction_line.rb +++ b/lib/xero-ruby/models/payroll_nz/deduction_line.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_nz/deduction_object.rb b/lib/xero-ruby/models/payroll_nz/deduction_object.rb index 691f8f30..81a50b42 100644 --- a/lib/xero-ruby/models/payroll_nz/deduction_object.rb +++ b/lib/xero-ruby/models/payroll_nz/deduction_object.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_nz/deductions.rb b/lib/xero-ruby/models/payroll_nz/deductions.rb index 73d86a58..77422f94 100644 --- a/lib/xero-ruby/models/payroll_nz/deductions.rb +++ b/lib/xero-ruby/models/payroll_nz/deductions.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -67,6 +67,9 @@ def initialize(attributes = {}) end if attributes.key?(:'deductions') + if (value = attributes[:'deductions']).is_a?(Array) + self.deductions = value + end end end diff --git a/lib/xero-ruby/models/payroll_nz/earnings_line.rb b/lib/xero-ruby/models/payroll_nz/earnings_line.rb index 8769e67e..1183eb0b 100644 --- a/lib/xero-ruby/models/payroll_nz/earnings_line.rb +++ b/lib/xero-ruby/models/payroll_nz/earnings_line.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_nz/earnings_order.rb b/lib/xero-ruby/models/payroll_nz/earnings_order.rb index 28afc446..5fd8a6e4 100644 --- a/lib/xero-ruby/models/payroll_nz/earnings_order.rb +++ b/lib/xero-ruby/models/payroll_nz/earnings_order.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_nz/earnings_order_object.rb b/lib/xero-ruby/models/payroll_nz/earnings_order_object.rb index 26c0dab3..0978c04a 100644 --- a/lib/xero-ruby/models/payroll_nz/earnings_order_object.rb +++ b/lib/xero-ruby/models/payroll_nz/earnings_order_object.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_nz/earnings_orders.rb b/lib/xero-ruby/models/payroll_nz/earnings_orders.rb index d8206ada..46b03f16 100644 --- a/lib/xero-ruby/models/payroll_nz/earnings_orders.rb +++ b/lib/xero-ruby/models/payroll_nz/earnings_orders.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -67,6 +67,9 @@ def initialize(attributes = {}) end if attributes.key?(:'statutory_deductions') + if (value = attributes[:'statutory_deductions']).is_a?(Array) + self.statutory_deductions = value + end end end diff --git a/lib/xero-ruby/models/payroll_nz/earnings_rate.rb b/lib/xero-ruby/models/payroll_nz/earnings_rate.rb index caca7874..70c5eab9 100644 --- a/lib/xero-ruby/models/payroll_nz/earnings_rate.rb +++ b/lib/xero-ruby/models/payroll_nz/earnings_rate.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_nz/earnings_rate_object.rb b/lib/xero-ruby/models/payroll_nz/earnings_rate_object.rb index 78b159de..4a8216a8 100644 --- a/lib/xero-ruby/models/payroll_nz/earnings_rate_object.rb +++ b/lib/xero-ruby/models/payroll_nz/earnings_rate_object.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_nz/earnings_rates.rb b/lib/xero-ruby/models/payroll_nz/earnings_rates.rb index 45a32873..a9750b90 100644 --- a/lib/xero-ruby/models/payroll_nz/earnings_rates.rb +++ b/lib/xero-ruby/models/payroll_nz/earnings_rates.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -67,6 +67,9 @@ def initialize(attributes = {}) end if attributes.key?(:'earnings_rates') + if (value = attributes[:'earnings_rates']).is_a?(Array) + self.earnings_rates = value + end end end diff --git a/lib/xero-ruby/models/payroll_nz/earnings_template.rb b/lib/xero-ruby/models/payroll_nz/earnings_template.rb index 863278f7..f41ee542 100644 --- a/lib/xero-ruby/models/payroll_nz/earnings_template.rb +++ b/lib/xero-ruby/models/payroll_nz/earnings_template.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_nz/earnings_template_object.rb b/lib/xero-ruby/models/payroll_nz/earnings_template_object.rb index 8c536db4..c23d6c50 100644 --- a/lib/xero-ruby/models/payroll_nz/earnings_template_object.rb +++ b/lib/xero-ruby/models/payroll_nz/earnings_template_object.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_nz/employee.rb b/lib/xero-ruby/models/payroll_nz/employee.rb index 520b5db4..3adc2442 100644 --- a/lib/xero-ruby/models/payroll_nz/employee.rb +++ b/lib/xero-ruby/models/payroll_nz/employee.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -117,8 +117,8 @@ def self.openapi_types :'start_date' => :'Date', :'end_date' => :'Date', :'payroll_calendar_id' => :'String', - :'updated_date_utc' => :'Time', - :'created_date_utc' => :'Time' + :'updated_date_utc' => :'DateTime', + :'created_date_utc' => :'DateTime' } end diff --git a/lib/xero-ruby/models/payroll_nz/employee_earnings_templates.rb b/lib/xero-ruby/models/payroll_nz/employee_earnings_templates.rb index 96dbcc23..4cbb330d 100644 --- a/lib/xero-ruby/models/payroll_nz/employee_earnings_templates.rb +++ b/lib/xero-ruby/models/payroll_nz/employee_earnings_templates.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -67,6 +67,9 @@ def initialize(attributes = {}) end if attributes.key?(:'earning_templates') + if (value = attributes[:'earning_templates']).is_a?(Array) + self.earning_templates = value + end end end diff --git a/lib/xero-ruby/models/payroll_nz/employee_leave.rb b/lib/xero-ruby/models/payroll_nz/employee_leave.rb index 96c87e85..58c91929 100644 --- a/lib/xero-ruby/models/payroll_nz/employee_leave.rb +++ b/lib/xero-ruby/models/payroll_nz/employee_leave.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -59,7 +59,7 @@ def self.openapi_types :'start_date' => :'Date', :'end_date' => :'Date', :'periods' => :'Array', - :'updated_date_utc' => :'Time' + :'updated_date_utc' => :'DateTime' } end @@ -99,6 +99,9 @@ def initialize(attributes = {}) end if attributes.key?(:'periods') + if (value = attributes[:'periods']).is_a?(Array) + self.periods = value + end end if attributes.key?(:'updated_date_utc') diff --git a/lib/xero-ruby/models/payroll_nz/employee_leave_balance.rb b/lib/xero-ruby/models/payroll_nz/employee_leave_balance.rb index 627e13a9..5fa9a4a0 100644 --- a/lib/xero-ruby/models/payroll_nz/employee_leave_balance.rb +++ b/lib/xero-ruby/models/payroll_nz/employee_leave_balance.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_nz/employee_leave_balances.rb b/lib/xero-ruby/models/payroll_nz/employee_leave_balances.rb index 1619faec..ffc0cfad 100644 --- a/lib/xero-ruby/models/payroll_nz/employee_leave_balances.rb +++ b/lib/xero-ruby/models/payroll_nz/employee_leave_balances.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -67,6 +67,9 @@ def initialize(attributes = {}) end if attributes.key?(:'leave_balances') + if (value = attributes[:'leave_balances']).is_a?(Array) + self.leave_balances = value + end end end diff --git a/lib/xero-ruby/models/payroll_nz/employee_leave_object.rb b/lib/xero-ruby/models/payroll_nz/employee_leave_object.rb index 6a6cd926..29a93972 100644 --- a/lib/xero-ruby/models/payroll_nz/employee_leave_object.rb +++ b/lib/xero-ruby/models/payroll_nz/employee_leave_object.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_nz/employee_leave_setup.rb b/lib/xero-ruby/models/payroll_nz/employee_leave_setup.rb index 7e69d9d4..4f11d508 100644 --- a/lib/xero-ruby/models/payroll_nz/employee_leave_setup.rb +++ b/lib/xero-ruby/models/payroll_nz/employee_leave_setup.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_nz/employee_leave_setup_object.rb b/lib/xero-ruby/models/payroll_nz/employee_leave_setup_object.rb index d4a0e040..b838afcf 100644 --- a/lib/xero-ruby/models/payroll_nz/employee_leave_setup_object.rb +++ b/lib/xero-ruby/models/payroll_nz/employee_leave_setup_object.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_nz/employee_leave_type.rb b/lib/xero-ruby/models/payroll_nz/employee_leave_type.rb index 1a5343ea..ce73a60d 100644 --- a/lib/xero-ruby/models/payroll_nz/employee_leave_type.rb +++ b/lib/xero-ruby/models/payroll_nz/employee_leave_type.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_nz/employee_leave_type_object.rb b/lib/xero-ruby/models/payroll_nz/employee_leave_type_object.rb index ed309a0e..078ef81c 100644 --- a/lib/xero-ruby/models/payroll_nz/employee_leave_type_object.rb +++ b/lib/xero-ruby/models/payroll_nz/employee_leave_type_object.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_nz/employee_leave_types.rb b/lib/xero-ruby/models/payroll_nz/employee_leave_types.rb index a031fac4..7419346f 100644 --- a/lib/xero-ruby/models/payroll_nz/employee_leave_types.rb +++ b/lib/xero-ruby/models/payroll_nz/employee_leave_types.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -67,6 +67,9 @@ def initialize(attributes = {}) end if attributes.key?(:'leave_types') + if (value = attributes[:'leave_types']).is_a?(Array) + self.leave_types = value + end end end diff --git a/lib/xero-ruby/models/payroll_nz/employee_leaves.rb b/lib/xero-ruby/models/payroll_nz/employee_leaves.rb index 799b63a7..5f868a8e 100644 --- a/lib/xero-ruby/models/payroll_nz/employee_leaves.rb +++ b/lib/xero-ruby/models/payroll_nz/employee_leaves.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -67,6 +67,9 @@ def initialize(attributes = {}) end if attributes.key?(:'leave') + if (value = attributes[:'leave']).is_a?(Array) + self.leave = value + end end end diff --git a/lib/xero-ruby/models/payroll_nz/employee_object.rb b/lib/xero-ruby/models/payroll_nz/employee_object.rb index 8b0d189f..3fa43cda 100644 --- a/lib/xero-ruby/models/payroll_nz/employee_object.rb +++ b/lib/xero-ruby/models/payroll_nz/employee_object.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_nz/employee_opening_balance.rb b/lib/xero-ruby/models/payroll_nz/employee_opening_balance.rb index 8d1ca9a7..a27ea6b6 100644 --- a/lib/xero-ruby/models/payroll_nz/employee_opening_balance.rb +++ b/lib/xero-ruby/models/payroll_nz/employee_opening_balance.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_nz/employee_opening_balances_object.rb b/lib/xero-ruby/models/payroll_nz/employee_opening_balances_object.rb index e0ee0e3e..a1b03caf 100644 --- a/lib/xero-ruby/models/payroll_nz/employee_opening_balances_object.rb +++ b/lib/xero-ruby/models/payroll_nz/employee_opening_balances_object.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -67,6 +67,9 @@ def initialize(attributes = {}) end if attributes.key?(:'opening_balances') + if (value = attributes[:'opening_balances']).is_a?(Array) + self.opening_balances = value + end end end diff --git a/lib/xero-ruby/models/payroll_nz/employee_pay_template.rb b/lib/xero-ruby/models/payroll_nz/employee_pay_template.rb index 5dee34b7..892ab942 100644 --- a/lib/xero-ruby/models/payroll_nz/employee_pay_template.rb +++ b/lib/xero-ruby/models/payroll_nz/employee_pay_template.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -58,6 +58,9 @@ def initialize(attributes = {}) end if attributes.key?(:'earning_templates') + if (value = attributes[:'earning_templates']).is_a?(Array) + self.earning_templates = value + end end end diff --git a/lib/xero-ruby/models/payroll_nz/employee_pay_template_object.rb b/lib/xero-ruby/models/payroll_nz/employee_pay_template_object.rb index e6766242..6d8fe3a8 100644 --- a/lib/xero-ruby/models/payroll_nz/employee_pay_template_object.rb +++ b/lib/xero-ruby/models/payroll_nz/employee_pay_template_object.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_nz/employee_pay_templates.rb b/lib/xero-ruby/models/payroll_nz/employee_pay_templates.rb index 09eacb6d..0dd0c21d 100644 --- a/lib/xero-ruby/models/payroll_nz/employee_pay_templates.rb +++ b/lib/xero-ruby/models/payroll_nz/employee_pay_templates.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_nz/employee_statutory_leave_balance.rb b/lib/xero-ruby/models/payroll_nz/employee_statutory_leave_balance.rb index a347b777..7427f8cd 100644 --- a/lib/xero-ruby/models/payroll_nz/employee_statutory_leave_balance.rb +++ b/lib/xero-ruby/models/payroll_nz/employee_statutory_leave_balance.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_nz/employee_statutory_leave_balance_object.rb b/lib/xero-ruby/models/payroll_nz/employee_statutory_leave_balance_object.rb index d1e50a27..848f372d 100644 --- a/lib/xero-ruby/models/payroll_nz/employee_statutory_leave_balance_object.rb +++ b/lib/xero-ruby/models/payroll_nz/employee_statutory_leave_balance_object.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_nz/employee_statutory_leave_summary.rb b/lib/xero-ruby/models/payroll_nz/employee_statutory_leave_summary.rb index d9e0b6ce..d44c7428 100644 --- a/lib/xero-ruby/models/payroll_nz/employee_statutory_leave_summary.rb +++ b/lib/xero-ruby/models/payroll_nz/employee_statutory_leave_summary.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_nz/employee_statutory_leaves_summaries.rb b/lib/xero-ruby/models/payroll_nz/employee_statutory_leaves_summaries.rb index 109a82b1..80fc7a9e 100644 --- a/lib/xero-ruby/models/payroll_nz/employee_statutory_leaves_summaries.rb +++ b/lib/xero-ruby/models/payroll_nz/employee_statutory_leaves_summaries.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -67,6 +67,9 @@ def initialize(attributes = {}) end if attributes.key?(:'statutory_leaves') + if (value = attributes[:'statutory_leaves']).is_a?(Array) + self.statutory_leaves = value + end end end diff --git a/lib/xero-ruby/models/payroll_nz/employee_statutory_sick_leave.rb b/lib/xero-ruby/models/payroll_nz/employee_statutory_sick_leave.rb index 1e5c2cd6..f1992f18 100644 --- a/lib/xero-ruby/models/payroll_nz/employee_statutory_sick_leave.rb +++ b/lib/xero-ruby/models/payroll_nz/employee_statutory_sick_leave.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -174,6 +174,9 @@ def initialize(attributes = {}) end if attributes.key?(:'work_pattern') + if (value = attributes[:'work_pattern']).is_a?(Array) + self.work_pattern = value + end end if attributes.key?(:'is_pregnancy_related') @@ -205,6 +208,9 @@ def initialize(attributes = {}) end if attributes.key?(:'entitlement_failure_reasons') + if (value = attributes[:'entitlement_failure_reasons']).is_a?(Array) + self.entitlement_failure_reasons = value + end end end diff --git a/lib/xero-ruby/models/payroll_nz/employee_statutory_sick_leave_object.rb b/lib/xero-ruby/models/payroll_nz/employee_statutory_sick_leave_object.rb index 4d61b123..73db087d 100644 --- a/lib/xero-ruby/models/payroll_nz/employee_statutory_sick_leave_object.rb +++ b/lib/xero-ruby/models/payroll_nz/employee_statutory_sick_leave_object.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_nz/employee_statutory_sick_leaves.rb b/lib/xero-ruby/models/payroll_nz/employee_statutory_sick_leaves.rb index 88ffa77b..5409ea13 100644 --- a/lib/xero-ruby/models/payroll_nz/employee_statutory_sick_leaves.rb +++ b/lib/xero-ruby/models/payroll_nz/employee_statutory_sick_leaves.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -67,6 +67,9 @@ def initialize(attributes = {}) end if attributes.key?(:'statutory_sick_leave') + if (value = attributes[:'statutory_sick_leave']).is_a?(Array) + self.statutory_sick_leave = value + end end end diff --git a/lib/xero-ruby/models/payroll_nz/employee_tax.rb b/lib/xero-ruby/models/payroll_nz/employee_tax.rb index d89b65ad..595f192f 100644 --- a/lib/xero-ruby/models/payroll_nz/employee_tax.rb +++ b/lib/xero-ruby/models/payroll_nz/employee_tax.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_nz/employee_tax_object.rb b/lib/xero-ruby/models/payroll_nz/employee_tax_object.rb index f7e64aba..ce400da3 100644 --- a/lib/xero-ruby/models/payroll_nz/employee_tax_object.rb +++ b/lib/xero-ruby/models/payroll_nz/employee_tax_object.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_nz/employees.rb b/lib/xero-ruby/models/payroll_nz/employees.rb index 3b340045..bad85da6 100644 --- a/lib/xero-ruby/models/payroll_nz/employees.rb +++ b/lib/xero-ruby/models/payroll_nz/employees.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -67,6 +67,9 @@ def initialize(attributes = {}) end if attributes.key?(:'employees') + if (value = attributes[:'employees']).is_a?(Array) + self.employees = value + end end end diff --git a/lib/xero-ruby/models/payroll_nz/employment.rb b/lib/xero-ruby/models/payroll_nz/employment.rb index dbae190f..f0cf7fce 100644 --- a/lib/xero-ruby/models/payroll_nz/employment.rb +++ b/lib/xero-ruby/models/payroll_nz/employment.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_nz/employment_object.rb b/lib/xero-ruby/models/payroll_nz/employment_object.rb index 9fe0c61a..86a2eb87 100644 --- a/lib/xero-ruby/models/payroll_nz/employment_object.rb +++ b/lib/xero-ruby/models/payroll_nz/employment_object.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_nz/gross_earnings_history.rb b/lib/xero-ruby/models/payroll_nz/gross_earnings_history.rb index b64b121d..2ccf75ab 100644 --- a/lib/xero-ruby/models/payroll_nz/gross_earnings_history.rb +++ b/lib/xero-ruby/models/payroll_nz/gross_earnings_history.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_nz/invalid_field.rb b/lib/xero-ruby/models/payroll_nz/invalid_field.rb index b81bedc0..c8383e68 100644 --- a/lib/xero-ruby/models/payroll_nz/invalid_field.rb +++ b/lib/xero-ruby/models/payroll_nz/invalid_field.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_nz/leave_accrual_line.rb b/lib/xero-ruby/models/payroll_nz/leave_accrual_line.rb index 96c0a3f6..c6298b58 100644 --- a/lib/xero-ruby/models/payroll_nz/leave_accrual_line.rb +++ b/lib/xero-ruby/models/payroll_nz/leave_accrual_line.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_nz/leave_earnings_line.rb b/lib/xero-ruby/models/payroll_nz/leave_earnings_line.rb index f6336b22..4a4a79c9 100644 --- a/lib/xero-ruby/models/payroll_nz/leave_earnings_line.rb +++ b/lib/xero-ruby/models/payroll_nz/leave_earnings_line.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_nz/leave_period.rb b/lib/xero-ruby/models/payroll_nz/leave_period.rb index bb75aa1a..0fad5ba1 100644 --- a/lib/xero-ruby/models/payroll_nz/leave_period.rb +++ b/lib/xero-ruby/models/payroll_nz/leave_period.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_nz/leave_periods.rb b/lib/xero-ruby/models/payroll_nz/leave_periods.rb index d085c3ad..4b64cb4b 100644 --- a/lib/xero-ruby/models/payroll_nz/leave_periods.rb +++ b/lib/xero-ruby/models/payroll_nz/leave_periods.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -67,6 +67,9 @@ def initialize(attributes = {}) end if attributes.key?(:'periods') + if (value = attributes[:'periods']).is_a?(Array) + self.periods = value + end end end diff --git a/lib/xero-ruby/models/payroll_nz/leave_type.rb b/lib/xero-ruby/models/payroll_nz/leave_type.rb index 640f3bd7..58be8e22 100644 --- a/lib/xero-ruby/models/payroll_nz/leave_type.rb +++ b/lib/xero-ruby/models/payroll_nz/leave_type.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -53,7 +53,7 @@ def self.openapi_types :'name' => :'String', :'is_paid_leave' => :'Boolean', :'show_on_payslip' => :'Boolean', - :'updated_date_utc' => :'Time', + :'updated_date_utc' => :'DateTime', :'is_active' => :'Boolean' } end diff --git a/lib/xero-ruby/models/payroll_nz/leave_type_object.rb b/lib/xero-ruby/models/payroll_nz/leave_type_object.rb index b3b34fd2..25aee9d3 100644 --- a/lib/xero-ruby/models/payroll_nz/leave_type_object.rb +++ b/lib/xero-ruby/models/payroll_nz/leave_type_object.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_nz/leave_types.rb b/lib/xero-ruby/models/payroll_nz/leave_types.rb index 41d57a0d..7987bb6a 100644 --- a/lib/xero-ruby/models/payroll_nz/leave_types.rb +++ b/lib/xero-ruby/models/payroll_nz/leave_types.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -67,6 +67,9 @@ def initialize(attributes = {}) end if attributes.key?(:'leave_types') + if (value = attributes[:'leave_types']).is_a?(Array) + self.leave_types = value + end end end diff --git a/lib/xero-ruby/models/payroll_nz/pagination.rb b/lib/xero-ruby/models/payroll_nz/pagination.rb index 54771617..1564c8c5 100644 --- a/lib/xero-ruby/models/payroll_nz/pagination.rb +++ b/lib/xero-ruby/models/payroll_nz/pagination.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_nz/pay_run.rb b/lib/xero-ruby/models/payroll_nz/pay_run.rb index ba1b8d77..c9ce6c2b 100644 --- a/lib/xero-ruby/models/payroll_nz/pay_run.rb +++ b/lib/xero-ruby/models/payroll_nz/pay_run.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -175,6 +175,9 @@ def initialize(attributes = {}) end if attributes.key?(:'pay_slips') + if (value = attributes[:'pay_slips']).is_a?(Array) + self.pay_slips = value + end end end diff --git a/lib/xero-ruby/models/payroll_nz/pay_run_calendar.rb b/lib/xero-ruby/models/payroll_nz/pay_run_calendar.rb index 755a6d20..6ff5d31f 100644 --- a/lib/xero-ruby/models/payroll_nz/pay_run_calendar.rb +++ b/lib/xero-ruby/models/payroll_nz/pay_run_calendar.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -59,7 +59,7 @@ def self.openapi_types :'period_start_date' => :'Date', :'period_end_date' => :'Date', :'payment_date' => :'Date', - :'updated_date_utc' => :'Time' + :'updated_date_utc' => :'DateTime' } end diff --git a/lib/xero-ruby/models/payroll_nz/pay_run_calendar_object.rb b/lib/xero-ruby/models/payroll_nz/pay_run_calendar_object.rb index 5c48fd3c..d46ba16f 100644 --- a/lib/xero-ruby/models/payroll_nz/pay_run_calendar_object.rb +++ b/lib/xero-ruby/models/payroll_nz/pay_run_calendar_object.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_nz/pay_run_calendars.rb b/lib/xero-ruby/models/payroll_nz/pay_run_calendars.rb index dc81e00f..3473f337 100644 --- a/lib/xero-ruby/models/payroll_nz/pay_run_calendars.rb +++ b/lib/xero-ruby/models/payroll_nz/pay_run_calendars.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -67,6 +67,9 @@ def initialize(attributes = {}) end if attributes.key?(:'pay_run_calendars') + if (value = attributes[:'pay_run_calendars']).is_a?(Array) + self.pay_run_calendars = value + end end end diff --git a/lib/xero-ruby/models/payroll_nz/pay_run_object.rb b/lib/xero-ruby/models/payroll_nz/pay_run_object.rb index 1cf06ae5..45e45369 100644 --- a/lib/xero-ruby/models/payroll_nz/pay_run_object.rb +++ b/lib/xero-ruby/models/payroll_nz/pay_run_object.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_nz/pay_runs.rb b/lib/xero-ruby/models/payroll_nz/pay_runs.rb index c952ec5b..65da1d03 100644 --- a/lib/xero-ruby/models/payroll_nz/pay_runs.rb +++ b/lib/xero-ruby/models/payroll_nz/pay_runs.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -67,6 +67,9 @@ def initialize(attributes = {}) end if attributes.key?(:'pay_runs') + if (value = attributes[:'pay_runs']).is_a?(Array) + self.pay_runs = value + end end end diff --git a/lib/xero-ruby/models/payroll_nz/pay_slip.rb b/lib/xero-ruby/models/payroll_nz/pay_slip.rb index 9d013252..6deeeb6c 100644 --- a/lib/xero-ruby/models/payroll_nz/pay_slip.rb +++ b/lib/xero-ruby/models/payroll_nz/pay_slip.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -287,36 +287,69 @@ def initialize(attributes = {}) end if attributes.key?(:'earnings_lines') + if (value = attributes[:'earnings_lines']).is_a?(Array) + self.earnings_lines = value + end end if attributes.key?(:'leave_earnings_lines') + if (value = attributes[:'leave_earnings_lines']).is_a?(Array) + self.leave_earnings_lines = value + end end if attributes.key?(:'timesheet_earnings_lines') + if (value = attributes[:'timesheet_earnings_lines']).is_a?(Array) + self.timesheet_earnings_lines = value + end end if attributes.key?(:'deduction_lines') + if (value = attributes[:'deduction_lines']).is_a?(Array) + self.deduction_lines = value + end end if attributes.key?(:'reimbursement_lines') + if (value = attributes[:'reimbursement_lines']).is_a?(Array) + self.reimbursement_lines = value + end end if attributes.key?(:'leave_accrual_lines') + if (value = attributes[:'leave_accrual_lines']).is_a?(Array) + self.leave_accrual_lines = value + end end if attributes.key?(:'superannuation_lines') + if (value = attributes[:'superannuation_lines']).is_a?(Array) + self.superannuation_lines = value + end end if attributes.key?(:'payment_lines') + if (value = attributes[:'payment_lines']).is_a?(Array) + self.payment_lines = value + end end if attributes.key?(:'employee_tax_lines') + if (value = attributes[:'employee_tax_lines']).is_a?(Array) + self.employee_tax_lines = value + end end if attributes.key?(:'employer_tax_lines') + if (value = attributes[:'employer_tax_lines']).is_a?(Array) + self.employer_tax_lines = value + end end if attributes.key?(:'statutory_deduction_lines') + if (value = attributes[:'statutory_deduction_lines']).is_a?(Array) + self.statutory_deduction_lines = value + end end if attributes.key?(:'tax_settings') diff --git a/lib/xero-ruby/models/payroll_nz/pay_slip_object.rb b/lib/xero-ruby/models/payroll_nz/pay_slip_object.rb index d2f3480b..e11dc770 100644 --- a/lib/xero-ruby/models/payroll_nz/pay_slip_object.rb +++ b/lib/xero-ruby/models/payroll_nz/pay_slip_object.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_nz/pay_slips.rb b/lib/xero-ruby/models/payroll_nz/pay_slips.rb index 4b92ee64..88345f42 100644 --- a/lib/xero-ruby/models/payroll_nz/pay_slips.rb +++ b/lib/xero-ruby/models/payroll_nz/pay_slips.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -67,6 +67,9 @@ def initialize(attributes = {}) end if attributes.key?(:'pay_slips') + if (value = attributes[:'pay_slips']).is_a?(Array) + self.pay_slips = value + end end end diff --git a/lib/xero-ruby/models/payroll_nz/payment_line.rb b/lib/xero-ruby/models/payroll_nz/payment_line.rb index 08a8d4a6..3626dbb3 100644 --- a/lib/xero-ruby/models/payroll_nz/payment_line.rb +++ b/lib/xero-ruby/models/payroll_nz/payment_line.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_nz/payment_method.rb b/lib/xero-ruby/models/payroll_nz/payment_method.rb index 8023f695..a58edc5f 100644 --- a/lib/xero-ruby/models/payroll_nz/payment_method.rb +++ b/lib/xero-ruby/models/payroll_nz/payment_method.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -83,6 +83,9 @@ def initialize(attributes = {}) end if attributes.key?(:'bank_accounts') + if (value = attributes[:'bank_accounts']).is_a?(Array) + self.bank_accounts = value + end end end diff --git a/lib/xero-ruby/models/payroll_nz/payment_method_object.rb b/lib/xero-ruby/models/payroll_nz/payment_method_object.rb index adf333c1..8ea7ceef 100644 --- a/lib/xero-ruby/models/payroll_nz/payment_method_object.rb +++ b/lib/xero-ruby/models/payroll_nz/payment_method_object.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_nz/problem.rb b/lib/xero-ruby/models/payroll_nz/problem.rb index d0d5e897..0037a187 100644 --- a/lib/xero-ruby/models/payroll_nz/problem.rb +++ b/lib/xero-ruby/models/payroll_nz/problem.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -95,6 +95,9 @@ def initialize(attributes = {}) end if attributes.key?(:'invalid_fields') + if (value = attributes[:'invalid_fields']).is_a?(Array) + self.invalid_fields = value + end end end diff --git a/lib/xero-ruby/models/payroll_nz/reimbursement.rb b/lib/xero-ruby/models/payroll_nz/reimbursement.rb index 30270fba..60354b2b 100644 --- a/lib/xero-ruby/models/payroll_nz/reimbursement.rb +++ b/lib/xero-ruby/models/payroll_nz/reimbursement.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_nz/reimbursement_line.rb b/lib/xero-ruby/models/payroll_nz/reimbursement_line.rb index 4b2d93a8..01719289 100644 --- a/lib/xero-ruby/models/payroll_nz/reimbursement_line.rb +++ b/lib/xero-ruby/models/payroll_nz/reimbursement_line.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_nz/reimbursement_object.rb b/lib/xero-ruby/models/payroll_nz/reimbursement_object.rb index a6a491e5..49bdf006 100644 --- a/lib/xero-ruby/models/payroll_nz/reimbursement_object.rb +++ b/lib/xero-ruby/models/payroll_nz/reimbursement_object.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_nz/reimbursements.rb b/lib/xero-ruby/models/payroll_nz/reimbursements.rb index 7806a6b5..a4514b56 100644 --- a/lib/xero-ruby/models/payroll_nz/reimbursements.rb +++ b/lib/xero-ruby/models/payroll_nz/reimbursements.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -67,6 +67,9 @@ def initialize(attributes = {}) end if attributes.key?(:'reimbursements') + if (value = attributes[:'reimbursements']).is_a?(Array) + self.reimbursements = value + end end end diff --git a/lib/xero-ruby/models/payroll_nz/salary_and_wage.rb b/lib/xero-ruby/models/payroll_nz/salary_and_wage.rb index ca4a0bb1..f38f52ee 100644 --- a/lib/xero-ruby/models/payroll_nz/salary_and_wage.rb +++ b/lib/xero-ruby/models/payroll_nz/salary_and_wage.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_nz/salary_and_wage_object.rb b/lib/xero-ruby/models/payroll_nz/salary_and_wage_object.rb index 51080811..15d7b0b3 100644 --- a/lib/xero-ruby/models/payroll_nz/salary_and_wage_object.rb +++ b/lib/xero-ruby/models/payroll_nz/salary_and_wage_object.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_nz/salary_and_wages.rb b/lib/xero-ruby/models/payroll_nz/salary_and_wages.rb index 432f22cf..75bebe51 100644 --- a/lib/xero-ruby/models/payroll_nz/salary_and_wages.rb +++ b/lib/xero-ruby/models/payroll_nz/salary_and_wages.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -67,6 +67,9 @@ def initialize(attributes = {}) end if attributes.key?(:'salary_and_wages') + if (value = attributes[:'salary_and_wages']).is_a?(Array) + self.salary_and_wages = value + end end end diff --git a/lib/xero-ruby/models/payroll_nz/settings.rb b/lib/xero-ruby/models/payroll_nz/settings.rb index 982978ed..08a50f0f 100644 --- a/lib/xero-ruby/models/payroll_nz/settings.rb +++ b/lib/xero-ruby/models/payroll_nz/settings.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_nz/statutory_deduction.rb b/lib/xero-ruby/models/payroll_nz/statutory_deduction.rb index 2ce67934..50dbb155 100644 --- a/lib/xero-ruby/models/payroll_nz/statutory_deduction.rb +++ b/lib/xero-ruby/models/payroll_nz/statutory_deduction.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_nz/statutory_deduction_category.rb b/lib/xero-ruby/models/payroll_nz/statutory_deduction_category.rb index 57ded741..a0404f4d 100644 --- a/lib/xero-ruby/models/payroll_nz/statutory_deduction_category.rb +++ b/lib/xero-ruby/models/payroll_nz/statutory_deduction_category.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_nz/statutory_deduction_line.rb b/lib/xero-ruby/models/payroll_nz/statutory_deduction_line.rb index 683196f8..7684c440 100644 --- a/lib/xero-ruby/models/payroll_nz/statutory_deduction_line.rb +++ b/lib/xero-ruby/models/payroll_nz/statutory_deduction_line.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_nz/statutory_deduction_object.rb b/lib/xero-ruby/models/payroll_nz/statutory_deduction_object.rb index e80f548a..cc4b8f53 100644 --- a/lib/xero-ruby/models/payroll_nz/statutory_deduction_object.rb +++ b/lib/xero-ruby/models/payroll_nz/statutory_deduction_object.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_nz/statutory_deductions.rb b/lib/xero-ruby/models/payroll_nz/statutory_deductions.rb index b75679be..4443ed0a 100644 --- a/lib/xero-ruby/models/payroll_nz/statutory_deductions.rb +++ b/lib/xero-ruby/models/payroll_nz/statutory_deductions.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -67,6 +67,9 @@ def initialize(attributes = {}) end if attributes.key?(:'statutory_deductions') + if (value = attributes[:'statutory_deductions']).is_a?(Array) + self.statutory_deductions = value + end end end diff --git a/lib/xero-ruby/models/payroll_nz/superannuation_line.rb b/lib/xero-ruby/models/payroll_nz/superannuation_line.rb index b57eca11..675168b8 100644 --- a/lib/xero-ruby/models/payroll_nz/superannuation_line.rb +++ b/lib/xero-ruby/models/payroll_nz/superannuation_line.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_nz/superannuation_object.rb b/lib/xero-ruby/models/payroll_nz/superannuation_object.rb index 5624998d..7984740f 100644 --- a/lib/xero-ruby/models/payroll_nz/superannuation_object.rb +++ b/lib/xero-ruby/models/payroll_nz/superannuation_object.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_nz/superannuations.rb b/lib/xero-ruby/models/payroll_nz/superannuations.rb index 4823386d..d2348b44 100644 --- a/lib/xero-ruby/models/payroll_nz/superannuations.rb +++ b/lib/xero-ruby/models/payroll_nz/superannuations.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -67,6 +67,9 @@ def initialize(attributes = {}) end if attributes.key?(:'benefits') + if (value = attributes[:'benefits']).is_a?(Array) + self.benefits = value + end end end diff --git a/lib/xero-ruby/models/payroll_nz/tax_code.rb b/lib/xero-ruby/models/payroll_nz/tax_code.rb index 9bb7f0f9..10016f0a 100644 --- a/lib/xero-ruby/models/payroll_nz/tax_code.rb +++ b/lib/xero-ruby/models/payroll_nz/tax_code.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_nz/tax_line.rb b/lib/xero-ruby/models/payroll_nz/tax_line.rb index d1d61831..2c4f6661 100644 --- a/lib/xero-ruby/models/payroll_nz/tax_line.rb +++ b/lib/xero-ruby/models/payroll_nz/tax_line.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_nz/tax_settings.rb b/lib/xero-ruby/models/payroll_nz/tax_settings.rb index 081a535d..2f0c59a1 100644 --- a/lib/xero-ruby/models/payroll_nz/tax_settings.rb +++ b/lib/xero-ruby/models/payroll_nz/tax_settings.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_nz/timesheet.rb b/lib/xero-ruby/models/payroll_nz/timesheet.rb index 811dd10d..8031882f 100644 --- a/lib/xero-ruby/models/payroll_nz/timesheet.rb +++ b/lib/xero-ruby/models/payroll_nz/timesheet.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -94,7 +94,7 @@ def self.openapi_types :'end_date' => :'Date', :'status' => :'String', :'total_hours' => :'BigDecimal', - :'updated_date_utc' => :'Time', + :'updated_date_utc' => :'DateTime', :'timesheet_lines' => :'Array' } end @@ -147,6 +147,9 @@ def initialize(attributes = {}) end if attributes.key?(:'timesheet_lines') + if (value = attributes[:'timesheet_lines']).is_a?(Array) + self.timesheet_lines = value + end end end diff --git a/lib/xero-ruby/models/payroll_nz/timesheet_earnings_line.rb b/lib/xero-ruby/models/payroll_nz/timesheet_earnings_line.rb index 0399f1d0..a0b97f55 100644 --- a/lib/xero-ruby/models/payroll_nz/timesheet_earnings_line.rb +++ b/lib/xero-ruby/models/payroll_nz/timesheet_earnings_line.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_nz/timesheet_line.rb b/lib/xero-ruby/models/payroll_nz/timesheet_line.rb index b856bd24..f9a2bafa 100644 --- a/lib/xero-ruby/models/payroll_nz/timesheet_line.rb +++ b/lib/xero-ruby/models/payroll_nz/timesheet_line.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_nz/timesheet_line_object.rb b/lib/xero-ruby/models/payroll_nz/timesheet_line_object.rb index 9e68757c..d179b771 100644 --- a/lib/xero-ruby/models/payroll_nz/timesheet_line_object.rb +++ b/lib/xero-ruby/models/payroll_nz/timesheet_line_object.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_nz/timesheet_object.rb b/lib/xero-ruby/models/payroll_nz/timesheet_object.rb index 92d6a6c4..5ffce467 100644 --- a/lib/xero-ruby/models/payroll_nz/timesheet_object.rb +++ b/lib/xero-ruby/models/payroll_nz/timesheet_object.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_nz/timesheets.rb b/lib/xero-ruby/models/payroll_nz/timesheets.rb index 0514f65e..bf9f39fb 100644 --- a/lib/xero-ruby/models/payroll_nz/timesheets.rb +++ b/lib/xero-ruby/models/payroll_nz/timesheets.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -67,6 +67,9 @@ def initialize(attributes = {}) end if attributes.key?(:'timesheets') + if (value = attributes[:'timesheets']).is_a?(Array) + self.timesheets = value + end end end diff --git a/lib/xero-ruby/models/payroll_nz/tracking_categories.rb b/lib/xero-ruby/models/payroll_nz/tracking_categories.rb index d666bd72..35cc68f1 100644 --- a/lib/xero-ruby/models/payroll_nz/tracking_categories.rb +++ b/lib/xero-ruby/models/payroll_nz/tracking_categories.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_nz/tracking_category.rb b/lib/xero-ruby/models/payroll_nz/tracking_category.rb index 5d23f1b3..21650b00 100644 --- a/lib/xero-ruby/models/payroll_nz/tracking_category.rb +++ b/lib/xero-ruby/models/payroll_nz/tracking_category.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_uk/account.rb b/lib/xero-ruby/models/payroll_uk/account.rb index 8b3be354..14dafb68 100644 --- a/lib/xero-ruby/models/payroll_uk/account.rb +++ b/lib/xero-ruby/models/payroll_uk/account.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_uk/accounts.rb b/lib/xero-ruby/models/payroll_uk/accounts.rb index ac3b5554..bb4b5aba 100644 --- a/lib/xero-ruby/models/payroll_uk/accounts.rb +++ b/lib/xero-ruby/models/payroll_uk/accounts.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -49,6 +49,9 @@ def initialize(attributes = {}) } if attributes.key?(:'accounts') + if (value = attributes[:'accounts']).is_a?(Array) + self.accounts = value + end end end diff --git a/lib/xero-ruby/models/payroll_uk/address.rb b/lib/xero-ruby/models/payroll_uk/address.rb index 2eda48ec..de8fe854 100644 --- a/lib/xero-ruby/models/payroll_uk/address.rb +++ b/lib/xero-ruby/models/payroll_uk/address.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_uk/bank_account.rb b/lib/xero-ruby/models/payroll_uk/bank_account.rb index 4cbcd83f..7531fd3a 100644 --- a/lib/xero-ruby/models/payroll_uk/bank_account.rb +++ b/lib/xero-ruby/models/payroll_uk/bank_account.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_uk/benefit.rb b/lib/xero-ruby/models/payroll_uk/benefit.rb index f86de5a3..0fa290a0 100644 --- a/lib/xero-ruby/models/payroll_uk/benefit.rb +++ b/lib/xero-ruby/models/payroll_uk/benefit.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_uk/benefit_line.rb b/lib/xero-ruby/models/payroll_uk/benefit_line.rb index 263412ce..b2c56613 100644 --- a/lib/xero-ruby/models/payroll_uk/benefit_line.rb +++ b/lib/xero-ruby/models/payroll_uk/benefit_line.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_uk/benefit_object.rb b/lib/xero-ruby/models/payroll_uk/benefit_object.rb index 8eca09e6..fac01cf8 100644 --- a/lib/xero-ruby/models/payroll_uk/benefit_object.rb +++ b/lib/xero-ruby/models/payroll_uk/benefit_object.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_uk/benefits.rb b/lib/xero-ruby/models/payroll_uk/benefits.rb index d4bb8088..f0bf249c 100644 --- a/lib/xero-ruby/models/payroll_uk/benefits.rb +++ b/lib/xero-ruby/models/payroll_uk/benefits.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -67,6 +67,9 @@ def initialize(attributes = {}) end if attributes.key?(:'benefits') + if (value = attributes[:'benefits']).is_a?(Array) + self.benefits = value + end end end diff --git a/lib/xero-ruby/models/payroll_uk/court_order_line.rb b/lib/xero-ruby/models/payroll_uk/court_order_line.rb index 58a19f01..847dc469 100644 --- a/lib/xero-ruby/models/payroll_uk/court_order_line.rb +++ b/lib/xero-ruby/models/payroll_uk/court_order_line.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_uk/deduction.rb b/lib/xero-ruby/models/payroll_uk/deduction.rb index 51dafc9e..3314c808 100644 --- a/lib/xero-ruby/models/payroll_uk/deduction.rb +++ b/lib/xero-ruby/models/payroll_uk/deduction.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_uk/deduction_line.rb b/lib/xero-ruby/models/payroll_uk/deduction_line.rb index 9b1c1b9a..5655df0b 100644 --- a/lib/xero-ruby/models/payroll_uk/deduction_line.rb +++ b/lib/xero-ruby/models/payroll_uk/deduction_line.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_uk/deduction_object.rb b/lib/xero-ruby/models/payroll_uk/deduction_object.rb index 5ec7c92c..c7affc6e 100644 --- a/lib/xero-ruby/models/payroll_uk/deduction_object.rb +++ b/lib/xero-ruby/models/payroll_uk/deduction_object.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_uk/deductions.rb b/lib/xero-ruby/models/payroll_uk/deductions.rb index af18c7b7..c70561ab 100644 --- a/lib/xero-ruby/models/payroll_uk/deductions.rb +++ b/lib/xero-ruby/models/payroll_uk/deductions.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -67,6 +67,9 @@ def initialize(attributes = {}) end if attributes.key?(:'deductions') + if (value = attributes[:'deductions']).is_a?(Array) + self.deductions = value + end end end diff --git a/lib/xero-ruby/models/payroll_uk/earnings_line.rb b/lib/xero-ruby/models/payroll_uk/earnings_line.rb index bef97476..cdf52f3f 100644 --- a/lib/xero-ruby/models/payroll_uk/earnings_line.rb +++ b/lib/xero-ruby/models/payroll_uk/earnings_line.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_uk/earnings_order.rb b/lib/xero-ruby/models/payroll_uk/earnings_order.rb index fb24ee55..d29cb38a 100644 --- a/lib/xero-ruby/models/payroll_uk/earnings_order.rb +++ b/lib/xero-ruby/models/payroll_uk/earnings_order.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_uk/earnings_order_object.rb b/lib/xero-ruby/models/payroll_uk/earnings_order_object.rb index edbd2443..bc1e8d65 100644 --- a/lib/xero-ruby/models/payroll_uk/earnings_order_object.rb +++ b/lib/xero-ruby/models/payroll_uk/earnings_order_object.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_uk/earnings_orders.rb b/lib/xero-ruby/models/payroll_uk/earnings_orders.rb index 79446cb7..ce53c2be 100644 --- a/lib/xero-ruby/models/payroll_uk/earnings_orders.rb +++ b/lib/xero-ruby/models/payroll_uk/earnings_orders.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -67,6 +67,9 @@ def initialize(attributes = {}) end if attributes.key?(:'statutory_deductions') + if (value = attributes[:'statutory_deductions']).is_a?(Array) + self.statutory_deductions = value + end end end diff --git a/lib/xero-ruby/models/payroll_uk/earnings_rate.rb b/lib/xero-ruby/models/payroll_uk/earnings_rate.rb index 9c7cc8cb..41a64cd0 100644 --- a/lib/xero-ruby/models/payroll_uk/earnings_rate.rb +++ b/lib/xero-ruby/models/payroll_uk/earnings_rate.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_uk/earnings_rate_object.rb b/lib/xero-ruby/models/payroll_uk/earnings_rate_object.rb index 5d7abcdb..f2785df7 100644 --- a/lib/xero-ruby/models/payroll_uk/earnings_rate_object.rb +++ b/lib/xero-ruby/models/payroll_uk/earnings_rate_object.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_uk/earnings_rates.rb b/lib/xero-ruby/models/payroll_uk/earnings_rates.rb index 7a63afff..77ced186 100644 --- a/lib/xero-ruby/models/payroll_uk/earnings_rates.rb +++ b/lib/xero-ruby/models/payroll_uk/earnings_rates.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -67,6 +67,9 @@ def initialize(attributes = {}) end if attributes.key?(:'earnings_rates') + if (value = attributes[:'earnings_rates']).is_a?(Array) + self.earnings_rates = value + end end end diff --git a/lib/xero-ruby/models/payroll_uk/earnings_template.rb b/lib/xero-ruby/models/payroll_uk/earnings_template.rb index d12594f8..9dded667 100644 --- a/lib/xero-ruby/models/payroll_uk/earnings_template.rb +++ b/lib/xero-ruby/models/payroll_uk/earnings_template.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_uk/earnings_template_object.rb b/lib/xero-ruby/models/payroll_uk/earnings_template_object.rb index 6721c906..08054588 100644 --- a/lib/xero-ruby/models/payroll_uk/earnings_template_object.rb +++ b/lib/xero-ruby/models/payroll_uk/earnings_template_object.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_uk/employee.rb b/lib/xero-ruby/models/payroll_uk/employee.rb index a5baf005..614e9358 100644 --- a/lib/xero-ruby/models/payroll_uk/employee.rb +++ b/lib/xero-ruby/models/payroll_uk/employee.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -125,8 +125,8 @@ def self.openapi_types :'start_date' => :'Date', :'end_date' => :'Date', :'payroll_calendar_id' => :'String', - :'updated_date_utc' => :'Time', - :'created_date_utc' => :'Time', + :'updated_date_utc' => :'DateTime', + :'created_date_utc' => :'DateTime', :'national_insurance_number' => :'String', :'is_off_payroll_worker' => :'Boolean' } diff --git a/lib/xero-ruby/models/payroll_uk/employee_leave.rb b/lib/xero-ruby/models/payroll_uk/employee_leave.rb index ee49bb07..f790594a 100644 --- a/lib/xero-ruby/models/payroll_uk/employee_leave.rb +++ b/lib/xero-ruby/models/payroll_uk/employee_leave.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -59,7 +59,7 @@ def self.openapi_types :'start_date' => :'Date', :'end_date' => :'Date', :'periods' => :'Array', - :'updated_date_utc' => :'Time' + :'updated_date_utc' => :'DateTime' } end @@ -99,6 +99,9 @@ def initialize(attributes = {}) end if attributes.key?(:'periods') + if (value = attributes[:'periods']).is_a?(Array) + self.periods = value + end end if attributes.key?(:'updated_date_utc') diff --git a/lib/xero-ruby/models/payroll_uk/employee_leave_balance.rb b/lib/xero-ruby/models/payroll_uk/employee_leave_balance.rb index 84ff3236..580dd862 100644 --- a/lib/xero-ruby/models/payroll_uk/employee_leave_balance.rb +++ b/lib/xero-ruby/models/payroll_uk/employee_leave_balance.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_uk/employee_leave_balances.rb b/lib/xero-ruby/models/payroll_uk/employee_leave_balances.rb index 3541e342..b1d4064b 100644 --- a/lib/xero-ruby/models/payroll_uk/employee_leave_balances.rb +++ b/lib/xero-ruby/models/payroll_uk/employee_leave_balances.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -67,6 +67,9 @@ def initialize(attributes = {}) end if attributes.key?(:'leave_balances') + if (value = attributes[:'leave_balances']).is_a?(Array) + self.leave_balances = value + end end end diff --git a/lib/xero-ruby/models/payroll_uk/employee_leave_object.rb b/lib/xero-ruby/models/payroll_uk/employee_leave_object.rb index 67069196..77ae5f86 100644 --- a/lib/xero-ruby/models/payroll_uk/employee_leave_object.rb +++ b/lib/xero-ruby/models/payroll_uk/employee_leave_object.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_uk/employee_leave_type.rb b/lib/xero-ruby/models/payroll_uk/employee_leave_type.rb index 4b9e284d..d3c60d04 100644 --- a/lib/xero-ruby/models/payroll_uk/employee_leave_type.rb +++ b/lib/xero-ruby/models/payroll_uk/employee_leave_type.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_uk/employee_leave_type_object.rb b/lib/xero-ruby/models/payroll_uk/employee_leave_type_object.rb index 830e3364..19fba8d2 100644 --- a/lib/xero-ruby/models/payroll_uk/employee_leave_type_object.rb +++ b/lib/xero-ruby/models/payroll_uk/employee_leave_type_object.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_uk/employee_leave_types.rb b/lib/xero-ruby/models/payroll_uk/employee_leave_types.rb index 32ceac53..2c610961 100644 --- a/lib/xero-ruby/models/payroll_uk/employee_leave_types.rb +++ b/lib/xero-ruby/models/payroll_uk/employee_leave_types.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -67,6 +67,9 @@ def initialize(attributes = {}) end if attributes.key?(:'leave_types') + if (value = attributes[:'leave_types']).is_a?(Array) + self.leave_types = value + end end end diff --git a/lib/xero-ruby/models/payroll_uk/employee_leaves.rb b/lib/xero-ruby/models/payroll_uk/employee_leaves.rb index 79a270da..8a812953 100644 --- a/lib/xero-ruby/models/payroll_uk/employee_leaves.rb +++ b/lib/xero-ruby/models/payroll_uk/employee_leaves.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -67,6 +67,9 @@ def initialize(attributes = {}) end if attributes.key?(:'leave') + if (value = attributes[:'leave']).is_a?(Array) + self.leave = value + end end end diff --git a/lib/xero-ruby/models/payroll_uk/employee_object.rb b/lib/xero-ruby/models/payroll_uk/employee_object.rb index ad7ae5cd..9a91aba3 100644 --- a/lib/xero-ruby/models/payroll_uk/employee_object.rb +++ b/lib/xero-ruby/models/payroll_uk/employee_object.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_uk/employee_opening_balances.rb b/lib/xero-ruby/models/payroll_uk/employee_opening_balances.rb index c41eab06..a52f619a 100644 --- a/lib/xero-ruby/models/payroll_uk/employee_opening_balances.rb +++ b/lib/xero-ruby/models/payroll_uk/employee_opening_balances.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_uk/employee_opening_balances_object.rb b/lib/xero-ruby/models/payroll_uk/employee_opening_balances_object.rb index 7f50cf57..292369c2 100644 --- a/lib/xero-ruby/models/payroll_uk/employee_opening_balances_object.rb +++ b/lib/xero-ruby/models/payroll_uk/employee_opening_balances_object.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_uk/employee_pay_template.rb b/lib/xero-ruby/models/payroll_uk/employee_pay_template.rb index ecac81b4..9bc744fe 100644 --- a/lib/xero-ruby/models/payroll_uk/employee_pay_template.rb +++ b/lib/xero-ruby/models/payroll_uk/employee_pay_template.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -58,6 +58,9 @@ def initialize(attributes = {}) end if attributes.key?(:'earning_templates') + if (value = attributes[:'earning_templates']).is_a?(Array) + self.earning_templates = value + end end end diff --git a/lib/xero-ruby/models/payroll_uk/employee_pay_template_object.rb b/lib/xero-ruby/models/payroll_uk/employee_pay_template_object.rb index 7f94e243..9d2154aa 100644 --- a/lib/xero-ruby/models/payroll_uk/employee_pay_template_object.rb +++ b/lib/xero-ruby/models/payroll_uk/employee_pay_template_object.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_uk/employee_pay_templates.rb b/lib/xero-ruby/models/payroll_uk/employee_pay_templates.rb index 01b0cc50..1afa136d 100644 --- a/lib/xero-ruby/models/payroll_uk/employee_pay_templates.rb +++ b/lib/xero-ruby/models/payroll_uk/employee_pay_templates.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -67,6 +67,9 @@ def initialize(attributes = {}) end if attributes.key?(:'earning_templates') + if (value = attributes[:'earning_templates']).is_a?(Array) + self.earning_templates = value + end end end diff --git a/lib/xero-ruby/models/payroll_uk/employee_statutory_leave_balance.rb b/lib/xero-ruby/models/payroll_uk/employee_statutory_leave_balance.rb index eeb39986..7264d768 100644 --- a/lib/xero-ruby/models/payroll_uk/employee_statutory_leave_balance.rb +++ b/lib/xero-ruby/models/payroll_uk/employee_statutory_leave_balance.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_uk/employee_statutory_leave_balance_object.rb b/lib/xero-ruby/models/payroll_uk/employee_statutory_leave_balance_object.rb index 3357b1bb..d6c6420b 100644 --- a/lib/xero-ruby/models/payroll_uk/employee_statutory_leave_balance_object.rb +++ b/lib/xero-ruby/models/payroll_uk/employee_statutory_leave_balance_object.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_uk/employee_statutory_leave_summary.rb b/lib/xero-ruby/models/payroll_uk/employee_statutory_leave_summary.rb index 5a8afe39..443aa720 100644 --- a/lib/xero-ruby/models/payroll_uk/employee_statutory_leave_summary.rb +++ b/lib/xero-ruby/models/payroll_uk/employee_statutory_leave_summary.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_uk/employee_statutory_leaves_summaries.rb b/lib/xero-ruby/models/payroll_uk/employee_statutory_leaves_summaries.rb index 38d0a41b..7dfbfb5c 100644 --- a/lib/xero-ruby/models/payroll_uk/employee_statutory_leaves_summaries.rb +++ b/lib/xero-ruby/models/payroll_uk/employee_statutory_leaves_summaries.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -67,6 +67,9 @@ def initialize(attributes = {}) end if attributes.key?(:'statutory_leaves') + if (value = attributes[:'statutory_leaves']).is_a?(Array) + self.statutory_leaves = value + end end end diff --git a/lib/xero-ruby/models/payroll_uk/employee_statutory_sick_leave.rb b/lib/xero-ruby/models/payroll_uk/employee_statutory_sick_leave.rb index 252b9d4b..7328eca3 100644 --- a/lib/xero-ruby/models/payroll_uk/employee_statutory_sick_leave.rb +++ b/lib/xero-ruby/models/payroll_uk/employee_statutory_sick_leave.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -174,6 +174,9 @@ def initialize(attributes = {}) end if attributes.key?(:'work_pattern') + if (value = attributes[:'work_pattern']).is_a?(Array) + self.work_pattern = value + end end if attributes.key?(:'is_pregnancy_related') @@ -205,6 +208,9 @@ def initialize(attributes = {}) end if attributes.key?(:'entitlement_failure_reasons') + if (value = attributes[:'entitlement_failure_reasons']).is_a?(Array) + self.entitlement_failure_reasons = value + end end end diff --git a/lib/xero-ruby/models/payroll_uk/employee_statutory_sick_leave_object.rb b/lib/xero-ruby/models/payroll_uk/employee_statutory_sick_leave_object.rb index d59f3980..059af483 100644 --- a/lib/xero-ruby/models/payroll_uk/employee_statutory_sick_leave_object.rb +++ b/lib/xero-ruby/models/payroll_uk/employee_statutory_sick_leave_object.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_uk/employee_statutory_sick_leaves.rb b/lib/xero-ruby/models/payroll_uk/employee_statutory_sick_leaves.rb index 59d596fe..6e92d714 100644 --- a/lib/xero-ruby/models/payroll_uk/employee_statutory_sick_leaves.rb +++ b/lib/xero-ruby/models/payroll_uk/employee_statutory_sick_leaves.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -67,6 +67,9 @@ def initialize(attributes = {}) end if attributes.key?(:'statutory_sick_leave') + if (value = attributes[:'statutory_sick_leave']).is_a?(Array) + self.statutory_sick_leave = value + end end end diff --git a/lib/xero-ruby/models/payroll_uk/employee_tax.rb b/lib/xero-ruby/models/payroll_uk/employee_tax.rb index 3a68a7aa..77c125d3 100644 --- a/lib/xero-ruby/models/payroll_uk/employee_tax.rb +++ b/lib/xero-ruby/models/payroll_uk/employee_tax.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_uk/employee_tax_object.rb b/lib/xero-ruby/models/payroll_uk/employee_tax_object.rb index 1b74f021..afdb6f7f 100644 --- a/lib/xero-ruby/models/payroll_uk/employee_tax_object.rb +++ b/lib/xero-ruby/models/payroll_uk/employee_tax_object.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_uk/employees.rb b/lib/xero-ruby/models/payroll_uk/employees.rb index d02e1985..0e8716e9 100644 --- a/lib/xero-ruby/models/payroll_uk/employees.rb +++ b/lib/xero-ruby/models/payroll_uk/employees.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -67,6 +67,9 @@ def initialize(attributes = {}) end if attributes.key?(:'employees') + if (value = attributes[:'employees']).is_a?(Array) + self.employees = value + end end end diff --git a/lib/xero-ruby/models/payroll_uk/employment.rb b/lib/xero-ruby/models/payroll_uk/employment.rb index 3477c831..70ef8c06 100644 --- a/lib/xero-ruby/models/payroll_uk/employment.rb +++ b/lib/xero-ruby/models/payroll_uk/employment.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_uk/employment_object.rb b/lib/xero-ruby/models/payroll_uk/employment_object.rb index 61bafe16..8e88edcb 100644 --- a/lib/xero-ruby/models/payroll_uk/employment_object.rb +++ b/lib/xero-ruby/models/payroll_uk/employment_object.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_uk/invalid_field.rb b/lib/xero-ruby/models/payroll_uk/invalid_field.rb index 1bb9799f..4496a272 100644 --- a/lib/xero-ruby/models/payroll_uk/invalid_field.rb +++ b/lib/xero-ruby/models/payroll_uk/invalid_field.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_uk/leave_accrual_line.rb b/lib/xero-ruby/models/payroll_uk/leave_accrual_line.rb index 37cfb602..ea4ba481 100644 --- a/lib/xero-ruby/models/payroll_uk/leave_accrual_line.rb +++ b/lib/xero-ruby/models/payroll_uk/leave_accrual_line.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_uk/leave_earnings_line.rb b/lib/xero-ruby/models/payroll_uk/leave_earnings_line.rb index d3ac8745..92a95e20 100644 --- a/lib/xero-ruby/models/payroll_uk/leave_earnings_line.rb +++ b/lib/xero-ruby/models/payroll_uk/leave_earnings_line.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_uk/leave_period.rb b/lib/xero-ruby/models/payroll_uk/leave_period.rb index 1fc72ae9..bd909ea7 100644 --- a/lib/xero-ruby/models/payroll_uk/leave_period.rb +++ b/lib/xero-ruby/models/payroll_uk/leave_period.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_uk/leave_periods.rb b/lib/xero-ruby/models/payroll_uk/leave_periods.rb index 742ba834..56b4d796 100644 --- a/lib/xero-ruby/models/payroll_uk/leave_periods.rb +++ b/lib/xero-ruby/models/payroll_uk/leave_periods.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -67,6 +67,9 @@ def initialize(attributes = {}) end if attributes.key?(:'periods') + if (value = attributes[:'periods']).is_a?(Array) + self.periods = value + end end end diff --git a/lib/xero-ruby/models/payroll_uk/leave_type.rb b/lib/xero-ruby/models/payroll_uk/leave_type.rb index 340620a2..81fa8aa5 100644 --- a/lib/xero-ruby/models/payroll_uk/leave_type.rb +++ b/lib/xero-ruby/models/payroll_uk/leave_type.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -62,7 +62,7 @@ def self.openapi_types :'name' => :'String', :'is_paid_leave' => :'Boolean', :'show_on_payslip' => :'Boolean', - :'updated_date_utc' => :'Time', + :'updated_date_utc' => :'DateTime', :'is_active' => :'Boolean', :'is_statutory_leave' => :'Boolean' } diff --git a/lib/xero-ruby/models/payroll_uk/leave_type_object.rb b/lib/xero-ruby/models/payroll_uk/leave_type_object.rb index eb8877be..7d2f1cd1 100644 --- a/lib/xero-ruby/models/payroll_uk/leave_type_object.rb +++ b/lib/xero-ruby/models/payroll_uk/leave_type_object.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_uk/leave_types.rb b/lib/xero-ruby/models/payroll_uk/leave_types.rb index 0bcdd405..03fc54d3 100644 --- a/lib/xero-ruby/models/payroll_uk/leave_types.rb +++ b/lib/xero-ruby/models/payroll_uk/leave_types.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -67,6 +67,9 @@ def initialize(attributes = {}) end if attributes.key?(:'leave_types') + if (value = attributes[:'leave_types']).is_a?(Array) + self.leave_types = value + end end end diff --git a/lib/xero-ruby/models/payroll_uk/pagination.rb b/lib/xero-ruby/models/payroll_uk/pagination.rb index c63eb7d1..55e35bd8 100644 --- a/lib/xero-ruby/models/payroll_uk/pagination.rb +++ b/lib/xero-ruby/models/payroll_uk/pagination.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_uk/pay_run.rb b/lib/xero-ruby/models/payroll_uk/pay_run.rb index 989c3bc2..6b31b32b 100644 --- a/lib/xero-ruby/models/payroll_uk/pay_run.rb +++ b/lib/xero-ruby/models/payroll_uk/pay_run.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -181,6 +181,9 @@ def initialize(attributes = {}) end if attributes.key?(:'pay_slips') + if (value = attributes[:'pay_slips']).is_a?(Array) + self.pay_slips = value + end end end diff --git a/lib/xero-ruby/models/payroll_uk/pay_run_calendar.rb b/lib/xero-ruby/models/payroll_uk/pay_run_calendar.rb index 7fae84c6..42b2729b 100644 --- a/lib/xero-ruby/models/payroll_uk/pay_run_calendar.rb +++ b/lib/xero-ruby/models/payroll_uk/pay_run_calendar.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -87,7 +87,7 @@ def self.openapi_types :'period_start_date' => :'Date', :'period_end_date' => :'Date', :'payment_date' => :'Date', - :'updated_date_utc' => :'Time' + :'updated_date_utc' => :'DateTime' } end diff --git a/lib/xero-ruby/models/payroll_uk/pay_run_calendar_object.rb b/lib/xero-ruby/models/payroll_uk/pay_run_calendar_object.rb index 704025e9..1cfd695a 100644 --- a/lib/xero-ruby/models/payroll_uk/pay_run_calendar_object.rb +++ b/lib/xero-ruby/models/payroll_uk/pay_run_calendar_object.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_uk/pay_run_calendars.rb b/lib/xero-ruby/models/payroll_uk/pay_run_calendars.rb index 71337308..6c3d956e 100644 --- a/lib/xero-ruby/models/payroll_uk/pay_run_calendars.rb +++ b/lib/xero-ruby/models/payroll_uk/pay_run_calendars.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -67,6 +67,9 @@ def initialize(attributes = {}) end if attributes.key?(:'pay_run_calendars') + if (value = attributes[:'pay_run_calendars']).is_a?(Array) + self.pay_run_calendars = value + end end end diff --git a/lib/xero-ruby/models/payroll_uk/pay_run_object.rb b/lib/xero-ruby/models/payroll_uk/pay_run_object.rb index f07d07bd..58ecd292 100644 --- a/lib/xero-ruby/models/payroll_uk/pay_run_object.rb +++ b/lib/xero-ruby/models/payroll_uk/pay_run_object.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_uk/pay_runs.rb b/lib/xero-ruby/models/payroll_uk/pay_runs.rb index 1ee940a2..b1f0efd2 100644 --- a/lib/xero-ruby/models/payroll_uk/pay_runs.rb +++ b/lib/xero-ruby/models/payroll_uk/pay_runs.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -67,6 +67,9 @@ def initialize(attributes = {}) end if attributes.key?(:'pay_runs') + if (value = attributes[:'pay_runs']).is_a?(Array) + self.pay_runs = value + end end end diff --git a/lib/xero-ruby/models/payroll_uk/payment_line.rb b/lib/xero-ruby/models/payroll_uk/payment_line.rb index 9ae5688d..df0c424f 100644 --- a/lib/xero-ruby/models/payroll_uk/payment_line.rb +++ b/lib/xero-ruby/models/payroll_uk/payment_line.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_uk/payment_method.rb b/lib/xero-ruby/models/payroll_uk/payment_method.rb index 7387fc3d..645e4378 100644 --- a/lib/xero-ruby/models/payroll_uk/payment_method.rb +++ b/lib/xero-ruby/models/payroll_uk/payment_method.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -83,6 +83,9 @@ def initialize(attributes = {}) end if attributes.key?(:'bank_accounts') + if (value = attributes[:'bank_accounts']).is_a?(Array) + self.bank_accounts = value + end end end diff --git a/lib/xero-ruby/models/payroll_uk/payment_method_object.rb b/lib/xero-ruby/models/payroll_uk/payment_method_object.rb index 5987aa26..6e763623 100644 --- a/lib/xero-ruby/models/payroll_uk/payment_method_object.rb +++ b/lib/xero-ruby/models/payroll_uk/payment_method_object.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_uk/payslip.rb b/lib/xero-ruby/models/payroll_uk/payslip.rb index 90c897c6..20701283 100644 --- a/lib/xero-ruby/models/payroll_uk/payslip.rb +++ b/lib/xero-ruby/models/payroll_uk/payslip.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -277,36 +277,69 @@ def initialize(attributes = {}) end if attributes.key?(:'earnings_lines') + if (value = attributes[:'earnings_lines']).is_a?(Array) + self.earnings_lines = value + end end if attributes.key?(:'leave_earnings_lines') + if (value = attributes[:'leave_earnings_lines']).is_a?(Array) + self.leave_earnings_lines = value + end end if attributes.key?(:'timesheet_earnings_lines') + if (value = attributes[:'timesheet_earnings_lines']).is_a?(Array) + self.timesheet_earnings_lines = value + end end if attributes.key?(:'deduction_lines') + if (value = attributes[:'deduction_lines']).is_a?(Array) + self.deduction_lines = value + end end if attributes.key?(:'reimbursement_lines') + if (value = attributes[:'reimbursement_lines']).is_a?(Array) + self.reimbursement_lines = value + end end if attributes.key?(:'leave_accrual_lines') + if (value = attributes[:'leave_accrual_lines']).is_a?(Array) + self.leave_accrual_lines = value + end end if attributes.key?(:'benefit_lines') + if (value = attributes[:'benefit_lines']).is_a?(Array) + self.benefit_lines = value + end end if attributes.key?(:'payment_lines') + if (value = attributes[:'payment_lines']).is_a?(Array) + self.payment_lines = value + end end if attributes.key?(:'employee_tax_lines') + if (value = attributes[:'employee_tax_lines']).is_a?(Array) + self.employee_tax_lines = value + end end if attributes.key?(:'employer_tax_lines') + if (value = attributes[:'employer_tax_lines']).is_a?(Array) + self.employer_tax_lines = value + end end if attributes.key?(:'court_order_lines') + if (value = attributes[:'court_order_lines']).is_a?(Array) + self.court_order_lines = value + end end end diff --git a/lib/xero-ruby/models/payroll_uk/payslip_object.rb b/lib/xero-ruby/models/payroll_uk/payslip_object.rb index c66c1392..c7cb9a87 100644 --- a/lib/xero-ruby/models/payroll_uk/payslip_object.rb +++ b/lib/xero-ruby/models/payroll_uk/payslip_object.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_uk/payslips.rb b/lib/xero-ruby/models/payroll_uk/payslips.rb index 9e5b5f59..a2e65313 100644 --- a/lib/xero-ruby/models/payroll_uk/payslips.rb +++ b/lib/xero-ruby/models/payroll_uk/payslips.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -67,6 +67,9 @@ def initialize(attributes = {}) end if attributes.key?(:'pay_slips') + if (value = attributes[:'pay_slips']).is_a?(Array) + self.pay_slips = value + end end end diff --git a/lib/xero-ruby/models/payroll_uk/problem.rb b/lib/xero-ruby/models/payroll_uk/problem.rb index ecd9da2b..843833d3 100644 --- a/lib/xero-ruby/models/payroll_uk/problem.rb +++ b/lib/xero-ruby/models/payroll_uk/problem.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -95,6 +95,9 @@ def initialize(attributes = {}) end if attributes.key?(:'invalid_fields') + if (value = attributes[:'invalid_fields']).is_a?(Array) + self.invalid_fields = value + end end end diff --git a/lib/xero-ruby/models/payroll_uk/reimbursement.rb b/lib/xero-ruby/models/payroll_uk/reimbursement.rb index dd99d9ab..f86cc522 100644 --- a/lib/xero-ruby/models/payroll_uk/reimbursement.rb +++ b/lib/xero-ruby/models/payroll_uk/reimbursement.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_uk/reimbursement_line.rb b/lib/xero-ruby/models/payroll_uk/reimbursement_line.rb index ecd01a02..ce446aaf 100644 --- a/lib/xero-ruby/models/payroll_uk/reimbursement_line.rb +++ b/lib/xero-ruby/models/payroll_uk/reimbursement_line.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_uk/reimbursement_object.rb b/lib/xero-ruby/models/payroll_uk/reimbursement_object.rb index d91dd5e5..2b60ef8d 100644 --- a/lib/xero-ruby/models/payroll_uk/reimbursement_object.rb +++ b/lib/xero-ruby/models/payroll_uk/reimbursement_object.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_uk/reimbursements.rb b/lib/xero-ruby/models/payroll_uk/reimbursements.rb index 8d9fa653..c88329f9 100644 --- a/lib/xero-ruby/models/payroll_uk/reimbursements.rb +++ b/lib/xero-ruby/models/payroll_uk/reimbursements.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -67,6 +67,9 @@ def initialize(attributes = {}) end if attributes.key?(:'reimbursements') + if (value = attributes[:'reimbursements']).is_a?(Array) + self.reimbursements = value + end end end diff --git a/lib/xero-ruby/models/payroll_uk/salary_and_wage.rb b/lib/xero-ruby/models/payroll_uk/salary_and_wage.rb index eb5150af..fa1b458d 100644 --- a/lib/xero-ruby/models/payroll_uk/salary_and_wage.rb +++ b/lib/xero-ruby/models/payroll_uk/salary_and_wage.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_uk/salary_and_wage_object.rb b/lib/xero-ruby/models/payroll_uk/salary_and_wage_object.rb index a70863ee..4e2c9fb3 100644 --- a/lib/xero-ruby/models/payroll_uk/salary_and_wage_object.rb +++ b/lib/xero-ruby/models/payroll_uk/salary_and_wage_object.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_uk/salary_and_wages.rb b/lib/xero-ruby/models/payroll_uk/salary_and_wages.rb index b93cf3c7..61d0bb33 100644 --- a/lib/xero-ruby/models/payroll_uk/salary_and_wages.rb +++ b/lib/xero-ruby/models/payroll_uk/salary_and_wages.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -67,6 +67,9 @@ def initialize(attributes = {}) end if attributes.key?(:'salary_and_wages') + if (value = attributes[:'salary_and_wages']).is_a?(Array) + self.salary_and_wages = value + end end end diff --git a/lib/xero-ruby/models/payroll_uk/settings.rb b/lib/xero-ruby/models/payroll_uk/settings.rb index 79868484..2c69400d 100644 --- a/lib/xero-ruby/models/payroll_uk/settings.rb +++ b/lib/xero-ruby/models/payroll_uk/settings.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_uk/statutory_deduction.rb b/lib/xero-ruby/models/payroll_uk/statutory_deduction.rb index bc4b8e8a..f32eae3c 100644 --- a/lib/xero-ruby/models/payroll_uk/statutory_deduction.rb +++ b/lib/xero-ruby/models/payroll_uk/statutory_deduction.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_uk/statutory_deduction_category.rb b/lib/xero-ruby/models/payroll_uk/statutory_deduction_category.rb index f89532cd..32962f74 100644 --- a/lib/xero-ruby/models/payroll_uk/statutory_deduction_category.rb +++ b/lib/xero-ruby/models/payroll_uk/statutory_deduction_category.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_uk/tax_line.rb b/lib/xero-ruby/models/payroll_uk/tax_line.rb index f11c19ec..278cf8bc 100644 --- a/lib/xero-ruby/models/payroll_uk/tax_line.rb +++ b/lib/xero-ruby/models/payroll_uk/tax_line.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_uk/timesheet.rb b/lib/xero-ruby/models/payroll_uk/timesheet.rb index 1765b855..b3305584 100644 --- a/lib/xero-ruby/models/payroll_uk/timesheet.rb +++ b/lib/xero-ruby/models/payroll_uk/timesheet.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -93,7 +93,7 @@ def self.openapi_types :'end_date' => :'Date', :'status' => :'String', :'total_hours' => :'Float', - :'updated_date_utc' => :'Time', + :'updated_date_utc' => :'DateTime', :'timesheet_lines' => :'Array' } end @@ -146,6 +146,9 @@ def initialize(attributes = {}) end if attributes.key?(:'timesheet_lines') + if (value = attributes[:'timesheet_lines']).is_a?(Array) + self.timesheet_lines = value + end end end diff --git a/lib/xero-ruby/models/payroll_uk/timesheet_earnings_line.rb b/lib/xero-ruby/models/payroll_uk/timesheet_earnings_line.rb index ac7f3129..8cd7febe 100644 --- a/lib/xero-ruby/models/payroll_uk/timesheet_earnings_line.rb +++ b/lib/xero-ruby/models/payroll_uk/timesheet_earnings_line.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_uk/timesheet_line.rb b/lib/xero-ruby/models/payroll_uk/timesheet_line.rb index 5ead00ec..dba49385 100644 --- a/lib/xero-ruby/models/payroll_uk/timesheet_line.rb +++ b/lib/xero-ruby/models/payroll_uk/timesheet_line.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_uk/timesheet_line_object.rb b/lib/xero-ruby/models/payroll_uk/timesheet_line_object.rb index f012ded7..d39554be 100644 --- a/lib/xero-ruby/models/payroll_uk/timesheet_line_object.rb +++ b/lib/xero-ruby/models/payroll_uk/timesheet_line_object.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_uk/timesheet_object.rb b/lib/xero-ruby/models/payroll_uk/timesheet_object.rb index df86347e..3bd68e39 100644 --- a/lib/xero-ruby/models/payroll_uk/timesheet_object.rb +++ b/lib/xero-ruby/models/payroll_uk/timesheet_object.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_uk/timesheets.rb b/lib/xero-ruby/models/payroll_uk/timesheets.rb index f36e510e..63381fb9 100644 --- a/lib/xero-ruby/models/payroll_uk/timesheets.rb +++ b/lib/xero-ruby/models/payroll_uk/timesheets.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -67,6 +67,9 @@ def initialize(attributes = {}) end if attributes.key?(:'timesheets') + if (value = attributes[:'timesheets']).is_a?(Array) + self.timesheets = value + end end end diff --git a/lib/xero-ruby/models/payroll_uk/tracking_categories.rb b/lib/xero-ruby/models/payroll_uk/tracking_categories.rb index ee10e9cc..9b2cb26f 100644 --- a/lib/xero-ruby/models/payroll_uk/tracking_categories.rb +++ b/lib/xero-ruby/models/payroll_uk/tracking_categories.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/payroll_uk/tracking_category.rb b/lib/xero-ruby/models/payroll_uk/tracking_category.rb index cc403a26..38a0db63 100644 --- a/lib/xero-ruby/models/payroll_uk/tracking_category.rb +++ b/lib/xero-ruby/models/payroll_uk/tracking_category.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/projects/amount.rb b/lib/xero-ruby/models/projects/amount.rb index cd30737d..4c6ce61e 100644 --- a/lib/xero-ruby/models/projects/amount.rb +++ b/lib/xero-ruby/models/projects/amount.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/projects/charge_type.rb b/lib/xero-ruby/models/projects/charge_type.rb index 7a434e72..ae263c99 100644 --- a/lib/xero-ruby/models/projects/charge_type.rb +++ b/lib/xero-ruby/models/projects/charge_type.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/projects/currency_code.rb b/lib/xero-ruby/models/projects/currency_code.rb index a11261e2..32e96f82 100644 --- a/lib/xero-ruby/models/projects/currency_code.rb +++ b/lib/xero-ruby/models/projects/currency_code.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/projects/error.rb b/lib/xero-ruby/models/projects/error.rb index 7c0c1a81..af875d88 100644 --- a/lib/xero-ruby/models/projects/error.rb +++ b/lib/xero-ruby/models/projects/error.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/projects/pagination.rb b/lib/xero-ruby/models/projects/pagination.rb index 79f196cd..ee8f73da 100644 --- a/lib/xero-ruby/models/projects/pagination.rb +++ b/lib/xero-ruby/models/projects/pagination.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/projects/project.rb b/lib/xero-ruby/models/projects/project.rb index 40281558..b86a3a79 100644 --- a/lib/xero-ruby/models/projects/project.rb +++ b/lib/xero-ruby/models/projects/project.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -130,7 +130,7 @@ def self.openapi_types :'deposit' => :'Amount', :'deposit_applied' => :'Amount', :'credit_note_amount' => :'Amount', - :'deadline_utc' => :'Time', + :'deadline_utc' => :'DateTime', :'total_invoiced' => :'Amount', :'total_to_be_invoiced' => :'Amount', :'estimate' => :'Amount', diff --git a/lib/xero-ruby/models/projects/project_create_or_update.rb b/lib/xero-ruby/models/projects/project_create_or_update.rb index 0c660a6b..8d2b3309 100644 --- a/lib/xero-ruby/models/projects/project_create_or_update.rb +++ b/lib/xero-ruby/models/projects/project_create_or_update.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -44,7 +44,7 @@ def self.openapi_types :'contact_id' => :'String', :'name' => :'String', :'estimate_amount' => :'BigDecimal', - :'deadline_utc' => :'Time' + :'deadline_utc' => :'DateTime' } end diff --git a/lib/xero-ruby/models/projects/project_patch.rb b/lib/xero-ruby/models/projects/project_patch.rb index cafeebbd..0467305e 100644 --- a/lib/xero-ruby/models/projects/project_patch.rb +++ b/lib/xero-ruby/models/projects/project_patch.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/projects/project_status.rb b/lib/xero-ruby/models/projects/project_status.rb index e01109b7..8e124bc6 100644 --- a/lib/xero-ruby/models/projects/project_status.rb +++ b/lib/xero-ruby/models/projects/project_status.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/projects/project_user.rb b/lib/xero-ruby/models/projects/project_user.rb index 32139e2b..dc2c978c 100644 --- a/lib/xero-ruby/models/projects/project_user.rb +++ b/lib/xero-ruby/models/projects/project_user.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/projects/project_users.rb b/lib/xero-ruby/models/projects/project_users.rb index b1fd1042..e64688ae 100644 --- a/lib/xero-ruby/models/projects/project_users.rb +++ b/lib/xero-ruby/models/projects/project_users.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -58,6 +58,9 @@ def initialize(attributes = {}) end if attributes.key?(:'items') + if (value = attributes[:'items']).is_a?(Array) + self.items = value + end end end diff --git a/lib/xero-ruby/models/projects/projects.rb b/lib/xero-ruby/models/projects/projects.rb index 9d4a2aae..68be17ef 100644 --- a/lib/xero-ruby/models/projects/projects.rb +++ b/lib/xero-ruby/models/projects/projects.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -58,6 +58,9 @@ def initialize(attributes = {}) end if attributes.key?(:'items') + if (value = attributes[:'items']).is_a?(Array) + self.items = value + end end end diff --git a/lib/xero-ruby/models/projects/task.rb b/lib/xero-ruby/models/projects/task.rb index f914cc05..eb613833 100644 --- a/lib/xero-ruby/models/projects/task.rb +++ b/lib/xero-ruby/models/projects/task.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end diff --git a/lib/xero-ruby/models/projects/task_create_or_update.rb b/lib/xero-ruby/models/projects/task_create_or_update.rb index b77cda44..d1799e8f 100644 --- a/lib/xero-ruby/models/projects/task_create_or_update.rb +++ b/lib/xero-ruby/models/projects/task_create_or_update.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -108,16 +108,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param [Object] name Value to be assigned - def name=(name) - if name.nil? - fail ArgumentError, 'name cannot be nil' - end - - @name = name - end - # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/xero-ruby/models/projects/tasks.rb b/lib/xero-ruby/models/projects/tasks.rb index 6a84ec6d..f3d503c3 100644 --- a/lib/xero-ruby/models/projects/tasks.rb +++ b/lib/xero-ruby/models/projects/tasks.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -58,6 +58,9 @@ def initialize(attributes = {}) end if attributes.key?(:'items') + if (value = attributes[:'items']).is_a?(Array) + self.items = value + end end end diff --git a/lib/xero-ruby/models/projects/time_entries.rb b/lib/xero-ruby/models/projects/time_entries.rb index 292f26e9..4814a1f7 100644 --- a/lib/xero-ruby/models/projects/time_entries.rb +++ b/lib/xero-ruby/models/projects/time_entries.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -58,6 +58,9 @@ def initialize(attributes = {}) end if attributes.key?(:'items') + if (value = attributes[:'items']).is_a?(Array) + self.items = value + end end end diff --git a/lib/xero-ruby/models/projects/time_entry.rb b/lib/xero-ruby/models/projects/time_entry.rb index f0001a2a..bee5896e 100644 --- a/lib/xero-ruby/models/projects/time_entry.rb +++ b/lib/xero-ruby/models/projects/time_entry.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -90,8 +90,8 @@ def self.openapi_types :'user_id' => :'String', :'project_id' => :'String', :'task_id' => :'String', - :'date_utc' => :'Time', - :'date_entered_utc' => :'Time', + :'date_utc' => :'DateTime', + :'date_entered_utc' => :'DateTime', :'duration' => :'Integer', :'description' => :'String', :'status' => :'String' diff --git a/lib/xero-ruby/models/projects/time_entry_create_or_update.rb b/lib/xero-ruby/models/projects/time_entry_create_or_update.rb index 96b95826..39d2df32 100644 --- a/lib/xero-ruby/models/projects/time_entry_create_or_update.rb +++ b/lib/xero-ruby/models/projects/time_entry_create_or_update.rb @@ -5,7 +5,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end @@ -47,7 +47,7 @@ def self.openapi_types { :'user_id' => :'String', :'task_id' => :'String', - :'date_utc' => :'Time', + :'date_utc' => :'DateTime', :'duration' => :'Integer', :'description' => :'String' } diff --git a/lib/xero-ruby/version.rb b/lib/xero-ruby/version.rb index 3ba1a502..e4d307a7 100644 --- a/lib/xero-ruby/version.rb +++ b/lib/xero-ruby/version.rb @@ -5,9 +5,9 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 -The version of the XeroOpenAPI document: 2.24.0 +The version of the XeroOpenAPI document: 2.25.0 =end module XeroRuby diff --git a/xero-ruby.gemspec b/xero-ruby.gemspec index 22be0242..484c5811 100644 --- a/xero-ruby.gemspec +++ b/xero-ruby.gemspec @@ -7,7 +7,7 @@ Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.4.0 +OpenAPI Generator version: 4.3.1 =end