xero-ruby 2.8.2 → 2.10.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +153 -98
- data/lib/xero-ruby/api/accounting_api.rb +451 -224
- data/lib/xero-ruby/api/asset_api.rb +12 -6
- data/lib/xero-ruby/api/files_api.rb +34 -17
- data/lib/xero-ruby/api/payroll_au_api.rb +58 -29
- data/lib/xero-ruby/api/payroll_nz_api.rb +136 -68
- data/lib/xero-ruby/api/payroll_uk_api.rb +140 -70
- data/lib/xero-ruby/api/project_api.rb +26 -13
- data/lib/xero-ruby/api_client.rb +101 -13
- data/lib/xero-ruby/configuration.rb +14 -1
- data/lib/xero-ruby/models/payroll_au/deduction_line.rb +0 -5
- data/lib/xero-ruby/models/payroll_uk/salary_and_wage.rb +3 -2
- data/lib/xero-ruby/models/projects/time_entry.rb +3 -2
- data/lib/xero-ruby/version.rb +2 -2
- data/spec/api_client_spec.rb +171 -4
- data/spec/configuration_spec.rb +17 -0
- metadata +23 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aaa8295ee798049a210f04184b5a9bd47e6c6d06b5f5e7a7197a021ca997cdf0
|
4
|
+
data.tar.gz: 8048f7bc8f95742fbdf1804ed40ea6325c3f87e54d2454cea05f1c444d45558d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e469a609bad593d2a26dfe78a8864c7a9a067b8c2b26ae707a910a6de4c53b8a368daaff62dd3adea72159a7467cc0025d31eba39b728c00829a45329756dc3c
|
7
|
+
data.tar.gz: 01d586c5e99f4ecc8bea4551d44604c09e0bb3890c8756935bc9a6905b8c5b6cf86e4aeef39c2b0d2666e44b1ff5017d6812c809629c9bdc26585fd37d944cc9
|
data/README.md
CHANGED
@@ -5,45 +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
|
-
## SDK Documentation
|
8
|
+
### API Client Documentation
|
10
9
|
* [API client methods](https://xeroapi.github.io/xero-ruby/accounting/index.html)
|
11
|
-
|
12
|
-
|
13
|
-
* [
|
14
|
-
|
15
|
-
* [Project Api Docs](docs/projects/)
|
16
|
-
* [Files Api Docs](docs/files/)
|
17
|
-
* [Payroll Docs (AU)](docs/payroll_au/)
|
18
|
-
* [Payroll Docs (NZ)](docs/payroll_nz/)
|
19
|
-
* [Payroll Docs (UK)](docs/payroll_uk/)
|
20
|
-
|
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.
|
21
14
|
## Sample Apps
|
22
|
-
We have two apps showing SDK usage
|
23
|
-
* https://github.com/XeroAPI/xero-ruby-oauth2-starter (**Sinatra** - session based
|
24
|
-
* https://github.com/XeroAPI/xero-ruby-oauth2-app (**Rails** - token management
|
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)
|
25
18
|
|
26
19
|
![sample-app](https://i.imgur.com/OOEn55G.png)
|
27
20
|
|
28
|
-
|
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
|
+
|
28
|
+
|
29
29
|
## Installation
|
30
|
-
To install this gem to your
|
30
|
+
To install this gem to your project:
|
31
31
|
```
|
32
32
|
gem install 'xero-ruby'
|
33
33
|
```
|
34
|
-
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`:
|
35
35
|
```
|
36
36
|
gem 'xero-ruby'
|
37
37
|
```
|
38
38
|
|
39
|
-
|
40
|
-
|
41
|
-
* Login to your Xero developer [/myapps](https://developer.xero.com/myapps) dashboard & create an API application and note your API app's credentials.
|
42
|
-
|
43
|
-
### Creating a client
|
44
|
-
* Get the credential values from an API application at https://developer.xero.com/myapps/.
|
45
|
-
* Include [neccesary scopes](https://developer.xero.com/documentation/oauth2/scopes) as a space-seperated list
|
46
|
-
* example => "`openid profile email accounting.transactions accounting.settings`"
|
39
|
+
---
|
40
|
+
## Usage
|
47
41
|
```
|
48
42
|
require 'xero-ruby'
|
49
43
|
```
|
@@ -58,50 +52,77 @@ creds = {
|
|
58
52
|
xero_client ||= XeroRuby::ApiClient.new(credentials: creds)
|
59
53
|
```
|
60
54
|
|
61
|
-
|
62
|
-
|
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.
|
63
63
|
|
64
|
-
|
64
|
+
### Step 1
|
65
|
+
Send the user to the `authorization_url` after you have configured your xero_client
|
65
66
|
```ruby
|
66
67
|
@authorization_url = xero_client.authorization_url
|
67
68
|
|
68
69
|
redirect_to @authorization_url
|
69
70
|
```
|
70
71
|
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
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.
|
76
79
|
```ruby
|
77
|
-
# => http://localhost:3000/oauth/callback
|
78
|
-
|
79
80
|
token_set = xero_client.get_token_set_from_callback(params)
|
81
|
+
```
|
82
|
+
At this point you should save the token_set as JSON in a datastore in relation to the authenticating user or entity.
|
80
83
|
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
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:
|
85
|
+
```ruby
|
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
|
+
}
|
85
109
|
```
|
86
110
|
|
87
|
-
|
88
|
-
|
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.
|
112
|
+
|
113
|
+
Both the `id_token` & `access_token` are JWT's, and can be decoded 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.
|
89
116
|
```ruby
|
90
117
|
xero_client.set_token_set(user.token_set)
|
91
|
-
|
118
|
+
# or set it and refresh in same go
|
92
119
|
xero_client.refresh_token_set(user.token_set)
|
93
|
-
# this will set the access_token on the client, and return a refreshed `token_set` you need to save.
|
94
120
|
```
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
**An `access_token` is valid 30 minutes and a `refresh_token` is valid for 60 days**
|
101
|
-
|
102
|
-
Example Token set:
|
103
|
-
> You can decode the `id_token` & `access_token` for additional metadata by using a [decoding library](https://github.com/jwt/ruby-jwt):
|
104
|
-
```json
|
121
|
+
This sets the access_token on the client returns either the existing, or newly refreshed `token_set`. You should save in your database for the next time you need to connect to Xero's AP and repeat the process. Assuming you keep your connection live at least once per 60 days, you can persist infinite API connection assuming the user does not revoke your API access.
|
122
|
+
## Token Helpers
|
123
|
+
```ruby
|
124
|
+
xero_client.token_set
|
125
|
+
=>
|
105
126
|
{
|
106
127
|
"id_token": "xxx.yyy.zz",
|
107
128
|
"access_token": "xxx.yyy.zzz",
|
@@ -110,17 +131,63 @@ Example Token set:
|
|
110
131
|
"refresh_token": "xxxxxx",
|
111
132
|
"scope": "email profile openid accounting.transactions offline_access"
|
112
133
|
}
|
113
|
-
```
|
114
134
|
|
115
|
-
|
116
|
-
|
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
|
117
183
|
```ruby
|
118
|
-
|
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>
|
119
186
|
|
120
|
-
#
|
121
|
-
|
187
|
+
# To completely Revoke a user's access token and all their connections
|
188
|
+
xero_client.revoke_token(token_set)
|
122
189
|
|
123
|
-
#
|
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
|
124
191
|
connections = xero_client.connections
|
125
192
|
[{
|
126
193
|
"id" => "xxx-yyy-zzz",
|
@@ -131,38 +198,19 @@ connections = xero_client.connections
|
|
131
198
|
"updatedDateUtc" => "2020-04-15T22:37:10.4943410"
|
132
199
|
}]
|
133
200
|
|
134
|
-
# To
|
135
|
-
#
|
136
|
-
|
137
|
-
xero_client.revoke_token(user.token_set)
|
138
|
-
|
139
|
-
# disconnect an org from a user's connections. Pass the connection ['id'] not ['tenantId'].
|
140
|
-
# 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.
|
141
203
|
remaining_connections = xero_client.disconnect(connections[0]['id'])
|
142
204
|
|
143
|
-
|
144
|
-
|
205
|
+
xero_client.token_expired?
|
206
|
+
=> true || false
|
145
207
|
|
146
|
-
#
|
147
|
-
|
208
|
+
# This will check against the following logic
|
209
|
+
token_expiry = Time.at(decoded_access_token['exp'])
|
210
|
+
token_expiry < Time.now
|
148
211
|
```
|
149
212
|
|
150
|
-
|
151
|
-
```ruby
|
152
|
-
require 'jwt'
|
153
|
-
|
154
|
-
def token_expired?
|
155
|
-
token_expiry = Time.at(decoded_access_token['exp'])
|
156
|
-
token_expiry < Time.now
|
157
|
-
end
|
158
|
-
|
159
|
-
def decoded_access_token
|
160
|
-
JWT.decode(token_set['access_token'], nil, false)[0]
|
161
|
-
end
|
162
|
-
```
|
163
|
-
|
164
|
-
## API Usage
|
165
|
-
|
213
|
+
# API Usage
|
166
214
|
### Accounting API
|
167
215
|
> https://xeroapi.github.io/xero-ruby/accounting/index.html
|
168
216
|
```ruby
|
@@ -171,7 +219,7 @@ require 'xero-ruby'
|
|
171
219
|
xero_client.refresh_token_set(user.token_set)
|
172
220
|
|
173
221
|
tenant_id = user.active_tenant_id
|
174
|
-
#
|
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.
|
175
223
|
|
176
224
|
# Get Accounts
|
177
225
|
accounts = xero_client.accounting_api.get_accounts(tenant_id).accounts
|
@@ -325,21 +373,15 @@ opts = {
|
|
325
373
|
}
|
326
374
|
xero_client.accounting_api.get_bank_transfers(tenant_id, opts).bank_transfers
|
327
375
|
```
|
328
|
-
|
376
|
+
|
329
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.
|
330
378
|
|
331
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).
|
332
380
|
* `opts = { order: 'UpdatedDateUtc DESC'}`
|
333
381
|
|
334
382
|
3) If you have use cases outside of these examples let us know.
|
335
|
-
|
336
|
-
|
337
|
-
The best resource to understanding how to best leverage this SDK is the sample applications showing all the features of the gem.
|
338
|
-
> https://github.com/XeroAPI/xero-ruby-oauth2-starter (Sinatra - simple getting started)
|
339
|
-
> https://github.com/XeroAPI/xero-ruby-oauth2-app (Rails - full featured examples)
|
340
|
-
|
341
|
-
## Contributing
|
342
|
-
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:
|
343
385
|
|
344
386
|
> xero-ruby
|
345
387
|
```bash
|
@@ -358,3 +400,16 @@ bundle install
|
|
358
400
|
|
359
401
|
## Testing
|
360
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/).
|
@@ -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,
|
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,
|
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
|
@@ -199,7 +201,8 @@ module XeroRuby
|
|
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,
|
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,
|
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=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,
|
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,
|
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
|
@@ -525,7 +531,8 @@ module XeroRuby
|
|
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,
|
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,
|
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,
|
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,
|
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,
|
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
|
@@ -936,7 +947,8 @@ module XeroRuby
|
|
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,
|
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,
|
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,
|
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,
|
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,
|
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,
|
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
|
@@ -1430,7 +1447,8 @@ module XeroRuby
|
|
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,
|
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,
|
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=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,
|
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,
|
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,
|
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,
|
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,
|
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
|
@@ -1998,7 +2022,8 @@ module XeroRuby
|
|
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,
|
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,
|
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=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,
|
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,
|
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=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,
|
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,
|
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
|
@@ -2491,7 +2521,8 @@ module XeroRuby
|
|
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,
|
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
|
@@ -2577,7 +2608,8 @@ module XeroRuby
|
|
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,
|
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,
|
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,
|
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,
|
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,
|
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,
|
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,
|
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,
|
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
|
@@ -3220,7 +3259,8 @@ module XeroRuby
|
|
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,
|
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,
|
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
|
@@ -3387,7 +3428,8 @@ module XeroRuby
|
|
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,
|
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
|
@@ -3473,7 +3515,8 @@ module XeroRuby
|
|
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,
|
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,
|
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
|
@@ -3636,7 +3680,8 @@ module XeroRuby
|
|
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,
|
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,
|
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,
|
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=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,
|
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
|
@@ -3964,7 +4012,8 @@ module XeroRuby
|
|
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,
|
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,
|
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
|
@@ -4134,7 +4184,8 @@ module XeroRuby
|
|
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,
|
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,
|
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,
|
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,
|
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,
|
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
|
@@ -4534,7 +4589,8 @@ module XeroRuby
|
|
4534
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,
|
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,
|
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,
|
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,
|
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,
|
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,
|
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,
|
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,
|
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,
|
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
|
@@ -5226,7 +5290,8 @@ module XeroRuby
|
|
5226
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,
|
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,
|
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,
|
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,
|
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,
|
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=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,
|
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
|
@@ -5706,7 +5776,8 @@ module XeroRuby
|
|
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,
|
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
|
@@ -5793,7 +5864,8 @@ module XeroRuby
|
|
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,
|
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,
|
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=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,
|
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,
|
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,
|
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
|
@@ -6185,7 +6261,8 @@ module XeroRuby
|
|
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,
|
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
|
@@ -6272,7 +6349,8 @@ module XeroRuby
|
|
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,
|
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,
|
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,
|
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,
|
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,
|
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,
|
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,
|
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,
|
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,
|
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,
|
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
|
@@ -7025,7 +7112,8 @@ module XeroRuby
|
|
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,
|
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
|
@@ -7112,7 +7200,8 @@ module XeroRuby
|
|
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,
|
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,
|
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 = 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,
|
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,
|
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,
|
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,
|
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,
|
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=1 - Up to 100 contacts will be returned in a single API call.
|
7635
7730
|
# @option opts [Boolean] :include_archived e.g. includeArchived=true - Contacts with a status of ARCHIVED will be included in the response
|
7731
|
+
# @option opts [Boolean] :summary_only Use summaryOnly=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=1 - Up to 100 contacts will be returned in a single API call.
|
7650
7746
|
# @option opts [Boolean] :include_archived e.g. includeArchived=true - Contacts with a status of ARCHIVED will be included in the response
|
7747
|
+
# @option opts [Boolean] :summary_only Use summaryOnly=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,
|
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=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,
|
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,
|
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
|
@@ -7880,7 +7981,8 @@ module XeroRuby
|
|
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,
|
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
|
@@ -7967,7 +8069,8 @@ module XeroRuby
|
|
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,
|
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,
|
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,
|
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=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=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,
|
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,
|
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,
|
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,
|
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,
|
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,
|
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,
|
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=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,
|
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,
|
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
|
@@ -8886,7 +9000,8 @@ module XeroRuby
|
|
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,
|
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
|
@@ -8973,7 +9088,8 @@ module XeroRuby
|
|
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,
|
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,
|
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,
|
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,
|
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
|
@@ -9292,7 +9411,8 @@ module XeroRuby
|
|
9292
9411
|
# @option opts [Boolean] :created_by_my_app When set to true you'll only retrieve Invoices created by your app
|
9293
9412
|
# @option opts [Integer] :unitdp e.g. unitdp=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,
|
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=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,
|
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,
|
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=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,
|
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,
|
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,
|
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,
|
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,
|
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,
|
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
|
@@ -9993,7 +10121,8 @@ module XeroRuby
|
|
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,
|
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
|
@@ -10080,7 +10209,8 @@ module XeroRuby
|
|
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,
|
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,
|
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=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,
|
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
|
@@ -10317,7 +10449,8 @@ module XeroRuby
|
|
10317
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,
|
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,
|
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,
|
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,
|
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,
|
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,
|
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,
|
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=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=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,
|
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,
|
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,
|
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,
|
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,
|
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,
|
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,
|
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=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=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,
|
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
|
@@ -11433,7 +11580,8 @@ module XeroRuby
|
|
11433
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,
|
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,
|
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
|
@@ -11585,7 +11734,8 @@ module XeroRuby
|
|
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,
|
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
|
@@ -11672,7 +11822,8 @@ module XeroRuby
|
|
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,
|
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
|
@@ -11755,7 +11906,8 @@ module XeroRuby
|
|
11755
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,
|
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,
|
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
|
@@ -11903,7 +12056,8 @@ module XeroRuby
|
|
11903
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,
|
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=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=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,
|
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,
|
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,
|
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
|
@@ -12219,7 +12376,8 @@ module XeroRuby
|
|
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,
|
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
|
@@ -12306,7 +12464,8 @@ module XeroRuby
|
|
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,
|
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
|
@@ -12389,7 +12548,8 @@ module XeroRuby
|
|
12389
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,
|
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,
|
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=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,
|
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=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,
|
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
|
@@ -12716,7 +12879,8 @@ module XeroRuby
|
|
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,
|
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
|
@@ -12803,7 +12967,8 @@ module XeroRuby
|
|
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,
|
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,
|
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,
|
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=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,
|
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,
|
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
|
@@ -13192,7 +13361,8 @@ module XeroRuby
|
|
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,
|
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
|
@@ -13279,7 +13449,8 @@ module XeroRuby
|
|
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,
|
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,
|
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,
|
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,
|
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
|
@@ -13590,7 +13764,8 @@ module XeroRuby
|
|
13590
13764
|
# @option opts [Date] :from_date filter by the from date of the report e.g. 2021-02-01
|
13591
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,
|
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
|
@@ -13674,7 +13849,8 @@ module XeroRuby
|
|
13674
13849
|
# @option opts [Date] :from_date filter by the from date of the report e.g. 2021-02-01
|
13675
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,
|
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,
|
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,
|
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,
|
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
|
@@ -13989,7 +14168,8 @@ module XeroRuby
|
|
13989
14168
|
# @option opts [Date] :from_date filter by the from date of the report e.g. 2021-02-01
|
13990
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,
|
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=month, 3=quarter, 12=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,
|
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,
|
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
|
@@ -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,
|
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,
|
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,
|
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,
|
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=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,
|
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,
|
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,
|
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,
|
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,
|
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
|
@@ -14913,7 +15104,8 @@ module XeroRuby
|
|
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,
|
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,
|
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=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,
|
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
|
@@ -15170,7 +15364,8 @@ module XeroRuby
|
|
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,
|
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
|
@@ -15256,7 +15451,8 @@ module XeroRuby
|
|
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,
|
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,
|
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
|
@@ -15424,7 +15621,8 @@ module XeroRuby
|
|
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,
|
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,
|
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=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,
|
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
|
@@ -15679,7 +15879,8 @@ module XeroRuby
|
|
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,
|
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,
|
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=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,
|
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
|
@@ -15934,7 +16137,8 @@ module XeroRuby
|
|
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,
|
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=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,
|
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,
|
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,
|
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
|
@@ -16271,7 +16478,8 @@ module XeroRuby
|
|
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,
|
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=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,
|
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,
|
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=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,
|
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,
|
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=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,
|
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=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,
|
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,
|
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,
|
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,
|
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
|
@@ -17080,7 +17297,8 @@ module XeroRuby
|
|
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,
|
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
|
@@ -17164,7 +17382,8 @@ module XeroRuby
|
|
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,
|
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,
|
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
|
@@ -17334,7 +17554,8 @@ module XeroRuby
|
|
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,
|
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=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,
|
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
|
@@ -17507,7 +17729,8 @@ module XeroRuby
|
|
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,
|
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
|
@@ -17595,7 +17818,8 @@ module XeroRuby
|
|
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,
|
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,
|
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,
|
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,
|
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
|