xero-ruby 2.8.0 → 2.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +158 -117
- data/lib/xero-ruby.rb +1 -1
- data/lib/xero-ruby/api/accounting_api.rb +573 -346
- data/lib/xero-ruby/api/asset_api.rb +12 -6
- data/lib/xero-ruby/api/files_api.rb +158 -32
- data/lib/xero-ruby/api/payroll_au_api.rb +58 -29
- data/lib/xero-ruby/api/payroll_nz_api.rb +136 -68
- data/lib/xero-ruby/api/payroll_uk_api.rb +146 -82
- data/lib/xero-ruby/api/project_api.rb +26 -13
- data/lib/xero-ruby/api_client.rb +96 -14
- data/lib/xero-ruby/configuration.rb +14 -1
- data/lib/xero-ruby/models/accounting/batch_payment.rb +16 -4
- data/lib/xero-ruby/models/accounting/import_summary_accounts.rb +8 -8
- data/lib/xero-ruby/models/files/{inline_object.rb → upload_object.rb} +18 -3
- data/lib/xero-ruby/models/payroll_au/deduction_line.rb +0 -5
- data/lib/xero-ruby/models/payroll_nz/salary_and_wage.rb +3 -2
- data/lib/xero-ruby/models/payroll_nz/timesheet.rb +3 -2
- data/lib/xero-ruby/models/payroll_uk/salary_and_wage.rb +3 -2
- data/lib/xero-ruby/models/projects/time_entry.rb +3 -2
- data/lib/xero-ruby/version.rb +2 -2
- data/spec/api_client_spec.rb +174 -7
- data/spec/api_error_spec.rb +1 -1
- data/spec/configuration_spec.rb +17 -0
- data/spec/files/models/inline_object_spec.rb +3 -3
- data/spec/helper_methods_spec.rb +2 -2
- metadata +23 -3
| @@ -33,7 +33,8 @@ module XeroRuby | |
| 33 33 | 
             
                # @param asset [Asset] Fixed asset you are creating
         | 
| 34 34 | 
             
                # @param [Hash] opts the optional parameters
         | 
| 35 35 | 
             
                # @return [Array<(Asset, Integer, Hash)>] Asset data, response status code and response headers
         | 
