xero-ruby 2.8.0 → 2.10.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2ae2e1e237fab6b52d50d627b80103dd5dfd23e93a708edcbc99ba0105cce082
4
- data.tar.gz: 44b6ee803d4f1e972eb14b1f395e2cd1671168e0fb8aa3bcfff7d6676ef1b1e1
3
+ metadata.gz: 8ce5a3437023733ca6ef290f2b874fd700ed8c4dd6d82ecba1563f88efa928f0
4
+ data.tar.gz: bda03de784931876fadd111f97836af1cdfc5a380bc3127e6f46a96991b077a7
5
5
  SHA512:
6
- metadata.gz: 3ecea5bea8d526518613debfd630dee295a2b2b5fcf436cdad243c8814956a1c63ddaa5cfdedd6c922e59be40310ae43d095bcb4bb79c35a3ae1aa0cf1c6ff51
7
- data.tar.gz: 5d205bea89d635e035986f0f585b515e0685a9844f6826f11722f0de5cc876cab330bb2ffcd52205e8c009b876f56d99a90ac4781f4bbead7f3c13caf33e5f81
6
+ metadata.gz: 472ac79286f53b8e4e7de62c5bece8e21c91a4b7b709ff86bccea9df1cedcadcfea064c01f300b6e61e6c2aa0b611a585638a7c1cb4032ba04683cc0c0f344cc
7
+ data.tar.gz: 4f6e354f10945d8cc0446042158e0e43067238f114899ef9a23d8218f17e9f5fefded2ad130e9c5ce3a850d4418a652f309bf79cd796334fd284994a05d09883
data/README.md CHANGED
@@ -5,54 +5,39 @@ Xero Ruby SDK for OAuth 2.0 generated from [Xero API OpenAPI Spec](https://githu
5
5
 
6
6
  # Documentation
7
7
  Xero Ruby SDK supports Xero's OAuth2.0 authentication and the following Xero API sets.
8
-
9
- ## API Client Docs
10
- * [Accounting Api Docs](/docs/accounting/AccountingApi.md)
11
- * [Asset Api Docs](/docs/assets/AssetApi.md)
12
- * [Project Api Docs](docs/projects/ProjectApi.md)
13
- * [File Api Docs](docs/files/FileApi.md)
14
- * [Payroll Docs (AU)](docs/payroll_au/PayrollAuApi.md)
15
- * [Payroll Docs (NZ)](docs/payroll_nz/PayrollNzApi.md)
16
- * [Payroll Docs (UK)](docs/payroll_uk/PayrollUkApi.md)
17
-
18
- ## API Model Docs
19
- * [Accounting Models Docs](/docs/accounting/)
20
- * [Asset Models Docs](/docs/assets/)
21
- * [Project Models Docs](/docs/projects/)
22
- * [File Models Docs](/docs/files/)
23
- * [Payroll Models (AU)](docs/payroll_au/)
24
- * [Payroll Models (NZ)](docs/payroll_nz/)
25
- * [Payroll Models (UK)](docs/payroll_uk/)
26
-
8
+ ### API Client Documentation
9
+ * [API client methods](https://xeroapi.github.io/xero-ruby/accounting/index.html)
10
+ > This describes to ~200+ accounting API endpoints and their expected params. There are also method reference docs for the Assets, Files, Projects, and Payroll endpoints sets, though we are still working on accurately generating usable parameter examples for all! (feedback welcome)
11
+ ### Model Docs
12
+ * [Models](/docs/)
13
+ > Directory of markdown files, describing the object models for the Accounting, Asset, Projects, Files, Payroll (AU, UK, NZ) Xero API sets.
27
14
  ## Sample Apps
28
- We have two apps showing SDK usage.
29
- * https://github.com/XeroAPI/xero-ruby-oauth2-starter (**Sinatra** - session based / getting started)
30
- * https://github.com/XeroAPI/xero-ruby-oauth2-app (**Rails** - token management / full examples)
15
+ We have two sample apps showing SDK usage:
16
+ * https://github.com/XeroAPI/xero-ruby-oauth2-starter (**Sinatra** - bare minimum to hello world and simple session based storage)
17
+ * https://github.com/XeroAPI/xero-ruby-oauth2-app (**Rails** - token management with robust usage examples)
31
18
 
32
19
  ![sample-app](https://i.imgur.com/OOEn55G.png)
33
20
 
34
- ## Looking for OAuth 1.0a support?
35
- Check out the [Xeroizer](https://github.com/waynerobinson/xeroizer) gem (maintained by community).
21
+ ## Xero Pre-Requisites
22
+ * Create a [free Xero user account](https://www.xero.com/us/signup/api/)
23
+ * Login to your Xero developer [/myapps](https://developer.xero.com/myapps) dashboard & create an API application
24
+ * Copy the credentials from your API app and store/access them using a secure ENV variable strategy
25
+ * Resaearch and include the [neccesary scopes](https://developer.xero.com/documentation/oauth2/scopes) for your app's functionality as a space-seperated list, ex. "`SCOPES="openid profile email accounting.transactions accounting.settings"`"
26
+
27
+
36
28
 
37
- ---
38
29
  ## Installation
39
- To install this gem to your current gemset.
30
+ To install this gem to your project:
40
31
  ```
41
32
  gem install 'xero-ruby'
42
33
  ```
43
- Or add to your gemfile and run `bundle install`.
34
+ Or more commonly in Ruby on Rails usage add to your gemfile and run `bundle install`:
44
35
  ```
45
36
  gem 'xero-ruby'
46
37
  ```
47
38
 
48
- ## Getting Started
49
- * Create a [free Xero user account](https://www.xero.com/us/signup/api/)
50
- * Login to your Xero developer [/myapps](https://developer.xero.com/myapps) dashboard & create an API application and note your API app's credentials.
51
-
52
- ### Creating a Client
53
- * Get the credential values from an API application at https://developer.xero.com/myapps/.
54
- * Include [neccesary scopes](https://developer.xero.com/documentation/oauth2/scopes) as a space-seperated list
55
- * example => "`openid profile email accounting.transactions accounting.settings`"
39
+ ---
40
+ ## Usage
56
41
  ```
57
42
  require 'xero-ruby'
58
43
  ```
@@ -67,48 +52,77 @@ creds = {
67
52
  xero_client ||= XeroRuby::ApiClient.new(credentials: creds)
68
53
  ```
69
54
 
70
- ## User Authorization & Callback
71
- All API requests require a valid access token to be set on the client.
55
+ For additional logging or timeout, add or override any [config](/lib/xero-ruby/configuration.rb) option by passing an optional named parameter `config: {..}`.
56
+ ```ruby
57
+ config = { timeout: 30, debugging: true }
58
+ @xero_client ||= XeroRuby::ApiClient.new(credentials: creds, config: config)
59
+ ```
60
+
61
+ ## OAuth2.0 Authorization & Callback
62
+ All API requests require a valid access token to be set on the xero_client.
72
63
 
73
- To generate a valid `token_set` send a user to the `authorization_url`:
64
+ ### Step 1
65
+ Send the user to the `authorization_url` after you have configured your xero_client
74
66
  ```ruby
75
67
  @authorization_url = xero_client.authorization_url
76
68
 
77
69
  redirect_to @authorization_url
78
70
  ```
79
71
 
80
- Xero will then redirect back to the URI defined in your ENV['REDIRECT_URI'] variable.
81
- *This must match **exactly** with the variable in your /myapps dashboard.*
82
-
83
- In your callback route catch, calling `get_token_set_from_callback` will exchange the temp code in your params, with a valid `token_set` that you can use to make API calls.
72
+ ### Step 2
73
+ On successful authorization, Xero identity will redirect to the URI defined in your `redirect_uri` config which must match **exactly** with the variable in your /myapps dashboard.
74
+ ```
75
+ => /oauth/redirect_uri
76
+ ```
77
+ ### Step 3
78
+ In your server defined callback route, exchange the temporary code for a valid `token_set` that will get set on your client.
84
79
  ```ruby
85
- # => http://localhost:3000/oauth/callback
86
-
87
80
  token_set = xero_client.get_token_set_from_callback(params)
88
-
89
- # save token_set JSON in a datastore in relation to the user authentication
90
-
91
- puts params['state']
92
- => "this-can-be-a-custom-state-parameter"
93
81
  ```
82
+ At this point you should save the token_set as JSON in a datastore in relation to the authenticating user or entity.
94
83
 
95
- ## Making API calls once you have a token_set
96
- For use outside of the initial auth flow, setup the client by passing the whole token_set to `refresh_token_set` or `set_token_set`.
84
+ The sample [Rails app](https://github.com/XeroAPI/xero-ruby-oauth2-app/blob/master/app/controllers/application_controller.rb#L11) shows a solid pattern you can tweak to fit your needs:
97
85
  ```ruby
98
- xero_client.refresh_token_set(user.token_set)
99
-
100
- xero_client.set_token_set(user.token_set)
86
+ # /oauth/redirect_uri -> 'application#callback'
87
+ def callback
88
+ @token_set = @xero_client.get_token_set_from_callback(params)
89
+
90
+ current_user.token_set = @token_set
91
+ current_user.token_set['connections'] = @xero_client.connections
92
+ current_user.active_tenant_id = latest_connection(current_user.token_set['connections'])
93
+ current_user.save!
94
+ flash.notice = "Successfully authenticated with Xero!"
95
+ end
96
+ ```
97
+ ---
98
+ ### What is a Token Set?
99
+ A `token_set` is what we call the XeroAPI response that contains data about your API connection:
100
+ ```json
101
+ {
102
+ "id_token": "xxx.yyy.zz", (if you requested `openid profile email` scope)
103
+ "access_token": "xxx.yyy.zzz",
104
+ "expires_in": 1800,
105
+ "token_type": "Bearer",
106
+ "refresh_token": "xxxxxx", (if you requested `offline_access` scope)
107
+ "scope": "email profile openid accounting.transactions offline_access"
108
+ }
101
109
  ```
102
- A `token_set` contains data about your API connection most importantly :
103
- * `access_token`
104
- * `refresh_token`
105
- * `expiry`
106
110
 
107
- **An `access_token` is valid 30 minutes and a `refresh_token` is valid for 60 days**
111
+ Note that an `access_token` is valid for 30 minutes but a `refresh_token` can be used once in up to a 60 day window. If a refresh_token is used to refresh access you must replace the entire token_set.
108
112
 
109
- Example Token set:
110
- > You can decode the `id_token` & `access_token` for additional metadata by using a [decoding library](https://github.com/jwt/ruby-jwt):
111
- ```json
113
+ Both the `id_token` & `access_token` are JWT's, and can be decoded for to see additional metadata described in the Token Helpers section:
114
+ ## Making API calls with a valid token_set
115
+ After the initial user interaction you can simply setup a xero_client by passing the whole token_set to the client.
116
+ ```ruby
117
+ xero_client.set_token_set(user.token_set)
118
+
119
+ xero_client.refresh_token_set(user.token_set)
120
+ ```
121
+ This sets the access_token on the client, and returns a refreshed `token_set` you should save in your database for the next time you need to connect to Xero's API.
122
+ ## Token Helpers
123
+ ```ruby
124
+ xero_client.token_set
125
+ =>
112
126
  {
113
127
  "id_token": "xxx.yyy.zz",
114
128
  "access_token": "xxx.yyy.zzz",
@@ -117,17 +131,63 @@ Example Token set:
117
131
  "refresh_token": "xxxxxx",
118
132
  "scope": "email profile openid accounting.transactions offline_access"
119
133
  }
120
- ```
121
134
 
122
- ## Token & SDK Helpers
123
- Refresh/connection helpers
135
+ xero_client.access_token
136
+ => "xxx.yyy.zzz"
137
+
138
+ xero_client.decoded_access_token
139
+ => {
140
+ "exp": 1619715843,
141
+ "xero_userid": "xero-user-uuid",
142
+ "scope": [
143
+ "email",
144
+ "profile",
145
+ "openid",
146
+ "accounting.transactions",
147
+ "offline_access"
148
+ ]
149
+ }
150
+
151
+
152
+ xero_client.id_token
153
+ => "aaa.bbb.ccc"
154
+
155
+ xero_client.decoded_id_token
156
+ => {
157
+ "iss": "https://identity.xero.com",
158
+ "email": "luca.pacioli@accounting-services.com",
159
+ "given_name": "Luca",
160
+ "family_name": "Pacioli"
161
+ }
162
+
163
+ xero_client.set_token_set(token_set)
164
+ => true
165
+
166
+ xero_client.get_token_set_from_callback(callback_url_params)
167
+ => new_xero_token_set
168
+
169
+ xero_client.refresh_token_set(token_set)
170
+ => new_xero_token_set
171
+
172
+ # These are automatically populated with `set_token_set`
173
+ # But if you need to set just an access or id token on the client
174
+ xero_client.set_access_token(access_token)
175
+ xero_client.set_id_token(id_token)
176
+
177
+ # Automatically run on initial OAuth flow - can be called its own if desired
178
+ # Read about why we have included this in the default library: https://auth0.com/docs/tokens/access-tokens/validate-access-tokens
179
+ xero_client.validate_tokens(token_set)
180
+ xero_client.decode_jwt(tkn)
181
+ ```
182
+ # Connection Helpers
124
183
  ```ruby
125
- @token_set = xero_client.refresh_token_set(user.token_set)
184
+ xero_client.authorization_url
185
+ => # https://login.xero.com/identity/connect/authorize?response_type=code&client_id=<client_id>&redirect_uri=<redirect_uri>&scope=<scopes>&state=<my-state>
126
186
 
127
- # Xero's tokens can potentially facilitate (n) org connections in a single token.
128
- # It is important to store the `tenantId` of the Organisation your user wants to read/write data.
187
+ # To completely Revoke a user's access token and all their connections
188
+ xero_client.revoke_token(token_set)
129
189
 
130
- # The `updatedDateUtc` will show you the most recently authorized Tenant (AKA Organisation)
190
+ # In case there are > 1 tenants connected the `updatedDateUtc` will show you the most recently authorized tenant (aka organisation) - it is important to store the `tenantId` of the Org your user specified in their API authorization
131
191
  connections = xero_client.connections
132
192
  [{
133
193
  "id" => "xxx-yyy-zzz",
@@ -138,48 +198,28 @@ connections = xero_client.connections
138
198
  "updatedDateUtc" => "2020-04-15T22:37:10.4943410"
139
199
  }]
140
200
 
141
- # To completely Revoke a user's access token and all their connections
142
- # pass in the users token set to the #revoke_token api_client method
143
-
144
- xero_client.revoke_token(user.token_set)
145
-
146
- # disconnect an org from a user's connections. Pass the connection ['id'] not ['tenantId'].
147
- # Useful if you want to enforce only a single org connection per token.
201
+ # To disconnect a single org from a user's active connections pass the connection ['id'] (not ['tenantId'])
202
+ # If you want to enforce only a single org connection per token do this prior to sending user through Xero authorize flow a 2nd time.
148
203
  remaining_connections = xero_client.disconnect(connections[0]['id'])
149
204
 
150
- # set a refreshed token_set
151
- token_set = xero_client.set_token_set(user.token_set)
205
+ xero_client.token_expired?
206
+ => true || false
152
207
 
153
- # access token_set once it is set on the client
154
- token_set = xero_client.token_set
208
+ # This will check against the following logic
209
+ token_expiry = Time.at(decoded_access_token['exp'])
210
+ token_expiry < Time.now
155
211
  ```
156
212
 
157
- Example token expiry helper
158
- ```ruby
159
- require 'jwt'
160
-
161
- def token_expired?
162
- token_expiry = Time.at(decoded_access_token['exp'])
163
- token_expiry < Time.now
164
- end
165
-
166
- def decoded_access_token
167
- JWT.decode(token_set['access_token'], nil, false)[0]
168
- end
169
- ```
170
-
171
- ## API Usage
172
-
213
+ # API Usage
173
214
  ### Accounting API
215
+ > https://xeroapi.github.io/xero-ruby/accounting/index.html
174
216
  ```ruby
175
217
  require 'xero-ruby'
176
218
 
177
219
  xero_client.refresh_token_set(user.token_set)
178
220
 
179
221
  tenant_id = user.active_tenant_id
180
- # example of how to store the `tenantId` of the specific tenant (aka organisation)
181
-
182
- # https://github.com/XeroAPI/xero-ruby/blob/master/accounting/lib/xero-ruby/api/accounting_api.rb
222
+ # Example 'active tenant' logic storage of the tenant the user specified, xero_client.connections[0] is not a safe assumption in case they authorized multiple orgs.
183
223
 
184
224
  # Get Accounts
185
225
  accounts = xero_client.accounting_api.get_accounts(tenant_id).accounts
@@ -208,10 +248,8 @@ attachment = xero_client.accounting_api.create_account_attachment_by_file_name(t
208
248
  ```
209
249
 
210
250
  ### Assets API
251
+ > https://github.com/XeroAPI/xero-ruby/blob/master/accounting/lib/xero-ruby/api/asset_api.rb
211
252
  ```ruby
212
- # https://github.com/XeroAPI/xero-ruby/blob/master/accounting/lib/xero-ruby/api/asset_api.rb
213
-
214
- # Create Asset
215
253
  asset = {
216
254
  "assetName": "AssetName: #{rand(10000)}",
217
255
  "assetNumber": "Asset: #{rand(10000)}",
@@ -221,18 +259,14 @@ asset = xero_client.asset_api.create_asset(tenant_id, asset)
221
259
  ```
222
260
 
223
261
  ### Project API
262
+ > https://github.com/XeroAPI/xero-ruby/blob/master/docs/projects/ProjectApi.md
224
263
  ```ruby
225
- # https://github.com/XeroAPI/xero-ruby/blob/master/docs/projects/ProjectApi.md
226
-
227
- # Get Projects
228
264
  projects = xero_client.project_api.get_projects(tenant_id).items
229
265
  ```
230
266
 
231
267
  ### Files API
268
+ > https://github.com/XeroAPI/xero-ruby/blob/master/docs/files/FileApi.md
232
269
  ```ruby
233
- # https://github.com/XeroAPI/xero-ruby/blob/master/docs/files/FileApi.md
234
-
235
- # Get Files
236
270
  opts = {
237
271
  pagesize: 50, # Integer | pass an optional page size value
238
272
  page: 2, # Integer | number of records to skip for pagination
@@ -339,21 +373,15 @@ opts = {
339
373
  }
340
374
  xero_client.accounting_api.get_bank_transfers(tenant_id, opts).bank_transfers
341
375
  ```
342
- ### NOTE
376
+
343
377
  1) Not all `opts` parameter combinations are available for all endpoints, and there are likely some undiscovered edge cases. If you encounter a filter / sort / where clause that seems buggy open an issue and we will dig.
344
378
 
345
379
  2) Some opts string values may need PascalCasing to match casing defined in our [core API docs](https://developer.xero.com/documentation/api/api-overview).
346
380
  * `opts = { order: 'UpdatedDateUtc DESC'}`
347
381
 
348
382
  3) If you have use cases outside of these examples let us know.
349
-
350
- ## Sample App
351
- The best resource to understanding how to best leverage this SDK is the sample applications showing all the features of the gem.
352
- > https://github.com/XeroAPI/xero-ruby-oauth2-starter (Sinatra - simple getting started)
353
- > https://github.com/XeroAPI/xero-ruby-oauth2-app (Rails - full featured examples)
354
-
355
- ## Contributing
356
- Most of the repo code is auto generated but PR's on issues you encounter are highly encouraged. Xero maintainers will re-incorporate them back into the core SDK build. To develop this gem locally against your project you can use the following development pattern:
383
+ ## Developing locally
384
+ To develop this gem locally against your project you can use the following development pattern:
357
385
 
358
386
  > xero-ruby
359
387
  ```bash
@@ -372,3 +400,16 @@ bundle install
372
400
 
373
401
  ## Testing
374
402
  * `rspec spec/`
403
+
404
+ ## Participating in Xero’s developer community
405
+ This SDK is one of a number of SDK’s that the Xero Developer team builds and maintains. We are grateful for all the contributions that the community makes.
406
+
407
+ Here are a few things you should be aware of as a contributor:
408
+ * Xero has adopted the Contributor Covenant [Code of Conduct](https://github.com/XeroAPI/xero-ruby/blob/master/CODE_OF_CONDUCT.md), we expect all contributors in our community to adhere to it
409
+ * If you raise an issue then please make sure to fill out the github issue template, doing so helps us help you
410
+ * You’re welcome to raise PRs. As our SDKs are generated we may use your code in the core SDK build instead of merging your code
411
+ * We have a [contribution guide](https://github.com/XeroAPI/xero-ruby/blob/master/CONTRIBUTING.md) for you to follow when contributing to this SDK
412
+ * Curious about how we generate our SDK’s? Have a [read of our process](https://devblog.xero.com/building-sdks-for-the-future-b79ff726dfd6) and have a look at our [OpenAPISpec](https://github.com/XeroAPI/Xero-OpenAPI)
413
+ * This software is published under the [MIT License](https://github.com/XeroAPI/xero-ruby/blob/master/LICENSE)
414
+
415
+ For questions that aren’t related to SDKs please refer to our [developer support page](https://developer.xero.com/support/).
data/lib/xero-ruby.rb CHANGED
@@ -290,9 +290,9 @@ require 'xero-ruby/models/files/file_object'
290
290
  require 'xero-ruby/models/files/files'
291
291
  require 'xero-ruby/models/files/folder'
292
292
  require 'xero-ruby/models/files/folders'
293
- require 'xero-ruby/models/files/inline_object'
294
293
  require 'xero-ruby/models/files/object_group'
295
294
  require 'xero-ruby/models/files/object_type'
295
+ require 'xero-ruby/models/files/upload_object'
296
296
  require 'xero-ruby/models/files/user'
297
297
  require 'xero-ruby/models/projects/amount'
298
298
  require 'xero-ruby/models/projects/charge_type'
@@ -31,7 +31,8 @@ module XeroRuby
31
31
  # @param account [Account] Account object in body of request
32
32
  # @param [Hash] opts the optional parameters
33
33
  # @return [Array<(Accounts, Integer, Hash)>] Accounts data, response status code and response headers
34
- def create_account_with_http_info(xero_tenant_id, account, opts = {})
34
+ def create_account_with_http_info(xero_tenant_id, account, options = {})
35
+ opts = options.dup
35
36
  if @api_client.config.debugging
36
37
  @api_client.config.logger.debug 'Calling API: AccountingApi.create_account ...'
37
38
  end
@@ -111,7 +112,8 @@ module XeroRuby
111
112
  # @param body [String] Byte array of file in body of request
112
113
  # @param [Hash] opts the optional parameters
113
114
  # @return [Array<(Attachments, Integer, Hash)>] Attachments data, response status code and response headers
114
- def create_account_attachment_by_file_name_with_http_info(xero_tenant_id, account_id, file_name, body, opts = {})
115
+ def create_account_attachment_by_file_name_with_http_info(xero_tenant_id, account_id, file_name, body, options = {})
116
+ opts = options.dup
115
117
  if @api_client.config.debugging
116
118
  @api_client.config.logger.debug 'Calling API: AccountingApi.create_account_attachment_by_file_name ...'
117
119
  end
@@ -183,7 +185,7 @@ module XeroRuby
183
185
  # Creates an attachment for a specific bank transaction by filename
184
186
  # @param xero_tenant_id [String] Xero identifier for Tenant
185
187
  # @param bank_transaction_id [String] Xero generated unique identifier for a bank transaction
186
- # @param file_name [String] The name of the file being attached
188
+ # @param file_name [String] Name of the attachment
187
189
  # @param body [String] Byte array of file in body of request
188
190
  # @param [Hash] opts the optional parameters
189
191
  # @return [Attachments]
@@ -195,11 +197,12 @@ module XeroRuby
195
197
  # Creates an attachment for a specific bank transaction by filename
196
198
  # @param xero_tenant_id [String] Xero identifier for Tenant
197
199
  # @param bank_transaction_id [String] Xero generated unique identifier for a bank transaction
198
- # @param file_name [String] The name of the file being attached
200
+ # @param file_name [String] Name of the attachment
199
201
  # @param body [String] Byte array of file in body of request
200
202
  # @param [Hash] opts the optional parameters
201
203
  # @return [Array<(Attachments, Integer, Hash)>] Attachments data, response status code and response headers
202
- def create_bank_transaction_attachment_by_file_name_with_http_info(xero_tenant_id, bank_transaction_id, file_name, body, opts = {})
204
+ def create_bank_transaction_attachment_by_file_name_with_http_info(xero_tenant_id, bank_transaction_id, file_name, body, options = {})
205
+ opts = options.dup
203
206
  if @api_client.config.debugging
204
207
  @api_client.config.logger.debug 'Calling API: AccountingApi.create_bank_transaction_attachment_by_file_name ...'
205
208
  end
@@ -285,7 +288,8 @@ module XeroRuby
285
288
  # @param history_records [HistoryRecords] HistoryRecords containing an array of HistoryRecord objects in body of request
286
289
  # @param [Hash] opts the optional parameters
287
290
  # @return [Array<(HistoryRecords, Integer, Hash)>] HistoryRecords data, response status code and response headers
288
- def create_bank_transaction_history_record_with_http_info(xero_tenant_id, bank_transaction_id, history_records, opts = {})
291
+ def create_bank_transaction_history_record_with_http_info(xero_tenant_id, bank_transaction_id, history_records, options = {})
292
+ opts = options.dup
289
293
  if @api_client.config.debugging
290
294
  @api_client.config.logger.debug 'Calling API: AccountingApi.create_bank_transaction_history_record ...'
291
295
  end
@@ -369,7 +373,8 @@ module XeroRuby
369
373
  # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
370
374
  # @option opts [Integer] :unitdp e.g. unitdp&#x3D;4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
371
375
  # @return [Array<(BankTransactions, Integer, Hash)>] BankTransactions data, response status code and response headers
372
- def create_bank_transactions_with_http_info(xero_tenant_id, bank_transactions, opts = {})
376
+ def create_bank_transactions_with_http_info(xero_tenant_id, bank_transactions, options = {})
377
+ opts = options.dup
373
378
  if @api_client.config.debugging
374
379
  @api_client.config.logger.debug 'Calling API: AccountingApi.create_bank_transactions ...'
375
380
  end
@@ -447,7 +452,8 @@ module XeroRuby
447
452
  # @param bank_transfers [BankTransfers] BankTransfers with array of BankTransfer objects in request body
448
453
  # @param [Hash] opts the optional parameters
449
454
  # @return [Array<(BankTransfers, Integer, Hash)>] BankTransfers data, response status code and response headers
450
- def create_bank_transfer_with_http_info(xero_tenant_id, bank_transfers, opts = {})
455
+ def create_bank_transfer_with_http_info(xero_tenant_id, bank_transfers, options = {})
456
+ opts = options.dup
451
457
  if @api_client.config.debugging
452
458
  @api_client.config.logger.debug 'Calling API: AccountingApi.create_bank_transfer ...'
453
459
  end
@@ -510,7 +516,7 @@ module XeroRuby
510
516
 
511
517
  # @param xero_tenant_id [String] Xero identifier for Tenant
512
518
  # @param bank_transfer_id [String] Xero generated unique identifier for a bank transfer
513
- # @param file_name [String] The name of the file being attached to a Bank Transfer
519
+ # @param file_name [String] Name of the attachment
514
520
  # @param body [String] Byte array of file in body of request
515
521
  # @param [Hash] opts the optional parameters
516
522
  # @return [Attachments]
@@ -521,11 +527,12 @@ module XeroRuby
521
527
 
522
528
  # @param xero_tenant_id [String] Xero identifier for Tenant
523
529
  # @param bank_transfer_id [String] Xero generated unique identifier for a bank transfer
524
- # @param file_name [String] The name of the file being attached to a Bank Transfer
530
+ # @param file_name [String] Name of the attachment
525
531
  # @param body [String] Byte array of file in body of request
526
532
  # @param [Hash] opts the optional parameters
527
533
  # @return [Array<(Attachments, Integer, Hash)>] Attachments data, response status code and response headers
528
- def create_bank_transfer_attachment_by_file_name_with_http_info(xero_tenant_id, bank_transfer_id, file_name, body, opts = {})
534
+ def create_bank_transfer_attachment_by_file_name_with_http_info(xero_tenant_id, bank_transfer_id, file_name, body, options = {})
535
+ opts = options.dup
529
536
  if @api_client.config.debugging
530
537
  @api_client.config.logger.debug 'Calling API: AccountingApi.create_bank_transfer_attachment_by_file_name ...'
531
538
  end
@@ -611,7 +618,8 @@ module XeroRuby
611
618
  # @param history_records [HistoryRecords] HistoryRecords containing an array of HistoryRecord objects in body of request
612
619
  # @param [Hash] opts the optional parameters
613
620
  # @return [Array<(HistoryRecords, Integer, Hash)>] HistoryRecords data, response status code and response headers
614
- def create_bank_transfer_history_record_with_http_info(xero_tenant_id, bank_transfer_id, history_records, opts = {})
621
+ def create_bank_transfer_history_record_with_http_info(xero_tenant_id, bank_transfer_id, history_records, options = {})
622
+ opts = options.dup
615
623
  if @api_client.config.debugging
616
624
  @api_client.config.logger.debug 'Calling API: AccountingApi.create_bank_transfer_history_record ...'
617
625
  end
@@ -693,7 +701,8 @@ module XeroRuby
693
701
  # @param [Hash] opts the optional parameters
694
702
  # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
695
703
  # @return [Array<(BatchPayments, Integer, Hash)>] BatchPayments data, response status code and response headers
696
- def create_batch_payment_with_http_info(xero_tenant_id, batch_payments, opts = {})
704
+ def create_batch_payment_with_http_info(xero_tenant_id, batch_payments, options = {})
705
+ opts = options.dup
697
706
  if @api_client.config.debugging
698
707
  @api_client.config.logger.debug 'Calling API: AccountingApi.create_batch_payment ...'
699
708
  end
@@ -772,7 +781,8 @@ module XeroRuby
772
781
  # @param history_records [HistoryRecords] HistoryRecords containing an array of HistoryRecord objects in body of request
773
782
  # @param [Hash] opts the optional parameters
774
783
  # @return [Array<(HistoryRecords, Integer, Hash)>] HistoryRecords data, response status code and response headers
775
- def create_batch_payment_history_record_with_http_info(xero_tenant_id, batch_payment_id, history_records, opts = {})
784
+ def create_batch_payment_history_record_with_http_info(xero_tenant_id, batch_payment_id, history_records, options = {})
785
+ opts = options.dup
776
786
  if @api_client.config.debugging
777
787
  @api_client.config.logger.debug 'Calling API: AccountingApi.create_batch_payment_history_record ...'
778
788
  end
@@ -854,7 +864,8 @@ module XeroRuby
854
864
  # @param payment_service [PaymentService] PaymentService object in body of request
855
865
  # @param [Hash] opts the optional parameters
856
866
  # @return [Array<(PaymentServices, Integer, Hash)>] PaymentServices data, response status code and response headers
857
- def create_branding_theme_payment_services_with_http_info(xero_tenant_id, branding_theme_id, payment_service, opts = {})
867
+ def create_branding_theme_payment_services_with_http_info(xero_tenant_id, branding_theme_id, payment_service, options = {})
868
+ opts = options.dup
858
869
  if @api_client.config.debugging
859
870
  @api_client.config.logger.debug 'Calling API: AccountingApi.create_branding_theme_payment_services ...'
860
871
  end
@@ -921,7 +932,7 @@ module XeroRuby
921
932
 
922
933
  # @param xero_tenant_id [String] Xero identifier for Tenant
923
934
  # @param contact_id [String] Unique identifier for a Contact
924
- # @param file_name [String] Name for the file you are attaching
935
+ # @param file_name [String] Name of the attachment
925
936
  # @param body [String] Byte array of file in body of request
926
937
  # @param [Hash] opts the optional parameters
927
938
  # @return [Attachments]
@@ -932,11 +943,12 @@ module XeroRuby
932
943
 
933
944
  # @param xero_tenant_id [String] Xero identifier for Tenant
934
945
  # @param contact_id [String] Unique identifier for a Contact
935
- # @param file_name [String] Name for the file you are attaching
946
+ # @param file_name [String] Name of the attachment
936
947
  # @param body [String] Byte array of file in body of request
937
948
  # @param [Hash] opts the optional parameters
938
949
  # @return [Array<(Attachments, Integer, Hash)>] Attachments data, response status code and response headers
939
- def create_contact_attachment_by_file_name_with_http_info(xero_tenant_id, contact_id, file_name, body, opts = {})
950
+ def create_contact_attachment_by_file_name_with_http_info(xero_tenant_id, contact_id, file_name, body, options = {})
951
+ opts = options.dup
940
952
  if @api_client.config.debugging
941
953
  @api_client.config.logger.debug 'Calling API: AccountingApi.create_contact_attachment_by_file_name ...'
942
954
  end
@@ -1020,7 +1032,8 @@ module XeroRuby
1020
1032
  # @param contact_groups [ContactGroups] ContactGroups with an array of names in request body
1021
1033
  # @param [Hash] opts the optional parameters
1022
1034
  # @return [Array<(ContactGroups, Integer, Hash)>] ContactGroups data, response status code and response headers
1023
- def create_contact_group_with_http_info(xero_tenant_id, contact_groups, opts = {})
1035
+ def create_contact_group_with_http_info(xero_tenant_id, contact_groups, options = {})
1036
+ opts = options.dup
1024
1037
  if @api_client.config.debugging
1025
1038
  @api_client.config.logger.debug 'Calling API: AccountingApi.create_contact_group ...'
1026
1039
  end
@@ -1098,7 +1111,8 @@ module XeroRuby
1098
1111
  # @param contacts [Contacts] Contacts with array of contacts specifying the ContactID to be added to ContactGroup in body of request
1099
1112
  # @param [Hash] opts the optional parameters
1100
1113
  # @return [Array<(Contacts, Integer, Hash)>] Contacts data, response status code and response headers
1101
- def create_contact_group_contacts_with_http_info(xero_tenant_id, contact_group_id, contacts, opts = {})
1114
+ def create_contact_group_contacts_with_http_info(xero_tenant_id, contact_group_id, contacts, options = {})
1115
+ opts = options.dup
1102
1116
  if @api_client.config.debugging
1103
1117
  @api_client.config.logger.debug 'Calling API: AccountingApi.create_contact_group_contacts ...'
1104
1118
  end
@@ -1180,7 +1194,8 @@ module XeroRuby
1180
1194
  # @param history_records [HistoryRecords] HistoryRecords containing an array of HistoryRecord objects in body of request
1181
1195
  # @param [Hash] opts the optional parameters
1182
1196
  # @return [Array<(HistoryRecords, Integer, Hash)>] HistoryRecords data, response status code and response headers
1183
- def create_contact_history_with_http_info(xero_tenant_id, contact_id, history_records, opts = {})
1197
+ def create_contact_history_with_http_info(xero_tenant_id, contact_id, history_records, options = {})
1198
+ opts = options.dup
1184
1199
  if @api_client.config.debugging
1185
1200
  @api_client.config.logger.debug 'Calling API: AccountingApi.create_contact_history ...'
1186
1201
  end
@@ -1262,7 +1277,8 @@ module XeroRuby
1262
1277
  # @param [Hash] opts the optional parameters
1263
1278
  # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
1264
1279
  # @return [Array<(Contacts, Integer, Hash)>] Contacts data, response status code and response headers
1265
- def create_contacts_with_http_info(xero_tenant_id, contacts, opts = {})
1280
+ def create_contacts_with_http_info(xero_tenant_id, contacts, options = {})
1281
+ opts = options.dup
1266
1282
  if @api_client.config.debugging
1267
1283
  @api_client.config.logger.debug 'Calling API: AccountingApi.create_contacts ...'
1268
1284
  end
@@ -1343,7 +1359,8 @@ module XeroRuby
1343
1359
  # @param [Hash] opts the optional parameters
1344
1360
  # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
1345
1361
  # @return [Array<(Allocations, Integer, Hash)>] Allocations data, response status code and response headers
1346
- def create_credit_note_allocation_with_http_info(xero_tenant_id, credit_note_id, allocations, opts = {})
1362
+ def create_credit_note_allocation_with_http_info(xero_tenant_id, credit_note_id, allocations, options = {})
1363
+ opts = options.dup
1347
1364
  if @api_client.config.debugging
1348
1365
  @api_client.config.logger.debug 'Calling API: AccountingApi.create_credit_note_allocation ...'
1349
1366
  end
@@ -1412,7 +1429,7 @@ module XeroRuby
1412
1429
  # Creates an attachment for a specific credit note
1413
1430
  # @param xero_tenant_id [String] Xero identifier for Tenant
1414
1431
  # @param credit_note_id [String] Unique identifier for a Credit Note
1415
- # @param file_name [String] Name of the file you are attaching to Credit Note
1432
+ # @param file_name [String] Name of the attachment
1416
1433
  # @param body [String] Byte array of file in body of request
1417
1434
  # @param [Hash] opts the optional parameters
1418
1435
  # @option opts [Boolean] :include_online Allows an attachment to be seen by the end customer within their online invoice (default to false)
@@ -1425,12 +1442,13 @@ module XeroRuby
1425
1442
  # Creates an attachment for a specific credit note
1426
1443
  # @param xero_tenant_id [String] Xero identifier for Tenant
1427
1444
  # @param credit_note_id [String] Unique identifier for a Credit Note
1428
- # @param file_name [String] Name of the file you are attaching to Credit Note
1445
+ # @param file_name [String] Name of the attachment
1429
1446
  # @param body [String] Byte array of file in body of request
1430
1447
  # @param [Hash] opts the optional parameters
1431
1448
  # @option opts [Boolean] :include_online Allows an attachment to be seen by the end customer within their online invoice
1432
1449
  # @return [Array<(Attachments, Integer, Hash)>] Attachments data, response status code and response headers
1433
- def create_credit_note_attachment_by_file_name_with_http_info(xero_tenant_id, credit_note_id, file_name, body, opts = {})
1450
+ def create_credit_note_attachment_by_file_name_with_http_info(xero_tenant_id, credit_note_id, file_name, body, options = {})
1451
+ opts = options.dup
1434
1452
  if @api_client.config.debugging
1435
1453
  @api_client.config.logger.debug 'Calling API: AccountingApi.create_credit_note_attachment_by_file_name ...'
1436
1454
  end
@@ -1517,7 +1535,8 @@ module XeroRuby
1517
1535
  # @param history_records [HistoryRecords] HistoryRecords containing an array of HistoryRecord objects in body of request
1518
1536
  # @param [Hash] opts the optional parameters
1519
1537
  # @return [Array<(HistoryRecords, Integer, Hash)>] HistoryRecords data, response status code and response headers
1520
- def create_credit_note_history_with_http_info(xero_tenant_id, credit_note_id, history_records, opts = {})
1538
+ def create_credit_note_history_with_http_info(xero_tenant_id, credit_note_id, history_records, options = {})
1539
+ opts = options.dup
1521
1540
  if @api_client.config.debugging
1522
1541
  @api_client.config.logger.debug 'Calling API: AccountingApi.create_credit_note_history ...'
1523
1542
  end
@@ -1601,7 +1620,8 @@ module XeroRuby
1601
1620
  # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
1602
1621
  # @option opts [Integer] :unitdp e.g. unitdp&#x3D;4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
1603
1622
  # @return [Array<(CreditNotes, Integer, Hash)>] CreditNotes data, response status code and response headers
1604
- def create_credit_notes_with_http_info(xero_tenant_id, credit_notes, opts = {})
1623
+ def create_credit_notes_with_http_info(xero_tenant_id, credit_notes, options = {})
1624
+ opts = options.dup
1605
1625
  if @api_client.config.debugging
1606
1626
  @api_client.config.logger.debug 'Calling API: AccountingApi.create_credit_notes ...'
1607
1627
  end
@@ -1679,7 +1699,8 @@ module XeroRuby
1679
1699
  # @param currency [Currency] Currency object in the body of request
1680
1700
  # @param [Hash] opts the optional parameters
1681
1701
  # @return [Array<(Currencies, Integer, Hash)>] Currencies data, response status code and response headers
1682
- def create_currency_with_http_info(xero_tenant_id, currency, opts = {})
1702
+ def create_currency_with_http_info(xero_tenant_id, currency, options = {})
1703
+ opts = options.dup
1683
1704
  if @api_client.config.debugging
1684
1705
  @api_client.config.logger.debug 'Calling API: AccountingApi.create_currency ...'
1685
1706
  end
@@ -1757,7 +1778,8 @@ module XeroRuby
1757
1778
  # @param [Hash] opts the optional parameters
1758
1779
  # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
1759
1780
  # @return [Array<(Employees, Integer, Hash)>] Employees data, response status code and response headers
1760
- def create_employees_with_http_info(xero_tenant_id, employees, opts = {})
1781
+ def create_employees_with_http_info(xero_tenant_id, employees, options = {})
1782
+ opts = options.dup
1761
1783
  if @api_client.config.debugging
1762
1784
  @api_client.config.logger.debug 'Calling API: AccountingApi.create_employees ...'
1763
1785
  end
@@ -1836,7 +1858,8 @@ module XeroRuby
1836
1858
  # @param history_records [HistoryRecords] HistoryRecords containing an array of HistoryRecord objects in body of request
1837
1859
  # @param [Hash] opts the optional parameters
1838
1860
  # @return [Array<(HistoryRecords, Integer, Hash)>] HistoryRecords data, response status code and response headers
1839
- def create_expense_claim_history_with_http_info(xero_tenant_id, expense_claim_id, history_records, opts = {})
1861
+ def create_expense_claim_history_with_http_info(xero_tenant_id, expense_claim_id, history_records, options = {})
1862
+ opts = options.dup
1840
1863
  if @api_client.config.debugging
1841
1864
  @api_client.config.logger.debug 'Calling API: AccountingApi.create_expense_claim_history ...'
1842
1865
  end
@@ -1916,7 +1939,8 @@ module XeroRuby
1916
1939
  # @param expense_claims [ExpenseClaims] ExpenseClaims with array of ExpenseClaim object in body of request
1917
1940
  # @param [Hash] opts the optional parameters
1918
1941
  # @return [Array<(ExpenseClaims, Integer, Hash)>] ExpenseClaims data, response status code and response headers
1919
- def create_expense_claims_with_http_info(xero_tenant_id, expense_claims, opts = {})
1942
+ def create_expense_claims_with_http_info(xero_tenant_id, expense_claims, options = {})
1943
+ opts = options.dup
1920
1944
  if @api_client.config.debugging
1921
1945
  @api_client.config.logger.debug 'Calling API: AccountingApi.create_expense_claims ...'
1922
1946
  end
@@ -1980,7 +2004,7 @@ module XeroRuby
1980
2004
  # Creates an attachment for a specific invoice or purchase bill by filename
1981
2005
  # @param xero_tenant_id [String] Xero identifier for Tenant
1982
2006
  # @param invoice_id [String] Unique identifier for an Invoice
1983
- # @param file_name [String] Name of the file you are attaching
2007
+ # @param file_name [String] Name of the attachment
1984
2008
  # @param body [String] Byte array of file in body of request
1985
2009
  # @param [Hash] opts the optional parameters
1986
2010
  # @option opts [Boolean] :include_online Allows an attachment to be seen by the end customer within their online invoice (default to false)
@@ -1993,12 +2017,13 @@ module XeroRuby
1993
2017
  # Creates an attachment for a specific invoice or purchase bill by filename
1994
2018
  # @param xero_tenant_id [String] Xero identifier for Tenant
1995
2019
  # @param invoice_id [String] Unique identifier for an Invoice
1996
- # @param file_name [String] Name of the file you are attaching
2020
+ # @param file_name [String] Name of the attachment
1997
2021
  # @param body [String] Byte array of file in body of request
1998
2022
  # @param [Hash] opts the optional parameters
1999
2023
  # @option opts [Boolean] :include_online Allows an attachment to be seen by the end customer within their online invoice
2000
2024
  # @return [Array<(Attachments, Integer, Hash)>] Attachments data, response status code and response headers
2001
- def create_invoice_attachment_by_file_name_with_http_info(xero_tenant_id, invoice_id, file_name, body, opts = {})
2025
+ def create_invoice_attachment_by_file_name_with_http_info(xero_tenant_id, invoice_id, file_name, body, options = {})
2026
+ opts = options.dup
2002
2027
  if @api_client.config.debugging
2003
2028
  @api_client.config.logger.debug 'Calling API: AccountingApi.create_invoice_attachment_by_file_name ...'
2004
2029
  end
@@ -2085,7 +2110,8 @@ module XeroRuby
2085
2110
  # @param history_records [HistoryRecords] HistoryRecords containing an array of HistoryRecord objects in body of request
2086
2111
  # @param [Hash] opts the optional parameters
2087
2112
  # @return [Array<(HistoryRecords, Integer, Hash)>] HistoryRecords data, response status code and response headers
2088
- def create_invoice_history_with_http_info(xero_tenant_id, invoice_id, history_records, opts = {})
2113
+ def create_invoice_history_with_http_info(xero_tenant_id, invoice_id, history_records, options = {})
2114
+ opts = options.dup
2089
2115
  if @api_client.config.debugging
2090
2116
  @api_client.config.logger.debug 'Calling API: AccountingApi.create_invoice_history ...'
2091
2117
  end
@@ -2169,7 +2195,8 @@ module XeroRuby
2169
2195
  # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
2170
2196
  # @option opts [Integer] :unitdp e.g. unitdp&#x3D;4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
2171
2197
  # @return [Array<(Invoices, Integer, Hash)>] Invoices data, response status code and response headers
2172
- def create_invoices_with_http_info(xero_tenant_id, invoices, opts = {})
2198
+ def create_invoices_with_http_info(xero_tenant_id, invoices, options = {})
2199
+ opts = options.dup
2173
2200
  if @api_client.config.debugging
2174
2201
  @api_client.config.logger.debug 'Calling API: AccountingApi.create_invoices ...'
2175
2202
  end
@@ -2249,7 +2276,8 @@ module XeroRuby
2249
2276
  # @param history_records [HistoryRecords] HistoryRecords containing an array of HistoryRecord objects in body of request
2250
2277
  # @param [Hash] opts the optional parameters
2251
2278
  # @return [Array<(HistoryRecords, Integer, Hash)>] HistoryRecords data, response status code and response headers
2252
- def create_item_history_with_http_info(xero_tenant_id, item_id, history_records, opts = {})
2279
+ def create_item_history_with_http_info(xero_tenant_id, item_id, history_records, options = {})
2280
+ opts = options.dup
2253
2281
  if @api_client.config.debugging
2254
2282
  @api_client.config.logger.debug 'Calling API: AccountingApi.create_item_history ...'
2255
2283
  end
@@ -2333,7 +2361,8 @@ module XeroRuby
2333
2361
  # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
2334
2362
  # @option opts [Integer] :unitdp e.g. unitdp&#x3D;4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
2335
2363
  # @return [Array<(Items, Integer, Hash)>] Items data, response status code and response headers
2336
- def create_items_with_http_info(xero_tenant_id, items, opts = {})
2364
+ def create_items_with_http_info(xero_tenant_id, items, options = {})
2365
+ opts = options.dup
2337
2366
  if @api_client.config.debugging
2338
2367
  @api_client.config.logger.debug 'Calling API: AccountingApi.create_items ...'
2339
2368
  end
@@ -2411,7 +2440,8 @@ module XeroRuby
2411
2440
  # @param linked_transaction [LinkedTransaction] LinkedTransaction object in body of request
2412
2441
  # @param [Hash] opts the optional parameters
2413
2442
  # @return [Array<(LinkedTransactions, Integer, Hash)>] LinkedTransactions data, response status code and response headers
2414
- def create_linked_transaction_with_http_info(xero_tenant_id, linked_transaction, opts = {})
2443
+ def create_linked_transaction_with_http_info(xero_tenant_id, linked_transaction, options = {})
2444
+ opts = options.dup
2415
2445
  if @api_client.config.debugging
2416
2446
  @api_client.config.logger.debug 'Calling API: AccountingApi.create_linked_transaction ...'
2417
2447
  end
@@ -2475,7 +2505,7 @@ module XeroRuby
2475
2505
  # Creates a specific attachment for a specific manual journal by file name
2476
2506
  # @param xero_tenant_id [String] Xero identifier for Tenant
2477
2507
  # @param manual_journal_id [String] Unique identifier for a ManualJournal
2478
- # @param file_name [String] The name of the file being attached to a ManualJournal
2508
+ # @param file_name [String] Name of the attachment
2479
2509
  # @param body [String] Byte array of file in body of request
2480
2510
  # @param [Hash] opts the optional parameters
2481
2511
  # @return [Attachments]
@@ -2487,11 +2517,12 @@ module XeroRuby
2487
2517
  # Creates a specific attachment for a specific manual journal by file name
2488
2518
  # @param xero_tenant_id [String] Xero identifier for Tenant
2489
2519
  # @param manual_journal_id [String] Unique identifier for a ManualJournal
2490
- # @param file_name [String] The name of the file being attached to a ManualJournal
2520
+ # @param file_name [String] Name of the attachment
2491
2521
  # @param body [String] Byte array of file in body of request
2492
2522
  # @param [Hash] opts the optional parameters
2493
2523
  # @return [Array<(Attachments, Integer, Hash)>] Attachments data, response status code and response headers
2494
- def create_manual_journal_attachment_by_file_name_with_http_info(xero_tenant_id, manual_journal_id, file_name, body, opts = {})
2524
+ def create_manual_journal_attachment_by_file_name_with_http_info(xero_tenant_id, manual_journal_id, file_name, body, options = {})
2525
+ opts = options.dup
2495
2526
  if @api_client.config.debugging
2496
2527
  @api_client.config.logger.debug 'Calling API: AccountingApi.create_manual_journal_attachment_by_file_name ...'
2497
2528
  end
@@ -2562,7 +2593,7 @@ module XeroRuby
2562
2593
 
2563
2594
  # Creates a history record for a specific manual journal
2564
2595
  # @param xero_tenant_id [String] Xero identifier for Tenant
2565
- # @param manual_journal_id [String] Xero generated unique identifier for a manual journal
2596
+ # @param manual_journal_id [String] Unique identifier for a ManualJournal
2566
2597
  # @param history_records [HistoryRecords] HistoryRecords containing an array of HistoryRecord objects in body of request
2567
2598
  # @param [Hash] opts the optional parameters
2568
2599
  # @return [HistoryRecords]
@@ -2573,11 +2604,12 @@ module XeroRuby
2573
2604
 
2574
2605
  # Creates a history record for a specific manual journal
2575
2606
  # @param xero_tenant_id [String] Xero identifier for Tenant
2576
- # @param manual_journal_id [String] Xero generated unique identifier for a manual journal
2607
+ # @param manual_journal_id [String] Unique identifier for a ManualJournal
2577
2608
  # @param history_records [HistoryRecords] HistoryRecords containing an array of HistoryRecord objects in body of request
2578
2609
  # @param [Hash] opts the optional parameters
2579
2610
  # @return [Array<(HistoryRecords, Integer, Hash)>] HistoryRecords data, response status code and response headers
2580
- def create_manual_journal_history_record_with_http_info(xero_tenant_id, manual_journal_id, history_records, opts = {})
2611
+ def create_manual_journal_history_record_with_http_info(xero_tenant_id, manual_journal_id, history_records, options = {})
2612
+ opts = options.dup
2581
2613
  if @api_client.config.debugging
2582
2614
  @api_client.config.logger.debug 'Calling API: AccountingApi.create_manual_journal_history_record ...'
2583
2615
  end
@@ -2659,7 +2691,8 @@ module XeroRuby
2659
2691
  # @param [Hash] opts the optional parameters
2660
2692
  # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
2661
2693
  # @return [Array<(ManualJournals, Integer, Hash)>] ManualJournals data, response status code and response headers
2662
- def create_manual_journals_with_http_info(xero_tenant_id, manual_journals, opts = {})
2694
+ def create_manual_journals_with_http_info(xero_tenant_id, manual_journals, options = {})
2695
+ opts = options.dup
2663
2696
  if @api_client.config.debugging
2664
2697
  @api_client.config.logger.debug 'Calling API: AccountingApi.create_manual_journals ...'
2665
2698
  end
@@ -2740,7 +2773,8 @@ module XeroRuby
2740
2773
  # @param [Hash] opts the optional parameters
2741
2774
  # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
2742
2775
  # @return [Array<(Allocations, Integer, Hash)>] Allocations data, response status code and response headers
2743
- def create_overpayment_allocations_with_http_info(xero_tenant_id, overpayment_id, allocations, opts = {})
2776
+ def create_overpayment_allocations_with_http_info(xero_tenant_id, overpayment_id, allocations, options = {})
2777
+ opts = options.dup
2744
2778
  if @api_client.config.debugging
2745
2779
  @api_client.config.logger.debug 'Calling API: AccountingApi.create_overpayment_allocations ...'
2746
2780
  end
@@ -2823,7 +2857,8 @@ module XeroRuby
2823
2857
  # @param history_records [HistoryRecords] HistoryRecords containing an array of HistoryRecord objects in body of request
2824
2858
  # @param [Hash] opts the optional parameters
2825
2859
  # @return [Array<(HistoryRecords, Integer, Hash)>] HistoryRecords data, response status code and response headers
2826
- def create_overpayment_history_with_http_info(xero_tenant_id, overpayment_id, history_records, opts = {})
2860
+ def create_overpayment_history_with_http_info(xero_tenant_id, overpayment_id, history_records, options = {})
2861
+ opts = options.dup
2827
2862
  if @api_client.config.debugging
2828
2863
  @api_client.config.logger.debug 'Calling API: AccountingApi.create_overpayment_history ...'
2829
2864
  end
@@ -2903,7 +2938,8 @@ module XeroRuby
2903
2938
  # @param payment [Payment] Request body with a single Payment object
2904
2939
  # @param [Hash] opts the optional parameters
2905
2940
  # @return [Array<(Payments, Integer, Hash)>] Payments data, response status code and response headers
2906
- def create_payment_with_http_info(xero_tenant_id, payment, opts = {})
2941
+ def create_payment_with_http_info(xero_tenant_id, payment, options = {})
2942
+ opts = options.dup
2907
2943
  if @api_client.config.debugging
2908
2944
  @api_client.config.logger.debug 'Calling API: AccountingApi.create_payment ...'
2909
2945
  end
@@ -2981,7 +3017,8 @@ module XeroRuby
2981
3017
  # @param history_records [HistoryRecords] HistoryRecords containing an array of HistoryRecord objects in body of request
2982
3018
  # @param [Hash] opts the optional parameters
2983
3019
  # @return [Array<(HistoryRecords, Integer, Hash)>] HistoryRecords data, response status code and response headers
2984
- def create_payment_history_with_http_info(xero_tenant_id, payment_id, history_records, opts = {})
3020
+ def create_payment_history_with_http_info(xero_tenant_id, payment_id, history_records, options = {})
3021
+ opts = options.dup
2985
3022
  if @api_client.config.debugging
2986
3023
  @api_client.config.logger.debug 'Calling API: AccountingApi.create_payment_history ...'
2987
3024
  end
@@ -3061,7 +3098,8 @@ module XeroRuby
3061
3098
  # @param payment_services [PaymentServices] PaymentServices array with PaymentService object in body of request
3062
3099
  # @param [Hash] opts the optional parameters
3063
3100
  # @return [Array<(PaymentServices, Integer, Hash)>] PaymentServices data, response status code and response headers
3064
- def create_payment_service_with_http_info(xero_tenant_id, payment_services, opts = {})
3101
+ def create_payment_service_with_http_info(xero_tenant_id, payment_services, options = {})
3102
+ opts = options.dup
3065
3103
  if @api_client.config.debugging
3066
3104
  @api_client.config.logger.debug 'Calling API: AccountingApi.create_payment_service ...'
3067
3105
  end
@@ -3139,7 +3177,8 @@ module XeroRuby
3139
3177
  # @param [Hash] opts the optional parameters
3140
3178
  # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
3141
3179
  # @return [Array<(Payments, Integer, Hash)>] Payments data, response status code and response headers
3142
- def create_payments_with_http_info(xero_tenant_id, payments, opts = {})
3180
+ def create_payments_with_http_info(xero_tenant_id, payments, options = {})
3181
+ opts = options.dup
3143
3182
  if @api_client.config.debugging
3144
3183
  @api_client.config.logger.debug 'Calling API: AccountingApi.create_payments ...'
3145
3184
  end
@@ -3203,7 +3242,7 @@ module XeroRuby
3203
3242
 
3204
3243
  # Allows you to create an Allocation for prepayments
3205
3244
  # @param xero_tenant_id [String] Xero identifier for Tenant
3206
- # @param prepayment_id [String] Unique identifier for Prepayment
3245
+ # @param prepayment_id [String] Unique identifier for a PrePayment
3207
3246
  # @param allocations [Allocations] Allocations with an array of Allocation object in body of request
3208
3247
  # @param [Hash] opts the optional parameters
3209
3248
  # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors (default to false)
@@ -3215,12 +3254,13 @@ module XeroRuby
3215
3254
 
3216
3255
  # Allows you to create an Allocation for prepayments
3217
3256
  # @param xero_tenant_id [String] Xero identifier for Tenant
3218
- # @param prepayment_id [String] Unique identifier for Prepayment
3257
+ # @param prepayment_id [String] Unique identifier for a PrePayment
3219
3258
  # @param allocations [Allocations] Allocations with an array of Allocation object in body of request
3220
3259
  # @param [Hash] opts the optional parameters
3221
3260
  # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
3222
3261
  # @return [Array<(Allocations, Integer, Hash)>] Allocations data, response status code and response headers
3223
- def create_prepayment_allocations_with_http_info(xero_tenant_id, prepayment_id, allocations, opts = {})
3262
+ def create_prepayment_allocations_with_http_info(xero_tenant_id, prepayment_id, allocations, options = {})
3263
+ opts = options.dup
3224
3264
  if @api_client.config.debugging
3225
3265
  @api_client.config.logger.debug 'Calling API: AccountingApi.create_prepayment_allocations ...'
3226
3266
  end
@@ -3303,7 +3343,8 @@ module XeroRuby
3303
3343
  # @param history_records [HistoryRecords] HistoryRecords containing an array of HistoryRecord objects in body of request
3304
3344
  # @param [Hash] opts the optional parameters
3305
3345
  # @return [Array<(HistoryRecords, Integer, Hash)>] HistoryRecords data, response status code and response headers
3306
- def create_prepayment_history_with_http_info(xero_tenant_id, prepayment_id, history_records, opts = {})
3346
+ def create_prepayment_history_with_http_info(xero_tenant_id, prepayment_id, history_records, options = {})
3347
+ opts = options.dup
3307
3348
  if @api_client.config.debugging
3308
3349
  @api_client.config.logger.debug 'Calling API: AccountingApi.create_prepayment_history ...'
3309
3350
  end
@@ -3370,7 +3411,7 @@ module XeroRuby
3370
3411
 
3371
3412
  # Creates attachment for a specific purchase order
3372
3413
  # @param xero_tenant_id [String] Xero identifier for Tenant
3373
- # @param purchase_order_id [String] Unique identifier for Purchase Order object
3414
+ # @param purchase_order_id [String] Unique identifier for an Purchase Order
3374
3415
  # @param file_name [String] Name of the attachment
3375
3416
  # @param body [String] Byte array of file in body of request
3376
3417
  # @param [Hash] opts the optional parameters
@@ -3382,12 +3423,13 @@ module XeroRuby
3382
3423
 
3383
3424
  # Creates attachment for a specific purchase order
3384
3425
  # @param xero_tenant_id [String] Xero identifier for Tenant
3385
- # @param purchase_order_id [String] Unique identifier for Purchase Order object
3426
+ # @param purchase_order_id [String] Unique identifier for an Purchase Order
3386
3427
  # @param file_name [String] Name of the attachment
3387
3428
  # @param body [String] Byte array of file in body of request
3388
3429
  # @param [Hash] opts the optional parameters
3389
3430
  # @return [Array<(Attachments, Integer, Hash)>] Attachments data, response status code and response headers
3390
- def create_purchase_order_attachment_by_file_name_with_http_info(xero_tenant_id, purchase_order_id, file_name, body, opts = {})
3431
+ def create_purchase_order_attachment_by_file_name_with_http_info(xero_tenant_id, purchase_order_id, file_name, body, options = {})
3432
+ opts = options.dup
3391
3433
  if @api_client.config.debugging
3392
3434
  @api_client.config.logger.debug 'Calling API: AccountingApi.create_purchase_order_attachment_by_file_name ...'
3393
3435
  end
@@ -3458,7 +3500,7 @@ module XeroRuby
3458
3500
 
3459
3501
  # Creates a history record for a specific purchase orders
3460
3502
  # @param xero_tenant_id [String] Xero identifier for Tenant
3461
- # @param purchase_order_id [String] Unique identifier for a PurchaseOrder
3503
+ # @param purchase_order_id [String] Unique identifier for an Purchase Order
3462
3504
  # @param history_records [HistoryRecords] HistoryRecords containing an array of HistoryRecord objects in body of request
3463
3505
  # @param [Hash] opts the optional parameters
3464
3506
  # @return [HistoryRecords]
@@ -3469,11 +3511,12 @@ module XeroRuby
3469
3511
 
3470
3512
  # Creates a history record for a specific purchase orders
3471
3513
  # @param xero_tenant_id [String] Xero identifier for Tenant
3472
- # @param purchase_order_id [String] Unique identifier for a PurchaseOrder
3514
+ # @param purchase_order_id [String] Unique identifier for an Purchase Order
3473
3515
  # @param history_records [HistoryRecords] HistoryRecords containing an array of HistoryRecord objects in body of request
3474
3516
  # @param [Hash] opts the optional parameters
3475
3517
  # @return [Array<(HistoryRecords, Integer, Hash)>] HistoryRecords data, response status code and response headers
3476
- def create_purchase_order_history_with_http_info(xero_tenant_id, purchase_order_id, history_records, opts = {})
3518
+ def create_purchase_order_history_with_http_info(xero_tenant_id, purchase_order_id, history_records, options = {})
3519
+ opts = options.dup
3477
3520
  if @api_client.config.debugging
3478
3521
  @api_client.config.logger.debug 'Calling API: AccountingApi.create_purchase_order_history ...'
3479
3522
  end
@@ -3555,7 +3598,8 @@ module XeroRuby
3555
3598
  # @param [Hash] opts the optional parameters
3556
3599
  # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
3557
3600
  # @return [Array<(PurchaseOrders, Integer, Hash)>] PurchaseOrders data, response status code and response headers
3558
- def create_purchase_orders_with_http_info(xero_tenant_id, purchase_orders, opts = {})
3601
+ def create_purchase_orders_with_http_info(xero_tenant_id, purchase_orders, options = {})
3602
+ opts = options.dup
3559
3603
  if @api_client.config.debugging
3560
3604
  @api_client.config.logger.debug 'Calling API: AccountingApi.create_purchase_orders ...'
3561
3605
  end
@@ -3619,7 +3663,7 @@ module XeroRuby
3619
3663
 
3620
3664
  # Creates attachment for a specific quote
3621
3665
  # @param xero_tenant_id [String] Xero identifier for Tenant
3622
- # @param quote_id [String] Unique identifier for Quote object
3666
+ # @param quote_id [String] Unique identifier for an Quote
3623
3667
  # @param file_name [String] Name of the attachment
3624
3668
  # @param body [String] Byte array of file in body of request
3625
3669
  # @param [Hash] opts the optional parameters
@@ -3631,12 +3675,13 @@ module XeroRuby
3631
3675
 
3632
3676
  # Creates attachment for a specific quote
3633
3677
  # @param xero_tenant_id [String] Xero identifier for Tenant
3634
- # @param quote_id [String] Unique identifier for Quote object
3678
+ # @param quote_id [String] Unique identifier for an Quote
3635
3679
  # @param file_name [String] Name of the attachment
3636
3680
  # @param body [String] Byte array of file in body of request
3637
3681
  # @param [Hash] opts the optional parameters
3638
3682
  # @return [Array<(Attachments, Integer, Hash)>] Attachments data, response status code and response headers
3639
- def create_quote_attachment_by_file_name_with_http_info(xero_tenant_id, quote_id, file_name, body, opts = {})
3683
+ def create_quote_attachment_by_file_name_with_http_info(xero_tenant_id, quote_id, file_name, body, options = {})
3684
+ opts = options.dup
3640
3685
  if @api_client.config.debugging
3641
3686
  @api_client.config.logger.debug 'Calling API: AccountingApi.create_quote_attachment_by_file_name ...'
3642
3687
  end
@@ -3722,7 +3767,8 @@ module XeroRuby
3722
3767
  # @param history_records [HistoryRecords] HistoryRecords containing an array of HistoryRecord objects in body of request
3723
3768
  # @param [Hash] opts the optional parameters
3724
3769
  # @return [Array<(HistoryRecords, Integer, Hash)>] HistoryRecords data, response status code and response headers
3725
- def create_quote_history_with_http_info(xero_tenant_id, quote_id, history_records, opts = {})
3770
+ def create_quote_history_with_http_info(xero_tenant_id, quote_id, history_records, options = {})
3771
+ opts = options.dup
3726
3772
  if @api_client.config.debugging
3727
3773
  @api_client.config.logger.debug 'Calling API: AccountingApi.create_quote_history ...'
3728
3774
  end
@@ -3804,7 +3850,8 @@ module XeroRuby
3804
3850
  # @param [Hash] opts the optional parameters
3805
3851
  # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
3806
3852
  # @return [Array<(Quotes, Integer, Hash)>] Quotes data, response status code and response headers
3807
- def create_quotes_with_http_info(xero_tenant_id, quotes, opts = {})
3853
+ def create_quotes_with_http_info(xero_tenant_id, quotes, options = {})
3854
+ opts = options.dup
3808
3855
  if @api_client.config.debugging
3809
3856
  @api_client.config.logger.debug 'Calling API: AccountingApi.create_quotes ...'
3810
3857
  end
@@ -3883,7 +3930,8 @@ module XeroRuby
3883
3930
  # @param [Hash] opts the optional parameters
3884
3931
  # @option opts [Integer] :unitdp e.g. unitdp&#x3D;4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
3885
3932
  # @return [Array<(Receipts, Integer, Hash)>] Receipts data, response status code and response headers
3886
- def create_receipt_with_http_info(xero_tenant_id, receipts, opts = {})
3933
+ def create_receipt_with_http_info(xero_tenant_id, receipts, options = {})
3934
+ opts = options.dup
3887
3935
  if @api_client.config.debugging
3888
3936
  @api_client.config.logger.debug 'Calling API: AccountingApi.create_receipt ...'
3889
3937
  end
@@ -3948,7 +3996,7 @@ module XeroRuby
3948
3996
  # Creates an attachment on a specific expense claim receipts by file name
3949
3997
  # @param xero_tenant_id [String] Xero identifier for Tenant
3950
3998
  # @param receipt_id [String] Unique identifier for a Receipt
3951
- # @param file_name [String] The name of the file being attached to the Receipt
3999
+ # @param file_name [String] Name of the attachment
3952
4000
  # @param body [String] Byte array of file in body of request
3953
4001
  # @param [Hash] opts the optional parameters
3954
4002
  # @return [Attachments]
@@ -3960,11 +4008,12 @@ module XeroRuby
3960
4008
  # Creates an attachment on a specific expense claim receipts by file name
3961
4009
  # @param xero_tenant_id [String] Xero identifier for Tenant
3962
4010
  # @param receipt_id [String] Unique identifier for a Receipt
3963
- # @param file_name [String] The name of the file being attached to the Receipt
4011
+ # @param file_name [String] Name of the attachment
3964
4012
  # @param body [String] Byte array of file in body of request
3965
4013
  # @param [Hash] opts the optional parameters
3966
4014
  # @return [Array<(Attachments, Integer, Hash)>] Attachments data, response status code and response headers
3967
- def create_receipt_attachment_by_file_name_with_http_info(xero_tenant_id, receipt_id, file_name, body, opts = {})
4015
+ def create_receipt_attachment_by_file_name_with_http_info(xero_tenant_id, receipt_id, file_name, body, options = {})
4016
+ opts = options.dup
3968
4017
  if @api_client.config.debugging
3969
4018
  @api_client.config.logger.debug 'Calling API: AccountingApi.create_receipt_attachment_by_file_name ...'
3970
4019
  end
@@ -4050,7 +4099,8 @@ module XeroRuby
4050
4099
  # @param history_records [HistoryRecords] HistoryRecords containing an array of HistoryRecord objects in body of request
4051
4100
  # @param [Hash] opts the optional parameters
4052
4101
  # @return [Array<(HistoryRecords, Integer, Hash)>] HistoryRecords data, response status code and response headers
4053
- def create_receipt_history_with_http_info(xero_tenant_id, receipt_id, history_records, opts = {})
4102
+ def create_receipt_history_with_http_info(xero_tenant_id, receipt_id, history_records, options = {})
4103
+ opts = options.dup
4054
4104
  if @api_client.config.debugging
4055
4105
  @api_client.config.logger.debug 'Calling API: AccountingApi.create_receipt_history ...'
4056
4106
  end
@@ -4118,7 +4168,7 @@ module XeroRuby
4118
4168
  # Creates an attachment from a specific repeating invoices by file name
4119
4169
  # @param xero_tenant_id [String] Xero identifier for Tenant
4120
4170
  # @param repeating_invoice_id [String] Unique identifier for a Repeating Invoice
4121
- # @param file_name [String] The name of the file being attached to a Repeating Invoice
4171
+ # @param file_name [String] Name of the attachment
4122
4172
  # @param body [String] Byte array of file in body of request
4123
4173
  # @param [Hash] opts the optional parameters
4124
4174
  # @return [Attachments]
@@ -4130,11 +4180,12 @@ module XeroRuby
4130
4180
  # Creates an attachment from a specific repeating invoices by file name
4131
4181
  # @param xero_tenant_id [String] Xero identifier for Tenant
4132
4182
  # @param repeating_invoice_id [String] Unique identifier for a Repeating Invoice
4133
- # @param file_name [String] The name of the file being attached to a Repeating Invoice
4183
+ # @param file_name [String] Name of the attachment
4134
4184
  # @param body [String] Byte array of file in body of request
4135
4185
  # @param [Hash] opts the optional parameters
4136
4186
  # @return [Array<(Attachments, Integer, Hash)>] Attachments data, response status code and response headers
4137
- def create_repeating_invoice_attachment_by_file_name_with_http_info(xero_tenant_id, repeating_invoice_id, file_name, body, opts = {})
4187
+ def create_repeating_invoice_attachment_by_file_name_with_http_info(xero_tenant_id, repeating_invoice_id, file_name, body, options = {})
4188
+ opts = options.dup
4138
4189
  if @api_client.config.debugging
4139
4190
  @api_client.config.logger.debug 'Calling API: AccountingApi.create_repeating_invoice_attachment_by_file_name ...'
4140
4191
  end
@@ -4220,7 +4271,8 @@ module XeroRuby
4220
4271
  # @param history_records [HistoryRecords] HistoryRecords containing an array of HistoryRecord objects in body of request
4221
4272
  # @param [Hash] opts the optional parameters
4222
4273
  # @return [Array<(HistoryRecords, Integer, Hash)>] HistoryRecords data, response status code and response headers
4223
- def create_repeating_invoice_history_with_http_info(xero_tenant_id, repeating_invoice_id, history_records, opts = {})
4274
+ def create_repeating_invoice_history_with_http_info(xero_tenant_id, repeating_invoice_id, history_records, options = {})
4275
+ opts = options.dup
4224
4276
  if @api_client.config.debugging
4225
4277
  @api_client.config.logger.debug 'Calling API: AccountingApi.create_repeating_invoice_history ...'
4226
4278
  end
@@ -4300,7 +4352,8 @@ module XeroRuby
4300
4352
  # @param tax_rates [TaxRates] TaxRates array with TaxRate object in body of request
4301
4353
  # @param [Hash] opts the optional parameters
4302
4354
  # @return [Array<(TaxRates, Integer, Hash)>] TaxRates data, response status code and response headers
4303
- def create_tax_rates_with_http_info(xero_tenant_id, tax_rates, opts = {})
4355
+ def create_tax_rates_with_http_info(xero_tenant_id, tax_rates, options = {})
4356
+ opts = options.dup
4304
4357
  if @api_client.config.debugging
4305
4358
  @api_client.config.logger.debug 'Calling API: AccountingApi.create_tax_rates ...'
4306
4359
  end
@@ -4376,7 +4429,8 @@ module XeroRuby
4376
4429
  # @param tracking_category [TrackingCategory] TrackingCategory object in body of request
4377
4430
  # @param [Hash] opts the optional parameters
4378
4431
  # @return [Array<(TrackingCategories, Integer, Hash)>] TrackingCategories data, response status code and response headers
4379
- def create_tracking_category_with_http_info(xero_tenant_id, tracking_category, opts = {})
4432
+ def create_tracking_category_with_http_info(xero_tenant_id, tracking_category, options = {})
4433
+ opts = options.dup
4380
4434
  if @api_client.config.debugging
4381
4435
  @api_client.config.logger.debug 'Calling API: AccountingApi.create_tracking_category ...'
4382
4436
  end
@@ -4454,7 +4508,8 @@ module XeroRuby
4454
4508
  # @param tracking_option [TrackingOption] TrackingOption object in body of request
4455
4509
  # @param [Hash] opts the optional parameters
4456
4510
  # @return [Array<(TrackingOptions, Integer, Hash)>] TrackingOptions data, response status code and response headers
4457
- def create_tracking_options_with_http_info(xero_tenant_id, tracking_category_id, tracking_option, opts = {})
4511
+ def create_tracking_options_with_http_info(xero_tenant_id, tracking_category_id, tracking_option, options = {})
4512
+ opts = options.dup
4458
4513
  if @api_client.config.debugging
4459
4514
  @api_client.config.logger.debug 'Calling API: AccountingApi.create_tracking_options ...'
4460
4515
  end
@@ -4521,7 +4576,7 @@ module XeroRuby
4521
4576
 
4522
4577
  # Deletes a chart of accounts
4523
4578
  # @param xero_tenant_id [String] Xero identifier for Tenant
4524
- # @param account_id [String] Unique identifier for retrieving single object
4579
+ # @param account_id [String] Unique identifier for Account object
4525
4580
  # @param [Hash] opts the optional parameters
4526
4581
  # @return [Accounts]
4527
4582
  def delete_account(xero_tenant_id, account_id, opts = {})
@@ -4531,10 +4586,11 @@ module XeroRuby
4531
4586
 
4532
4587
  # Deletes a chart of accounts
4533
4588
  # @param xero_tenant_id [String] Xero identifier for Tenant
4534
- # @param account_id [String] Unique identifier for retrieving single object
4589
+ # @param account_id [String] Unique identifier for Account object
4535
4590
  # @param [Hash] opts the optional parameters
4536
4591
  # @return [Array<(Accounts, Integer, Hash)>] Accounts data, response status code and response headers
4537
- def delete_account_with_http_info(xero_tenant_id, account_id, opts = {})
4592
+ def delete_account_with_http_info(xero_tenant_id, account_id, options = {})
4593
+ opts = options.dup
4538
4594
  if @api_client.config.debugging
4539
4595
  @api_client.config.logger.debug 'Calling API: AccountingApi.delete_account ...'
4540
4596
  end
@@ -4610,7 +4666,8 @@ module XeroRuby
4610
4666
  # @param contact_id [String] Unique identifier for a Contact
4611
4667
  # @param [Hash] opts the optional parameters
4612
4668
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
4613
- def delete_contact_group_contact_with_http_info(xero_tenant_id, contact_group_id, contact_id, opts = {})
4669
+ def delete_contact_group_contact_with_http_info(xero_tenant_id, contact_group_id, contact_id, options = {})
4670
+ opts = options.dup
4614
4671
  if @api_client.config.debugging
4615
4672
  @api_client.config.logger.debug 'Calling API: AccountingApi.delete_contact_group_contact ...'
4616
4673
  end
@@ -4688,7 +4745,8 @@ module XeroRuby
4688
4745
  # @param contact_group_id [String] Unique identifier for a Contact Group
4689
4746
  # @param [Hash] opts the optional parameters
4690
4747
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
4691
- def delete_contact_group_contacts_with_http_info(xero_tenant_id, contact_group_id, opts = {})
4748
+ def delete_contact_group_contacts_with_http_info(xero_tenant_id, contact_group_id, options = {})
4749
+ opts = options.dup
4692
4750
  if @api_client.config.debugging
4693
4751
  @api_client.config.logger.debug 'Calling API: AccountingApi.delete_contact_group_contacts ...'
4694
4752
  end
@@ -4760,7 +4818,8 @@ module XeroRuby
4760
4818
  # @param item_id [String] Unique identifier for an Item
4761
4819
  # @param [Hash] opts the optional parameters
4762
4820
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
4763
- def delete_item_with_http_info(xero_tenant_id, item_id, opts = {})
4821
+ def delete_item_with_http_info(xero_tenant_id, item_id, options = {})
4822
+ opts = options.dup
4764
4823
  if @api_client.config.debugging
4765
4824
  @api_client.config.logger.debug 'Calling API: AccountingApi.delete_item ...'
4766
4825
  end
@@ -4834,7 +4893,8 @@ module XeroRuby
4834
4893
  # @param linked_transaction_id [String] Unique identifier for a LinkedTransaction
4835
4894
  # @param [Hash] opts the optional parameters
4836
4895
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
4837
- def delete_linked_transaction_with_http_info(xero_tenant_id, linked_transaction_id, opts = {})
4896
+ def delete_linked_transaction_with_http_info(xero_tenant_id, linked_transaction_id, options = {})
4897
+ opts = options.dup
4838
4898
  if @api_client.config.debugging
4839
4899
  @api_client.config.logger.debug 'Calling API: AccountingApi.delete_linked_transaction ...'
4840
4900
  end
@@ -4910,7 +4970,8 @@ module XeroRuby
4910
4970
  # @param payment_delete [PaymentDelete]
4911
4971
  # @param [Hash] opts the optional parameters
4912
4972
  # @return [Array<(Payments, Integer, Hash)>] Payments data, response status code and response headers
4913
- def delete_payment_with_http_info(xero_tenant_id, payment_id, payment_delete, opts = {})
4973
+ def delete_payment_with_http_info(xero_tenant_id, payment_id, payment_delete, options = {})
4974
+ opts = options.dup
4914
4975
  if @api_client.config.debugging
4915
4976
  @api_client.config.logger.debug 'Calling API: AccountingApi.delete_payment ...'
4916
4977
  end
@@ -4990,7 +5051,8 @@ module XeroRuby
4990
5051
  # @param tracking_category_id [String] Unique identifier for a TrackingCategory
4991
5052
  # @param [Hash] opts the optional parameters
4992
5053
  # @return [Array<(TrackingCategories, Integer, Hash)>] TrackingCategories data, response status code and response headers
4993
- def delete_tracking_category_with_http_info(xero_tenant_id, tracking_category_id, opts = {})
5054
+ def delete_tracking_category_with_http_info(xero_tenant_id, tracking_category_id, options = {})
5055
+ opts = options.dup
4994
5056
  if @api_client.config.debugging
4995
5057
  @api_client.config.logger.debug 'Calling API: AccountingApi.delete_tracking_category ...'
4996
5058
  end
@@ -5066,7 +5128,8 @@ module XeroRuby
5066
5128
  # @param tracking_option_id [String] Unique identifier for a Tracking Option
5067
5129
  # @param [Hash] opts the optional parameters
5068
5130
  # @return [Array<(TrackingOptions, Integer, Hash)>] TrackingOptions data, response status code and response headers
5069
- def delete_tracking_options_with_http_info(xero_tenant_id, tracking_category_id, tracking_option_id, opts = {})
5131
+ def delete_tracking_options_with_http_info(xero_tenant_id, tracking_category_id, tracking_option_id, options = {})
5132
+ opts = options.dup
5070
5133
  if @api_client.config.debugging
5071
5134
  @api_client.config.logger.debug 'Calling API: AccountingApi.delete_tracking_options ...'
5072
5135
  end
@@ -5146,7 +5209,8 @@ module XeroRuby
5146
5209
  # @param request_empty [RequestEmpty]
5147
5210
  # @param [Hash] opts the optional parameters
5148
5211
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
5149
- def email_invoice_with_http_info(xero_tenant_id, invoice_id, request_empty, opts = {})
5212
+ def email_invoice_with_http_info(xero_tenant_id, invoice_id, request_empty, options = {})
5213
+ opts = options.dup
5150
5214
  if @api_client.config.debugging
5151
5215
  @api_client.config.logger.debug 'Calling API: AccountingApi.email_invoice ...'
5152
5216
  end
@@ -5213,7 +5277,7 @@ module XeroRuby
5213
5277
 
5214
5278
  # Retrieves a single chart of accounts by using a unique account Id
5215
5279
  # @param xero_tenant_id [String] Xero identifier for Tenant
5216
- # @param account_id [String] Unique identifier for retrieving single object
5280
+ # @param account_id [String] Unique identifier for Account object
5217
5281
  # @param [Hash] opts the optional parameters
5218
5282
  # @return [Accounts]
5219
5283
  def get_account(xero_tenant_id, account_id, opts = {})
@@ -5223,10 +5287,11 @@ module XeroRuby
5223
5287
 
5224
5288
  # Retrieves a single chart of accounts by using a unique account Id
5225
5289
  # @param xero_tenant_id [String] Xero identifier for Tenant
5226
- # @param account_id [String] Unique identifier for retrieving single object
5290
+ # @param account_id [String] Unique identifier for Account object
5227
5291
  # @param [Hash] opts the optional parameters
5228
5292
  # @return [Array<(Accounts, Integer, Hash)>] Accounts data, response status code and response headers
5229
- def get_account_with_http_info(xero_tenant_id, account_id, opts = {})
5293
+ def get_account_with_http_info(xero_tenant_id, account_id, options = {})
5294
+ opts = options.dup
5230
5295
  if @api_client.config.debugging
5231
5296
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_account ...'
5232
5297
  end
@@ -5304,7 +5369,8 @@ module XeroRuby
5304
5369
  # @param content_type [String] The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
5305
5370
  # @param [Hash] opts the optional parameters
5306
5371
  # @return [Array<(File, Integer, Hash)>] File data, response status code and response headers
5307
- def get_account_attachment_by_file_name_with_http_info(xero_tenant_id, account_id, file_name, content_type, opts = {})
5372
+ def get_account_attachment_by_file_name_with_http_info(xero_tenant_id, account_id, file_name, content_type, options = {})
5373
+ opts = options.dup
5308
5374
  if @api_client.config.debugging
5309
5375
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_account_attachment_by_file_name ...'
5310
5376
  end
@@ -5391,7 +5457,8 @@ module XeroRuby
5391
5457
  # @param content_type [String] The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
5392
5458
  # @param [Hash] opts the optional parameters
5393
5459
  # @return [Array<(File, Integer, Hash)>] File data, response status code and response headers
5394
- def get_account_attachment_by_id_with_http_info(xero_tenant_id, account_id, attachment_id, content_type, opts = {})
5460
+ def get_account_attachment_by_id_with_http_info(xero_tenant_id, account_id, attachment_id, content_type, options = {})
5461
+ opts = options.dup
5395
5462
  if @api_client.config.debugging
5396
5463
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_account_attachment_by_id ...'
5397
5464
  end
@@ -5474,7 +5541,8 @@ module XeroRuby
5474
5541
  # @param account_id [String] Unique identifier for Account object
5475
5542
  # @param [Hash] opts the optional parameters
5476
5543
  # @return [Array<(Attachments, Integer, Hash)>] Attachments data, response status code and response headers
5477
- def get_account_attachments_with_http_info(xero_tenant_id, account_id, opts = {})
5544
+ def get_account_attachments_with_http_info(xero_tenant_id, account_id, options = {})
5545
+ opts = options.dup
5478
5546
  if @api_client.config.debugging
5479
5547
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_account_attachments ...'
5480
5548
  end
@@ -5552,7 +5620,8 @@ module XeroRuby
5552
5620
  # @option opts [String] :where Filter by an any element
5553
5621
  # @option opts [String] :order Order by an any element
5554
5622
  # @return [Array<(Accounts, Integer, Hash)>] Accounts data, response status code and response headers
5555
- def get_accounts_with_http_info(xero_tenant_id, opts = {})
5623
+ def get_accounts_with_http_info(xero_tenant_id, options = {})
5624
+ opts = options.dup
5556
5625
  if @api_client.config.debugging
5557
5626
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_accounts ...'
5558
5627
  end
@@ -5627,7 +5696,8 @@ module XeroRuby
5627
5696
  # @param [Hash] opts the optional parameters
5628
5697
  # @option opts [Integer] :unitdp e.g. unitdp&#x3D;4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
5629
5698
  # @return [Array<(BankTransactions, Integer, Hash)>] BankTransactions data, response status code and response headers
5630
- def get_bank_transaction_with_http_info(xero_tenant_id, bank_transaction_id, opts = {})
5699
+ def get_bank_transaction_with_http_info(xero_tenant_id, bank_transaction_id, options = {})
5700
+ opts = options.dup
5631
5701
  if @api_client.config.debugging
5632
5702
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_bank_transaction ...'
5633
5703
  end
@@ -5690,7 +5760,7 @@ module XeroRuby
5690
5760
  # Retrieves a specific attachment from a specific bank transaction by filename
5691
5761
  # @param xero_tenant_id [String] Xero identifier for Tenant
5692
5762
  # @param bank_transaction_id [String] Xero generated unique identifier for a bank transaction
5693
- # @param file_name [String] The name of the file being attached
5763
+ # @param file_name [String] Name of the attachment
5694
5764
  # @param content_type [String] The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
5695
5765
  # @param [Hash] opts the optional parameters
5696
5766
  # @return [File]
@@ -5702,11 +5772,12 @@ module XeroRuby
5702
5772
  # Retrieves a specific attachment from a specific bank transaction by filename
5703
5773
  # @param xero_tenant_id [String] Xero identifier for Tenant
5704
5774
  # @param bank_transaction_id [String] Xero generated unique identifier for a bank transaction
5705
- # @param file_name [String] The name of the file being attached
5775
+ # @param file_name [String] Name of the attachment
5706
5776
  # @param content_type [String] The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
5707
5777
  # @param [Hash] opts the optional parameters
5708
5778
  # @return [Array<(File, Integer, Hash)>] File data, response status code and response headers
5709
- def get_bank_transaction_attachment_by_file_name_with_http_info(xero_tenant_id, bank_transaction_id, file_name, content_type, opts = {})
5779
+ def get_bank_transaction_attachment_by_file_name_with_http_info(xero_tenant_id, bank_transaction_id, file_name, content_type, options = {})
5780
+ opts = options.dup
5710
5781
  if @api_client.config.debugging
5711
5782
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_bank_transaction_attachment_by_file_name ...'
5712
5783
  end
@@ -5777,7 +5848,7 @@ module XeroRuby
5777
5848
  # Retrieves specific attachments from a specific BankTransaction using a unique attachment Id
5778
5849
  # @param xero_tenant_id [String] Xero identifier for Tenant
5779
5850
  # @param bank_transaction_id [String] Xero generated unique identifier for a bank transaction
5780
- # @param attachment_id [String] Xero generated unique identifier for an attachment
5851
+ # @param attachment_id [String] Unique identifier for Attachment object
5781
5852
  # @param content_type [String] The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
5782
5853
  # @param [Hash] opts the optional parameters
5783
5854
  # @return [File]
@@ -5789,11 +5860,12 @@ module XeroRuby
5789
5860
  # Retrieves specific attachments from a specific BankTransaction using a unique attachment Id
5790
5861
  # @param xero_tenant_id [String] Xero identifier for Tenant
5791
5862
  # @param bank_transaction_id [String] Xero generated unique identifier for a bank transaction
5792
- # @param attachment_id [String] Xero generated unique identifier for an attachment
5863
+ # @param attachment_id [String] Unique identifier for Attachment object
5793
5864
  # @param content_type [String] The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
5794
5865
  # @param [Hash] opts the optional parameters
5795
5866
  # @return [Array<(File, Integer, Hash)>] File data, response status code and response headers
5796
- def get_bank_transaction_attachment_by_id_with_http_info(xero_tenant_id, bank_transaction_id, attachment_id, content_type, opts = {})
5867
+ def get_bank_transaction_attachment_by_id_with_http_info(xero_tenant_id, bank_transaction_id, attachment_id, content_type, options = {})
5868
+ opts = options.dup
5797
5869
  if @api_client.config.debugging
5798
5870
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_bank_transaction_attachment_by_id ...'
5799
5871
  end
@@ -5876,7 +5948,8 @@ module XeroRuby
5876
5948
  # @param bank_transaction_id [String] Xero generated unique identifier for a bank transaction
5877
5949
  # @param [Hash] opts the optional parameters
5878
5950
  # @return [Array<(Attachments, Integer, Hash)>] Attachments data, response status code and response headers
5879
- def get_bank_transaction_attachments_with_http_info(xero_tenant_id, bank_transaction_id, opts = {})
5951
+ def get_bank_transaction_attachments_with_http_info(xero_tenant_id, bank_transaction_id, options = {})
5952
+ opts = options.dup
5880
5953
  if @api_client.config.debugging
5881
5954
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_bank_transaction_attachments ...'
5882
5955
  end
@@ -5958,7 +6031,8 @@ module XeroRuby
5958
6031
  # @option opts [Integer] :page Up to 100 bank transactions will be returned in a single API call with line items details
5959
6032
  # @option opts [Integer] :unitdp e.g. unitdp&#x3D;4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
5960
6033
  # @return [Array<(BankTransactions, Integer, Hash)>] BankTransactions data, response status code and response headers
5961
- def get_bank_transactions_with_http_info(xero_tenant_id, opts = {})
6034
+ def get_bank_transactions_with_http_info(xero_tenant_id, options = {})
6035
+ opts = options.dup
5962
6036
  if @api_client.config.debugging
5963
6037
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_bank_transactions ...'
5964
6038
  end
@@ -6033,7 +6107,8 @@ module XeroRuby
6033
6107
  # @param bank_transaction_id [String] Xero generated unique identifier for a bank transaction
6034
6108
  # @param [Hash] opts the optional parameters
6035
6109
  # @return [Array<(HistoryRecords, Integer, Hash)>] HistoryRecords data, response status code and response headers
6036
- def get_bank_transactions_history_with_http_info(xero_tenant_id, bank_transaction_id, opts = {})
6110
+ def get_bank_transactions_history_with_http_info(xero_tenant_id, bank_transaction_id, options = {})
6111
+ opts = options.dup
6037
6112
  if @api_client.config.debugging
6038
6113
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_bank_transactions_history ...'
6039
6114
  end
@@ -6107,7 +6182,8 @@ module XeroRuby
6107
6182
  # @param bank_transfer_id [String] Xero generated unique identifier for a bank transfer
6108
6183
  # @param [Hash] opts the optional parameters
6109
6184
  # @return [Array<(BankTransfers, Integer, Hash)>] BankTransfers data, response status code and response headers
6110
- def get_bank_transfer_with_http_info(xero_tenant_id, bank_transfer_id, opts = {})
6185
+ def get_bank_transfer_with_http_info(xero_tenant_id, bank_transfer_id, options = {})
6186
+ opts = options.dup
6111
6187
  if @api_client.config.debugging
6112
6188
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_bank_transfer ...'
6113
6189
  end
@@ -6169,7 +6245,7 @@ module XeroRuby
6169
6245
  # Retrieves a specific attachment on a specific bank transfer by file name
6170
6246
  # @param xero_tenant_id [String] Xero identifier for Tenant
6171
6247
  # @param bank_transfer_id [String] Xero generated unique identifier for a bank transfer
6172
- # @param file_name [String] The name of the file being attached to a Bank Transfer
6248
+ # @param file_name [String] Name of the attachment
6173
6249
  # @param content_type [String] The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
6174
6250
  # @param [Hash] opts the optional parameters
6175
6251
  # @return [File]
@@ -6181,11 +6257,12 @@ module XeroRuby
6181
6257
  # Retrieves a specific attachment on a specific bank transfer by file name
6182
6258
  # @param xero_tenant_id [String] Xero identifier for Tenant
6183
6259
  # @param bank_transfer_id [String] Xero generated unique identifier for a bank transfer
6184
- # @param file_name [String] The name of the file being attached to a Bank Transfer
6260
+ # @param file_name [String] Name of the attachment
6185
6261
  # @param content_type [String] The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
6186
6262
  # @param [Hash] opts the optional parameters
6187
6263
  # @return [Array<(File, Integer, Hash)>] File data, response status code and response headers
6188
- def get_bank_transfer_attachment_by_file_name_with_http_info(xero_tenant_id, bank_transfer_id, file_name, content_type, opts = {})
6264
+ def get_bank_transfer_attachment_by_file_name_with_http_info(xero_tenant_id, bank_transfer_id, file_name, content_type, options = {})
6265
+ opts = options.dup
6189
6266
  if @api_client.config.debugging
6190
6267
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_bank_transfer_attachment_by_file_name ...'
6191
6268
  end
@@ -6256,7 +6333,7 @@ module XeroRuby
6256
6333
  # Retrieves a specific attachment from a specific bank transfer using a unique attachment ID
6257
6334
  # @param xero_tenant_id [String] Xero identifier for Tenant
6258
6335
  # @param bank_transfer_id [String] Xero generated unique identifier for a bank transfer
6259
- # @param attachment_id [String] Xero generated unique identifier for an Attachment to a bank transfer
6336
+ # @param attachment_id [String] Unique identifier for Attachment object
6260
6337
  # @param content_type [String] The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
6261
6338
  # @param [Hash] opts the optional parameters
6262
6339
  # @return [File]
@@ -6268,11 +6345,12 @@ module XeroRuby
6268
6345
  # Retrieves a specific attachment from a specific bank transfer using a unique attachment ID
6269
6346
  # @param xero_tenant_id [String] Xero identifier for Tenant
6270
6347
  # @param bank_transfer_id [String] Xero generated unique identifier for a bank transfer
6271
- # @param attachment_id [String] Xero generated unique identifier for an Attachment to a bank transfer
6348
+ # @param attachment_id [String] Unique identifier for Attachment object
6272
6349
  # @param content_type [String] The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
6273
6350
  # @param [Hash] opts the optional parameters
6274
6351
  # @return [Array<(File, Integer, Hash)>] File data, response status code and response headers
6275
- def get_bank_transfer_attachment_by_id_with_http_info(xero_tenant_id, bank_transfer_id, attachment_id, content_type, opts = {})
6352
+ def get_bank_transfer_attachment_by_id_with_http_info(xero_tenant_id, bank_transfer_id, attachment_id, content_type, options = {})
6353
+ opts = options.dup
6276
6354
  if @api_client.config.debugging
6277
6355
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_bank_transfer_attachment_by_id ...'
6278
6356
  end
@@ -6355,7 +6433,8 @@ module XeroRuby
6355
6433
  # @param bank_transfer_id [String] Xero generated unique identifier for a bank transfer
6356
6434
  # @param [Hash] opts the optional parameters
6357
6435
  # @return [Array<(Attachments, Integer, Hash)>] Attachments data, response status code and response headers
6358
- def get_bank_transfer_attachments_with_http_info(xero_tenant_id, bank_transfer_id, opts = {})
6436
+ def get_bank_transfer_attachments_with_http_info(xero_tenant_id, bank_transfer_id, options = {})
6437
+ opts = options.dup
6359
6438
  if @api_client.config.debugging
6360
6439
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_bank_transfer_attachments ...'
6361
6440
  end
@@ -6429,7 +6508,8 @@ module XeroRuby
6429
6508
  # @param bank_transfer_id [String] Xero generated unique identifier for a bank transfer
6430
6509
  # @param [Hash] opts the optional parameters
6431
6510
  # @return [Array<(HistoryRecords, Integer, Hash)>] HistoryRecords data, response status code and response headers
6432
- def get_bank_transfer_history_with_http_info(xero_tenant_id, bank_transfer_id, opts = {})
6511
+ def get_bank_transfer_history_with_http_info(xero_tenant_id, bank_transfer_id, options = {})
6512
+ opts = options.dup
6433
6513
  if @api_client.config.debugging
6434
6514
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_bank_transfer_history ...'
6435
6515
  end
@@ -6507,7 +6587,8 @@ module XeroRuby
6507
6587
  # @option opts [String] :where Filter by an any element
6508
6588
  # @option opts [String] :order Order by an any element
6509
6589
  # @return [Array<(BankTransfers, Integer, Hash)>] BankTransfers data, response status code and response headers
6510
- def get_bank_transfers_with_http_info(xero_tenant_id, opts = {})
6590
+ def get_bank_transfers_with_http_info(xero_tenant_id, options = {})
6591
+ opts = options.dup
6511
6592
  if @api_client.config.debugging
6512
6593
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_bank_transfers ...'
6513
6594
  end
@@ -6580,7 +6661,8 @@ module XeroRuby
6580
6661
  # @param batch_payment_id [String] Unique identifier for BatchPayment
6581
6662
  # @param [Hash] opts the optional parameters
6582
6663
  # @return [Array<(HistoryRecords, Integer, Hash)>] HistoryRecords data, response status code and response headers
6583
- def get_batch_payment_history_with_http_info(xero_tenant_id, batch_payment_id, opts = {})
6664
+ def get_batch_payment_history_with_http_info(xero_tenant_id, batch_payment_id, options = {})
6665
+ opts = options.dup
6584
6666
  if @api_client.config.debugging
6585
6667
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_batch_payment_history ...'
6586
6668
  end
@@ -6658,7 +6740,8 @@ module XeroRuby
6658
6740
  # @option opts [String] :where Filter by an any element
6659
6741
  # @option opts [String] :order Order by an any element
6660
6742
  # @return [Array<(BatchPayments, Integer, Hash)>] BatchPayments data, response status code and response headers
6661
- def get_batch_payments_with_http_info(xero_tenant_id, opts = {})
6743
+ def get_batch_payments_with_http_info(xero_tenant_id, options = {})
6744
+ opts = options.dup
6662
6745
  if @api_client.config.debugging
6663
6746
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_batch_payments ...'
6664
6747
  end
@@ -6731,7 +6814,8 @@ module XeroRuby
6731
6814
  # @param branding_theme_id [String] Unique identifier for a Branding Theme
6732
6815
  # @param [Hash] opts the optional parameters
6733
6816
  # @return [Array<(BrandingThemes, Integer, Hash)>] BrandingThemes data, response status code and response headers
6734
- def get_branding_theme_with_http_info(xero_tenant_id, branding_theme_id, opts = {})
6817
+ def get_branding_theme_with_http_info(xero_tenant_id, branding_theme_id, options = {})
6818
+ opts = options.dup
6735
6819
  if @api_client.config.debugging
6736
6820
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_branding_theme ...'
6737
6821
  end
@@ -6805,7 +6889,8 @@ module XeroRuby
6805
6889
  # @param branding_theme_id [String] Unique identifier for a Branding Theme
6806
6890
  # @param [Hash] opts the optional parameters
6807
6891
  # @return [Array<(PaymentServices, Integer, Hash)>] PaymentServices data, response status code and response headers
6808
- def get_branding_theme_payment_services_with_http_info(xero_tenant_id, branding_theme_id, opts = {})
6892
+ def get_branding_theme_payment_services_with_http_info(xero_tenant_id, branding_theme_id, options = {})
6893
+ opts = options.dup
6809
6894
  if @api_client.config.debugging
6810
6895
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_branding_theme_payment_services ...'
6811
6896
  end
@@ -6877,7 +6962,8 @@ module XeroRuby
6877
6962
  # @param xero_tenant_id [String] Xero identifier for Tenant
6878
6963
  # @param [Hash] opts the optional parameters
6879
6964
  # @return [Array<(BrandingThemes, Integer, Hash)>] BrandingThemes data, response status code and response headers
6880
- def get_branding_themes_with_http_info(xero_tenant_id, opts = {})
6965
+ def get_branding_themes_with_http_info(xero_tenant_id, options = {})
6966
+ opts = options.dup
6881
6967
  if @api_client.config.debugging
6882
6968
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_branding_themes ...'
6883
6969
  end
@@ -6947,7 +7033,8 @@ module XeroRuby
6947
7033
  # @param contact_id [String] Unique identifier for a Contact
6948
7034
  # @param [Hash] opts the optional parameters
6949
7035
  # @return [Array<(Contacts, Integer, Hash)>] Contacts data, response status code and response headers
6950
- def get_contact_with_http_info(xero_tenant_id, contact_id, opts = {})
7036
+ def get_contact_with_http_info(xero_tenant_id, contact_id, options = {})
7037
+ opts = options.dup
6951
7038
  if @api_client.config.debugging
6952
7039
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_contact ...'
6953
7040
  end
@@ -7009,7 +7096,7 @@ module XeroRuby
7009
7096
  # Retrieves a specific attachment from a specific contact by file name
7010
7097
  # @param xero_tenant_id [String] Xero identifier for Tenant
7011
7098
  # @param contact_id [String] Unique identifier for a Contact
7012
- # @param file_name [String] Name for the file you are attaching
7099
+ # @param file_name [String] Name of the attachment
7013
7100
  # @param content_type [String] The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
7014
7101
  # @param [Hash] opts the optional parameters
7015
7102
  # @return [File]
@@ -7021,11 +7108,12 @@ module XeroRuby
7021
7108
  # Retrieves a specific attachment from a specific contact by file name
7022
7109
  # @param xero_tenant_id [String] Xero identifier for Tenant
7023
7110
  # @param contact_id [String] Unique identifier for a Contact
7024
- # @param file_name [String] Name for the file you are attaching
7111
+ # @param file_name [String] Name of the attachment
7025
7112
  # @param content_type [String] The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
7026
7113
  # @param [Hash] opts the optional parameters
7027
7114
  # @return [Array<(File, Integer, Hash)>] File data, response status code and response headers
7028
- def get_contact_attachment_by_file_name_with_http_info(xero_tenant_id, contact_id, file_name, content_type, opts = {})
7115
+ def get_contact_attachment_by_file_name_with_http_info(xero_tenant_id, contact_id, file_name, content_type, options = {})
7116
+ opts = options.dup
7029
7117
  if @api_client.config.debugging
7030
7118
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_contact_attachment_by_file_name ...'
7031
7119
  end
@@ -7096,7 +7184,7 @@ module XeroRuby
7096
7184
  # Retrieves a specific attachment from a specific contact using a unique attachment Id
7097
7185
  # @param xero_tenant_id [String] Xero identifier for Tenant
7098
7186
  # @param contact_id [String] Unique identifier for a Contact
7099
- # @param attachment_id [String] Unique identifier for a Attachment
7187
+ # @param attachment_id [String] Unique identifier for Attachment object
7100
7188
  # @param content_type [String] The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
7101
7189
  # @param [Hash] opts the optional parameters
7102
7190
  # @return [File]
@@ -7108,11 +7196,12 @@ module XeroRuby
7108
7196
  # Retrieves a specific attachment from a specific contact using a unique attachment Id
7109
7197
  # @param xero_tenant_id [String] Xero identifier for Tenant
7110
7198
  # @param contact_id [String] Unique identifier for a Contact
7111
- # @param attachment_id [String] Unique identifier for a Attachment
7199
+ # @param attachment_id [String] Unique identifier for Attachment object
7112
7200
  # @param content_type [String] The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
7113
7201
  # @param [Hash] opts the optional parameters
7114
7202
  # @return [Array<(File, Integer, Hash)>] File data, response status code and response headers
7115
- def get_contact_attachment_by_id_with_http_info(xero_tenant_id, contact_id, attachment_id, content_type, opts = {})
7203
+ def get_contact_attachment_by_id_with_http_info(xero_tenant_id, contact_id, attachment_id, content_type, options = {})
7204
+ opts = options.dup
7116
7205
  if @api_client.config.debugging
7117
7206
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_contact_attachment_by_id ...'
7118
7207
  end
@@ -7195,7 +7284,8 @@ module XeroRuby
7195
7284
  # @param contact_id [String] Unique identifier for a Contact
7196
7285
  # @param [Hash] opts the optional parameters
7197
7286
  # @return [Array<(Attachments, Integer, Hash)>] Attachments data, response status code and response headers
7198
- def get_contact_attachments_with_http_info(xero_tenant_id, contact_id, opts = {})
7287
+ def get_contact_attachments_with_http_info(xero_tenant_id, contact_id, options = {})
7288
+ opts = options.dup
7199
7289
  if @api_client.config.debugging
7200
7290
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_contact_attachments ...'
7201
7291
  end
@@ -7269,7 +7359,8 @@ module XeroRuby
7269
7359
  # @param contact_number [String] This field is read only on the Xero contact screen, used to identify contacts in external systems (max length &#x3D; 50).
7270
7360
  # @param [Hash] opts the optional parameters
7271
7361
  # @return [Array<(Contacts, Integer, Hash)>] Contacts data, response status code and response headers
7272
- def get_contact_by_contact_number_with_http_info(xero_tenant_id, contact_number, opts = {})
7362
+ def get_contact_by_contact_number_with_http_info(xero_tenant_id, contact_number, options = {})
7363
+ opts = options.dup
7273
7364
  if @api_client.config.debugging
7274
7365
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_contact_by_contact_number ...'
7275
7366
  end
@@ -7343,7 +7434,8 @@ module XeroRuby
7343
7434
  # @param contact_id [String] Unique identifier for a Contact
7344
7435
  # @param [Hash] opts the optional parameters
7345
7436
  # @return [Array<(CISSettings, Integer, Hash)>] CISSettings data, response status code and response headers
7346
- def get_contact_cis_settings_with_http_info(xero_tenant_id, contact_id, opts = {})
7437
+ def get_contact_cis_settings_with_http_info(xero_tenant_id, contact_id, options = {})
7438
+ opts = options.dup
7347
7439
  if @api_client.config.debugging
7348
7440
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_contact_cis_settings ...'
7349
7441
  end
@@ -7417,7 +7509,8 @@ module XeroRuby
7417
7509
  # @param contact_group_id [String] Unique identifier for a Contact Group
7418
7510
  # @param [Hash] opts the optional parameters
7419
7511
  # @return [Array<(ContactGroups, Integer, Hash)>] ContactGroups data, response status code and response headers
7420
- def get_contact_group_with_http_info(xero_tenant_id, contact_group_id, opts = {})
7512
+ def get_contact_group_with_http_info(xero_tenant_id, contact_group_id, options = {})
7513
+ opts = options.dup
7421
7514
  if @api_client.config.debugging
7422
7515
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_contact_group ...'
7423
7516
  end
@@ -7493,7 +7586,8 @@ module XeroRuby
7493
7586
  # @option opts [String] :where Filter by an any element
7494
7587
  # @option opts [String] :order Order by an any element
7495
7588
  # @return [Array<(ContactGroups, Integer, Hash)>] ContactGroups data, response status code and response headers
7496
- def get_contact_groups_with_http_info(xero_tenant_id, opts = {})
7589
+ def get_contact_groups_with_http_info(xero_tenant_id, options = {})
7590
+ opts = options.dup
7497
7591
  if @api_client.config.debugging
7498
7592
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_contact_groups ...'
7499
7593
  end
@@ -7565,7 +7659,8 @@ module XeroRuby
7565
7659
  # @param contact_id [String] Unique identifier for a Contact
7566
7660
  # @param [Hash] opts the optional parameters
7567
7661
  # @return [Array<(HistoryRecords, Integer, Hash)>] HistoryRecords data, response status code and response headers
7568
- def get_contact_history_with_http_info(xero_tenant_id, contact_id, opts = {})
7662
+ def get_contact_history_with_http_info(xero_tenant_id, contact_id, options = {})
7663
+ opts = options.dup
7569
7664
  if @api_client.config.debugging
7570
7665
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_contact_history ...'
7571
7666
  end
@@ -7633,6 +7728,7 @@ module XeroRuby
7633
7728
  # @option opts [Array<String>] :i_ds Filter by a comma separated list of ContactIDs. Allows you to retrieve a specific set of contacts in a single call.
7634
7729
  # @option opts [Integer] :page e.g. page&#x3D;1 - Up to 100 contacts will be returned in a single API call.
7635
7730
  # @option opts [Boolean] :include_archived e.g. includeArchived&#x3D;true - Contacts with a status of ARCHIVED will be included in the response
7731
+ # @option opts [Boolean] :summary_only Use summaryOnly&#x3D;true in GET Contacts 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)
7636
7732
  # @return [Contacts]
7637
7733
  def get_contacts(xero_tenant_id, opts = {})
7638
7734
  data, _status_code, _headers = get_contacts_with_http_info(xero_tenant_id, opts)
@@ -7648,8 +7744,10 @@ module XeroRuby
7648
7744
  # @option opts [Array<String>] :i_ds Filter by a comma separated list of ContactIDs. Allows you to retrieve a specific set of contacts in a single call.
7649
7745
  # @option opts [Integer] :page e.g. page&#x3D;1 - Up to 100 contacts will be returned in a single API call.
7650
7746
  # @option opts [Boolean] :include_archived e.g. includeArchived&#x3D;true - Contacts with a status of ARCHIVED will be included in the response
7747
+ # @option opts [Boolean] :summary_only Use summaryOnly&#x3D;true in GET Contacts 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.
7651
7748
  # @return [Array<(Contacts, Integer, Hash)>] Contacts data, response status code and response headers
7652
- def get_contacts_with_http_info(xero_tenant_id, opts = {})
7749
+ def get_contacts_with_http_info(xero_tenant_id, options = {})
7750
+ opts = options.dup
7653
7751
  if @api_client.config.debugging
7654
7752
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_contacts ...'
7655
7753
  end
@@ -7670,6 +7768,7 @@ module XeroRuby
7670
7768
  query_params[:'IDs'] = @api_client.build_collection_param(opts[:'i_ds'], :csv) if !opts[:'i_ds'].nil?
7671
7769
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
7672
7770
  query_params[:'includeArchived'] = opts[:'include_archived'] if !opts[:'include_archived'].nil?
7771
+ query_params[:'summaryOnly'] = opts[:'summary_only'] if !opts[:'summary_only'].nil?
7673
7772
 
7674
7773
  # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
7675
7774
  query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
@@ -7727,7 +7826,8 @@ module XeroRuby
7727
7826
  # @param [Hash] opts the optional parameters
7728
7827
  # @option opts [Integer] :unitdp e.g. unitdp&#x3D;4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
7729
7828
  # @return [Array<(CreditNotes, Integer, Hash)>] CreditNotes data, response status code and response headers
7730
- def get_credit_note_with_http_info(xero_tenant_id, credit_note_id, opts = {})
7829
+ def get_credit_note_with_http_info(xero_tenant_id, credit_note_id, options = {})
7830
+ opts = options.dup
7731
7831
  if @api_client.config.debugging
7732
7832
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_credit_note ...'
7733
7833
  end
@@ -7802,7 +7902,8 @@ module XeroRuby
7802
7902
  # @param credit_note_id [String] Unique identifier for a Credit Note
7803
7903
  # @param [Hash] opts the optional parameters
7804
7904
  # @return [Array<(File, Integer, Hash)>] File data, response status code and response headers
7805
- def get_credit_note_as_pdf_with_http_info(xero_tenant_id, credit_note_id, opts = {})
7905
+ def get_credit_note_as_pdf_with_http_info(xero_tenant_id, credit_note_id, options = {})
7906
+ opts = options.dup
7806
7907
  if @api_client.config.debugging
7807
7908
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_credit_note_as_pdf ...'
7808
7909
  end
@@ -7864,7 +7965,7 @@ module XeroRuby
7864
7965
  # Retrieves a specific attachment on a specific credit note by file name
7865
7966
  # @param xero_tenant_id [String] Xero identifier for Tenant
7866
7967
  # @param credit_note_id [String] Unique identifier for a Credit Note
7867
- # @param file_name [String] Name of the file you are attaching to Credit Note
7968
+ # @param file_name [String] Name of the attachment
7868
7969
  # @param content_type [String] The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
7869
7970
  # @param [Hash] opts the optional parameters
7870
7971
  # @return [File]
@@ -7876,11 +7977,12 @@ module XeroRuby
7876
7977
  # Retrieves a specific attachment on a specific credit note by file name
7877
7978
  # @param xero_tenant_id [String] Xero identifier for Tenant
7878
7979
  # @param credit_note_id [String] Unique identifier for a Credit Note
7879
- # @param file_name [String] Name of the file you are attaching to Credit Note
7980
+ # @param file_name [String] Name of the attachment
7880
7981
  # @param content_type [String] The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
7881
7982
  # @param [Hash] opts the optional parameters
7882
7983
  # @return [Array<(File, Integer, Hash)>] File data, response status code and response headers
7883
- def get_credit_note_attachment_by_file_name_with_http_info(xero_tenant_id, credit_note_id, file_name, content_type, opts = {})
7984
+ def get_credit_note_attachment_by_file_name_with_http_info(xero_tenant_id, credit_note_id, file_name, content_type, options = {})
7985
+ opts = options.dup
7884
7986
  if @api_client.config.debugging
7885
7987
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_credit_note_attachment_by_file_name ...'
7886
7988
  end
@@ -7951,7 +8053,7 @@ module XeroRuby
7951
8053
  # Retrieves a specific attachment from a specific credit note using a unique attachment Id
7952
8054
  # @param xero_tenant_id [String] Xero identifier for Tenant
7953
8055
  # @param credit_note_id [String] Unique identifier for a Credit Note
7954
- # @param attachment_id [String] Unique identifier for a Attachment
8056
+ # @param attachment_id [String] Unique identifier for Attachment object
7955
8057
  # @param content_type [String] The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
7956
8058
  # @param [Hash] opts the optional parameters
7957
8059
  # @return [File]
@@ -7963,11 +8065,12 @@ module XeroRuby
7963
8065
  # Retrieves a specific attachment from a specific credit note using a unique attachment Id
7964
8066
  # @param xero_tenant_id [String] Xero identifier for Tenant
7965
8067
  # @param credit_note_id [String] Unique identifier for a Credit Note
7966
- # @param attachment_id [String] Unique identifier for a Attachment
8068
+ # @param attachment_id [String] Unique identifier for Attachment object
7967
8069
  # @param content_type [String] The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
7968
8070
  # @param [Hash] opts the optional parameters
7969
8071
  # @return [Array<(File, Integer, Hash)>] File data, response status code and response headers
7970
- def get_credit_note_attachment_by_id_with_http_info(xero_tenant_id, credit_note_id, attachment_id, content_type, opts = {})
8072
+ def get_credit_note_attachment_by_id_with_http_info(xero_tenant_id, credit_note_id, attachment_id, content_type, options = {})
8073
+ opts = options.dup
7971
8074
  if @api_client.config.debugging
7972
8075
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_credit_note_attachment_by_id ...'
7973
8076
  end
@@ -8050,7 +8153,8 @@ module XeroRuby
8050
8153
  # @param credit_note_id [String] Unique identifier for a Credit Note
8051
8154
  # @param [Hash] opts the optional parameters
8052
8155
  # @return [Array<(Attachments, Integer, Hash)>] Attachments data, response status code and response headers
8053
- def get_credit_note_attachments_with_http_info(xero_tenant_id, credit_note_id, opts = {})
8156
+ def get_credit_note_attachments_with_http_info(xero_tenant_id, credit_note_id, options = {})
8157
+ opts = options.dup
8054
8158
  if @api_client.config.debugging
8055
8159
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_credit_note_attachments ...'
8056
8160
  end
@@ -8124,7 +8228,8 @@ module XeroRuby
8124
8228
  # @param credit_note_id [String] Unique identifier for a Credit Note
8125
8229
  # @param [Hash] opts the optional parameters
8126
8230
  # @return [Array<(HistoryRecords, Integer, Hash)>] HistoryRecords data, response status code and response headers
8127
- def get_credit_note_history_with_http_info(xero_tenant_id, credit_note_id, opts = {})
8231
+ def get_credit_note_history_with_http_info(xero_tenant_id, credit_note_id, options = {})
8232
+ opts = options.dup
8128
8233
  if @api_client.config.debugging
8129
8234
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_credit_note_history ...'
8130
8235
  end
@@ -8206,7 +8311,8 @@ module XeroRuby
8206
8311
  # @option opts [Integer] :page e.g. page&#x3D;1 – Up to 100 credit notes will be returned in a single API call with line items shown for each credit note
8207
8312
  # @option opts [Integer] :unitdp e.g. unitdp&#x3D;4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
8208
8313
  # @return [Array<(CreditNotes, Integer, Hash)>] CreditNotes data, response status code and response headers
8209
- def get_credit_notes_with_http_info(xero_tenant_id, opts = {})
8314
+ def get_credit_notes_with_http_info(xero_tenant_id, options = {})
8315
+ opts = options.dup
8210
8316
  if @api_client.config.debugging
8211
8317
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_credit_notes ...'
8212
8318
  end
@@ -8283,7 +8389,8 @@ module XeroRuby
8283
8389
  # @option opts [String] :where Filter by an any element
8284
8390
  # @option opts [String] :order Order by an any element
8285
8391
  # @return [Array<(Currencies, Integer, Hash)>] Currencies data, response status code and response headers
8286
- def get_currencies_with_http_info(xero_tenant_id, opts = {})
8392
+ def get_currencies_with_http_info(xero_tenant_id, options = {})
8393
+ opts = options.dup
8287
8394
  if @api_client.config.debugging
8288
8395
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_currencies ...'
8289
8396
  end
@@ -8355,7 +8462,8 @@ module XeroRuby
8355
8462
  # @param employee_id [String] Unique identifier for a Employee
8356
8463
  # @param [Hash] opts the optional parameters
8357
8464
  # @return [Array<(Employees, Integer, Hash)>] Employees data, response status code and response headers
8358
- def get_employee_with_http_info(xero_tenant_id, employee_id, opts = {})
8465
+ def get_employee_with_http_info(xero_tenant_id, employee_id, options = {})
8466
+ opts = options.dup
8359
8467
  if @api_client.config.debugging
8360
8468
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_employee ...'
8361
8469
  end
@@ -8433,7 +8541,8 @@ module XeroRuby
8433
8541
  # @option opts [String] :where Filter by an any element
8434
8542
  # @option opts [String] :order Order by an any element
8435
8543
  # @return [Array<(Employees, Integer, Hash)>] Employees data, response status code and response headers
8436
- def get_employees_with_http_info(xero_tenant_id, opts = {})
8544
+ def get_employees_with_http_info(xero_tenant_id, options = {})
8545
+ opts = options.dup
8437
8546
  if @api_client.config.debugging
8438
8547
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_employees ...'
8439
8548
  end
@@ -8506,7 +8615,8 @@ module XeroRuby
8506
8615
  # @param expense_claim_id [String] Unique identifier for a ExpenseClaim
8507
8616
  # @param [Hash] opts the optional parameters
8508
8617
  # @return [Array<(ExpenseClaims, Integer, Hash)>] ExpenseClaims data, response status code and response headers
8509
- def get_expense_claim_with_http_info(xero_tenant_id, expense_claim_id, opts = {})
8618
+ def get_expense_claim_with_http_info(xero_tenant_id, expense_claim_id, options = {})
8619
+ opts = options.dup
8510
8620
  if @api_client.config.debugging
8511
8621
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_expense_claim ...'
8512
8622
  end
@@ -8580,7 +8690,8 @@ module XeroRuby
8580
8690
  # @param expense_claim_id [String] Unique identifier for a ExpenseClaim
8581
8691
  # @param [Hash] opts the optional parameters
8582
8692
  # @return [Array<(HistoryRecords, Integer, Hash)>] HistoryRecords data, response status code and response headers
8583
- def get_expense_claim_history_with_http_info(xero_tenant_id, expense_claim_id, opts = {})
8693
+ def get_expense_claim_history_with_http_info(xero_tenant_id, expense_claim_id, options = {})
8694
+ opts = options.dup
8584
8695
  if @api_client.config.debugging
8585
8696
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_expense_claim_history ...'
8586
8697
  end
@@ -8658,7 +8769,8 @@ module XeroRuby
8658
8769
  # @option opts [String] :where Filter by an any element
8659
8770
  # @option opts [String] :order Order by an any element
8660
8771
  # @return [Array<(ExpenseClaims, Integer, Hash)>] ExpenseClaims data, response status code and response headers
8661
- def get_expense_claims_with_http_info(xero_tenant_id, opts = {})
8772
+ def get_expense_claims_with_http_info(xero_tenant_id, options = {})
8773
+ opts = options.dup
8662
8774
  if @api_client.config.debugging
8663
8775
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_expense_claims ...'
8664
8776
  end
@@ -8733,7 +8845,8 @@ module XeroRuby
8733
8845
  # @param [Hash] opts the optional parameters
8734
8846
  # @option opts [Integer] :unitdp e.g. unitdp&#x3D;4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
8735
8847
  # @return [Array<(Invoices, Integer, Hash)>] Invoices data, response status code and response headers
8736
- def get_invoice_with_http_info(xero_tenant_id, invoice_id, opts = {})
8848
+ def get_invoice_with_http_info(xero_tenant_id, invoice_id, options = {})
8849
+ opts = options.dup
8737
8850
  if @api_client.config.debugging
8738
8851
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_invoice ...'
8739
8852
  end
@@ -8808,7 +8921,8 @@ module XeroRuby
8808
8921
  # @param invoice_id [String] Unique identifier for an Invoice
8809
8922
  # @param [Hash] opts the optional parameters
8810
8923
  # @return [Array<(File, Integer, Hash)>] File data, response status code and response headers
8811
- def get_invoice_as_pdf_with_http_info(xero_tenant_id, invoice_id, opts = {})
8924
+ def get_invoice_as_pdf_with_http_info(xero_tenant_id, invoice_id, options = {})
8925
+ opts = options.dup
8812
8926
  if @api_client.config.debugging
8813
8927
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_invoice_as_pdf ...'
8814
8928
  end
@@ -8870,7 +8984,7 @@ module XeroRuby
8870
8984
  # Retrieves an attachment from a specific invoice or purchase bill by filename
8871
8985
  # @param xero_tenant_id [String] Xero identifier for Tenant
8872
8986
  # @param invoice_id [String] Unique identifier for an Invoice
8873
- # @param file_name [String] Name of the file you are attaching
8987
+ # @param file_name [String] Name of the attachment
8874
8988
  # @param content_type [String] The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
8875
8989
  # @param [Hash] opts the optional parameters
8876
8990
  # @return [File]
@@ -8882,11 +8996,12 @@ module XeroRuby
8882
8996
  # Retrieves an attachment from a specific invoice or purchase bill by filename
8883
8997
  # @param xero_tenant_id [String] Xero identifier for Tenant
8884
8998
  # @param invoice_id [String] Unique identifier for an Invoice
8885
- # @param file_name [String] Name of the file you are attaching
8999
+ # @param file_name [String] Name of the attachment
8886
9000
  # @param content_type [String] The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
8887
9001
  # @param [Hash] opts the optional parameters
8888
9002
  # @return [Array<(File, Integer, Hash)>] File data, response status code and response headers
8889
- def get_invoice_attachment_by_file_name_with_http_info(xero_tenant_id, invoice_id, file_name, content_type, opts = {})
9003
+ def get_invoice_attachment_by_file_name_with_http_info(xero_tenant_id, invoice_id, file_name, content_type, options = {})
9004
+ opts = options.dup
8890
9005
  if @api_client.config.debugging
8891
9006
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_invoice_attachment_by_file_name ...'
8892
9007
  end
@@ -8957,7 +9072,7 @@ module XeroRuby
8957
9072
  # Retrieves a specific attachment from a specific invoices or purchase bills by using a unique attachment Id
8958
9073
  # @param xero_tenant_id [String] Xero identifier for Tenant
8959
9074
  # @param invoice_id [String] Unique identifier for an Invoice
8960
- # @param attachment_id [String] Unique identifier for an Attachment
9075
+ # @param attachment_id [String] Unique identifier for Attachment object
8961
9076
  # @param content_type [String] The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
8962
9077
  # @param [Hash] opts the optional parameters
8963
9078
  # @return [File]
@@ -8969,11 +9084,12 @@ module XeroRuby
8969
9084
  # Retrieves a specific attachment from a specific invoices or purchase bills by using a unique attachment Id
8970
9085
  # @param xero_tenant_id [String] Xero identifier for Tenant
8971
9086
  # @param invoice_id [String] Unique identifier for an Invoice
8972
- # @param attachment_id [String] Unique identifier for an Attachment
9087
+ # @param attachment_id [String] Unique identifier for Attachment object
8973
9088
  # @param content_type [String] The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
8974
9089
  # @param [Hash] opts the optional parameters
8975
9090
  # @return [Array<(File, Integer, Hash)>] File data, response status code and response headers
8976
- def get_invoice_attachment_by_id_with_http_info(xero_tenant_id, invoice_id, attachment_id, content_type, opts = {})
9091
+ def get_invoice_attachment_by_id_with_http_info(xero_tenant_id, invoice_id, attachment_id, content_type, options = {})
9092
+ opts = options.dup
8977
9093
  if @api_client.config.debugging
8978
9094
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_invoice_attachment_by_id ...'
8979
9095
  end
@@ -9056,7 +9172,8 @@ module XeroRuby
9056
9172
  # @param invoice_id [String] Unique identifier for an Invoice
9057
9173
  # @param [Hash] opts the optional parameters
9058
9174
  # @return [Array<(Attachments, Integer, Hash)>] Attachments data, response status code and response headers
9059
- def get_invoice_attachments_with_http_info(xero_tenant_id, invoice_id, opts = {})
9175
+ def get_invoice_attachments_with_http_info(xero_tenant_id, invoice_id, options = {})
9176
+ opts = options.dup
9060
9177
  if @api_client.config.debugging
9061
9178
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_invoice_attachments ...'
9062
9179
  end
@@ -9130,7 +9247,8 @@ module XeroRuby
9130
9247
  # @param invoice_id [String] Unique identifier for an Invoice
9131
9248
  # @param [Hash] opts the optional parameters
9132
9249
  # @return [Array<(HistoryRecords, Integer, Hash)>] HistoryRecords data, response status code and response headers
9133
- def get_invoice_history_with_http_info(xero_tenant_id, invoice_id, opts = {})
9250
+ def get_invoice_history_with_http_info(xero_tenant_id, invoice_id, options = {})
9251
+ opts = options.dup
9134
9252
  if @api_client.config.debugging
9135
9253
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_invoice_history ...'
9136
9254
  end
@@ -9202,7 +9320,8 @@ module XeroRuby
9202
9320
  # @param xero_tenant_id [String] Xero identifier for Tenant
9203
9321
  # @param [Hash] opts the optional parameters
9204
9322
  # @return [Array<(InvoiceReminders, Integer, Hash)>] InvoiceReminders data, response status code and response headers
9205
- def get_invoice_reminders_with_http_info(xero_tenant_id, opts = {})
9323
+ def get_invoice_reminders_with_http_info(xero_tenant_id, options = {})
9324
+ opts = options.dup
9206
9325
  if @api_client.config.debugging
9207
9326
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_invoice_reminders ...'
9208
9327
  end
@@ -9268,7 +9387,7 @@ module XeroRuby
9268
9387
  # @option opts [Array<String>] :contact_i_ds Filter by a comma-separated list of ContactIDs.
9269
9388
  # @option opts [Array<String>] :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.
9270
9389
  # @option opts [Integer] :page e.g. page&#x3D;1 – Up to 100 invoices will be returned in a single API call with line items shown for each invoice
9271
- # @option opts [Boolean] :include_archived e.g. includeArchived&#x3D;true - Contacts with a status of ARCHIVED will be included in the response
9390
+ # @option opts [Boolean] :include_archived e.g. includeArchived&#x3D;true - Invoices with a status of ARCHIVED will be included in the response
9272
9391
  # @option opts [Boolean] :created_by_my_app When set to true you&#39;ll only retrieve Invoices created by your app
9273
9392
  # @option opts [Integer] :unitdp e.g. unitdp&#x3D;4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
9274
9393
  # @return [Invoices]
@@ -9288,11 +9407,12 @@ module XeroRuby
9288
9407
  # @option opts [Array<String>] :contact_i_ds Filter by a comma-separated list of ContactIDs.
9289
9408
  # @option opts [Array<String>] :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.
9290
9409
  # @option opts [Integer] :page e.g. page&#x3D;1 – Up to 100 invoices will be returned in a single API call with line items shown for each invoice
9291
- # @option opts [Boolean] :include_archived e.g. includeArchived&#x3D;true - Contacts with a status of ARCHIVED will be included in the response
9410
+ # @option opts [Boolean] :include_archived e.g. includeArchived&#x3D;true - Invoices with a status of ARCHIVED will be included in the response
9292
9411
  # @option opts [Boolean] :created_by_my_app When set to true you&#39;ll only retrieve Invoices created by your app
9293
9412
  # @option opts [Integer] :unitdp e.g. unitdp&#x3D;4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
9294
9413
  # @return [Array<(Invoices, Integer, Hash)>] Invoices data, response status code and response headers
9295
- def get_invoices_with_http_info(xero_tenant_id, opts = {})
9414
+ def get_invoices_with_http_info(xero_tenant_id, options = {})
9415
+ opts = options.dup
9296
9416
  if @api_client.config.debugging
9297
9417
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_invoices ...'
9298
9418
  end
@@ -9375,7 +9495,8 @@ module XeroRuby
9375
9495
  # @param [Hash] opts the optional parameters
9376
9496
  # @option opts [Integer] :unitdp e.g. unitdp&#x3D;4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
9377
9497
  # @return [Array<(Items, Integer, Hash)>] Items data, response status code and response headers
9378
- def get_item_with_http_info(xero_tenant_id, item_id, opts = {})
9498
+ def get_item_with_http_info(xero_tenant_id, item_id, options = {})
9499
+ opts = options.dup
9379
9500
  if @api_client.config.debugging
9380
9501
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_item ...'
9381
9502
  end
@@ -9450,7 +9571,8 @@ module XeroRuby
9450
9571
  # @param item_id [String] Unique identifier for an Item
9451
9572
  # @param [Hash] opts the optional parameters
9452
9573
  # @return [Array<(HistoryRecords, Integer, Hash)>] HistoryRecords data, response status code and response headers
9453
- def get_item_history_with_http_info(xero_tenant_id, item_id, opts = {})
9574
+ def get_item_history_with_http_info(xero_tenant_id, item_id, options = {})
9575
+ opts = options.dup
9454
9576
  if @api_client.config.debugging
9455
9577
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_item_history ...'
9456
9578
  end
@@ -9530,7 +9652,8 @@ module XeroRuby
9530
9652
  # @option opts [String] :order Order by an any element
9531
9653
  # @option opts [Integer] :unitdp e.g. unitdp&#x3D;4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
9532
9654
  # @return [Array<(Items, Integer, Hash)>] Items data, response status code and response headers
9533
- def get_items_with_http_info(xero_tenant_id, opts = {})
9655
+ def get_items_with_http_info(xero_tenant_id, options = {})
9656
+ opts = options.dup
9534
9657
  if @api_client.config.debugging
9535
9658
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_items ...'
9536
9659
  end
@@ -9604,7 +9727,8 @@ module XeroRuby
9604
9727
  # @param journal_id [String] Unique identifier for a Journal
9605
9728
  # @param [Hash] opts the optional parameters
9606
9729
  # @return [Array<(Journals, Integer, Hash)>] Journals data, response status code and response headers
9607
- def get_journal_with_http_info(xero_tenant_id, journal_id, opts = {})
9730
+ def get_journal_with_http_info(xero_tenant_id, journal_id, options = {})
9731
+ opts = options.dup
9608
9732
  if @api_client.config.debugging
9609
9733
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_journal ...'
9610
9734
  end
@@ -9682,7 +9806,8 @@ module XeroRuby
9682
9806
  # @option opts [Integer] :offset Offset by a specified journal number. e.g. journals with a JournalNumber greater than the offset will be returned
9683
9807
  # @option opts [Boolean] :payments_only Filter to retrieve journals on a cash basis. Journals are returned on an accrual basis by default.
9684
9808
  # @return [Array<(Journals, Integer, Hash)>] Journals data, response status code and response headers
9685
- def get_journals_with_http_info(xero_tenant_id, opts = {})
9809
+ def get_journals_with_http_info(xero_tenant_id, options = {})
9810
+ opts = options.dup
9686
9811
  if @api_client.config.debugging
9687
9812
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_journals ...'
9688
9813
  end
@@ -9755,7 +9880,8 @@ module XeroRuby
9755
9880
  # @param linked_transaction_id [String] Unique identifier for a LinkedTransaction
9756
9881
  # @param [Hash] opts the optional parameters
9757
9882
  # @return [Array<(LinkedTransactions, Integer, Hash)>] LinkedTransactions data, response status code and response headers
9758
- def get_linked_transaction_with_http_info(xero_tenant_id, linked_transaction_id, opts = {})
9883
+ def get_linked_transaction_with_http_info(xero_tenant_id, linked_transaction_id, options = {})
9884
+ opts = options.dup
9759
9885
  if @api_client.config.debugging
9760
9886
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_linked_transaction ...'
9761
9887
  end
@@ -9839,7 +9965,8 @@ module XeroRuby
9839
9965
  # @option opts [String] :status Filter by the combination of ContactID and Status. Get the linked transactions associated to a customer and with a status
9840
9966
  # @option opts [String] :target_transaction_id Filter by the TargetTransactionID. Get all the linked transactions allocated to a particular ACCREC invoice
9841
9967
  # @return [Array<(LinkedTransactions, Integer, Hash)>] LinkedTransactions data, response status code and response headers
9842
- def get_linked_transactions_with_http_info(xero_tenant_id, opts = {})
9968
+ def get_linked_transactions_with_http_info(xero_tenant_id, options = {})
9969
+ opts = options.dup
9843
9970
  if @api_client.config.debugging
9844
9971
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_linked_transactions ...'
9845
9972
  end
@@ -9915,7 +10042,8 @@ module XeroRuby
9915
10042
  # @param manual_journal_id [String] Unique identifier for a ManualJournal
9916
10043
  # @param [Hash] opts the optional parameters
9917
10044
  # @return [Array<(ManualJournals, Integer, Hash)>] ManualJournals data, response status code and response headers
9918
- def get_manual_journal_with_http_info(xero_tenant_id, manual_journal_id, opts = {})
10045
+ def get_manual_journal_with_http_info(xero_tenant_id, manual_journal_id, options = {})
10046
+ opts = options.dup
9919
10047
  if @api_client.config.debugging
9920
10048
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_manual_journal ...'
9921
10049
  end
@@ -9977,7 +10105,7 @@ module XeroRuby
9977
10105
  # Retrieves a specific attachment from a specific manual journal by file name
9978
10106
  # @param xero_tenant_id [String] Xero identifier for Tenant
9979
10107
  # @param manual_journal_id [String] Unique identifier for a ManualJournal
9980
- # @param file_name [String] The name of the file being attached to a ManualJournal
10108
+ # @param file_name [String] Name of the attachment
9981
10109
  # @param content_type [String] The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
9982
10110
  # @param [Hash] opts the optional parameters
9983
10111
  # @return [File]
@@ -9989,11 +10117,12 @@ module XeroRuby
9989
10117
  # Retrieves a specific attachment from a specific manual journal by file name
9990
10118
  # @param xero_tenant_id [String] Xero identifier for Tenant
9991
10119
  # @param manual_journal_id [String] Unique identifier for a ManualJournal
9992
- # @param file_name [String] The name of the file being attached to a ManualJournal
10120
+ # @param file_name [String] Name of the attachment
9993
10121
  # @param content_type [String] The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
9994
10122
  # @param [Hash] opts the optional parameters
9995
10123
  # @return [Array<(File, Integer, Hash)>] File data, response status code and response headers
9996
- def get_manual_journal_attachment_by_file_name_with_http_info(xero_tenant_id, manual_journal_id, file_name, content_type, opts = {})
10124
+ def get_manual_journal_attachment_by_file_name_with_http_info(xero_tenant_id, manual_journal_id, file_name, content_type, options = {})
10125
+ opts = options.dup
9997
10126
  if @api_client.config.debugging
9998
10127
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_manual_journal_attachment_by_file_name ...'
9999
10128
  end
@@ -10064,7 +10193,7 @@ module XeroRuby
10064
10193
  # Allows you to retrieve a specific attachment from a specific manual journal using a unique attachment Id
10065
10194
  # @param xero_tenant_id [String] Xero identifier for Tenant
10066
10195
  # @param manual_journal_id [String] Unique identifier for a ManualJournal
10067
- # @param attachment_id [String] Unique identifier for a Attachment
10196
+ # @param attachment_id [String] Unique identifier for Attachment object
10068
10197
  # @param content_type [String] The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
10069
10198
  # @param [Hash] opts the optional parameters
10070
10199
  # @return [File]
@@ -10076,11 +10205,12 @@ module XeroRuby
10076
10205
  # Allows you to retrieve a specific attachment from a specific manual journal using a unique attachment Id
10077
10206
  # @param xero_tenant_id [String] Xero identifier for Tenant
10078
10207
  # @param manual_journal_id [String] Unique identifier for a ManualJournal
10079
- # @param attachment_id [String] Unique identifier for a Attachment
10208
+ # @param attachment_id [String] Unique identifier for Attachment object
10080
10209
  # @param content_type [String] The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
10081
10210
  # @param [Hash] opts the optional parameters
10082
10211
  # @return [Array<(File, Integer, Hash)>] File data, response status code and response headers
10083
- def get_manual_journal_attachment_by_id_with_http_info(xero_tenant_id, manual_journal_id, attachment_id, content_type, opts = {})
10212
+ def get_manual_journal_attachment_by_id_with_http_info(xero_tenant_id, manual_journal_id, attachment_id, content_type, options = {})
10213
+ opts = options.dup
10084
10214
  if @api_client.config.debugging
10085
10215
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_manual_journal_attachment_by_id ...'
10086
10216
  end
@@ -10163,7 +10293,8 @@ module XeroRuby
10163
10293
  # @param manual_journal_id [String] Unique identifier for a ManualJournal
10164
10294
  # @param [Hash] opts the optional parameters
10165
10295
  # @return [Array<(Attachments, Integer, Hash)>] Attachments data, response status code and response headers
10166
- def get_manual_journal_attachments_with_http_info(xero_tenant_id, manual_journal_id, opts = {})
10296
+ def get_manual_journal_attachments_with_http_info(xero_tenant_id, manual_journal_id, options = {})
10297
+ opts = options.dup
10167
10298
  if @api_client.config.debugging
10168
10299
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_manual_journal_attachments ...'
10169
10300
  end
@@ -10243,7 +10374,8 @@ module XeroRuby
10243
10374
  # @option opts [String] :order Order by an any element
10244
10375
  # @option opts [Integer] :page e.g. page&#x3D;1 – Up to 100 manual journals will be returned in a single API call with line items shown for each overpayment
10245
10376
  # @return [Array<(ManualJournals, Integer, Hash)>] ManualJournals data, response status code and response headers
10246
- def get_manual_journals_with_http_info(xero_tenant_id, opts = {})
10377
+ def get_manual_journals_with_http_info(xero_tenant_id, options = {})
10378
+ opts = options.dup
10247
10379
  if @api_client.config.debugging
10248
10380
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_manual_journals ...'
10249
10381
  end
@@ -10304,7 +10436,7 @@ module XeroRuby
10304
10436
 
10305
10437
  # Retrieves history for a specific manual journal
10306
10438
  # @param xero_tenant_id [String] Xero identifier for Tenant
10307
- # @param manual_journal_id [String] Xero generated unique identifier for a manual journal
10439
+ # @param manual_journal_id [String] Unique identifier for a ManualJournal
10308
10440
  # @param [Hash] opts the optional parameters
10309
10441
  # @return [HistoryRecords]
10310
10442
  def get_manual_journals_history(xero_tenant_id, manual_journal_id, opts = {})
@@ -10314,10 +10446,11 @@ module XeroRuby
10314
10446
 
10315
10447
  # Retrieves history for a specific manual journal
10316
10448
  # @param xero_tenant_id [String] Xero identifier for Tenant
10317
- # @param manual_journal_id [String] Xero generated unique identifier for a manual journal
10449
+ # @param manual_journal_id [String] Unique identifier for a ManualJournal
10318
10450
  # @param [Hash] opts the optional parameters
10319
10451
  # @return [Array<(HistoryRecords, Integer, Hash)>] HistoryRecords data, response status code and response headers
10320
- def get_manual_journals_history_with_http_info(xero_tenant_id, manual_journal_id, opts = {})
10452
+ def get_manual_journals_history_with_http_info(xero_tenant_id, manual_journal_id, options = {})
10453
+ opts = options.dup
10321
10454
  if @api_client.config.debugging
10322
10455
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_manual_journals_history ...'
10323
10456
  end
@@ -10391,7 +10524,8 @@ module XeroRuby
10391
10524
  # @param invoice_id [String] Unique identifier for an Invoice
10392
10525
  # @param [Hash] opts the optional parameters
10393
10526
  # @return [Array<(OnlineInvoices, Integer, Hash)>] OnlineInvoices data, response status code and response headers
10394
- def get_online_invoice_with_http_info(xero_tenant_id, invoice_id, opts = {})
10527
+ def get_online_invoice_with_http_info(xero_tenant_id, invoice_id, options = {})
10528
+ opts = options.dup
10395
10529
  if @api_client.config.debugging
10396
10530
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_online_invoice ...'
10397
10531
  end
@@ -10463,7 +10597,8 @@ module XeroRuby
10463
10597
  # @param xero_tenant_id [String] Xero identifier for Tenant
10464
10598
  # @param [Hash] opts the optional parameters
10465
10599
  # @return [Array<(Actions, Integer, Hash)>] Actions data, response status code and response headers
10466
- def get_organisation_actions_with_http_info(xero_tenant_id, opts = {})
10600
+ def get_organisation_actions_with_http_info(xero_tenant_id, options = {})
10601
+ opts = options.dup
10467
10602
  if @api_client.config.debugging
10468
10603
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_organisation_actions ...'
10469
10604
  end
@@ -10533,7 +10668,8 @@ module XeroRuby
10533
10668
  # @param organisation_id [String] The unique Xero identifier for an organisation
10534
10669
  # @param [Hash] opts the optional parameters
10535
10670
  # @return [Array<(CISOrgSettings, Integer, Hash)>] CISOrgSettings data, response status code and response headers
10536
- def get_organisation_cis_settings_with_http_info(xero_tenant_id, organisation_id, opts = {})
10671
+ def get_organisation_cis_settings_with_http_info(xero_tenant_id, organisation_id, options = {})
10672
+ opts = options.dup
10537
10673
  if @api_client.config.debugging
10538
10674
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_organisation_cis_settings ...'
10539
10675
  end
@@ -10605,7 +10741,8 @@ module XeroRuby
10605
10741
  # @param xero_tenant_id [String] Xero identifier for Tenant
10606
10742
  # @param [Hash] opts the optional parameters
10607
10743
  # @return [Array<(Organisations, Integer, Hash)>] Organisations data, response status code and response headers
10608
- def get_organisations_with_http_info(xero_tenant_id, opts = {})
10744
+ def get_organisations_with_http_info(xero_tenant_id, options = {})
10745
+ opts = options.dup
10609
10746
  if @api_client.config.debugging
10610
10747
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_organisations ...'
10611
10748
  end
@@ -10675,7 +10812,8 @@ module XeroRuby
10675
10812
  # @param overpayment_id [String] Unique identifier for a Overpayment
10676
10813
  # @param [Hash] opts the optional parameters
10677
10814
  # @return [Array<(Overpayments, Integer, Hash)>] Overpayments data, response status code and response headers
10678
- def get_overpayment_with_http_info(xero_tenant_id, overpayment_id, opts = {})
10815
+ def get_overpayment_with_http_info(xero_tenant_id, overpayment_id, options = {})
10816
+ opts = options.dup
10679
10817
  if @api_client.config.debugging
10680
10818
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_overpayment ...'
10681
10819
  end
@@ -10749,7 +10887,8 @@ module XeroRuby
10749
10887
  # @param overpayment_id [String] Unique identifier for a Overpayment
10750
10888
  # @param [Hash] opts the optional parameters
10751
10889
  # @return [Array<(HistoryRecords, Integer, Hash)>] HistoryRecords data, response status code and response headers
10752
- def get_overpayment_history_with_http_info(xero_tenant_id, overpayment_id, opts = {})
10890
+ def get_overpayment_history_with_http_info(xero_tenant_id, overpayment_id, options = {})
10891
+ opts = options.dup
10753
10892
  if @api_client.config.debugging
10754
10893
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_overpayment_history ...'
10755
10894
  end
@@ -10831,7 +10970,8 @@ module XeroRuby
10831
10970
  # @option opts [Integer] :page e.g. page&#x3D;1 – Up to 100 overpayments will be returned in a single API call with line items shown for each overpayment
10832
10971
  # @option opts [Integer] :unitdp e.g. unitdp&#x3D;4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
10833
10972
  # @return [Array<(Overpayments, Integer, Hash)>] Overpayments data, response status code and response headers
10834
- def get_overpayments_with_http_info(xero_tenant_id, opts = {})
10973
+ def get_overpayments_with_http_info(xero_tenant_id, options = {})
10974
+ opts = options.dup
10835
10975
  if @api_client.config.debugging
10836
10976
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_overpayments ...'
10837
10977
  end
@@ -10906,7 +11046,8 @@ module XeroRuby
10906
11046
  # @param payment_id [String] Unique identifier for a Payment
10907
11047
  # @param [Hash] opts the optional parameters
10908
11048
  # @return [Array<(Payments, Integer, Hash)>] Payments data, response status code and response headers
10909
- def get_payment_with_http_info(xero_tenant_id, payment_id, opts = {})
11049
+ def get_payment_with_http_info(xero_tenant_id, payment_id, options = {})
11050
+ opts = options.dup
10910
11051
  if @api_client.config.debugging
10911
11052
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_payment ...'
10912
11053
  end
@@ -10980,7 +11121,8 @@ module XeroRuby
10980
11121
  # @param payment_id [String] Unique identifier for a Payment
10981
11122
  # @param [Hash] opts the optional parameters
10982
11123
  # @return [Array<(HistoryRecords, Integer, Hash)>] HistoryRecords data, response status code and response headers
10983
- def get_payment_history_with_http_info(xero_tenant_id, payment_id, opts = {})
11124
+ def get_payment_history_with_http_info(xero_tenant_id, payment_id, options = {})
11125
+ opts = options.dup
10984
11126
  if @api_client.config.debugging
10985
11127
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_payment_history ...'
10986
11128
  end
@@ -11052,7 +11194,8 @@ module XeroRuby
11052
11194
  # @param xero_tenant_id [String] Xero identifier for Tenant
11053
11195
  # @param [Hash] opts the optional parameters
11054
11196
  # @return [Array<(PaymentServices, Integer, Hash)>] PaymentServices data, response status code and response headers
11055
- def get_payment_services_with_http_info(xero_tenant_id, opts = {})
11197
+ def get_payment_services_with_http_info(xero_tenant_id, options = {})
11198
+ opts = options.dup
11056
11199
  if @api_client.config.debugging
11057
11200
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_payment_services ...'
11058
11201
  end
@@ -11128,7 +11271,8 @@ module XeroRuby
11128
11271
  # @option opts [String] :order Order by an any element
11129
11272
  # @option opts [Integer] :page Up to 100 payments will be returned in a single API call
11130
11273
  # @return [Array<(Payments, Integer, Hash)>] Payments data, response status code and response headers
11131
- def get_payments_with_http_info(xero_tenant_id, opts = {})
11274
+ def get_payments_with_http_info(xero_tenant_id, options = {})
11275
+ opts = options.dup
11132
11276
  if @api_client.config.debugging
11133
11277
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_payments ...'
11134
11278
  end
@@ -11202,7 +11346,8 @@ module XeroRuby
11202
11346
  # @param prepayment_id [String] Unique identifier for a PrePayment
11203
11347
  # @param [Hash] opts the optional parameters
11204
11348
  # @return [Array<(Prepayments, Integer, Hash)>] Prepayments data, response status code and response headers
11205
- def get_prepayment_with_http_info(xero_tenant_id, prepayment_id, opts = {})
11349
+ def get_prepayment_with_http_info(xero_tenant_id, prepayment_id, options = {})
11350
+ opts = options.dup
11206
11351
  if @api_client.config.debugging
11207
11352
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_prepayment ...'
11208
11353
  end
@@ -11276,7 +11421,8 @@ module XeroRuby
11276
11421
  # @param prepayment_id [String] Unique identifier for a PrePayment
11277
11422
  # @param [Hash] opts the optional parameters
11278
11423
  # @return [Array<(HistoryRecords, Integer, Hash)>] HistoryRecords data, response status code and response headers
11279
- def get_prepayment_history_with_http_info(xero_tenant_id, prepayment_id, opts = {})
11424
+ def get_prepayment_history_with_http_info(xero_tenant_id, prepayment_id, options = {})
11425
+ opts = options.dup
11280
11426
  if @api_client.config.debugging
11281
11427
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_prepayment_history ...'
11282
11428
  end
@@ -11358,7 +11504,8 @@ module XeroRuby
11358
11504
  # @option opts [Integer] :page e.g. page&#x3D;1 – Up to 100 prepayments will be returned in a single API call with line items shown for each overpayment
11359
11505
  # @option opts [Integer] :unitdp e.g. unitdp&#x3D;4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
11360
11506
  # @return [Array<(Prepayments, Integer, Hash)>] Prepayments data, response status code and response headers
11361
- def get_prepayments_with_http_info(xero_tenant_id, opts = {})
11507
+ def get_prepayments_with_http_info(xero_tenant_id, options = {})
11508
+ opts = options.dup
11362
11509
  if @api_client.config.debugging
11363
11510
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_prepayments ...'
11364
11511
  end
@@ -11420,7 +11567,7 @@ module XeroRuby
11420
11567
 
11421
11568
  # Retrieves a specific purchase order using a unique purchase order Id
11422
11569
  # @param xero_tenant_id [String] Xero identifier for Tenant
11423
- # @param purchase_order_id [String] Unique identifier for a PurchaseOrder
11570
+ # @param purchase_order_id [String] Unique identifier for an Purchase Order
11424
11571
  # @param [Hash] opts the optional parameters
11425
11572
  # @return [PurchaseOrders]
11426
11573
  def get_purchase_order(xero_tenant_id, purchase_order_id, opts = {})
@@ -11430,10 +11577,11 @@ module XeroRuby
11430
11577
 
11431
11578
  # Retrieves a specific purchase order using a unique purchase order Id
11432
11579
  # @param xero_tenant_id [String] Xero identifier for Tenant
11433
- # @param purchase_order_id [String] Unique identifier for a PurchaseOrder
11580
+ # @param purchase_order_id [String] Unique identifier for an Purchase Order
11434
11581
  # @param [Hash] opts the optional parameters
11435
11582
  # @return [Array<(PurchaseOrders, Integer, Hash)>] PurchaseOrders data, response status code and response headers
11436
- def get_purchase_order_with_http_info(xero_tenant_id, purchase_order_id, opts = {})
11583
+ def get_purchase_order_with_http_info(xero_tenant_id, purchase_order_id, options = {})
11584
+ opts = options.dup
11437
11585
  if @api_client.config.debugging
11438
11586
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_purchase_order ...'
11439
11587
  end
@@ -11507,7 +11655,8 @@ module XeroRuby
11507
11655
  # @param purchase_order_id [String] Unique identifier for an Purchase Order
11508
11656
  # @param [Hash] opts the optional parameters
11509
11657
  # @return [Array<(File, Integer, Hash)>] File data, response status code and response headers
11510
- def get_purchase_order_as_pdf_with_http_info(xero_tenant_id, purchase_order_id, opts = {})
11658
+ def get_purchase_order_as_pdf_with_http_info(xero_tenant_id, purchase_order_id, options = {})
11659
+ opts = options.dup
11511
11660
  if @api_client.config.debugging
11512
11661
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_purchase_order_as_pdf ...'
11513
11662
  end
@@ -11568,7 +11717,7 @@ module XeroRuby
11568
11717
 
11569
11718
  # Retrieves a specific attachment for a specific purchase order by filename
11570
11719
  # @param xero_tenant_id [String] Xero identifier for Tenant
11571
- # @param purchase_order_id [String] Unique identifier for Purchase Order object
11720
+ # @param purchase_order_id [String] Unique identifier for an Purchase Order
11572
11721
  # @param file_name [String] Name of the attachment
11573
11722
  # @param content_type [String] The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
11574
11723
  # @param [Hash] opts the optional parameters
@@ -11580,12 +11729,13 @@ module XeroRuby
11580
11729
 
11581
11730
  # Retrieves a specific attachment for a specific purchase order by filename
11582
11731
  # @param xero_tenant_id [String] Xero identifier for Tenant
11583
- # @param purchase_order_id [String] Unique identifier for Purchase Order object
11732
+ # @param purchase_order_id [String] Unique identifier for an Purchase Order
11584
11733
  # @param file_name [String] Name of the attachment
11585
11734
  # @param content_type [String] The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
11586
11735
  # @param [Hash] opts the optional parameters
11587
11736
  # @return [Array<(File, Integer, Hash)>] File data, response status code and response headers
11588
- def get_purchase_order_attachment_by_file_name_with_http_info(xero_tenant_id, purchase_order_id, file_name, content_type, opts = {})
11737
+ def get_purchase_order_attachment_by_file_name_with_http_info(xero_tenant_id, purchase_order_id, file_name, content_type, options = {})
11738
+ opts = options.dup
11589
11739
  if @api_client.config.debugging
11590
11740
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_purchase_order_attachment_by_file_name ...'
11591
11741
  end
@@ -11655,7 +11805,7 @@ module XeroRuby
11655
11805
 
11656
11806
  # Retrieves specific attachment for a specific purchase order using a unique attachment Id
11657
11807
  # @param xero_tenant_id [String] Xero identifier for Tenant
11658
- # @param purchase_order_id [String] Unique identifier for Purchase Order object
11808
+ # @param purchase_order_id [String] Unique identifier for an Purchase Order
11659
11809
  # @param attachment_id [String] Unique identifier for Attachment object
11660
11810
  # @param content_type [String] The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
11661
11811
  # @param [Hash] opts the optional parameters
@@ -11667,12 +11817,13 @@ module XeroRuby
11667
11817
 
11668
11818
  # Retrieves specific attachment for a specific purchase order using a unique attachment Id
11669
11819
  # @param xero_tenant_id [String] Xero identifier for Tenant
11670
- # @param purchase_order_id [String] Unique identifier for Purchase Order object
11820
+ # @param purchase_order_id [String] Unique identifier for an Purchase Order
11671
11821
  # @param attachment_id [String] Unique identifier for Attachment object
11672
11822
  # @param content_type [String] The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
11673
11823
  # @param [Hash] opts the optional parameters
11674
11824
  # @return [Array<(File, Integer, Hash)>] File data, response status code and response headers
11675
- def get_purchase_order_attachment_by_id_with_http_info(xero_tenant_id, purchase_order_id, attachment_id, content_type, opts = {})
11825
+ def get_purchase_order_attachment_by_id_with_http_info(xero_tenant_id, purchase_order_id, attachment_id, content_type, options = {})
11826
+ opts = options.dup
11676
11827
  if @api_client.config.debugging
11677
11828
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_purchase_order_attachment_by_id ...'
11678
11829
  end
@@ -11742,7 +11893,7 @@ module XeroRuby
11742
11893
 
11743
11894
  # Retrieves attachments for a specific purchase order
11744
11895
  # @param xero_tenant_id [String] Xero identifier for Tenant
11745
- # @param purchase_order_id [String] Unique identifier for Purchase Orders object
11896
+ # @param purchase_order_id [String] Unique identifier for an Purchase Order
11746
11897
  # @param [Hash] opts the optional parameters
11747
11898
  # @return [Attachments]
11748
11899
  def get_purchase_order_attachments(xero_tenant_id, purchase_order_id, opts = {})
@@ -11752,10 +11903,11 @@ module XeroRuby
11752
11903
 
11753
11904
  # Retrieves attachments for a specific purchase order
11754
11905
  # @param xero_tenant_id [String] Xero identifier for Tenant
11755
- # @param purchase_order_id [String] Unique identifier for Purchase Orders object
11906
+ # @param purchase_order_id [String] Unique identifier for an Purchase Order
11756
11907
  # @param [Hash] opts the optional parameters
11757
11908
  # @return [Array<(Attachments, Integer, Hash)>] Attachments data, response status code and response headers
11758
- def get_purchase_order_attachments_with_http_info(xero_tenant_id, purchase_order_id, opts = {})
11909
+ def get_purchase_order_attachments_with_http_info(xero_tenant_id, purchase_order_id, options = {})
11910
+ opts = options.dup
11759
11911
  if @api_client.config.debugging
11760
11912
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_purchase_order_attachments ...'
11761
11913
  end
@@ -11829,7 +11981,8 @@ module XeroRuby
11829
11981
  # @param purchase_order_number [String] Unique identifier for a PurchaseOrder
11830
11982
  # @param [Hash] opts the optional parameters
11831
11983
  # @return [Array<(PurchaseOrders, Integer, Hash)>] PurchaseOrders data, response status code and response headers
11832
- def get_purchase_order_by_number_with_http_info(xero_tenant_id, purchase_order_number, opts = {})
11984
+ def get_purchase_order_by_number_with_http_info(xero_tenant_id, purchase_order_number, options = {})
11985
+ opts = options.dup
11833
11986
  if @api_client.config.debugging
11834
11987
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_purchase_order_by_number ...'
11835
11988
  end
@@ -11890,7 +12043,7 @@ module XeroRuby
11890
12043
 
11891
12044
  # Retrieves history for a specific purchase order
11892
12045
  # @param xero_tenant_id [String] Xero identifier for Tenant
11893
- # @param purchase_order_id [String] Unique identifier for a PurchaseOrder
12046
+ # @param purchase_order_id [String] Unique identifier for an Purchase Order
11894
12047
  # @param [Hash] opts the optional parameters
11895
12048
  # @return [HistoryRecords]
11896
12049
  def get_purchase_order_history(xero_tenant_id, purchase_order_id, opts = {})
@@ -11900,10 +12053,11 @@ module XeroRuby
11900
12053
 
11901
12054
  # Retrieves history for a specific purchase order
11902
12055
  # @param xero_tenant_id [String] Xero identifier for Tenant
11903
- # @param purchase_order_id [String] Unique identifier for a PurchaseOrder
12056
+ # @param purchase_order_id [String] Unique identifier for an Purchase Order
11904
12057
  # @param [Hash] opts the optional parameters
11905
12058
  # @return [Array<(HistoryRecords, Integer, Hash)>] HistoryRecords data, response status code and response headers
11906
- def get_purchase_order_history_with_http_info(xero_tenant_id, purchase_order_id, opts = {})
12059
+ def get_purchase_order_history_with_http_info(xero_tenant_id, purchase_order_id, options = {})
12060
+ opts = options.dup
11907
12061
  if @api_client.config.debugging
11908
12062
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_purchase_order_history ...'
11909
12063
  end
@@ -11987,7 +12141,8 @@ module XeroRuby
11987
12141
  # @option opts [String] :order Order by an any element
11988
12142
  # @option opts [Integer] :page To specify a page, append the page parameter to the URL e.g. ?page&#x3D;1. If there are 100 records in the response you will need to check if there is any more data by fetching the next page e.g ?page&#x3D;2 and continuing this process until no more results are returned.
11989
12143
  # @return [Array<(PurchaseOrders, Integer, Hash)>] PurchaseOrders data, response status code and response headers
11990
- def get_purchase_orders_with_http_info(xero_tenant_id, opts = {})
12144
+ def get_purchase_orders_with_http_info(xero_tenant_id, options = {})
12145
+ opts = options.dup
11991
12146
  if @api_client.config.debugging
11992
12147
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_purchase_orders ...'
11993
12148
  end
@@ -12067,7 +12222,8 @@ module XeroRuby
12067
12222
  # @param quote_id [String] Unique identifier for an Quote
12068
12223
  # @param [Hash] opts the optional parameters
12069
12224
  # @return [Array<(Quotes, Integer, Hash)>] Quotes data, response status code and response headers
12070
- def get_quote_with_http_info(xero_tenant_id, quote_id, opts = {})
12225
+ def get_quote_with_http_info(xero_tenant_id, quote_id, options = {})
12226
+ opts = options.dup
12071
12227
  if @api_client.config.debugging
12072
12228
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_quote ...'
12073
12229
  end
@@ -12141,7 +12297,8 @@ module XeroRuby
12141
12297
  # @param quote_id [String] Unique identifier for an Quote
12142
12298
  # @param [Hash] opts the optional parameters
12143
12299
  # @return [Array<(File, Integer, Hash)>] File data, response status code and response headers
12144
- def get_quote_as_pdf_with_http_info(xero_tenant_id, quote_id, opts = {})
12300
+ def get_quote_as_pdf_with_http_info(xero_tenant_id, quote_id, options = {})
12301
+ opts = options.dup
12145
12302
  if @api_client.config.debugging
12146
12303
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_quote_as_pdf ...'
12147
12304
  end
@@ -12202,7 +12359,7 @@ module XeroRuby
12202
12359
 
12203
12360
  # Retrieves a specific attachment from a specific quote by filename
12204
12361
  # @param xero_tenant_id [String] Xero identifier for Tenant
12205
- # @param quote_id [String] Unique identifier for Quote object
12362
+ # @param quote_id [String] Unique identifier for an Quote
12206
12363
  # @param file_name [String] Name of the attachment
12207
12364
  # @param content_type [String] The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
12208
12365
  # @param [Hash] opts the optional parameters
@@ -12214,12 +12371,13 @@ module XeroRuby
12214
12371
 
12215
12372
  # Retrieves a specific attachment from a specific quote by filename
12216
12373
  # @param xero_tenant_id [String] Xero identifier for Tenant
12217
- # @param quote_id [String] Unique identifier for Quote object
12374
+ # @param quote_id [String] Unique identifier for an Quote
12218
12375
  # @param file_name [String] Name of the attachment
12219
12376
  # @param content_type [String] The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
12220
12377
  # @param [Hash] opts the optional parameters
12221
12378
  # @return [Array<(File, Integer, Hash)>] File data, response status code and response headers
12222
- def get_quote_attachment_by_file_name_with_http_info(xero_tenant_id, quote_id, file_name, content_type, opts = {})
12379
+ def get_quote_attachment_by_file_name_with_http_info(xero_tenant_id, quote_id, file_name, content_type, options = {})
12380
+ opts = options.dup
12223
12381
  if @api_client.config.debugging
12224
12382
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_quote_attachment_by_file_name ...'
12225
12383
  end
@@ -12289,7 +12447,7 @@ module XeroRuby
12289
12447
 
12290
12448
  # Retrieves a specific attachment from a specific quote using a unique attachment Id
12291
12449
  # @param xero_tenant_id [String] Xero identifier for Tenant
12292
- # @param quote_id [String] Unique identifier for Quote object
12450
+ # @param quote_id [String] Unique identifier for an Quote
12293
12451
  # @param attachment_id [String] Unique identifier for Attachment object
12294
12452
  # @param content_type [String] The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
12295
12453
  # @param [Hash] opts the optional parameters
@@ -12301,12 +12459,13 @@ module XeroRuby
12301
12459
 
12302
12460
  # Retrieves a specific attachment from a specific quote using a unique attachment Id
12303
12461
  # @param xero_tenant_id [String] Xero identifier for Tenant
12304
- # @param quote_id [String] Unique identifier for Quote object
12462
+ # @param quote_id [String] Unique identifier for an Quote
12305
12463
  # @param attachment_id [String] Unique identifier for Attachment object
12306
12464
  # @param content_type [String] The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
12307
12465
  # @param [Hash] opts the optional parameters
12308
12466
  # @return [Array<(File, Integer, Hash)>] File data, response status code and response headers
12309
- def get_quote_attachment_by_id_with_http_info(xero_tenant_id, quote_id, attachment_id, content_type, opts = {})
12467
+ def get_quote_attachment_by_id_with_http_info(xero_tenant_id, quote_id, attachment_id, content_type, options = {})
12468
+ opts = options.dup
12310
12469
  if @api_client.config.debugging
12311
12470
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_quote_attachment_by_id ...'
12312
12471
  end
@@ -12376,7 +12535,7 @@ module XeroRuby
12376
12535
 
12377
12536
  # Retrieves attachments for a specific quote
12378
12537
  # @param xero_tenant_id [String] Xero identifier for Tenant
12379
- # @param quote_id [String] Unique identifier for Quote object
12538
+ # @param quote_id [String] Unique identifier for an Quote
12380
12539
  # @param [Hash] opts the optional parameters
12381
12540
  # @return [Attachments]
12382
12541
  def get_quote_attachments(xero_tenant_id, quote_id, opts = {})
@@ -12386,10 +12545,11 @@ module XeroRuby
12386
12545
 
12387
12546
  # Retrieves attachments for a specific quote
12388
12547
  # @param xero_tenant_id [String] Xero identifier for Tenant
12389
- # @param quote_id [String] Unique identifier for Quote object
12548
+ # @param quote_id [String] Unique identifier for an Quote
12390
12549
  # @param [Hash] opts the optional parameters
12391
12550
  # @return [Array<(Attachments, Integer, Hash)>] Attachments data, response status code and response headers
12392
- def get_quote_attachments_with_http_info(xero_tenant_id, quote_id, opts = {})
12551
+ def get_quote_attachments_with_http_info(xero_tenant_id, quote_id, options = {})
12552
+ opts = options.dup
12393
12553
  if @api_client.config.debugging
12394
12554
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_quote_attachments ...'
12395
12555
  end
@@ -12463,7 +12623,8 @@ module XeroRuby
12463
12623
  # @param quote_id [String] Unique identifier for an Quote
12464
12624
  # @param [Hash] opts the optional parameters
12465
12625
  # @return [Array<(HistoryRecords, Integer, Hash)>] HistoryRecords data, response status code and response headers
12466
- def get_quote_history_with_http_info(xero_tenant_id, quote_id, opts = {})
12626
+ def get_quote_history_with_http_info(xero_tenant_id, quote_id, options = {})
12627
+ opts = options.dup
12467
12628
  if @api_client.config.debugging
12468
12629
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_quote_history ...'
12469
12630
  end
@@ -12555,7 +12716,8 @@ module XeroRuby
12555
12716
  # @option opts [String] :order Order by an any element
12556
12717
  # @option opts [String] :quote_number Filter by quote number (e.g. GET https://.../Quotes?QuoteNumber&#x3D;QU-0001)
12557
12718
  # @return [Array<(Quotes, Integer, Hash)>] Quotes data, response status code and response headers
12558
- def get_quotes_with_http_info(xero_tenant_id, opts = {})
12719
+ def get_quotes_with_http_info(xero_tenant_id, options = {})
12720
+ opts = options.dup
12559
12721
  if @api_client.config.debugging
12560
12722
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_quotes ...'
12561
12723
  end
@@ -12637,7 +12799,8 @@ module XeroRuby
12637
12799
  # @param [Hash] opts the optional parameters
12638
12800
  # @option opts [Integer] :unitdp e.g. unitdp&#x3D;4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
12639
12801
  # @return [Array<(Receipts, Integer, Hash)>] Receipts data, response status code and response headers
12640
- def get_receipt_with_http_info(xero_tenant_id, receipt_id, opts = {})
12802
+ def get_receipt_with_http_info(xero_tenant_id, receipt_id, options = {})
12803
+ opts = options.dup
12641
12804
  if @api_client.config.debugging
12642
12805
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_receipt ...'
12643
12806
  end
@@ -12700,7 +12863,7 @@ module XeroRuby
12700
12863
  # Retrieves a specific attachment from a specific expense claim receipts by file name
12701
12864
  # @param xero_tenant_id [String] Xero identifier for Tenant
12702
12865
  # @param receipt_id [String] Unique identifier for a Receipt
12703
- # @param file_name [String] The name of the file being attached to the Receipt
12866
+ # @param file_name [String] Name of the attachment
12704
12867
  # @param content_type [String] The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
12705
12868
  # @param [Hash] opts the optional parameters
12706
12869
  # @return [File]
@@ -12712,11 +12875,12 @@ module XeroRuby
12712
12875
  # Retrieves a specific attachment from a specific expense claim receipts by file name
12713
12876
  # @param xero_tenant_id [String] Xero identifier for Tenant
12714
12877
  # @param receipt_id [String] Unique identifier for a Receipt
12715
- # @param file_name [String] The name of the file being attached to the Receipt
12878
+ # @param file_name [String] Name of the attachment
12716
12879
  # @param content_type [String] The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
12717
12880
  # @param [Hash] opts the optional parameters
12718
12881
  # @return [Array<(File, Integer, Hash)>] File data, response status code and response headers
12719
- def get_receipt_attachment_by_file_name_with_http_info(xero_tenant_id, receipt_id, file_name, content_type, opts = {})
12882
+ def get_receipt_attachment_by_file_name_with_http_info(xero_tenant_id, receipt_id, file_name, content_type, options = {})
12883
+ opts = options.dup
12720
12884
  if @api_client.config.debugging
12721
12885
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_receipt_attachment_by_file_name ...'
12722
12886
  end
@@ -12787,7 +12951,7 @@ module XeroRuby
12787
12951
  # Retrieves a specific attachments from a specific expense claim receipts by using a unique attachment Id
12788
12952
  # @param xero_tenant_id [String] Xero identifier for Tenant
12789
12953
  # @param receipt_id [String] Unique identifier for a Receipt
12790
- # @param attachment_id [String] Unique identifier for a Attachment
12954
+ # @param attachment_id [String] Unique identifier for Attachment object
12791
12955
  # @param content_type [String] The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
12792
12956
  # @param [Hash] opts the optional parameters
12793
12957
  # @return [File]
@@ -12799,11 +12963,12 @@ module XeroRuby
12799
12963
  # Retrieves a specific attachments from a specific expense claim receipts by using a unique attachment Id
12800
12964
  # @param xero_tenant_id [String] Xero identifier for Tenant
12801
12965
  # @param receipt_id [String] Unique identifier for a Receipt
12802
- # @param attachment_id [String] Unique identifier for a Attachment
12966
+ # @param attachment_id [String] Unique identifier for Attachment object
12803
12967
  # @param content_type [String] The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
12804
12968
  # @param [Hash] opts the optional parameters
12805
12969
  # @return [Array<(File, Integer, Hash)>] File data, response status code and response headers
12806
- def get_receipt_attachment_by_id_with_http_info(xero_tenant_id, receipt_id, attachment_id, content_type, opts = {})
12970
+ def get_receipt_attachment_by_id_with_http_info(xero_tenant_id, receipt_id, attachment_id, content_type, options = {})
12971
+ opts = options.dup
12807
12972
  if @api_client.config.debugging
12808
12973
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_receipt_attachment_by_id ...'
12809
12974
  end
@@ -12886,7 +13051,8 @@ module XeroRuby
12886
13051
  # @param receipt_id [String] Unique identifier for a Receipt
12887
13052
  # @param [Hash] opts the optional parameters
12888
13053
  # @return [Array<(Attachments, Integer, Hash)>] Attachments data, response status code and response headers
12889
- def get_receipt_attachments_with_http_info(xero_tenant_id, receipt_id, opts = {})
13054
+ def get_receipt_attachments_with_http_info(xero_tenant_id, receipt_id, options = {})
13055
+ opts = options.dup
12890
13056
  if @api_client.config.debugging
12891
13057
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_receipt_attachments ...'
12892
13058
  end
@@ -12960,7 +13126,8 @@ module XeroRuby
12960
13126
  # @param receipt_id [String] Unique identifier for a Receipt
12961
13127
  # @param [Hash] opts the optional parameters
12962
13128
  # @return [Array<(HistoryRecords, Integer, Hash)>] HistoryRecords data, response status code and response headers
12963
- def get_receipt_history_with_http_info(xero_tenant_id, receipt_id, opts = {})
13129
+ def get_receipt_history_with_http_info(xero_tenant_id, receipt_id, options = {})
13130
+ opts = options.dup
12964
13131
  if @api_client.config.debugging
12965
13132
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_receipt_history ...'
12966
13133
  end
@@ -13040,7 +13207,8 @@ module XeroRuby
13040
13207
  # @option opts [String] :order Order by an any element
13041
13208
  # @option opts [Integer] :unitdp e.g. unitdp&#x3D;4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
13042
13209
  # @return [Array<(Receipts, Integer, Hash)>] Receipts data, response status code and response headers
13043
- def get_receipts_with_http_info(xero_tenant_id, opts = {})
13210
+ def get_receipts_with_http_info(xero_tenant_id, options = {})
13211
+ opts = options.dup
13044
13212
  if @api_client.config.debugging
13045
13213
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_receipts ...'
13046
13214
  end
@@ -13114,7 +13282,8 @@ module XeroRuby
13114
13282
  # @param repeating_invoice_id [String] Unique identifier for a Repeating Invoice
13115
13283
  # @param [Hash] opts the optional parameters
13116
13284
  # @return [Array<(RepeatingInvoices, Integer, Hash)>] RepeatingInvoices data, response status code and response headers
13117
- def get_repeating_invoice_with_http_info(xero_tenant_id, repeating_invoice_id, opts = {})
13285
+ def get_repeating_invoice_with_http_info(xero_tenant_id, repeating_invoice_id, options = {})
13286
+ opts = options.dup
13118
13287
  if @api_client.config.debugging
13119
13288
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_repeating_invoice ...'
13120
13289
  end
@@ -13176,7 +13345,7 @@ module XeroRuby
13176
13345
  # Retrieves a specific attachment from a specific repeating invoices by file name
13177
13346
  # @param xero_tenant_id [String] Xero identifier for Tenant
13178
13347
  # @param repeating_invoice_id [String] Unique identifier for a Repeating Invoice
13179
- # @param file_name [String] The name of the file being attached to a Repeating Invoice
13348
+ # @param file_name [String] Name of the attachment
13180
13349
  # @param content_type [String] The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
13181
13350
  # @param [Hash] opts the optional parameters
13182
13351
  # @return [File]
@@ -13188,11 +13357,12 @@ module XeroRuby
13188
13357
  # Retrieves a specific attachment from a specific repeating invoices by file name
13189
13358
  # @param xero_tenant_id [String] Xero identifier for Tenant
13190
13359
  # @param repeating_invoice_id [String] Unique identifier for a Repeating Invoice
13191
- # @param file_name [String] The name of the file being attached to a Repeating Invoice
13360
+ # @param file_name [String] Name of the attachment
13192
13361
  # @param content_type [String] The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
13193
13362
  # @param [Hash] opts the optional parameters
13194
13363
  # @return [Array<(File, Integer, Hash)>] File data, response status code and response headers
13195
- def get_repeating_invoice_attachment_by_file_name_with_http_info(xero_tenant_id, repeating_invoice_id, file_name, content_type, opts = {})
13364
+ def get_repeating_invoice_attachment_by_file_name_with_http_info(xero_tenant_id, repeating_invoice_id, file_name, content_type, options = {})
13365
+ opts = options.dup
13196
13366
  if @api_client.config.debugging
13197
13367
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_repeating_invoice_attachment_by_file_name ...'
13198
13368
  end
@@ -13263,7 +13433,7 @@ module XeroRuby
13263
13433
  # Retrieves a specific attachment from a specific repeating invoice
13264
13434
  # @param xero_tenant_id [String] Xero identifier for Tenant
13265
13435
  # @param repeating_invoice_id [String] Unique identifier for a Repeating Invoice
13266
- # @param attachment_id [String] Unique identifier for a Attachment
13436
+ # @param attachment_id [String] Unique identifier for Attachment object
13267
13437
  # @param content_type [String] The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
13268
13438
  # @param [Hash] opts the optional parameters
13269
13439
  # @return [File]
@@ -13275,11 +13445,12 @@ module XeroRuby
13275
13445
  # Retrieves a specific attachment from a specific repeating invoice
13276
13446
  # @param xero_tenant_id [String] Xero identifier for Tenant
13277
13447
  # @param repeating_invoice_id [String] Unique identifier for a Repeating Invoice
13278
- # @param attachment_id [String] Unique identifier for a Attachment
13448
+ # @param attachment_id [String] Unique identifier for Attachment object
13279
13449
  # @param content_type [String] The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
13280
13450
  # @param [Hash] opts the optional parameters
13281
13451
  # @return [Array<(File, Integer, Hash)>] File data, response status code and response headers
13282
- def get_repeating_invoice_attachment_by_id_with_http_info(xero_tenant_id, repeating_invoice_id, attachment_id, content_type, opts = {})
13452
+ def get_repeating_invoice_attachment_by_id_with_http_info(xero_tenant_id, repeating_invoice_id, attachment_id, content_type, options = {})
13453
+ opts = options.dup
13283
13454
  if @api_client.config.debugging
13284
13455
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_repeating_invoice_attachment_by_id ...'
13285
13456
  end
@@ -13362,7 +13533,8 @@ module XeroRuby
13362
13533
  # @param repeating_invoice_id [String] Unique identifier for a Repeating Invoice
13363
13534
  # @param [Hash] opts the optional parameters
13364
13535
  # @return [Array<(Attachments, Integer, Hash)>] Attachments data, response status code and response headers
13365
- def get_repeating_invoice_attachments_with_http_info(xero_tenant_id, repeating_invoice_id, opts = {})
13536
+ def get_repeating_invoice_attachments_with_http_info(xero_tenant_id, repeating_invoice_id, options = {})
13537
+ opts = options.dup
13366
13538
  if @api_client.config.debugging
13367
13539
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_repeating_invoice_attachments ...'
13368
13540
  end
@@ -13436,7 +13608,8 @@ module XeroRuby
13436
13608
  # @param repeating_invoice_id [String] Unique identifier for a Repeating Invoice
13437
13609
  # @param [Hash] opts the optional parameters
13438
13610
  # @return [Array<(HistoryRecords, Integer, Hash)>] HistoryRecords data, response status code and response headers
13439
- def get_repeating_invoice_history_with_http_info(xero_tenant_id, repeating_invoice_id, opts = {})
13611
+ def get_repeating_invoice_history_with_http_info(xero_tenant_id, repeating_invoice_id, options = {})
13612
+ opts = options.dup
13440
13613
  if @api_client.config.debugging
13441
13614
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_repeating_invoice_history ...'
13442
13615
  end
@@ -13512,7 +13685,8 @@ module XeroRuby
13512
13685
  # @option opts [String] :where Filter by an any element
13513
13686
  # @option opts [String] :order Order by an any element
13514
13687
  # @return [Array<(RepeatingInvoices, Integer, Hash)>] RepeatingInvoices data, response status code and response headers
13515
- def get_repeating_invoices_with_http_info(xero_tenant_id, opts = {})
13688
+ def get_repeating_invoices_with_http_info(xero_tenant_id, options = {})
13689
+ opts = options.dup
13516
13690
  if @api_client.config.debugging
13517
13691
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_repeating_invoices ...'
13518
13692
  end
@@ -13574,8 +13748,8 @@ module XeroRuby
13574
13748
  # @param contact_id [String] Unique identifier for a Contact
13575
13749
  # @param [Hash] opts the optional parameters
13576
13750
  # @option opts [Date] :date The date of the Aged Payables By Contact report
13577
- # @option opts [Date] :from_date The from date of the Aged Payables By Contact report
13578
- # @option opts [Date] :to_date The to date of the Aged Payables By Contact report
13751
+ # @option opts [Date] :from_date filter by the from date of the report e.g. 2021-02-01
13752
+ # @option opts [Date] :to_date filter by the to date of the report e.g. 2021-02-28
13579
13753
  # @return [ReportWithRows]
13580
13754
  def get_report_aged_payables_by_contact(xero_tenant_id, contact_id, opts = {})
13581
13755
  data, _status_code, _headers = get_report_aged_payables_by_contact_with_http_info(xero_tenant_id, contact_id, opts)
@@ -13587,10 +13761,11 @@ module XeroRuby
13587
13761
  # @param contact_id [String] Unique identifier for a Contact
13588
13762
  # @param [Hash] opts the optional parameters
13589
13763
  # @option opts [Date] :date The date of the Aged Payables By Contact report
13590
- # @option opts [Date] :from_date The from date of the Aged Payables By Contact report
13591
- # @option opts [Date] :to_date The to date of the Aged Payables By Contact report
13764
+ # @option opts [Date] :from_date filter by the from date of the report e.g. 2021-02-01
13765
+ # @option opts [Date] :to_date filter by the to date of the report e.g. 2021-02-28
13592
13766
  # @return [Array<(ReportWithRows, Integer, Hash)>] ReportWithRows data, response status code and response headers
13593
- def get_report_aged_payables_by_contact_with_http_info(xero_tenant_id, contact_id, opts = {})
13767
+ def get_report_aged_payables_by_contact_with_http_info(xero_tenant_id, contact_id, options = {})
13768
+ opts = options.dup
13594
13769
  if @api_client.config.debugging
13595
13770
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_report_aged_payables_by_contact ...'
13596
13771
  end
@@ -13658,8 +13833,8 @@ module XeroRuby
13658
13833
  # @param contact_id [String] Unique identifier for a Contact
13659
13834
  # @param [Hash] opts the optional parameters
13660
13835
  # @option opts [Date] :date The date of the Aged Receivables By Contact report
13661
- # @option opts [Date] :from_date The from date of the Aged Receivables By Contact report
13662
- # @option opts [Date] :to_date The to date of the Aged Receivables By Contact report
13836
+ # @option opts [Date] :from_date filter by the from date of the report e.g. 2021-02-01
13837
+ # @option opts [Date] :to_date filter by the to date of the report e.g. 2021-02-28
13663
13838
  # @return [ReportWithRows]
13664
13839
  def get_report_aged_receivables_by_contact(xero_tenant_id, contact_id, opts = {})
13665
13840
  data, _status_code, _headers = get_report_aged_receivables_by_contact_with_http_info(xero_tenant_id, contact_id, opts)
@@ -13671,10 +13846,11 @@ module XeroRuby
13671
13846
  # @param contact_id [String] Unique identifier for a Contact
13672
13847
  # @param [Hash] opts the optional parameters
13673
13848
  # @option opts [Date] :date The date of the Aged Receivables By Contact report
13674
- # @option opts [Date] :from_date The from date of the Aged Receivables By Contact report
13675
- # @option opts [Date] :to_date The to date of the Aged Receivables By Contact report
13849
+ # @option opts [Date] :from_date filter by the from date of the report e.g. 2021-02-01
13850
+ # @option opts [Date] :to_date filter by the to date of the report e.g. 2021-02-28
13676
13851
  # @return [Array<(ReportWithRows, Integer, Hash)>] ReportWithRows data, response status code and response headers
13677
- def get_report_aged_receivables_by_contact_with_http_info(xero_tenant_id, contact_id, opts = {})
13852
+ def get_report_aged_receivables_by_contact_with_http_info(xero_tenant_id, contact_id, options = {})
13853
+ opts = options.dup
13678
13854
  if @api_client.config.debugging
13679
13855
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_report_aged_receivables_by_contact ...'
13680
13856
  end
@@ -13752,7 +13928,8 @@ module XeroRuby
13752
13928
  # @param report_id [String] Unique identifier for a Report
13753
13929
  # @param [Hash] opts the optional parameters
13754
13930
  # @return [Array<(ReportWithRows, Integer, Hash)>] ReportWithRows data, response status code and response headers
13755
- def get_report_ba_sor_gst_with_http_info(xero_tenant_id, report_id, opts = {})
13931
+ def get_report_ba_sor_gst_with_http_info(xero_tenant_id, report_id, options = {})
13932
+ opts = options.dup
13756
13933
  if @api_client.config.debugging
13757
13934
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_report_ba_sor_gst ...'
13758
13935
  end
@@ -13824,7 +14001,8 @@ module XeroRuby
13824
14001
  # @param xero_tenant_id [String] Xero identifier for Tenant
13825
14002
  # @param [Hash] opts the optional parameters
13826
14003
  # @return [Array<(ReportWithRows, Integer, Hash)>] ReportWithRows data, response status code and response headers
13827
- def get_report_ba_sor_gst_list_with_http_info(xero_tenant_id, opts = {})
14004
+ def get_report_ba_sor_gst_list_with_http_info(xero_tenant_id, options = {})
14005
+ opts = options.dup
13828
14006
  if @api_client.config.debugging
13829
14007
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_report_ba_sor_gst_list ...'
13830
14008
  end
@@ -13906,7 +14084,8 @@ module XeroRuby
13906
14084
  # @option opts [Boolean] :standard_layout The standard layout boolean for the Balance Sheet report
13907
14085
  # @option opts [Boolean] :payments_only return a cash basis for the Balance Sheet report
13908
14086
  # @return [Array<(ReportWithRows, Integer, Hash)>] ReportWithRows data, response status code and response headers
13909
- def get_report_balance_sheet_with_http_info(xero_tenant_id, opts = {})
14087
+ def get_report_balance_sheet_with_http_info(xero_tenant_id, options = {})
14088
+ opts = options.dup
13910
14089
  if @api_client.config.debugging
13911
14090
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_report_balance_sheet ...'
13912
14091
  end
@@ -13975,8 +14154,8 @@ module XeroRuby
13975
14154
  # Retrieves report for bank summary
13976
14155
  # @param xero_tenant_id [String] Xero identifier for Tenant
13977
14156
  # @param [Hash] opts the optional parameters
13978
- # @option opts [Date] :from_date The from date for the Bank Summary report e.g. 2018-03-31
13979
- # @option opts [Date] :to_date The to date for the Bank Summary report e.g. 2018-03-31
14157
+ # @option opts [Date] :from_date filter by the from date of the report e.g. 2021-02-01
14158
+ # @option opts [Date] :to_date filter by the to date of the report e.g. 2021-02-28
13980
14159
  # @return [ReportWithRows]
13981
14160
  def get_report_bank_summary(xero_tenant_id, opts = {})
13982
14161
  data, _status_code, _headers = get_report_bank_summary_with_http_info(xero_tenant_id, opts)
@@ -13986,10 +14165,11 @@ module XeroRuby
13986
14165
  # Retrieves report for bank summary
13987
14166
  # @param xero_tenant_id [String] Xero identifier for Tenant
13988
14167
  # @param [Hash] opts the optional parameters
13989
- # @option opts [Date] :from_date The from date for the Bank Summary report e.g. 2018-03-31
13990
- # @option opts [Date] :to_date The to date for the Bank Summary report e.g. 2018-03-31
14168
+ # @option opts [Date] :from_date filter by the from date of the report e.g. 2021-02-01
14169
+ # @option opts [Date] :to_date filter by the to date of the report e.g. 2021-02-28
13991
14170
  # @return [Array<(ReportWithRows, Integer, Hash)>] ReportWithRows data, response status code and response headers
13992
- def get_report_bank_summary_with_http_info(xero_tenant_id, opts = {})
14171
+ def get_report_bank_summary_with_http_info(xero_tenant_id, options = {})
14172
+ opts = options.dup
13993
14173
  if @api_client.config.debugging
13994
14174
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_report_bank_summary ...'
13995
14175
  end
@@ -14065,7 +14245,8 @@ module XeroRuby
14065
14245
  # @option opts [Integer] :period The number of periods to compare (integer between 1 and 12)
14066
14246
  # @option opts [Integer] :timeframe The period size to compare to (1&#x3D;month, 3&#x3D;quarter, 12&#x3D;year)
14067
14247
  # @return [Array<(ReportWithRows, Integer, Hash)>] ReportWithRows data, response status code and response headers
14068
- def get_report_budget_summary_with_http_info(xero_tenant_id, opts = {})
14248
+ def get_report_budget_summary_with_http_info(xero_tenant_id, options = {})
14249
+ opts = options.dup
14069
14250
  if @api_client.config.debugging
14070
14251
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_report_budget_summary ...'
14071
14252
  end
@@ -14138,7 +14319,8 @@ module XeroRuby
14138
14319
  # @param [Hash] opts the optional parameters
14139
14320
  # @option opts [Date] :date The date for the Bank Summary report e.g. 2018-03-31
14140
14321
  # @return [Array<(ReportWithRows, Integer, Hash)>] ReportWithRows data, response status code and response headers
14141
- def get_report_executive_summary_with_http_info(xero_tenant_id, opts = {})
14322
+ def get_report_executive_summary_with_http_info(xero_tenant_id, options = {})
14323
+ opts = options.dup
14142
14324
  if @api_client.config.debugging
14143
14325
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_report_executive_summary ...'
14144
14326
  end
@@ -14197,8 +14379,8 @@ module XeroRuby
14197
14379
  # Retrieves report for profit and loss
14198
14380
  # @param xero_tenant_id [String] Xero identifier for Tenant
14199
14381
  # @param [Hash] opts the optional parameters
14200
- # @option opts [Date] :from_date The from date for the ProfitAndLoss report e.g. 2018-03-31
14201
- # @option opts [Date] :to_date The to date for the ProfitAndLoss report e.g. 2018-03-31
14382
+ # @option opts [Date] :from_date filter by the from date of the report e.g. 2021-02-01
14383
+ # @option opts [Date] :to_date filter by the to date of the report e.g. 2021-02-28
14202
14384
  # @option opts [Integer] :periods The number of periods to compare (integer between 1 and 12)
14203
14385
  # @option opts [String] :timeframe The period size to compare to (MONTH, QUARTER, YEAR)
14204
14386
  # @option opts [String] :tracking_category_id The trackingCategory 1 for the ProfitAndLoss report
@@ -14216,8 +14398,8 @@ module XeroRuby
14216
14398
  # Retrieves report for profit and loss
14217
14399
  # @param xero_tenant_id [String] Xero identifier for Tenant
14218
14400
  # @param [Hash] opts the optional parameters
14219
- # @option opts [Date] :from_date The from date for the ProfitAndLoss report e.g. 2018-03-31
14220
- # @option opts [Date] :to_date The to date for the ProfitAndLoss report e.g. 2018-03-31
14401
+ # @option opts [Date] :from_date filter by the from date of the report e.g. 2021-02-01
14402
+ # @option opts [Date] :to_date filter by the to date of the report e.g. 2021-02-28
14221
14403
  # @option opts [Integer] :periods The number of periods to compare (integer between 1 and 12)
14222
14404
  # @option opts [String] :timeframe The period size to compare to (MONTH, QUARTER, YEAR)
14223
14405
  # @option opts [String] :tracking_category_id The trackingCategory 1 for the ProfitAndLoss report
@@ -14227,7 +14409,8 @@ module XeroRuby
14227
14409
  # @option opts [Boolean] :standard_layout Return the standard layout for the ProfitAndLoss report
14228
14410
  # @option opts [Boolean] :payments_only Return cash only basis for the ProfitAndLoss report
14229
14411
  # @return [Array<(ReportWithRows, Integer, Hash)>] ReportWithRows data, response status code and response headers
14230
- def get_report_profit_and_loss_with_http_info(xero_tenant_id, opts = {})
14412
+ def get_report_profit_and_loss_with_http_info(xero_tenant_id, options = {})
14413
+ opts = options.dup
14231
14414
  if @api_client.config.debugging
14232
14415
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_report_profit_and_loss ...'
14233
14416
  end
@@ -14311,7 +14494,8 @@ module XeroRuby
14311
14494
  # @param [Hash] opts the optional parameters
14312
14495
  # @option opts [String] :report_year The year of the 1099 report
14313
14496
  # @return [Array<(Reports, Integer, Hash)>] Reports data, response status code and response headers
14314
- def get_report_ten_ninety_nine_with_http_info(xero_tenant_id, opts = {})
14497
+ def get_report_ten_ninety_nine_with_http_info(xero_tenant_id, options = {})
14498
+ opts = options.dup
14315
14499
  if @api_client.config.debugging
14316
14500
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_report_ten_ninety_nine ...'
14317
14501
  end
@@ -14384,7 +14568,8 @@ module XeroRuby
14384
14568
  # @option opts [Date] :date The date for the Trial Balance report e.g. 2018-03-31
14385
14569
  # @option opts [Boolean] :payments_only Return cash only basis for the Trial Balance report
14386
14570
  # @return [Array<(ReportWithRows, Integer, Hash)>] ReportWithRows data, response status code and response headers
14387
- def get_report_trial_balance_with_http_info(xero_tenant_id, opts = {})
14571
+ def get_report_trial_balance_with_http_info(xero_tenant_id, options = {})
14572
+ opts = options.dup
14388
14573
  if @api_client.config.debugging
14389
14574
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_report_trial_balance ...'
14390
14575
  end
@@ -14460,7 +14645,8 @@ module XeroRuby
14460
14645
  # @option opts [String] :order Order by an any element
14461
14646
  # @option opts [String] :tax_type Filter by tax type
14462
14647
  # @return [Array<(TaxRates, Integer, Hash)>] TaxRates data, response status code and response headers
14463
- def get_tax_rates_with_http_info(xero_tenant_id, opts = {})
14648
+ def get_tax_rates_with_http_info(xero_tenant_id, options = {})
14649
+ opts = options.dup
14464
14650
  if @api_client.config.debugging
14465
14651
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_tax_rates ...'
14466
14652
  end
@@ -14537,7 +14723,8 @@ module XeroRuby
14537
14723
  # @option opts [String] :order Order by an any element
14538
14724
  # @option opts [Boolean] :include_archived e.g. includeArchived&#x3D;true - Categories and options with a status of ARCHIVED will be included in the response
14539
14725
  # @return [Array<(TrackingCategories, Integer, Hash)>] TrackingCategories data, response status code and response headers
14540
- def get_tracking_categories_with_http_info(xero_tenant_id, opts = {})
14726
+ def get_tracking_categories_with_http_info(xero_tenant_id, options = {})
14727
+ opts = options.dup
14541
14728
  if @api_client.config.debugging
14542
14729
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_tracking_categories ...'
14543
14730
  end
@@ -14610,7 +14797,8 @@ module XeroRuby
14610
14797
  # @param tracking_category_id [String] Unique identifier for a TrackingCategory
14611
14798
  # @param [Hash] opts the optional parameters
14612
14799
  # @return [Array<(TrackingCategories, Integer, Hash)>] TrackingCategories data, response status code and response headers
14613
- def get_tracking_category_with_http_info(xero_tenant_id, tracking_category_id, opts = {})
14800
+ def get_tracking_category_with_http_info(xero_tenant_id, tracking_category_id, options = {})
14801
+ opts = options.dup
14614
14802
  if @api_client.config.debugging
14615
14803
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_tracking_category ...'
14616
14804
  end
@@ -14684,7 +14872,8 @@ module XeroRuby
14684
14872
  # @param user_id [String] Unique identifier for a User
14685
14873
  # @param [Hash] opts the optional parameters
14686
14874
  # @return [Array<(Users, Integer, Hash)>] Users data, response status code and response headers
14687
- def get_user_with_http_info(xero_tenant_id, user_id, opts = {})
14875
+ def get_user_with_http_info(xero_tenant_id, user_id, options = {})
14876
+ opts = options.dup
14688
14877
  if @api_client.config.debugging
14689
14878
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_user ...'
14690
14879
  end
@@ -14762,7 +14951,8 @@ module XeroRuby
14762
14951
  # @option opts [String] :where Filter by an any element
14763
14952
  # @option opts [String] :order Order by an any element
14764
14953
  # @return [Array<(Users, Integer, Hash)>] Users data, response status code and response headers
14765
- def get_users_with_http_info(xero_tenant_id, opts = {})
14954
+ def get_users_with_http_info(xero_tenant_id, options = {})
14955
+ opts = options.dup
14766
14956
  if @api_client.config.debugging
14767
14957
  @api_client.config.logger.debug 'Calling API: AccountingApi.get_users ...'
14768
14958
  end
@@ -14835,7 +15025,8 @@ module XeroRuby
14835
15025
  # @param setup [Setup] Object including an accounts array, a conversion balances array and a conversion date object in body of request
14836
15026
  # @param [Hash] opts the optional parameters
14837
15027
  # @return [Array<(ImportSummaryObject, Integer, Hash)>] ImportSummaryObject data, response status code and response headers
14838
- def post_setup_with_http_info(xero_tenant_id, setup, opts = {})
15028
+ def post_setup_with_http_info(xero_tenant_id, setup, options = {})
15029
+ opts = options.dup
14839
15030
  if @api_client.config.debugging
14840
15031
  @api_client.config.logger.debug 'Calling API: AccountingApi.post_setup ...'
14841
15032
  end
@@ -14898,7 +15089,7 @@ module XeroRuby
14898
15089
 
14899
15090
  # Updates a chart of accounts
14900
15091
  # @param xero_tenant_id [String] Xero identifier for Tenant
14901
- # @param account_id [String] Unique identifier for retrieving single object
15092
+ # @param account_id [String] Unique identifier for Account object
14902
15093
  # @param accounts [Accounts] Request of type Accounts array with one Account
14903
15094
  # @param [Hash] opts the optional parameters
14904
15095
  # @return [Accounts]
@@ -14909,11 +15100,12 @@ module XeroRuby
14909
15100
 
14910
15101
  # Updates a chart of accounts
14911
15102
  # @param xero_tenant_id [String] Xero identifier for Tenant
14912
- # @param account_id [String] Unique identifier for retrieving single object
15103
+ # @param account_id [String] Unique identifier for Account object
14913
15104
  # @param accounts [Accounts] Request of type Accounts array with one Account
14914
15105
  # @param [Hash] opts the optional parameters
14915
15106
  # @return [Array<(Accounts, Integer, Hash)>] Accounts data, response status code and response headers
14916
- def update_account_with_http_info(xero_tenant_id, account_id, accounts, opts = {})
15107
+ def update_account_with_http_info(xero_tenant_id, account_id, accounts, options = {})
15108
+ opts = options.dup
14917
15109
  if @api_client.config.debugging
14918
15110
  @api_client.config.logger.debug 'Calling API: AccountingApi.update_account ...'
14919
15111
  end
@@ -14997,7 +15189,8 @@ module XeroRuby
14997
15189
  # @param body [String] Byte array of file in body of request
14998
15190
  # @param [Hash] opts the optional parameters
14999
15191
  # @return [Array<(Attachments, Integer, Hash)>] Attachments data, response status code and response headers
15000
- def update_account_attachment_by_file_name_with_http_info(xero_tenant_id, account_id, file_name, body, opts = {})
15192
+ def update_account_attachment_by_file_name_with_http_info(xero_tenant_id, account_id, file_name, body, options = {})
15193
+ opts = options.dup
15001
15194
  if @api_client.config.debugging
15002
15195
  @api_client.config.logger.debug 'Calling API: AccountingApi.update_account_attachment_by_file_name ...'
15003
15196
  end
@@ -15085,7 +15278,8 @@ module XeroRuby
15085
15278
  # @param [Hash] opts the optional parameters
15086
15279
  # @option opts [Integer] :unitdp e.g. unitdp&#x3D;4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
15087
15280
  # @return [Array<(BankTransactions, Integer, Hash)>] BankTransactions data, response status code and response headers
15088
- def update_bank_transaction_with_http_info(xero_tenant_id, bank_transaction_id, bank_transactions, opts = {})
15281
+ def update_bank_transaction_with_http_info(xero_tenant_id, bank_transaction_id, bank_transactions, options = {})
15282
+ opts = options.dup
15089
15283
  if @api_client.config.debugging
15090
15284
  @api_client.config.logger.debug 'Calling API: AccountingApi.update_bank_transaction ...'
15091
15285
  end
@@ -15154,7 +15348,7 @@ module XeroRuby
15154
15348
  # Updates a specific attachment from a specific bank transaction by filename
15155
15349
  # @param xero_tenant_id [String] Xero identifier for Tenant
15156
15350
  # @param bank_transaction_id [String] Xero generated unique identifier for a bank transaction
15157
- # @param file_name [String] The name of the file being attached
15351
+ # @param file_name [String] Name of the attachment
15158
15352
  # @param body [String] Byte array of file in body of request
15159
15353
  # @param [Hash] opts the optional parameters
15160
15354
  # @return [Attachments]
@@ -15166,11 +15360,12 @@ module XeroRuby
15166
15360
  # Updates a specific attachment from a specific bank transaction by filename
15167
15361
  # @param xero_tenant_id [String] Xero identifier for Tenant
15168
15362
  # @param bank_transaction_id [String] Xero generated unique identifier for a bank transaction
15169
- # @param file_name [String] The name of the file being attached
15363
+ # @param file_name [String] Name of the attachment
15170
15364
  # @param body [String] Byte array of file in body of request
15171
15365
  # @param [Hash] opts the optional parameters
15172
15366
  # @return [Array<(Attachments, Integer, Hash)>] Attachments data, response status code and response headers
15173
- def update_bank_transaction_attachment_by_file_name_with_http_info(xero_tenant_id, bank_transaction_id, file_name, body, opts = {})
15367
+ def update_bank_transaction_attachment_by_file_name_with_http_info(xero_tenant_id, bank_transaction_id, file_name, body, options = {})
15368
+ opts = options.dup
15174
15369
  if @api_client.config.debugging
15175
15370
  @api_client.config.logger.debug 'Calling API: AccountingApi.update_bank_transaction_attachment_by_file_name ...'
15176
15371
  end
@@ -15241,7 +15436,7 @@ module XeroRuby
15241
15436
 
15242
15437
  # @param xero_tenant_id [String] Xero identifier for Tenant
15243
15438
  # @param bank_transfer_id [String] Xero generated unique identifier for a bank transfer
15244
- # @param file_name [String] The name of the file being attached to a Bank Transfer
15439
+ # @param file_name [String] Name of the attachment
15245
15440
  # @param body [String] Byte array of file in body of request
15246
15441
  # @param [Hash] opts the optional parameters
15247
15442
  # @return [Attachments]
@@ -15252,11 +15447,12 @@ module XeroRuby
15252
15447
 
15253
15448
  # @param xero_tenant_id [String] Xero identifier for Tenant
15254
15449
  # @param bank_transfer_id [String] Xero generated unique identifier for a bank transfer
15255
- # @param file_name [String] The name of the file being attached to a Bank Transfer
15450
+ # @param file_name [String] Name of the attachment
15256
15451
  # @param body [String] Byte array of file in body of request
15257
15452
  # @param [Hash] opts the optional parameters
15258
15453
  # @return [Array<(Attachments, Integer, Hash)>] Attachments data, response status code and response headers
15259
- def update_bank_transfer_attachment_by_file_name_with_http_info(xero_tenant_id, bank_transfer_id, file_name, body, opts = {})
15454
+ def update_bank_transfer_attachment_by_file_name_with_http_info(xero_tenant_id, bank_transfer_id, file_name, body, options = {})
15455
+ opts = options.dup
15260
15456
  if @api_client.config.debugging
15261
15457
  @api_client.config.logger.debug 'Calling API: AccountingApi.update_bank_transfer_attachment_by_file_name ...'
15262
15458
  end
@@ -15342,7 +15538,8 @@ module XeroRuby
15342
15538
  # @param contacts [Contacts] an array of Contacts containing single Contact object with properties to update
15343
15539
  # @param [Hash] opts the optional parameters
15344
15540
  # @return [Array<(Contacts, Integer, Hash)>] Contacts data, response status code and response headers
15345
- def update_contact_with_http_info(xero_tenant_id, contact_id, contacts, opts = {})
15541
+ def update_contact_with_http_info(xero_tenant_id, contact_id, contacts, options = {})
15542
+ opts = options.dup
15346
15543
  if @api_client.config.debugging
15347
15544
  @api_client.config.logger.debug 'Calling API: AccountingApi.update_contact ...'
15348
15545
  end
@@ -15409,7 +15606,7 @@ module XeroRuby
15409
15606
 
15410
15607
  # @param xero_tenant_id [String] Xero identifier for Tenant
15411
15608
  # @param contact_id [String] Unique identifier for a Contact
15412
- # @param file_name [String] Name for the file you are attaching
15609
+ # @param file_name [String] Name of the attachment
15413
15610
  # @param body [String] Byte array of file in body of request
15414
15611
  # @param [Hash] opts the optional parameters
15415
15612
  # @return [Attachments]
@@ -15420,11 +15617,12 @@ module XeroRuby
15420
15617
 
15421
15618
  # @param xero_tenant_id [String] Xero identifier for Tenant
15422
15619
  # @param contact_id [String] Unique identifier for a Contact
15423
- # @param file_name [String] Name for the file you are attaching
15620
+ # @param file_name [String] Name of the attachment
15424
15621
  # @param body [String] Byte array of file in body of request
15425
15622
  # @param [Hash] opts the optional parameters
15426
15623
  # @return [Array<(Attachments, Integer, Hash)>] Attachments data, response status code and response headers
15427
- def update_contact_attachment_by_file_name_with_http_info(xero_tenant_id, contact_id, file_name, body, opts = {})
15624
+ def update_contact_attachment_by_file_name_with_http_info(xero_tenant_id, contact_id, file_name, body, options = {})
15625
+ opts = options.dup
15428
15626
  if @api_client.config.debugging
15429
15627
  @api_client.config.logger.debug 'Calling API: AccountingApi.update_contact_attachment_by_file_name ...'
15430
15628
  end
@@ -15510,7 +15708,8 @@ module XeroRuby
15510
15708
  # @param contact_groups [ContactGroups] an array of Contact groups with Name of specific group to update
15511
15709
  # @param [Hash] opts the optional parameters
15512
15710
  # @return [Array<(ContactGroups, Integer, Hash)>] ContactGroups data, response status code and response headers
15513
- def update_contact_group_with_http_info(xero_tenant_id, contact_group_id, contact_groups, opts = {})
15711
+ def update_contact_group_with_http_info(xero_tenant_id, contact_group_id, contact_groups, options = {})
15712
+ opts = options.dup
15514
15713
  if @api_client.config.debugging
15515
15714
  @api_client.config.logger.debug 'Calling API: AccountingApi.update_contact_group ...'
15516
15715
  end
@@ -15594,7 +15793,8 @@ module XeroRuby
15594
15793
  # @param [Hash] opts the optional parameters
15595
15794
  # @option opts [Integer] :unitdp e.g. unitdp&#x3D;4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
15596
15795
  # @return [Array<(CreditNotes, Integer, Hash)>] CreditNotes data, response status code and response headers
15597
- def update_credit_note_with_http_info(xero_tenant_id, credit_note_id, credit_notes, opts = {})
15796
+ def update_credit_note_with_http_info(xero_tenant_id, credit_note_id, credit_notes, options = {})
15797
+ opts = options.dup
15598
15798
  if @api_client.config.debugging
15599
15799
  @api_client.config.logger.debug 'Calling API: AccountingApi.update_credit_note ...'
15600
15800
  end
@@ -15663,7 +15863,7 @@ module XeroRuby
15663
15863
  # Updates attachments on a specific credit note by file name
15664
15864
  # @param xero_tenant_id [String] Xero identifier for Tenant
15665
15865
  # @param credit_note_id [String] Unique identifier for a Credit Note
15666
- # @param file_name [String] Name of the file you are attaching to Credit Note
15866
+ # @param file_name [String] Name of the attachment
15667
15867
  # @param body [String] Byte array of file in body of request
15668
15868
  # @param [Hash] opts the optional parameters
15669
15869
  # @return [Attachments]
@@ -15675,11 +15875,12 @@ module XeroRuby
15675
15875
  # Updates attachments on a specific credit note by file name
15676
15876
  # @param xero_tenant_id [String] Xero identifier for Tenant
15677
15877
  # @param credit_note_id [String] Unique identifier for a Credit Note
15678
- # @param file_name [String] Name of the file you are attaching to Credit Note
15878
+ # @param file_name [String] Name of the attachment
15679
15879
  # @param body [String] Byte array of file in body of request
15680
15880
  # @param [Hash] opts the optional parameters
15681
15881
  # @return [Array<(Attachments, Integer, Hash)>] Attachments data, response status code and response headers
15682
- def update_credit_note_attachment_by_file_name_with_http_info(xero_tenant_id, credit_note_id, file_name, body, opts = {})
15882
+ def update_credit_note_attachment_by_file_name_with_http_info(xero_tenant_id, credit_note_id, file_name, body, options = {})
15883
+ opts = options.dup
15683
15884
  if @api_client.config.debugging
15684
15885
  @api_client.config.logger.debug 'Calling API: AccountingApi.update_credit_note_attachment_by_file_name ...'
15685
15886
  end
@@ -15765,7 +15966,8 @@ module XeroRuby
15765
15966
  # @param expense_claims [ExpenseClaims]
15766
15967
  # @param [Hash] opts the optional parameters
15767
15968
  # @return [Array<(ExpenseClaims, Integer, Hash)>] ExpenseClaims data, response status code and response headers
15768
- def update_expense_claim_with_http_info(xero_tenant_id, expense_claim_id, expense_claims, opts = {})
15969
+ def update_expense_claim_with_http_info(xero_tenant_id, expense_claim_id, expense_claims, options = {})
15970
+ opts = options.dup
15769
15971
  if @api_client.config.debugging
15770
15972
  @api_client.config.logger.debug 'Calling API: AccountingApi.update_expense_claim ...'
15771
15973
  end
@@ -15849,7 +16051,8 @@ module XeroRuby
15849
16051
  # @param [Hash] opts the optional parameters
15850
16052
  # @option opts [Integer] :unitdp e.g. unitdp&#x3D;4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
15851
16053
  # @return [Array<(Invoices, Integer, Hash)>] Invoices data, response status code and response headers
15852
- def update_invoice_with_http_info(xero_tenant_id, invoice_id, invoices, opts = {})
16054
+ def update_invoice_with_http_info(xero_tenant_id, invoice_id, invoices, options = {})
16055
+ opts = options.dup
15853
16056
  if @api_client.config.debugging
15854
16057
  @api_client.config.logger.debug 'Calling API: AccountingApi.update_invoice ...'
15855
16058
  end
@@ -15918,7 +16121,7 @@ module XeroRuby
15918
16121
  # Updates an attachment from a specific invoices or purchase bill by filename
15919
16122
  # @param xero_tenant_id [String] Xero identifier for Tenant
15920
16123
  # @param invoice_id [String] Unique identifier for an Invoice
15921
- # @param file_name [String] Name of the file you are attaching
16124
+ # @param file_name [String] Name of the attachment
15922
16125
  # @param body [String] Byte array of file in body of request
15923
16126
  # @param [Hash] opts the optional parameters
15924
16127
  # @return [Attachments]
@@ -15930,11 +16133,12 @@ module XeroRuby
15930
16133
  # Updates an attachment from a specific invoices or purchase bill by filename
15931
16134
  # @param xero_tenant_id [String] Xero identifier for Tenant
15932
16135
  # @param invoice_id [String] Unique identifier for an Invoice
15933
- # @param file_name [String] Name of the file you are attaching
16136
+ # @param file_name [String] Name of the attachment
15934
16137
  # @param body [String] Byte array of file in body of request
15935
16138
  # @param [Hash] opts the optional parameters
15936
16139
  # @return [Array<(Attachments, Integer, Hash)>] Attachments data, response status code and response headers
15937
- def update_invoice_attachment_by_file_name_with_http_info(xero_tenant_id, invoice_id, file_name, body, opts = {})
16140
+ def update_invoice_attachment_by_file_name_with_http_info(xero_tenant_id, invoice_id, file_name, body, options = {})
16141
+ opts = options.dup
15938
16142
  if @api_client.config.debugging
15939
16143
  @api_client.config.logger.debug 'Calling API: AccountingApi.update_invoice_attachment_by_file_name ...'
15940
16144
  end
@@ -16022,7 +16226,8 @@ module XeroRuby
16022
16226
  # @param [Hash] opts the optional parameters
16023
16227
  # @option opts [Integer] :unitdp e.g. unitdp&#x3D;4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
16024
16228
  # @return [Array<(Items, Integer, Hash)>] Items data, response status code and response headers
16025
- def update_item_with_http_info(xero_tenant_id, item_id, items, opts = {})
16229
+ def update_item_with_http_info(xero_tenant_id, item_id, items, options = {})
16230
+ opts = options.dup
16026
16231
  if @api_client.config.debugging
16027
16232
  @api_client.config.logger.debug 'Calling API: AccountingApi.update_item ...'
16028
16233
  end
@@ -16105,7 +16310,8 @@ module XeroRuby
16105
16310
  # @param linked_transactions [LinkedTransactions]
16106
16311
  # @param [Hash] opts the optional parameters
16107
16312
  # @return [Array<(LinkedTransactions, Integer, Hash)>] LinkedTransactions data, response status code and response headers
16108
- def update_linked_transaction_with_http_info(xero_tenant_id, linked_transaction_id, linked_transactions, opts = {})
16313
+ def update_linked_transaction_with_http_info(xero_tenant_id, linked_transaction_id, linked_transactions, options = {})
16314
+ opts = options.dup
16109
16315
  if @api_client.config.debugging
16110
16316
  @api_client.config.logger.debug 'Calling API: AccountingApi.update_linked_transaction ...'
16111
16317
  end
@@ -16187,7 +16393,8 @@ module XeroRuby
16187
16393
  # @param manual_journals [ManualJournals]
16188
16394
  # @param [Hash] opts the optional parameters
16189
16395
  # @return [Array<(ManualJournals, Integer, Hash)>] ManualJournals data, response status code and response headers
16190
- def update_manual_journal_with_http_info(xero_tenant_id, manual_journal_id, manual_journals, opts = {})
16396
+ def update_manual_journal_with_http_info(xero_tenant_id, manual_journal_id, manual_journals, options = {})
16397
+ opts = options.dup
16191
16398
  if @api_client.config.debugging
16192
16399
  @api_client.config.logger.debug 'Calling API: AccountingApi.update_manual_journal ...'
16193
16400
  end
@@ -16255,7 +16462,7 @@ module XeroRuby
16255
16462
  # Updates a specific attachment from a specific manual journal by file name
16256
16463
  # @param xero_tenant_id [String] Xero identifier for Tenant
16257
16464
  # @param manual_journal_id [String] Unique identifier for a ManualJournal
16258
- # @param file_name [String] The name of the file being attached to a ManualJournal
16465
+ # @param file_name [String] Name of the attachment
16259
16466
  # @param body [String] Byte array of file in body of request
16260
16467
  # @param [Hash] opts the optional parameters
16261
16468
  # @return [Attachments]
@@ -16267,11 +16474,12 @@ module XeroRuby
16267
16474
  # Updates a specific attachment from a specific manual journal by file name
16268
16475
  # @param xero_tenant_id [String] Xero identifier for Tenant
16269
16476
  # @param manual_journal_id [String] Unique identifier for a ManualJournal
16270
- # @param file_name [String] The name of the file being attached to a ManualJournal
16477
+ # @param file_name [String] Name of the attachment
16271
16478
  # @param body [String] Byte array of file in body of request
16272
16479
  # @param [Hash] opts the optional parameters
16273
16480
  # @return [Array<(Attachments, Integer, Hash)>] Attachments data, response status code and response headers
16274
- def update_manual_journal_attachment_by_file_name_with_http_info(xero_tenant_id, manual_journal_id, file_name, body, opts = {})
16481
+ def update_manual_journal_attachment_by_file_name_with_http_info(xero_tenant_id, manual_journal_id, file_name, body, options = {})
16482
+ opts = options.dup
16275
16483
  if @api_client.config.debugging
16276
16484
  @api_client.config.logger.debug 'Calling API: AccountingApi.update_manual_journal_attachment_by_file_name ...'
16277
16485
  end
@@ -16359,7 +16567,8 @@ module XeroRuby
16359
16567
  # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
16360
16568
  # @option opts [Integer] :unitdp e.g. unitdp&#x3D;4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
16361
16569
  # @return [Array<(BankTransactions, Integer, Hash)>] BankTransactions data, response status code and response headers
16362
- def update_or_create_bank_transactions_with_http_info(xero_tenant_id, bank_transactions, opts = {})
16570
+ def update_or_create_bank_transactions_with_http_info(xero_tenant_id, bank_transactions, options = {})
16571
+ opts = options.dup
16363
16572
  if @api_client.config.debugging
16364
16573
  @api_client.config.logger.debug 'Calling API: AccountingApi.update_or_create_bank_transactions ...'
16365
16574
  end
@@ -16439,7 +16648,8 @@ module XeroRuby
16439
16648
  # @param [Hash] opts the optional parameters
16440
16649
  # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
16441
16650
  # @return [Array<(Contacts, Integer, Hash)>] Contacts data, response status code and response headers
16442
- def update_or_create_contacts_with_http_info(xero_tenant_id, contacts, opts = {})
16651
+ def update_or_create_contacts_with_http_info(xero_tenant_id, contacts, options = {})
16652
+ opts = options.dup
16443
16653
  if @api_client.config.debugging
16444
16654
  @api_client.config.logger.debug 'Calling API: AccountingApi.update_or_create_contacts ...'
16445
16655
  end
@@ -16520,7 +16730,8 @@ module XeroRuby
16520
16730
  # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
16521
16731
  # @option opts [Integer] :unitdp e.g. unitdp&#x3D;4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
16522
16732
  # @return [Array<(CreditNotes, Integer, Hash)>] CreditNotes data, response status code and response headers
16523
- def update_or_create_credit_notes_with_http_info(xero_tenant_id, credit_notes, opts = {})
16733
+ def update_or_create_credit_notes_with_http_info(xero_tenant_id, credit_notes, options = {})
16734
+ opts = options.dup
16524
16735
  if @api_client.config.debugging
16525
16736
  @api_client.config.logger.debug 'Calling API: AccountingApi.update_or_create_credit_notes ...'
16526
16737
  end
@@ -16600,7 +16811,8 @@ module XeroRuby
16600
16811
  # @param [Hash] opts the optional parameters
16601
16812
  # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
16602
16813
  # @return [Array<(Employees, Integer, Hash)>] Employees data, response status code and response headers
16603
- def update_or_create_employees_with_http_info(xero_tenant_id, employees, opts = {})
16814
+ def update_or_create_employees_with_http_info(xero_tenant_id, employees, options = {})
16815
+ opts = options.dup
16604
16816
  if @api_client.config.debugging
16605
16817
  @api_client.config.logger.debug 'Calling API: AccountingApi.update_or_create_employees ...'
16606
16818
  end
@@ -16681,7 +16893,8 @@ module XeroRuby
16681
16893
  # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
16682
16894
  # @option opts [Integer] :unitdp e.g. unitdp&#x3D;4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
16683
16895
  # @return [Array<(Invoices, Integer, Hash)>] Invoices data, response status code and response headers
16684
- def update_or_create_invoices_with_http_info(xero_tenant_id, invoices, opts = {})
16896
+ def update_or_create_invoices_with_http_info(xero_tenant_id, invoices, options = {})
16897
+ opts = options.dup
16685
16898
  if @api_client.config.debugging
16686
16899
  @api_client.config.logger.debug 'Calling API: AccountingApi.update_or_create_invoices ...'
16687
16900
  end
@@ -16763,7 +16976,8 @@ module XeroRuby
16763
16976
  # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
16764
16977
  # @option opts [Integer] :unitdp e.g. unitdp&#x3D;4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
16765
16978
  # @return [Array<(Items, Integer, Hash)>] Items data, response status code and response headers
16766
- def update_or_create_items_with_http_info(xero_tenant_id, items, opts = {})
16979
+ def update_or_create_items_with_http_info(xero_tenant_id, items, options = {})
16980
+ opts = options.dup
16767
16981
  if @api_client.config.debugging
16768
16982
  @api_client.config.logger.debug 'Calling API: AccountingApi.update_or_create_items ...'
16769
16983
  end
@@ -16843,7 +17057,8 @@ module XeroRuby
16843
17057
  # @param [Hash] opts the optional parameters
16844
17058
  # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
16845
17059
  # @return [Array<(ManualJournals, Integer, Hash)>] ManualJournals data, response status code and response headers
16846
- def update_or_create_manual_journals_with_http_info(xero_tenant_id, manual_journals, opts = {})
17060
+ def update_or_create_manual_journals_with_http_info(xero_tenant_id, manual_journals, options = {})
17061
+ opts = options.dup
16847
17062
  if @api_client.config.debugging
16848
17063
  @api_client.config.logger.debug 'Calling API: AccountingApi.update_or_create_manual_journals ...'
16849
17064
  end
@@ -16922,7 +17137,8 @@ module XeroRuby
16922
17137
  # @param [Hash] opts the optional parameters
16923
17138
  # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
16924
17139
  # @return [Array<(PurchaseOrders, Integer, Hash)>] PurchaseOrders data, response status code and response headers
16925
- def update_or_create_purchase_orders_with_http_info(xero_tenant_id, purchase_orders, opts = {})
17140
+ def update_or_create_purchase_orders_with_http_info(xero_tenant_id, purchase_orders, options = {})
17141
+ opts = options.dup
16926
17142
  if @api_client.config.debugging
16927
17143
  @api_client.config.logger.debug 'Calling API: AccountingApi.update_or_create_purchase_orders ...'
16928
17144
  end
@@ -17001,7 +17217,8 @@ module XeroRuby
17001
17217
  # @param [Hash] opts the optional parameters
17002
17218
  # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
17003
17219
  # @return [Array<(Quotes, Integer, Hash)>] Quotes data, response status code and response headers
17004
- def update_or_create_quotes_with_http_info(xero_tenant_id, quotes, opts = {})
17220
+ def update_or_create_quotes_with_http_info(xero_tenant_id, quotes, options = {})
17221
+ opts = options.dup
17005
17222
  if @api_client.config.debugging
17006
17223
  @api_client.config.logger.debug 'Calling API: AccountingApi.update_or_create_quotes ...'
17007
17224
  end
@@ -17065,7 +17282,7 @@ module XeroRuby
17065
17282
 
17066
17283
  # Updates a specific purchase order
17067
17284
  # @param xero_tenant_id [String] Xero identifier for Tenant
17068
- # @param purchase_order_id [String] Unique identifier for a PurchaseOrder
17285
+ # @param purchase_order_id [String] Unique identifier for an Purchase Order
17069
17286
  # @param purchase_orders [PurchaseOrders]
17070
17287
  # @param [Hash] opts the optional parameters
17071
17288
  # @return [PurchaseOrders]
@@ -17076,11 +17293,12 @@ module XeroRuby
17076
17293
 
17077
17294
  # Updates a specific purchase order
17078
17295
  # @param xero_tenant_id [String] Xero identifier for Tenant
17079
- # @param purchase_order_id [String] Unique identifier for a PurchaseOrder
17296
+ # @param purchase_order_id [String] Unique identifier for an Purchase Order
17080
17297
  # @param purchase_orders [PurchaseOrders]
17081
17298
  # @param [Hash] opts the optional parameters
17082
17299
  # @return [Array<(PurchaseOrders, Integer, Hash)>] PurchaseOrders data, response status code and response headers
17083
- def update_purchase_order_with_http_info(xero_tenant_id, purchase_order_id, purchase_orders, opts = {})
17300
+ def update_purchase_order_with_http_info(xero_tenant_id, purchase_order_id, purchase_orders, options = {})
17301
+ opts = options.dup
17084
17302
  if @api_client.config.debugging
17085
17303
  @api_client.config.logger.debug 'Calling API: AccountingApi.update_purchase_order ...'
17086
17304
  end
@@ -17147,7 +17365,7 @@ module XeroRuby
17147
17365
 
17148
17366
  # Updates a specific attachment for a specific purchase order by filename
17149
17367
  # @param xero_tenant_id [String] Xero identifier for Tenant
17150
- # @param purchase_order_id [String] Unique identifier for Purchase Order object
17368
+ # @param purchase_order_id [String] Unique identifier for an Purchase Order
17151
17369
  # @param file_name [String] Name of the attachment
17152
17370
  # @param body [String] Byte array of file in body of request
17153
17371
  # @param [Hash] opts the optional parameters
@@ -17159,12 +17377,13 @@ module XeroRuby
17159
17377
 
17160
17378
  # Updates a specific attachment for a specific purchase order by filename
17161
17379
  # @param xero_tenant_id [String] Xero identifier for Tenant
17162
- # @param purchase_order_id [String] Unique identifier for Purchase Order object
17380
+ # @param purchase_order_id [String] Unique identifier for an Purchase Order
17163
17381
  # @param file_name [String] Name of the attachment
17164
17382
  # @param body [String] Byte array of file in body of request
17165
17383
  # @param [Hash] opts the optional parameters
17166
17384
  # @return [Array<(Attachments, Integer, Hash)>] Attachments data, response status code and response headers
17167
- def update_purchase_order_attachment_by_file_name_with_http_info(xero_tenant_id, purchase_order_id, file_name, body, opts = {})
17385
+ def update_purchase_order_attachment_by_file_name_with_http_info(xero_tenant_id, purchase_order_id, file_name, body, options = {})
17386
+ opts = options.dup
17168
17387
  if @api_client.config.debugging
17169
17388
  @api_client.config.logger.debug 'Calling API: AccountingApi.update_purchase_order_attachment_by_file_name ...'
17170
17389
  end
@@ -17250,7 +17469,8 @@ module XeroRuby
17250
17469
  # @param quotes [Quotes]
17251
17470
  # @param [Hash] opts the optional parameters
17252
17471
  # @return [Array<(Quotes, Integer, Hash)>] Quotes data, response status code and response headers
17253
- def update_quote_with_http_info(xero_tenant_id, quote_id, quotes, opts = {})
17472
+ def update_quote_with_http_info(xero_tenant_id, quote_id, quotes, options = {})
17473
+ opts = options.dup
17254
17474
  if @api_client.config.debugging
17255
17475
  @api_client.config.logger.debug 'Calling API: AccountingApi.update_quote ...'
17256
17476
  end
@@ -17317,7 +17537,7 @@ module XeroRuby
17317
17537
 
17318
17538
  # Updates a specific attachment from a specific quote by filename
17319
17539
  # @param xero_tenant_id [String] Xero identifier for Tenant
17320
- # @param quote_id [String] Unique identifier for Quote object
17540
+ # @param quote_id [String] Unique identifier for an Quote
17321
17541
  # @param file_name [String] Name of the attachment
17322
17542
  # @param body [String] Byte array of file in body of request
17323
17543
  # @param [Hash] opts the optional parameters
@@ -17329,12 +17549,13 @@ module XeroRuby
17329
17549
 
17330
17550
  # Updates a specific attachment from a specific quote by filename
17331
17551
  # @param xero_tenant_id [String] Xero identifier for Tenant
17332
- # @param quote_id [String] Unique identifier for Quote object
17552
+ # @param quote_id [String] Unique identifier for an Quote
17333
17553
  # @param file_name [String] Name of the attachment
17334
17554
  # @param body [String] Byte array of file in body of request
17335
17555
  # @param [Hash] opts the optional parameters
17336
17556
  # @return [Array<(Attachments, Integer, Hash)>] Attachments data, response status code and response headers
17337
- def update_quote_attachment_by_file_name_with_http_info(xero_tenant_id, quote_id, file_name, body, opts = {})
17557
+ def update_quote_attachment_by_file_name_with_http_info(xero_tenant_id, quote_id, file_name, body, options = {})
17558
+ opts = options.dup
17338
17559
  if @api_client.config.debugging
17339
17560
  @api_client.config.logger.debug 'Calling API: AccountingApi.update_quote_attachment_by_file_name ...'
17340
17561
  end
@@ -17422,7 +17643,8 @@ module XeroRuby
17422
17643
  # @param [Hash] opts the optional parameters
17423
17644
  # @option opts [Integer] :unitdp e.g. unitdp&#x3D;4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
17424
17645
  # @return [Array<(Receipts, Integer, Hash)>] Receipts data, response status code and response headers
17425
- def update_receipt_with_http_info(xero_tenant_id, receipt_id, receipts, opts = {})
17646
+ def update_receipt_with_http_info(xero_tenant_id, receipt_id, receipts, options = {})
17647
+ opts = options.dup
17426
17648
  if @api_client.config.debugging
17427
17649
  @api_client.config.logger.debug 'Calling API: AccountingApi.update_receipt ...'
17428
17650
  end
@@ -17491,7 +17713,7 @@ module XeroRuby
17491
17713
  # Updates a specific attachment on a specific expense claim receipts by file name
17492
17714
  # @param xero_tenant_id [String] Xero identifier for Tenant
17493
17715
  # @param receipt_id [String] Unique identifier for a Receipt
17494
- # @param file_name [String] The name of the file being attached to the Receipt
17716
+ # @param file_name [String] Name of the attachment
17495
17717
  # @param body [String] Byte array of file in body of request
17496
17718
  # @param [Hash] opts the optional parameters
17497
17719
  # @return [Attachments]
@@ -17503,11 +17725,12 @@ module XeroRuby
17503
17725
  # Updates a specific attachment on a specific expense claim receipts by file name
17504
17726
  # @param xero_tenant_id [String] Xero identifier for Tenant
17505
17727
  # @param receipt_id [String] Unique identifier for a Receipt
17506
- # @param file_name [String] The name of the file being attached to the Receipt
17728
+ # @param file_name [String] Name of the attachment
17507
17729
  # @param body [String] Byte array of file in body of request
17508
17730
  # @param [Hash] opts the optional parameters
17509
17731
  # @return [Array<(Attachments, Integer, Hash)>] Attachments data, response status code and response headers
17510
- def update_receipt_attachment_by_file_name_with_http_info(xero_tenant_id, receipt_id, file_name, body, opts = {})
17732
+ def update_receipt_attachment_by_file_name_with_http_info(xero_tenant_id, receipt_id, file_name, body, options = {})
17733
+ opts = options.dup
17511
17734
  if @api_client.config.debugging
17512
17735
  @api_client.config.logger.debug 'Calling API: AccountingApi.update_receipt_attachment_by_file_name ...'
17513
17736
  end
@@ -17579,7 +17802,7 @@ module XeroRuby
17579
17802
  # Updates a specific attachment from a specific repeating invoices by file name
17580
17803
  # @param xero_tenant_id [String] Xero identifier for Tenant
17581
17804
  # @param repeating_invoice_id [String] Unique identifier for a Repeating Invoice
17582
- # @param file_name [String] The name of the file being attached to a Repeating Invoice
17805
+ # @param file_name [String] Name of the attachment
17583
17806
  # @param body [String] Byte array of file in body of request
17584
17807
  # @param [Hash] opts the optional parameters
17585
17808
  # @return [Attachments]
@@ -17591,11 +17814,12 @@ module XeroRuby
17591
17814
  # Updates a specific attachment from a specific repeating invoices by file name
17592
17815
  # @param xero_tenant_id [String] Xero identifier for Tenant
17593
17816
  # @param repeating_invoice_id [String] Unique identifier for a Repeating Invoice
17594
- # @param file_name [String] The name of the file being attached to a Repeating Invoice
17817
+ # @param file_name [String] Name of the attachment
17595
17818
  # @param body [String] Byte array of file in body of request
17596
17819
  # @param [Hash] opts the optional parameters
17597
17820
  # @return [Array<(Attachments, Integer, Hash)>] Attachments data, response status code and response headers
17598
- def update_repeating_invoice_attachment_by_file_name_with_http_info(xero_tenant_id, repeating_invoice_id, file_name, body, opts = {})
17821
+ def update_repeating_invoice_attachment_by_file_name_with_http_info(xero_tenant_id, repeating_invoice_id, file_name, body, options = {})
17822
+ opts = options.dup
17599
17823
  if @api_client.config.debugging
17600
17824
  @api_client.config.logger.debug 'Calling API: AccountingApi.update_repeating_invoice_attachment_by_file_name ...'
17601
17825
  end
@@ -17679,7 +17903,8 @@ module XeroRuby
17679
17903
  # @param tax_rates [TaxRates]
17680
17904
  # @param [Hash] opts the optional parameters
17681
17905
  # @return [Array<(TaxRates, Integer, Hash)>] TaxRates data, response status code and response headers
17682
- def update_tax_rate_with_http_info(xero_tenant_id, tax_rates, opts = {})
17906
+ def update_tax_rate_with_http_info(xero_tenant_id, tax_rates, options = {})
17907
+ opts = options.dup
17683
17908
  if @api_client.config.debugging
17684
17909
  @api_client.config.logger.debug 'Calling API: AccountingApi.update_tax_rate ...'
17685
17910
  end
@@ -17757,7 +17982,8 @@ module XeroRuby
17757
17982
  # @param tracking_category [TrackingCategory]
17758
17983
  # @param [Hash] opts the optional parameters
17759
17984
  # @return [Array<(TrackingCategories, Integer, Hash)>] TrackingCategories data, response status code and response headers
17760
- def update_tracking_category_with_http_info(xero_tenant_id, tracking_category_id, tracking_category, opts = {})
17985
+ def update_tracking_category_with_http_info(xero_tenant_id, tracking_category_id, tracking_category, options = {})
17986
+ opts = options.dup
17761
17987
  if @api_client.config.debugging
17762
17988
  @api_client.config.logger.debug 'Calling API: AccountingApi.update_tracking_category ...'
17763
17989
  end
@@ -17841,7 +18067,8 @@ module XeroRuby
17841
18067
  # @param tracking_option [TrackingOption]
17842
18068
  # @param [Hash] opts the optional parameters
17843
18069
  # @return [Array<(TrackingOptions, Integer, Hash)>] TrackingOptions data, response status code and response headers
17844
- def update_tracking_options_with_http_info(xero_tenant_id, tracking_category_id, tracking_option_id, tracking_option, opts = {})
18070
+ def update_tracking_options_with_http_info(xero_tenant_id, tracking_category_id, tracking_option_id, tracking_option, options = {})
18071
+ opts = options.dup
17845
18072
  if @api_client.config.debugging
17846
18073
  @api_client.config.logger.debug 'Calling API: AccountingApi.update_tracking_options ...'
17847
18074
  end