| 36 | 
            -
                def create_asset_with_http_info(xero_tenant_id, asset,  | 
| 36 | 
            +
                def create_asset_with_http_info(xero_tenant_id, asset, options = {})
         | 
| 37 | 
            +
                  opts = options.dup
         | 
| 37 38 | 
             
                  if @api_client.config.debugging
         | 
| 38 39 | 
             
                    @api_client.config.logger.debug 'Calling API: AssetApi.create_asset ...'
         | 
| 39 40 | 
             
                  end
         | 
| @@ -111,7 +112,8 @@ module XeroRuby | |
| 111 112 | 
             
                # @param [Hash] opts the optional parameters
         | 
| 112 113 | 
             
                # @option opts [AssetType] :asset_type Asset type to add
         | 
| 113 114 | 
             
                # @return [Array<(AssetType, Integer, Hash)>] AssetType data, response status code and response headers
         | 
| 114 | 
            -
                def create_asset_type_with_http_info(xero_tenant_id,  | 
| 115 | 
            +
                def create_asset_type_with_http_info(xero_tenant_id, options = {})
         | 
| 116 | 
            +
                  opts = options.dup
         | 
| 115 117 | 
             
                  if @api_client.config.debugging
         | 
| 116 118 | 
             
                    @api_client.config.logger.debug 'Calling API: AssetApi.create_asset_type ...'
         | 
| 117 119 | 
             
                  end
         | 
| @@ -185,7 +187,8 @@ module XeroRuby | |
| 185 187 | 
             
                # @param id [String] fixed asset id for single object
         | 
| 186 188 | 
             
                # @param [Hash] opts the optional parameters
         | 
| 187 189 | 
             
                # @return [Array<(Asset, Integer, Hash)>] Asset data, response status code and response headers
         | 
| 188 | 
            -
                def get_asset_by_id_with_http_info(xero_tenant_id, id,  | 
| 190 | 
            +
                def get_asset_by_id_with_http_info(xero_tenant_id, id, options = {})
         | 
| 191 | 
            +
                  opts = options.dup
         | 
| 189 192 | 
             
                  if @api_client.config.debugging
         | 
| 190 193 | 
             
                    @api_client.config.logger.debug 'Calling API: AssetApi.get_asset_by_id ...'
         | 
| 191 194 | 
             
                  end
         | 
| @@ -259,7 +262,8 @@ module XeroRuby | |
| 259 262 | 
             
                # @param xero_tenant_id [String] Xero identifier for Tenant
         | 
| 260 263 | 
             
                # @param [Hash] opts the optional parameters
         | 
| 261 264 | 
             
                # @return [Array<(Setting, Integer, Hash)>] Setting data, response status code and response headers
         | 
| 262 | 
            -
                def get_asset_settings_with_http_info(xero_tenant_id,  | 
| 265 | 
            +
                def get_asset_settings_with_http_info(xero_tenant_id, options = {})
         | 
| 266 | 
            +
                  opts = options.dup
         | 
| 263 267 | 
             
                  if @api_client.config.debugging
         | 
| 264 268 | 
             
                    @api_client.config.logger.debug 'Calling API: AssetApi.get_asset_settings ...'
         | 
| 265 269 | 
             
                  end
         | 
| @@ -329,7 +333,8 @@ module XeroRuby | |
| 329 333 | 
             
                # @param xero_tenant_id [String] Xero identifier for Tenant
         | 
| 330 334 | 
             
                # @param [Hash] opts the optional parameters
         | 
| 331 335 | 
             
                # @return [Array<(Array<AssetType>, Integer, Hash)>] Array<AssetType> data, response status code and response headers
         | 
| 332 | 
            -
                def get_asset_types_with_http_info(xero_tenant_id,  | 
| 336 | 
            +
                def get_asset_types_with_http_info(xero_tenant_id, options = {})
         | 
| 337 | 
            +
                  opts = options.dup
         | 
| 333 338 | 
             
                  if @api_client.config.debugging
         | 
| 334 339 | 
             
                    @api_client.config.logger.debug 'Calling API: AssetApi.get_asset_types ...'
         | 
| 335 340 | 
             
                  end
         | 
| @@ -411,7 +416,8 @@ module XeroRuby | |
| 411 416 | 
             
                # @option opts [String] :sort_direction ASC or DESC
         | 
| 412 417 | 
             
                # @option opts [String] :filter_by 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.
         | 
| 413 418 | 
             
                # @return [Array<(Assets, Integer, Hash)>] Assets data, response status code and response headers
         | 
| 414 | 
            -
                def get_assets_with_http_info(xero_tenant_id, status,  | 
| 419 | 
            +
                def get_assets_with_http_info(xero_tenant_id, status, options = {})
         | 
| 420 | 
            +
                  opts = options.dup
         | 
| 415 421 | 
             
                  if @api_client.config.debugging
         | 
| 416 422 | 
             
                    @api_client.config.logger.debug 'Calling API: AssetApi.get_assets ...'
         | 
| 417 423 | 
             
                  end
         | 
| @@ -35,7 +35,8 @@ module XeroRuby | |
| 35 35 | 
             
                # @param [Hash] opts the optional parameters
         | 
| 36 36 | 
             
                # @option opts [Association] :association 
         | 
| 37 37 | 
             
                # @return [Array<(Association, Integer, Hash)>] Association data, response status code and response headers
         | 
| 38 | 
            -
                def create_file_association_with_http_info(xero_tenant_id, file_id,  | 
| 38 | 
            +
                def create_file_association_with_http_info(xero_tenant_id, file_id, options = {})
         | 
| 39 | 
            +
                  opts = options.dup
         | 
| 39 40 | 
             
                  if @api_client.config.debugging
         | 
| 40 41 | 
             
                    @api_client.config.logger.debug 'Calling API: FilesApi.create_file_association ...'
         | 
| 41 42 | 
             
                  end
         | 
| @@ -113,7 +114,8 @@ module XeroRuby | |
| 113 114 | 
             
                # @param [Hash] opts the optional parameters
         | 
| 114 115 | 
             
                # @option opts [Folder] :folder 
         | 
| 115 116 | 
             
                # @return [Array<(Folder, Integer, Hash)>] Folder data, response status code and response headers
         | 
| 116 | 
            -
                def create_folder_with_http_info(xero_tenant_id,  | 
| 117 | 
            +
                def create_folder_with_http_info(xero_tenant_id, options = {})
         | 
| 118 | 
            +
                  opts = options.dup
         | 
| 117 119 | 
             
                  if @api_client.config.debugging
         | 
| 118 120 | 
             
                    @api_client.config.logger.debug 'Calling API: FilesApi.create_folder ...'
         | 
| 119 121 | 
             
                  end
         | 
| @@ -187,7 +189,8 @@ module XeroRuby | |
| 187 189 | 
             
                # @param file_id [String] File id for single object
         | 
| 188 190 | 
             
                # @param [Hash] opts the optional parameters
         | 
| 189 191 | 
             
                # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
         | 
| 190 | 
            -
                def delete_file_with_http_info(xero_tenant_id, file_id,  | 
| 192 | 
            +
                def delete_file_with_http_info(xero_tenant_id, file_id, options = {})
         | 
| 193 | 
            +
                  opts = options.dup
         | 
| 191 194 | 
             
                  if @api_client.config.debugging
         | 
| 192 195 | 
             
                    @api_client.config.logger.debug 'Calling API: FilesApi.delete_file ...'
         | 
| 193 196 | 
             
                  end
         | 
| @@ -263,7 +266,8 @@ module XeroRuby | |
| 263 266 | 
             
                # @param object_id [String] Object id for single object
         | 
| 264 267 | 
             
                # @param [Hash] opts the optional parameters
         | 
| 265 268 | 
             
                # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
         | 
| 266 | 
            -
                def delete_file_association_with_http_info(xero_tenant_id, file_id, object_id,  | 
| 269 | 
            +
                def delete_file_association_with_http_info(xero_tenant_id, file_id, object_id, options = {})
         | 
| 270 | 
            +
                  opts = options.dup
         | 
| 267 271 | 
             
                  if @api_client.config.debugging
         | 
| 268 272 | 
             
                    @api_client.config.logger.debug 'Calling API: FilesApi.delete_file_association ...'
         | 
| 269 273 | 
             
                  end
         | 
| @@ -341,7 +345,8 @@ module XeroRuby | |
| 341 345 | 
             
                # @param folder_id [String] Folder id for single object
         | 
| 342 346 | 
             
                # @param [Hash] opts the optional parameters
         | 
| 343 347 | 
             
                # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
         | 
| 344 | 
            -
                def delete_folder_with_http_info(xero_tenant_id, folder_id,  | 
| 348 | 
            +
                def delete_folder_with_http_info(xero_tenant_id, folder_id, options = {})
         | 
| 349 | 
            +
                  opts = options.dup
         | 
| 345 350 | 
             
                  if @api_client.config.debugging
         | 
| 346 351 | 
             
                    @api_client.config.logger.debug 'Calling API: FilesApi.delete_folder ...'
         | 
| 347 352 | 
             
                  end
         | 
| @@ -415,7 +420,8 @@ module XeroRuby | |
| 415 420 | 
             
                # @param object_id [String] Object id for single object
         | 
| 416 421 | 
             
                # @param [Hash] opts the optional parameters
         | 
| 417 422 | 
             
                # @return [Array<(Array<Association>, Integer, Hash)>] Array<Association> data, response status code and response headers
         | 
| 418 | 
            -
                def get_associations_by_object_with_http_info(xero_tenant_id, object_id,  | 
| 423 | 
            +
                def get_associations_by_object_with_http_info(xero_tenant_id, object_id, options = {})
         | 
| 424 | 
            +
                  opts = options.dup
         | 
| 419 425 | 
             
                  if @api_client.config.debugging
         | 
| 420 426 | 
             
                    @api_client.config.logger.debug 'Calling API: FilesApi.get_associations_by_object ...'
         | 
| 421 427 | 
             
                  end
         | 
| @@ -489,7 +495,8 @@ module XeroRuby | |
| 489 495 | 
             
                # @param file_id [String] File id for single object
         | 
| 490 496 | 
             
                # @param [Hash] opts the optional parameters
         | 
| 491 497 | 
             
                # @return [Array<(FileObject, Integer, Hash)>] FileObject data, response status code and response headers
         | 
| 492 | 
            -
                def get_file_with_http_info(xero_tenant_id, file_id,  | 
| 498 | 
            +
                def get_file_with_http_info(xero_tenant_id, file_id, options = {})
         | 
| 499 | 
            +
                  opts = options.dup
         | 
| 493 500 | 
             
                  if @api_client.config.debugging
         | 
| 494 501 | 
             
                    @api_client.config.logger.debug 'Calling API: FilesApi.get_file ...'
         | 
| 495 502 | 
             
                  end
         | 
| @@ -565,7 +572,8 @@ module XeroRuby | |
| 565 572 | 
             
                # @param file_id [String] File id for single object
         | 
| 566 573 | 
             
                # @param [Hash] opts the optional parameters
         | 
| 567 574 | 
             
                # @return [Array<(Array<Association>, Integer, Hash)>] Array<Association> data, response status code and response headers
         | 
| 568 | 
            -
                def get_file_associations_with_http_info(xero_tenant_id, file_id,  | 
| 575 | 
            +
                def get_file_associations_with_http_info(xero_tenant_id, file_id, options = {})
         | 
| 576 | 
            +
                  opts = options.dup
         | 
| 569 577 | 
             
                  if @api_client.config.debugging
         | 
| 570 578 | 
             
                    @api_client.config.logger.debug 'Calling API: FilesApi.get_file_associations ...'
         | 
| 571 579 | 
             
                  end
         | 
| @@ -641,7 +649,8 @@ module XeroRuby | |
| 641 649 | 
             
                # @param file_id [String] File id for single object
         | 
| 642 650 | 
             
                # @param [Hash] opts the optional parameters
         | 
| 643 651 | 
             
                # @return [Array<(File, Integer, Hash)>] File data, response status code and response headers
         | 
| 644 | 
            -
                def get_file_content_with_http_info(xero_tenant_id, file_id,  | 
| 652 | 
            +
                def get_file_content_with_http_info(xero_tenant_id, file_id, options = {})
         | 
| 653 | 
            +
                  opts = options.dup
         | 
| 645 654 | 
             
                  if @api_client.config.debugging
         | 
| 646 655 | 
             
                    @api_client.config.logger.debug 'Calling API: FilesApi.get_file_content ...'
         | 
| 647 656 | 
             
                  end
         | 
| @@ -719,7 +728,8 @@ module XeroRuby | |
| 719 728 | 
             
                # @option opts [Integer] :page number of records to skip for pagination
         | 
| 720 729 | 
             
                # @option opts [String] :sort values to sort by
         | 
| 721 730 | 
             
                # @return [Array<(Files, Integer, Hash)>] Files data, response status code and response headers
         | 
| 722 | 
            -
                def get_files_with_http_info(xero_tenant_id,  | 
| 731 | 
            +
                def get_files_with_http_info(xero_tenant_id, options = {})
         | 
| 732 | 
            +
                  opts = options.dup
         | 
| 723 733 | 
             
                  if @api_client.config.debugging
         | 
| 724 734 | 
             
                    @api_client.config.logger.debug 'Calling API: FilesApi.get_files ...'
         | 
| 725 735 | 
             
                  end
         | 
| @@ -806,7 +816,8 @@ module XeroRuby | |
| 806 816 | 
             
                # @param folder_id [String] Folder id for single object
         | 
| 807 817 | 
             
                # @param [Hash] opts the optional parameters
         | 
| 808 818 | 
             
                # @return [Array<(Folder, Integer, Hash)>] Folder data, response status code and response headers
         | 
| 809 | 
            -
                def get_folder_with_http_info(xero_tenant_id, folder_id,  | 
| 819 | 
            +
                def get_folder_with_http_info(xero_tenant_id, folder_id, options = {})
         | 
| 820 | 
            +
                  opts = options.dup
         | 
| 810 821 | 
             
                  if @api_client.config.debugging
         | 
| 811 822 | 
             
                    @api_client.config.logger.debug 'Calling API: FilesApi.get_folder ...'
         | 
| 812 823 | 
             
                  end
         | 
| @@ -882,7 +893,8 @@ module XeroRuby | |
| 882 893 | 
             
                # @param [Hash] opts the optional parameters
         | 
| 883 894 | 
             
                # @option opts [String] :sort values to sort by
         | 
| 884 895 | 
             
                # @return [Array<(Array<Folder>, Integer, Hash)>] Array<Folder> data, response status code and response headers
         | 
| 885 | 
            -
                def get_folders_with_http_info(xero_tenant_id,  | 
| 896 | 
            +
                def get_folders_with_http_info(xero_tenant_id, options = {})
         | 
| 897 | 
            +
                  opts = options.dup
         | 
| 886 898 | 
             
                  if @api_client.config.debugging
         | 
| 887 899 | 
             
                    @api_client.config.logger.debug 'Calling API: FilesApi.get_folders ...'
         | 
| 888 900 | 
             
                  end
         | 
| @@ -957,7 +969,8 @@ module XeroRuby | |
| 957 969 | 
             
                # @param xero_tenant_id [String] Xero identifier for Tenant
         | 
| 958 970 | 
             
                # @param [Hash] opts the optional parameters
         | 
| 959 971 | 
             
                # @return [Array<(Folder, Integer, Hash)>] Folder data, response status code and response headers
         | 
| 960 | 
            -
                def get_inbox_with_http_info(xero_tenant_id,  | 
| 972 | 
            +
                def get_inbox_with_http_info(xero_tenant_id, options = {})
         | 
| 973 | 
            +
                  opts = options.dup
         | 
| 961 974 | 
             
                  if @api_client.config.debugging
         | 
| 962 975 | 
             
                    @api_client.config.logger.debug 'Calling API: FilesApi.get_inbox ...'
         | 
| 963 976 | 
             
                  end
         | 
| @@ -1031,7 +1044,8 @@ module XeroRuby | |
| 1031 1044 | 
             
                # @param [Hash] opts the optional parameters
         | 
| 1032 1045 | 
             
                # @option opts [FileObject] :file_object 
         | 
| 1033 1046 | 
             
                # @return [Array<(FileObject, Integer, Hash)>] FileObject data, response status code and response headers
         | 
| 1034 | 
            -
                def update_file_with_http_info(xero_tenant_id, file_id,  | 
| 1047 | 
            +
                def update_file_with_http_info(xero_tenant_id, file_id, options = {})
         | 
| 1048 | 
            +
                  opts = options.dup
         | 
| 1035 1049 | 
             
                  if @api_client.config.debugging
         | 
| 1036 1050 | 
             
                    @api_client.config.logger.debug 'Calling API: FilesApi.update_file ...'
         | 
| 1037 1051 | 
             
                  end
         | 
| @@ -1111,7 +1125,8 @@ module XeroRuby | |
| 1111 1125 | 
             
                # @param folder [Folder] 
         | 
| 1112 1126 | 
             
                # @param [Hash] opts the optional parameters
         | 
| 1113 1127 | 
             
                # @return [Array<(Folder, Integer, Hash)>] Folder data, response status code and response headers
         | 
| 1114 | 
            -
                def update_folder_with_http_info(xero_tenant_id, folder_id, folder,  | 
| 1128 | 
            +
                def update_folder_with_http_info(xero_tenant_id, folder_id, folder, options = {})
         | 
| 1129 | 
            +
                  opts = options.dup
         | 
| 1115 1130 | 
             
                  if @api_client.config.debugging
         | 
| 1116 1131 | 
             
                    @api_client.config.logger.debug 'Calling API: FilesApi.update_folder ...'
         | 
| 1117 1132 | 
             
                  end
         | 
| @@ -1176,30 +1191,29 @@ module XeroRuby | |
| 1176 1191 | 
             
                  return data, status_code, headers
         | 
| 1177 1192 | 
             
                end
         | 
| 1178 1193 |  | 
| 1179 | 
            -
                # Uploads a File
         | 
| 1194 | 
            +
                # Uploads a File to the inbox
         | 
| 1180 1195 | 
             
                # @param xero_tenant_id [String] Xero identifier for Tenant
         | 
| 1196 | 
            +
                # @param body [String] 
         | 
| 1197 | 
            +
                # @param name [String] exact name of the file you are uploading
         | 
| 1198 | 
            +
                # @param filename [String] 
         | 
| 1181 1199 | 
             
                # @param [Hash] opts the optional parameters
         | 
| 1182 | 
            -
                # @option opts [String] :folder_id pass an optional folder id to save file to specific folder
         | 
| 1183 | 
            -
                # @option opts [String] :body 
         | 
| 1184 | 
            -
                # @option opts [String] :name exact name of the file you are uploading
         | 
| 1185 | 
            -
                # @option opts [String] :filename 
         | 
| 1186 1200 | 
             
                # @option opts [String] :mime_type 
         | 
| 1187 1201 | 
             
                # @return [FileObject]
         | 
| 1188 | 
            -
                def upload_file(xero_tenant_id, opts = {})
         | 
| 1189 | 
            -
                  data, _status_code, _headers = upload_file_with_http_info(xero_tenant_id, opts)
         | 
| 1202 | 
            +
                def upload_file(xero_tenant_id, body, name, filename, opts = {})
         | 
| 1203 | 
            +
                  data, _status_code, _headers = upload_file_with_http_info(xero_tenant_id, body, name, filename, opts)
         | 
| 1190 1204 | 
             
                  data
         | 
| 1191 1205 | 
             
                end
         | 
| 1192 1206 |  | 
| 1193 | 
            -
                # Uploads a File
         | 
| 1207 | 
            +
                # Uploads a File to the inbox
         | 
| 1194 1208 | 
             
                # @param xero_tenant_id [String] Xero identifier for Tenant
         | 
| 1209 | 
            +
                # @param body [String] 
         | 
| 1210 | 
            +
                # @param name [String] exact name of the file you are uploading
         | 
| 1211 | 
            +
                # @param filename [String] 
         | 
| 1195 1212 | 
             
                # @param [Hash] opts the optional parameters
         | 
| 1196 | 
            -
                # @option opts [String] :folder_id pass an optional folder id to save file to specific folder
         | 
| 1197 | 
            -
                # @option opts [String] :body 
         | 
| 1198 | 
            -
                # @option opts [String] :name exact name of the file you are uploading
         | 
| 1199 | 
            -
                # @option opts [String] :filename 
         | 
| 1200 1213 | 
             
                # @option opts [String] :mime_type 
         | 
| 1201 1214 | 
             
                # @return [Array<(FileObject, Integer, Hash)>] FileObject data, response status code and response headers
         | 
| 1202 | 
            -
                def upload_file_with_http_info(xero_tenant_id,  | 
| 1215 | 
            +
                def upload_file_with_http_info(xero_tenant_id, body, name, filename, options = {})
         | 
| 1216 | 
            +
                  opts = options.dup
         | 
| 1203 1217 | 
             
                  if @api_client.config.debugging
         | 
| 1204 1218 | 
             
                    @api_client.config.logger.debug 'Calling API: FilesApi.upload_file ...'
         | 
| 1205 1219 | 
             
                  end
         | 
| @@ -1207,6 +1221,18 @@ module XeroRuby | |
| 1207 1221 | 
             
                  if @api_client.config.client_side_validation && xero_tenant_id.nil?
         | 
| 1208 1222 | 
             
                    fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling FilesApi.upload_file"
         | 
| 1209 1223 | 
             
                  end
         | 
| 1224 | 
            +
                  # verify the required parameter 'body' is set
         | 
| 1225 | 
            +
                  if @api_client.config.client_side_validation && body.nil?
         | 
| 1226 | 
            +
                    fail ArgumentError, "Missing the required parameter 'body' when calling FilesApi.upload_file"
         | 
| 1227 | 
            +
                  end
         | 
| 1228 | 
            +
                  # verify the required parameter 'name' is set
         | 
| 1229 | 
            +
                  if @api_client.config.client_side_validation && name.nil?
         | 
| 1230 | 
            +
                    fail ArgumentError, "Missing the required parameter 'name' when calling FilesApi.upload_file"
         | 
| 1231 | 
            +
                  end
         | 
| 1232 | 
            +
                  # verify the required parameter 'filename' is set
         | 
| 1233 | 
            +
                  if @api_client.config.client_side_validation && filename.nil?
         | 
| 1234 | 
            +
                    fail ArgumentError, "Missing the required parameter 'filename' when calling FilesApi.upload_file"
         | 
| 1235 | 
            +
                  end
         | 
| 1210 1236 | 
             
                  # resource path
         | 
| 1211 1237 | 
             
                  local_var_path = '/Files'
         | 
| 1212 1238 |  | 
| @@ -1215,7 +1241,6 @@ module XeroRuby | |
| 1215 1241 |  | 
| 1216 1242 | 
             
                  # query parameters
         | 
| 1217 1243 | 
             
                  query_params = opts[:query_params] || {}
         | 
| 1218 | 
            -
                  query_params[:'FolderId'] = opts[:'folder_id'] if !opts[:'folder_id'].nil?
         | 
| 1219 1244 |  | 
| 1220 1245 | 
             
                  # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
         | 
| 1221 1246 | 
             
                  query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
         | 
| @@ -1231,9 +1256,9 @@ module XeroRuby | |
| 1231 1256 |  | 
| 1232 1257 | 
             
                  # form parameters
         | 
| 1233 1258 | 
             
                  form_params = opts[:form_params] || {}
         | 
| 1234 | 
            -
                  form_params['body'] =  | 
| 1235 | 
            -
                  form_params['name'] =  | 
| 1236 | 
            -
                  form_params['filename'] =  | 
| 1259 | 
            +
                  form_params['body'] = body
         | 
| 1260 | 
            +
                  form_params['name'] = name
         | 
| 1261 | 
            +
                  form_params['filename'] = filename
         | 
| 1237 1262 | 
             
                  form_params['mimeType'] = opts[:'mime_type'] if !opts[:'mime_type'].nil?
         | 
| 1238 1263 |  | 
| 1239 1264 | 
             
                  # http body (model)
         | 
| @@ -1260,5 +1285,106 @@ module XeroRuby | |
| 1260 1285 | 
             
                  end
         | 
| 1261 1286 | 
             
                  return data, status_code, headers
         | 
| 1262 1287 | 
             
                end
         | 
| 1288 | 
            +
             | 
| 1289 | 
            +
                # Uploads a File to a specific folder
         | 
| 1290 | 
            +
                # @param xero_tenant_id [String] Xero identifier for Tenant
         | 
| 1291 | 
            +
                # @param folder_id [String] pass required folder id to save file to specific folder
         | 
| 1292 | 
            +
                # @param body [String] 
         | 
| 1293 | 
            +
                # @param name [String] exact name of the file you are uploading
         | 
| 1294 | 
            +
                # @param filename [String] 
         | 
| 1295 | 
            +
                # @param [Hash] opts the optional parameters
         | 
| 1296 | 
            +
                # @option opts [String] :mime_type 
         | 
| 1297 | 
            +
                # @return [FileObject]
         | 
| 1298 | 
            +
                def upload_file_to_folder(xero_tenant_id, folder_id, body, name, filename, opts = {})
         | 
| 1299 | 
            +
                  data, _status_code, _headers = upload_file_to_folder_with_http_info(xero_tenant_id, folder_id, body, name, filename, opts)
         | 
| 1300 | 
            +
                  data
         | 
| 1301 | 
            +
                end
         | 
| 1302 | 
            +
             | 
| 1303 | 
            +
                # Uploads a File to a specific folder
         | 
| 1304 | 
            +
                # @param xero_tenant_id [String] Xero identifier for Tenant
         | 
| 1305 | 
            +
                # @param folder_id [String] pass required folder id to save file to specific folder
         | 
| 1306 | 
            +
                # @param body [String] 
         | 
| 1307 | 
            +
                # @param name [String] exact name of the file you are uploading
         | 
| 1308 | 
            +
                # @param filename [String] 
         | 
| 1309 | 
            +
                # @param [Hash] opts the optional parameters
         | 
| 1310 | 
            +
                # @option opts [String] :mime_type 
         | 
| 1311 | 
            +
                # @return [Array<(FileObject, Integer, Hash)>] FileObject data, response status code and response headers
         | 
| 1312 | 
            +
                def upload_file_to_folder_with_http_info(xero_tenant_id, folder_id, body, name, filename, options = {})
         | 
| 1313 | 
            +
                  opts = options.dup
         | 
| 1314 | 
            +
                  if @api_client.config.debugging
         | 
| 1315 | 
            +
                    @api_client.config.logger.debug 'Calling API: FilesApi.upload_file_to_folder ...'
         | 
| 1316 | 
            +
                  end
         | 
| 1317 | 
            +
                  # verify the required parameter 'xero_tenant_id' is set
         | 
| 1318 | 
            +
                  if @api_client.config.client_side_validation && xero_tenant_id.nil?
         | 
| 1319 | 
            +
                    fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling FilesApi.upload_file_to_folder"
         | 
| 1320 | 
            +
                  end
         | 
| 1321 | 
            +
                  # verify the required parameter 'folder_id' is set
         | 
| 1322 | 
            +
                  if @api_client.config.client_side_validation && folder_id.nil?
         | 
| 1323 | 
            +
                    fail ArgumentError, "Missing the required parameter 'folder_id' when calling FilesApi.upload_file_to_folder"
         | 
| 1324 | 
            +
                  end
         | 
| 1325 | 
            +
                  # verify the required parameter 'body' is set
         | 
| 1326 | 
            +
                  if @api_client.config.client_side_validation && body.nil?
         | 
| 1327 | 
            +
                    fail ArgumentError, "Missing the required parameter 'body' when calling FilesApi.upload_file_to_folder"
         | 
| 1328 | 
            +
                  end
         | 
| 1329 | 
            +
                  # verify the required parameter 'name' is set
         | 
| 1330 | 
            +
                  if @api_client.config.client_side_validation && name.nil?
         | 
| 1331 | 
            +
                    fail ArgumentError, "Missing the required parameter 'name' when calling FilesApi.upload_file_to_folder"
         | 
| 1332 | 
            +
                  end
         | 
| 1333 | 
            +
                  # verify the required parameter 'filename' is set
         | 
| 1334 | 
            +
                  if @api_client.config.client_side_validation && filename.nil?
         | 
| 1335 | 
            +
                    fail ArgumentError, "Missing the required parameter 'filename' when calling FilesApi.upload_file_to_folder"
         | 
| 1336 | 
            +
                  end
         | 
| 1337 | 
            +
                  # resource path
         | 
| 1338 | 
            +
                  local_var_path = '/Files/{FolderId}'.sub('{' + 'FolderId' + '}', folder_id.to_s)
         | 
| 1339 | 
            +
             | 
| 1340 | 
            +
                  # camelize keys of incoming `where` opts
         | 
| 1341 | 
            +
                  opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
         | 
| 1342 | 
            +
             | 
| 1343 | 
            +
                  # query parameters
         | 
| 1344 | 
            +
                  query_params = opts[:query_params] || {}
         | 
| 1345 | 
            +
                  
         | 
| 1346 | 
            +
                  # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
         | 
| 1347 | 
            +
                  query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
         | 
| 1348 | 
            +
                  query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
         | 
| 1349 | 
            +
             | 
| 1350 | 
            +
                  # header parameters
         | 
| 1351 | 
            +
                  header_params = opts[:header_params] || {}
         | 
| 1352 | 
            +
                  # HTTP header 'Accept' (if needed)
         | 
| 1353 | 
            +
                  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
         | 
| 1354 | 
            +
                  # HTTP header 'Content-Type'
         | 
| 1355 | 
            +
                  header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
         | 
| 1356 | 
            +
                  header_params[:'xero-tenant-id'] = xero_tenant_id
         | 
| 1357 | 
            +
             | 
| 1358 | 
            +
                  # form parameters
         | 
| 1359 | 
            +
                  form_params = opts[:form_params] || {}
         | 
| 1360 | 
            +
                  form_params['body'] = body
         | 
| 1361 | 
            +
                  form_params['name'] = name
         | 
| 1362 | 
            +
                  form_params['filename'] = filename
         | 
| 1363 | 
            +
                  form_params['mimeType'] = opts[:'mime_type'] if !opts[:'mime_type'].nil?
         | 
| 1364 | 
            +
             | 
| 1365 | 
            +
                  # http body (model)
         | 
| 1366 | 
            +
                  post_body = opts[:body] 
         | 
| 1367 | 
            +
             | 
| 1368 | 
            +
                  # return_type
         | 
| 1369 | 
            +
                  return_type = opts[:return_type] || 'FileObject' 
         | 
| 1370 | 
            +
             | 
| 1371 | 
            +
                  # auth_names
         | 
| 1372 | 
            +
                  auth_names = opts[:auth_names] || ['OAuth2']
         | 
| 1373 | 
            +
             | 
| 1374 | 
            +
                  new_options = opts.merge(
         | 
| 1375 | 
            +
                    :header_params => header_params,
         | 
| 1376 | 
            +
                    :query_params => query_params,
         | 
| 1377 | 
            +
                    :form_params => form_params,
         | 
| 1378 | 
            +
                    :body => post_body,
         | 
| 1379 | 
            +
                    :auth_names => auth_names,
         | 
| 1380 | 
            +
                    :return_type => return_type
         | 
| 1381 | 
            +
                  )
         | 
| 1382 | 
            +
             | 
| 1383 | 
            +
                  data, status_code, headers = @api_client.call_api(:POST, local_var_path, "FilesApi", new_options)
         | 
| 1384 | 
            +
                  if @api_client.config.debugging
         | 
| 1385 | 
            +
                    @api_client.config.logger.debug "API called: FilesApi#upload_file_to_folder\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
         | 
| 1386 | 
            +
                  end
         | 
| 1387 | 
            +
                  return data, status_code, headers
         | 
| 1388 | 
            +
                end
         | 
| 1263 1389 | 
             
              end
         | 
| 1264 1390 | 
             
            end
         | 
| @@ -31,7 +31,8 @@ module XeroRuby | |
| 31 31 | 
             
                # @param employee [Array<Employee>] 
         | 
| 32 32 | 
             
                # @param [Hash] opts the optional parameters
         | 
| 33 33 | 
             
                # @return [Array<(Employees, Integer, Hash)>] Employees data, response status code and response headers
         | 
| 34 | 
            -
                def create_employee_with_http_info(xero_tenant_id, employee,  | 
| 34 | 
            +
                def create_employee_with_http_info(xero_tenant_id, employee, options = {})
         | 
| 35 | 
            +
                  opts = options.dup
         | 
| 35 36 | 
             
                  if @api_client.config.debugging
         | 
| 36 37 | 
             
                    @api_client.config.logger.debug 'Calling API: PayrollAuApi.create_employee ...'
         | 
| 37 38 | 
             
                  end
         | 
| @@ -107,7 +108,8 @@ module XeroRuby | |
| 107 108 | 
             
                # @param leave_application [Array<LeaveApplication>] 
         | 
| 108 109 | 
             
                # @param [Hash] opts the optional parameters
         | 
| 109 110 | 
             
                # @return [Array<(LeaveApplications, Integer, Hash)>] LeaveApplications data, response status code and response headers
         | 
| 110 | 
            -
                def create_leave_application_with_http_info(xero_tenant_id, leave_application,  | 
| 111 | 
            +
                def create_leave_application_with_http_info(xero_tenant_id, leave_application, options = {})
         | 
| 112 | 
            +
                  opts = options.dup
         | 
| 111 113 | 
             
                  if @api_client.config.debugging
         | 
| 112 114 | 
             
                    @api_client.config.logger.debug 'Calling API: PayrollAuApi.create_leave_application ...'
         | 
| 113 115 | 
             
                  end
         | 
| @@ -183,7 +185,8 @@ module XeroRuby | |
| 183 185 | 
             
                # @param pay_item [PayItem] 
         | 
| 184 186 | 
             
                # @param [Hash] opts the optional parameters
         | 
| 185 187 | 
             
                # @return [Array<(PayItems, Integer, Hash)>] PayItems data, response status code and response headers
         | 
| 186 | 
            -
                def create_pay_item_with_http_info(xero_tenant_id, pay_item,  | 
| 188 | 
            +
                def create_pay_item_with_http_info(xero_tenant_id, pay_item, options = {})
         | 
| 189 | 
            +
                  opts = options.dup
         | 
| 187 190 | 
             
                  if @api_client.config.debugging
         | 
| 188 191 | 
             
                    @api_client.config.logger.debug 'Calling API: PayrollAuApi.create_pay_item ...'
         | 
| 189 192 | 
             
                  end
         | 
| @@ -259,7 +262,8 @@ module XeroRuby | |
| 259 262 | 
             
                # @param pay_run [Array<PayRun>] 
         | 
| 260 263 | 
             
                # @param [Hash] opts the optional parameters
         | 
| 261 264 | 
             
                # @return [Array<(PayRuns, Integer, Hash)>] PayRuns data, response status code and response headers
         | 
| 262 | 
            -
                def create_pay_run_with_http_info(xero_tenant_id, pay_run,  | 
| 265 | 
            +
                def create_pay_run_with_http_info(xero_tenant_id, pay_run, options = {})
         | 
| 266 | 
            +
                  opts = options.dup
         | 
| 263 267 | 
             
                  if @api_client.config.debugging
         | 
| 264 268 | 
             
                    @api_client.config.logger.debug 'Calling API: PayrollAuApi.create_pay_run ...'
         | 
| 265 269 | 
             
                  end
         | 
| @@ -335,7 +339,8 @@ module XeroRuby | |
| 335 339 | 
             
                # @param payroll_calendar [Array<PayrollCalendar>] 
         | 
| 336 340 | 
             
                # @param [Hash] opts the optional parameters
         | 
| 337 341 | 
             
                # @return [Array<(PayrollCalendars, Integer, Hash)>] PayrollCalendars data, response status code and response headers
         | 
| 338 | 
            -
                def create_payroll_calendar_with_http_info(xero_tenant_id, payroll_calendar,  | 
| 342 | 
            +
                def create_payroll_calendar_with_http_info(xero_tenant_id, payroll_calendar, options = {})
         | 
| 343 | 
            +
                  opts = options.dup
         | 
| 339 344 | 
             
                  if @api_client.config.debugging
         | 
| 340 345 | 
             
                    @api_client.config.logger.debug 'Calling API: PayrollAuApi.create_payroll_calendar ...'
         | 
| 341 346 | 
             
                  end
         | 
| @@ -411,7 +416,8 @@ module XeroRuby | |
| 411 416 | 
             
                # @param super_fund [Array<SuperFund>] 
         | 
| 412 417 | 
             
                # @param [Hash] opts the optional parameters
         | 
| 413 418 | 
             
                # @return [Array<(SuperFunds, Integer, Hash)>] SuperFunds data, response status code and response headers
         | 
| 414 | 
            -
                def create_superfund_with_http_info(xero_tenant_id, super_fund,  | 
| 419 | 
            +
                def create_superfund_with_http_info(xero_tenant_id, super_fund, options = {})
         | 
| 420 | 
            +
                  opts = options.dup
         | 
| 415 421 | 
             
                  if @api_client.config.debugging
         | 
| 416 422 | 
             
                    @api_client.config.logger.debug 'Calling API: PayrollAuApi.create_superfund ...'
         | 
| 417 423 | 
             
                  end
         | 
| @@ -487,7 +493,8 @@ module XeroRuby | |
| 487 493 | 
             
                # @param timesheet [Array<Timesheet>] 
         | 
| 488 494 | 
             
                # @param [Hash] opts the optional parameters
         | 
| 489 495 | 
             
                # @return [Array<(Timesheets, Integer, Hash)>] Timesheets data, response status code and response headers
         | 
| 490 | 
            -
                def create_timesheet_with_http_info(xero_tenant_id, timesheet,  | 
| 496 | 
            +
                def create_timesheet_with_http_info(xero_tenant_id, timesheet, options = {})
         | 
| 497 | 
            +
                  opts = options.dup
         | 
| 491 498 | 
             
                  if @api_client.config.debugging
         | 
| 492 499 | 
             
                    @api_client.config.logger.debug 'Calling API: PayrollAuApi.create_timesheet ...'
         | 
| 493 500 | 
             
                  end
         | 
| @@ -563,7 +570,8 @@ module XeroRuby | |
| 563 570 | 
             
                # @param employee_id [String] Employee id for single object
         | 
| 564 571 | 
             
                # @param [Hash] opts the optional parameters
         | 
| 565 572 | 
             
                # @return [Array<(Employees, Integer, Hash)>] Employees data, response status code and response headers
         | 
| 566 | 
            -
                def get_employee_with_http_info(xero_tenant_id, employee_id,  | 
| 573 | 
            +
                def get_employee_with_http_info(xero_tenant_id, employee_id, options = {})
         | 
| 574 | 
            +
                  opts = options.dup
         | 
| 567 575 | 
             
                  if @api_client.config.debugging
         | 
| 568 576 | 
             
                    @api_client.config.logger.debug 'Calling API: PayrollAuApi.get_employee ...'
         | 
| 569 577 | 
             
                  end
         | 
| @@ -643,7 +651,8 @@ module XeroRuby | |
| 643 651 | 
             
                # @option opts [String] :order Order by an any element
         | 
| 644 652 | 
             
                # @option opts [Integer] :page e.g. page=1 – Up to 100 employees will be returned in a single API call
         | 
| 645 653 | 
             
                # @return [Array<(Employees, Integer, Hash)>] Employees data, response status code and response headers
         | 
| 646 | 
            -
                def get_employees_with_http_info(xero_tenant_id,  | 
| 654 | 
            +
                def get_employees_with_http_info(xero_tenant_id, options = {})
         | 
| 655 | 
            +
                  opts = options.dup
         | 
| 647 656 | 
             
                  if @api_client.config.debugging
         | 
| 648 657 | 
             
                    @api_client.config.logger.debug 'Calling API: PayrollAuApi.get_employees ...'
         | 
| 649 658 | 
             
                  end
         | 
| @@ -717,7 +726,8 @@ module XeroRuby | |
| 717 726 | 
             
                # @param leave_application_id [String] Leave Application id for single object
         | 
| 718 727 | 
             
                # @param [Hash] opts the optional parameters
         | 
| 719 728 | 
             
                # @return [Array<(LeaveApplications, Integer, Hash)>] LeaveApplications data, response status code and response headers
         | 
| 720 | 
            -
                def get_leave_application_with_http_info(xero_tenant_id, leave_application_id,  | 
| 729 | 
            +
                def get_leave_application_with_http_info(xero_tenant_id, leave_application_id, options = {})
         | 
| 730 | 
            +
                  opts = options.dup
         | 
| 721 731 | 
             
                  if @api_client.config.debugging
         | 
| 722 732 | 
             
                    @api_client.config.logger.debug 'Calling API: PayrollAuApi.get_leave_application ...'
         | 
| 723 733 | 
             
                  end
         | 
| @@ -797,7 +807,8 @@ module XeroRuby | |
| 797 807 | 
             
                # @option opts [String] :order Order by an any element
         | 
| 798 808 | 
             
                # @option opts [Integer] :page e.g. page=1 – Up to 100 objects will be returned in a single API call
         | 
| 799 809 | 
             
                # @return [Array<(LeaveApplications, Integer, Hash)>] LeaveApplications data, response status code and response headers
         | 
| 800 | 
            -
                def get_leave_applications_with_http_info(xero_tenant_id,  | 
| 810 | 
            +
                def get_leave_applications_with_http_info(xero_tenant_id, options = {})
         | 
| 811 | 
            +
                  opts = options.dup
         | 
| 801 812 | 
             
                  if @api_client.config.debugging
         | 
| 802 813 | 
             
                    @api_client.config.logger.debug 'Calling API: PayrollAuApi.get_leave_applications ...'
         | 
| 803 814 | 
             
                  end
         | 
| @@ -877,7 +888,8 @@ module XeroRuby | |
| 877 888 | 
             
                # @option opts [String] :order Order by an any element
         | 
| 878 889 | 
             
                # @option opts [Integer] :page e.g. page=1 – Up to 100 objects will be returned in a single API call
         | 
| 879 890 | 
             
                # @return [Array<(PayItems, Integer, Hash)>] PayItems data, response status code and response headers
         | 
| 880 | 
            -
                def get_pay_items_with_http_info(xero_tenant_id,  | 
| 891 | 
            +
                def get_pay_items_with_http_info(xero_tenant_id, options = {})
         | 
| 892 | 
            +
                  opts = options.dup
         | 
| 881 893 | 
             
                  if @api_client.config.debugging
         | 
| 882 894 | 
             
                    @api_client.config.logger.debug 'Calling API: PayrollAuApi.get_pay_items ...'
         | 
| 883 895 | 
             
                  end
         | 
| @@ -951,7 +963,8 @@ module XeroRuby | |
| 951 963 | 
             
                # @param pay_run_id [String] PayRun id for single object
         | 
| 952 964 | 
             
                # @param [Hash] opts the optional parameters
         | 
| 953 965 | 
             
                # @return [Array<(PayRuns, Integer, Hash)>] PayRuns data, response status code and response headers
         | 
| 954 | 
            -
                def get_pay_run_with_http_info(xero_tenant_id, pay_run_id,  | 
| 966 | 
            +
                def get_pay_run_with_http_info(xero_tenant_id, pay_run_id, options = {})
         | 
| 967 | 
            +
                  opts = options.dup
         | 
| 955 968 | 
             
                  if @api_client.config.debugging
         | 
| 956 969 | 
             
                    @api_client.config.logger.debug 'Calling API: PayrollAuApi.get_pay_run ...'
         | 
| 957 970 | 
             
                  end
         | 
| @@ -1031,7 +1044,8 @@ module XeroRuby | |
| 1031 1044 | 
             
                # @option opts [String] :order Order by an any element
         | 
| 1032 1045 | 
             
                # @option opts [Integer] :page e.g. page=1 – Up to 100 PayRuns will be returned in a single API call
         | 
| 1033 1046 | 
             
                # @return [Array<(PayRuns, Integer, Hash)>] PayRuns data, response status code and response headers
         | 
| 1034 | 
            -
                def get_pay_runs_with_http_info(xero_tenant_id,  | 
| 1047 | 
            +
                def get_pay_runs_with_http_info(xero_tenant_id, options = {})
         | 
| 1048 | 
            +
                  opts = options.dup
         | 
| 1035 1049 | 
             
                  if @api_client.config.debugging
         | 
| 1036 1050 | 
             
                    @api_client.config.logger.debug 'Calling API: PayrollAuApi.get_pay_runs ...'
         | 
| 1037 1051 | 
             
                  end
         | 
| @@ -1105,7 +1119,8 @@ module XeroRuby | |
| 1105 1119 | 
             
                # @param payroll_calendar_id [String] Payroll Calendar id for single object
         | 
| 1106 1120 | 
             
                # @param [Hash] opts the optional parameters
         | 
| 1107 1121 | 
             
                # @return [Array<(PayrollCalendars, Integer, Hash)>] PayrollCalendars data, response status code and response headers
         | 
| 1108 | 
            -
                def get_payroll_calendar_with_http_info(xero_tenant_id, payroll_calendar_id,  | 
| 1122 | 
            +
                def get_payroll_calendar_with_http_info(xero_tenant_id, payroll_calendar_id, options = {})
         | 
| 1123 | 
            +
                  opts = options.dup
         | 
| 1109 1124 | 
             
                  if @api_client.config.debugging
         | 
| 1110 1125 | 
             
                    @api_client.config.logger.debug 'Calling API: PayrollAuApi.get_payroll_calendar ...'
         | 
| 1111 1126 | 
             
                  end
         | 
| @@ -1185,7 +1200,8 @@ module XeroRuby | |
| 1185 1200 | 
             
                # @option opts [String] :order Order by an any element
         | 
| 1186 1201 | 
             
                # @option opts [Integer] :page e.g. page=1 – Up to 100 objects will be returned in a single API call
         | 
| 1187 1202 | 
             
                # @return [Array<(PayrollCalendars, Integer, Hash)>] PayrollCalendars data, response status code and response headers
         | 
| 1188 | 
            -
                def get_payroll_calendars_with_http_info(xero_tenant_id,  | 
| 1203 | 
            +
                def get_payroll_calendars_with_http_info(xero_tenant_id, options = {})
         | 
| 1204 | 
            +
                  opts = options.dup
         | 
| 1189 1205 | 
             
                  if @api_client.config.debugging
         | 
| 1190 1206 | 
             
                    @api_client.config.logger.debug 'Calling API: PayrollAuApi.get_payroll_calendars ...'
         | 
| 1191 1207 | 
             
                  end
         | 
| @@ -1259,7 +1275,8 @@ module XeroRuby | |
| 1259 1275 | 
             
                # @param payslip_id [String] Payslip id for single object
         | 
| 1260 1276 | 
             
                # @param [Hash] opts the optional parameters
         | 
| 1261 1277 | 
             
                # @return [Array<(PayslipObject, Integer, Hash)>] PayslipObject data, response status code and response headers
         | 
| 1262 | 
            -
                def get_payslip_with_http_info(xero_tenant_id, payslip_id,  | 
| 1278 | 
            +
                def get_payslip_with_http_info(xero_tenant_id, payslip_id, options = {})
         | 
| 1279 | 
            +
                  opts = options.dup
         | 
| 1263 1280 | 
             
                  if @api_client.config.debugging
         | 
| 1264 1281 | 
             
                    @api_client.config.logger.debug 'Calling API: PayrollAuApi.get_payslip ...'
         | 
| 1265 1282 | 
             
                  end
         | 
| @@ -1331,7 +1348,8 @@ module XeroRuby | |
| 1331 1348 | 
             
                # @param xero_tenant_id [String] Xero identifier for Tenant
         | 
| 1332 1349 | 
             
                # @param [Hash] opts the optional parameters
         | 
| 1333 1350 | 
             
                # @return [Array<(SettingsObject, Integer, Hash)>] SettingsObject data, response status code and response headers
         | 
| 1334 | 
            -
                def get_settings_with_http_info(xero_tenant_id,  | 
| 1351 | 
            +
                def get_settings_with_http_info(xero_tenant_id, options = {})
         | 
| 1352 | 
            +
                  opts = options.dup
         | 
| 1335 1353 | 
             
                  if @api_client.config.debugging
         | 
| 1336 1354 | 
             
                    @api_client.config.logger.debug 'Calling API: PayrollAuApi.get_settings ...'
         | 
| 1337 1355 | 
             
                  end
         | 
| @@ -1401,7 +1419,8 @@ module XeroRuby | |
| 1401 1419 | 
             
                # @param super_fund_id [String] Superfund id for single object
         | 
| 1402 1420 | 
             
                # @param [Hash] opts the optional parameters
         | 
| 1403 1421 | 
             
                # @return [Array<(SuperFunds, Integer, Hash)>] SuperFunds data, response status code and response headers
         | 
| 1404 | 
            -
                def get_superfund_with_http_info(xero_tenant_id, super_fund_id,  | 
| 1422 | 
            +
                def get_superfund_with_http_info(xero_tenant_id, super_fund_id, options = {})
         | 
| 1423 | 
            +
                  opts = options.dup
         | 
| 1405 1424 | 
             
                  if @api_client.config.debugging
         | 
| 1406 1425 | 
             
                    @api_client.config.logger.debug 'Calling API: PayrollAuApi.get_superfund ...'
         | 
| 1407 1426 | 
             
                  end
         | 
| @@ -1477,7 +1496,8 @@ module XeroRuby | |
| 1477 1496 | 
             
                # @option opts [String] :abn The ABN of the Regulated SuperFund
         | 
| 1478 1497 | 
             
                # @option opts [String] :usi The USI of the Regulated SuperFund
         | 
| 1479 1498 | 
             
                # @return [Array<(SuperFundProducts, Integer, Hash)>] SuperFundProducts data, response status code and response headers
         | 
| 1480 | 
            -
                def get_superfund_products_with_http_info(xero_tenant_id,  | 
| 1499 | 
            +
                def get_superfund_products_with_http_info(xero_tenant_id, options = {})
         | 
| 1500 | 
            +
                  opts = options.dup
         | 
| 1481 1501 | 
             
                  if @api_client.config.debugging
         | 
| 1482 1502 | 
             
                    @api_client.config.logger.debug 'Calling API: PayrollAuApi.get_superfund_products ...'
         | 
| 1483 1503 | 
             
                  end
         | 
| @@ -1555,7 +1575,8 @@ module XeroRuby | |
| 1555 1575 | 
             
                # @option opts [String] :order Order by an any element
         | 
| 1556 1576 | 
             
                # @option opts [Integer] :page e.g. page=1 – Up to 100 SuperFunds will be returned in a single API call
         | 
| 1557 1577 | 
             
                # @return [Array<(SuperFunds, Integer, Hash)>] SuperFunds data, response status code and response headers
         | 
| 1558 | 
            -
                def get_superfunds_with_http_info(xero_tenant_id,  | 
| 1578 | 
            +
                def get_superfunds_with_http_info(xero_tenant_id, options = {})
         | 
| 1579 | 
            +
                  opts = options.dup
         | 
| 1559 1580 | 
             
                  if @api_client.config.debugging
         | 
| 1560 1581 | 
             
                    @api_client.config.logger.debug 'Calling API: PayrollAuApi.get_superfunds ...'
         | 
| 1561 1582 | 
             
                  end
         | 
| @@ -1629,7 +1650,8 @@ module XeroRuby | |
| 1629 1650 | 
             
                # @param timesheet_id [String] Timesheet id for single object
         | 
| 1630 1651 | 
             
                # @param [Hash] opts the optional parameters
         | 
| 1631 1652 | 
             
                # @return [Array<(TimesheetObject, Integer, Hash)>] TimesheetObject data, response status code and response headers
         | 
| 1632 | 
            -
                def get_timesheet_with_http_info(xero_tenant_id, timesheet_id,  | 
| 1653 | 
            +
                def get_timesheet_with_http_info(xero_tenant_id, timesheet_id, options = {})
         | 
| 1654 | 
            +
                  opts = options.dup
         | 
| 1633 1655 | 
             
                  if @api_client.config.debugging
         | 
| 1634 1656 | 
             
                    @api_client.config.logger.debug 'Calling API: PayrollAuApi.get_timesheet ...'
         | 
| 1635 1657 | 
             
                  end
         | 
| @@ -1709,7 +1731,8 @@ module XeroRuby | |
| 1709 1731 | 
             
                # @option opts [String] :order Order by an any element
         | 
| 1710 1732 | 
             
                # @option opts [Integer] :page e.g. page=1 – Up to 100 timesheets will be returned in a single API call
         | 
| 1711 1733 | 
             
                # @return [Array<(Timesheets, Integer, Hash)>] Timesheets data, response status code and response headers
         | 
| 1712 | 
            -
                def get_timesheets_with_http_info(xero_tenant_id,  | 
| 1734 | 
            +
                def get_timesheets_with_http_info(xero_tenant_id, options = {})
         | 
| 1735 | 
            +
                  opts = options.dup
         | 
| 1713 1736 | 
             
                  if @api_client.config.debugging
         | 
| 1714 1737 | 
             
                    @api_client.config.logger.debug 'Calling API: PayrollAuApi.get_timesheets ...'
         | 
| 1715 1738 | 
             
                  end
         | 
| @@ -1787,7 +1810,8 @@ module XeroRuby | |
| 1787 1810 | 
             
                # @param [Hash] opts the optional parameters
         | 
| 1788 1811 | 
             
                # @option opts [Array<Employee>] :employee 
         | 
| 1789 1812 | 
             
                # @return [Array<(Employees, Integer, Hash)>] Employees data, response status code and response headers
         | 
| 1790 | 
            -
                def update_employee_with_http_info(xero_tenant_id, employee_id,  | 
| 1813 | 
            +
                def update_employee_with_http_info(xero_tenant_id, employee_id, options = {})
         | 
| 1814 | 
            +
                  opts = options.dup
         | 
| 1791 1815 | 
             
                  if @api_client.config.debugging
         | 
| 1792 1816 | 
             
                    @api_client.config.logger.debug 'Calling API: PayrollAuApi.update_employee ...'
         | 
| 1793 1817 | 
             
                  end
         | 
| @@ -1865,7 +1889,8 @@ module XeroRuby | |
| 1865 1889 | 
             
                # @param leave_application [Array<LeaveApplication>] 
         | 
| 1866 1890 | 
             
                # @param [Hash] opts the optional parameters
         | 
| 1867 1891 | 
             
                # @return [Array<(LeaveApplications, Integer, Hash)>] LeaveApplications data, response status code and response headers
         | 
| 1868 | 
            -
                def update_leave_application_with_http_info(xero_tenant_id, leave_application_id, leave_application,  | 
| 1892 | 
            +
                def update_leave_application_with_http_info(xero_tenant_id, leave_application_id, leave_application, options = {})
         | 
| 1893 | 
            +
                  opts = options.dup
         | 
| 1869 1894 | 
             
                  if @api_client.config.debugging
         | 
| 1870 1895 | 
             
                    @api_client.config.logger.debug 'Calling API: PayrollAuApi.update_leave_application ...'
         | 
| 1871 1896 | 
             
                  end
         | 
| @@ -1949,7 +1974,8 @@ module XeroRuby | |
| 1949 1974 | 
             
                # @param [Hash] opts the optional parameters
         | 
| 1950 1975 | 
             
                # @option opts [Array<PayRun>] :pay_run 
         | 
| 1951 1976 | 
             
                # @return [Array<(PayRuns, Integer, Hash)>] PayRuns data, response status code and response headers
         | 
| 1952 | 
            -
                def update_pay_run_with_http_info(xero_tenant_id, pay_run_id,  | 
| 1977 | 
            +
                def update_pay_run_with_http_info(xero_tenant_id, pay_run_id, options = {})
         | 
| 1978 | 
            +
                  opts = options.dup
         | 
| 1953 1979 | 
             
                  if @api_client.config.debugging
         | 
| 1954 1980 | 
             
                    @api_client.config.logger.debug 'Calling API: PayrollAuApi.update_pay_run ...'
         | 
| 1955 1981 | 
             
                  end
         | 
| @@ -2029,7 +2055,8 @@ module XeroRuby | |
| 2029 2055 | 
             
                # @param [Hash] opts the optional parameters
         | 
| 2030 2056 | 
             
                # @option opts [Array<PayslipLines>] :payslip_lines 
         | 
| 2031 2057 | 
             
                # @return [Array<(Payslips, Integer, Hash)>] Payslips data, response status code and response headers
         | 
| 2032 | 
            -
                def update_payslip_with_http_info(xero_tenant_id, payslip_id,  | 
| 2058 | 
            +
                def update_payslip_with_http_info(xero_tenant_id, payslip_id, options = {})
         | 
| 2059 | 
            +
                  opts = options.dup
         | 
| 2033 2060 | 
             
                  if @api_client.config.debugging
         | 
| 2034 2061 | 
             
                    @api_client.config.logger.debug 'Calling API: PayrollAuApi.update_payslip ...'
         | 
| 2035 2062 | 
             
                  end
         | 
| @@ -2109,7 +2136,8 @@ module XeroRuby | |
| 2109 2136 | 
             
                # @param [Hash] opts the optional parameters
         | 
| 2110 2137 | 
             
                # @option opts [Array<SuperFund>] :super_fund 
         | 
| 2111 2138 | 
             
                # @return [Array<(SuperFunds, Integer, Hash)>] SuperFunds data, response status code and response headers
         | 
| 2112 | 
            -
                def update_superfund_with_http_info(xero_tenant_id, super_fund_id,  | 
| 2139 | 
            +
                def update_superfund_with_http_info(xero_tenant_id, super_fund_id, options = {})
         | 
| 2140 | 
            +
                  opts = options.dup
         | 
| 2113 2141 | 
             
                  if @api_client.config.debugging
         | 
| 2114 2142 | 
             
                    @api_client.config.logger.debug 'Calling API: PayrollAuApi.update_superfund ...'
         | 
| 2115 2143 | 
             
                  end
         | 
| @@ -2189,7 +2217,8 @@ module XeroRuby | |
| 2189 2217 | 
             
                # @param [Hash] opts the optional parameters
         | 
| 2190 2218 | 
             
                # @option opts [Array<Timesheet>] :timesheet 
         | 
| 2191 2219 | 
             
                # @return [Array<(Timesheets, Integer, Hash)>] Timesheets data, response status code and response headers
         | 
| 2192 | 
            -
                def update_timesheet_with_http_info(xero_tenant_id, timesheet_id,  | 
| 2220 | 
            +
                def update_timesheet_with_http_info(xero_tenant_id, timesheet_id, options = {})
         | 
| 2221 | 
            +
                  opts = options.dup
         | 
| 2193 2222 | 
             
                  if @api_client.config.debugging
         | 
| 2194 2223 | 
             
                    @api_client.config.logger.debug 'Calling API: PayrollAuApi.update_timesheet ...'
         | 
| 2195 2224 | 
             
                  end
         |