budgea_client 1.4.4 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (193) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +5 -5
  3. data/README.md +67 -725
  4. data/budgea_client.gemspec +15 -3
  5. data/budgea_openapi.json +2011 -524
  6. data/docs/Account.md +3 -1
  7. data/docs/AccountLog.md +2 -2
  8. data/docs/AdministrationApi.md +354 -34
  9. data/docs/AuthenticationApi.md +264 -18
  10. data/docs/BankCategory.md +1 -1
  11. data/docs/BanksApi.md +939 -550
  12. data/docs/Certificate.md +12 -0
  13. data/docs/Client.md +5 -2
  14. data/docs/Connection.md +1 -1
  15. data/docs/ConnectionLog.md +3 -2
  16. data/docs/ConnectionsApi.md +162 -103
  17. data/docs/Connector.md +21 -0
  18. data/docs/ConnectorCategory.md +9 -0
  19. data/docs/ConnectorLogo.md +1 -1
  20. data/docs/Currency.md +4 -0
  21. data/docs/DocumentsApi.md +350 -350
  22. data/docs/Field.md +3 -2
  23. data/docs/InlineResponse20010.md +1 -1
  24. data/docs/InlineResponse20011.md +1 -1
  25. data/docs/InlineResponse20012.md +1 -1
  26. data/docs/InlineResponse20013.md +1 -1
  27. data/docs/InlineResponse20014.md +1 -1
  28. data/docs/InlineResponse20015.md +1 -1
  29. data/docs/InlineResponse20016.md +1 -1
  30. data/docs/InlineResponse20017.md +1 -1
  31. data/docs/InlineResponse20018.md +1 -1
  32. data/docs/InlineResponse20019.md +1 -1
  33. data/docs/InlineResponse20020.md +1 -1
  34. data/docs/InlineResponse20021.md +1 -1
  35. data/docs/InlineResponse20022.md +1 -1
  36. data/docs/InlineResponse20023.md +1 -1
  37. data/docs/InlineResponse20024.md +1 -1
  38. data/docs/InlineResponse20025.md +1 -1
  39. data/docs/InlineResponse20026.md +1 -1
  40. data/docs/InlineResponse20027.md +1 -1
  41. data/docs/InlineResponse20028.md +1 -1
  42. data/docs/InlineResponse20029.md +1 -1
  43. data/docs/InlineResponse2003.md +2 -3
  44. data/docs/InlineResponse20030.md +1 -1
  45. data/docs/InlineResponse20031.md +1 -1
  46. data/docs/InlineResponse20032.md +1 -1
  47. data/docs/InlineResponse20033.md +1 -1
  48. data/docs/InlineResponse20034.md +8 -0
  49. data/docs/InlineResponse20035.md +8 -0
  50. data/docs/InlineResponse20036.md +8 -0
  51. data/docs/InlineResponse2004.md +0 -2
  52. data/docs/InlineResponse2005.md +5 -2
  53. data/docs/InlineResponse2006.md +2 -3
  54. data/docs/InlineResponse2007.md +3 -1
  55. data/docs/InlineResponse2008.md +1 -1
  56. data/docs/InlineResponse2009.md +1 -1
  57. data/docs/OCRApi.md +5 -5
  58. data/docs/OIDCApi.md +5 -5
  59. data/docs/PFMApi.md +122 -122
  60. data/docs/Pocket.md +1 -1
  61. data/docs/Profile.md +1 -1
  62. data/docs/Project.md +1 -1
  63. data/docs/ProvidersApi.md +602 -604
  64. data/docs/Recipient.md +3 -0
  65. data/docs/RecipientLog.md +14 -0
  66. data/docs/RecipientsApi.md +28 -20
  67. data/docs/Subscription.md +2 -1
  68. data/docs/TermsApi.md +13 -15
  69. data/docs/Transaction.md +8 -3
  70. data/docs/Transfer.md +1 -0
  71. data/docs/TransferLog.md +14 -0
  72. data/docs/TransfersApi.md +165 -141
  73. data/docs/UserAlert.md +2 -2
  74. data/docs/UsersManagementApi.md +24 -24
  75. data/docs/WealthApi.md +54 -54
  76. data/docs/WebhookLog.md +15 -0
  77. data/lib/budgea_client.rb +27 -3
  78. data/lib/budgea_client/api/administration_api.rb +425 -106
  79. data/lib/budgea_client/api/authentication_api.rb +287 -46
  80. data/lib/budgea_client/api/banks_api.rb +1271 -974
  81. data/lib/budgea_client/api/connections_api.rb +207 -156
  82. data/lib/budgea_client/api/documents_api.rb +627 -693
  83. data/lib/budgea_client/api/ocr_api.rb +24 -16
  84. data/lib/budgea_client/api/oidc_api.rb +23 -16
  85. data/lib/budgea_client/api/pfm_api.rb +219 -248
  86. data/lib/budgea_client/api/providers_api.rb +998 -1099
  87. data/lib/budgea_client/api/recipients_api.rb +52 -34
  88. data/lib/budgea_client/api/terms_api.rb +34 -31
  89. data/lib/budgea_client/api/transfers_api.rb +245 -239
  90. data/lib/budgea_client/api/users_management_api.rb +56 -58
  91. data/lib/budgea_client/api/wealth_api.rb +81 -85
  92. data/lib/budgea_client/api_client.rb +20 -11
  93. data/lib/budgea_client/api_error.rb +11 -1
  94. data/lib/budgea_client/configuration.rb +12 -2
  95. data/lib/budgea_client/models/access.rb +18 -13
  96. data/lib/budgea_client/models/account.rb +44 -23
  97. data/lib/budgea_client/models/account_log.rb +33 -28
  98. data/lib/budgea_client/models/account_type.rb +22 -17
  99. data/lib/budgea_client/models/alert.rb +21 -16
  100. data/lib/budgea_client/models/bank.rb +21 -16
  101. data/lib/budgea_client/models/bank_category.rb +19 -14
  102. data/lib/budgea_client/models/category.rb +22 -17
  103. data/lib/budgea_client/models/certificate.rb +244 -0
  104. data/lib/budgea_client/models/client.rb +53 -20
  105. data/lib/budgea_client/models/connection.rb +29 -24
  106. data/lib/budgea_client/models/connection_log.rb +39 -24
  107. data/lib/budgea_client/models/connector.rb +345 -0
  108. data/lib/budgea_client/models/connector_category.rb +206 -0
  109. data/lib/budgea_client/models/connector_logo.rb +29 -24
  110. data/lib/budgea_client/models/currency.rb +63 -16
  111. data/lib/budgea_client/models/device.rb +23 -18
  112. data/lib/budgea_client/models/document.rb +21 -16
  113. data/lib/budgea_client/models/document_type.rb +19 -14
  114. data/lib/budgea_client/models/field.rb +44 -27
  115. data/lib/budgea_client/models/field_value.rb +18 -13
  116. data/lib/budgea_client/models/file.rb +20 -15
  117. data/lib/budgea_client/models/group.rb +17 -12
  118. data/lib/budgea_client/models/hash_table.rb +20 -15
  119. data/lib/budgea_client/models/inline_response_200.rb +17 -12
  120. data/lib/budgea_client/models/inline_response_200_1.rb +18 -13
  121. data/lib/budgea_client/models/inline_response_200_10.rb +27 -22
  122. data/lib/budgea_client/models/inline_response_200_11.rb +27 -22
  123. data/lib/budgea_client/models/inline_response_200_12.rb +27 -22
  124. data/lib/budgea_client/models/inline_response_200_13.rb +27 -22
  125. data/lib/budgea_client/models/inline_response_200_14.rb +27 -22
  126. data/lib/budgea_client/models/inline_response_200_15.rb +27 -22
  127. data/lib/budgea_client/models/inline_response_200_16.rb +27 -22
  128. data/lib/budgea_client/models/inline_response_200_17.rb +27 -22
  129. data/lib/budgea_client/models/inline_response_200_18.rb +27 -22
  130. data/lib/budgea_client/models/inline_response_200_19.rb +27 -22
  131. data/lib/budgea_client/models/inline_response_200_2.rb +18 -13
  132. data/lib/budgea_client/models/inline_response_200_20.rb +27 -22
  133. data/lib/budgea_client/models/inline_response_200_21.rb +27 -22
  134. data/lib/budgea_client/models/inline_response_200_22.rb +27 -22
  135. data/lib/budgea_client/models/inline_response_200_23.rb +27 -22
  136. data/lib/budgea_client/models/inline_response_200_24.rb +27 -22
  137. data/lib/budgea_client/models/inline_response_200_25.rb +27 -22
  138. data/lib/budgea_client/models/inline_response_200_26.rb +27 -22
  139. data/lib/budgea_client/models/inline_response_200_27.rb +27 -22
  140. data/lib/budgea_client/models/inline_response_200_28.rb +27 -22
  141. data/lib/budgea_client/models/inline_response_200_29.rb +27 -22
  142. data/lib/budgea_client/models/inline_response_200_3.rb +37 -47
  143. data/lib/budgea_client/models/inline_response_200_30.rb +27 -22
  144. data/lib/budgea_client/models/inline_response_200_31.rb +27 -22
  145. data/lib/budgea_client/models/inline_response_200_32.rb +27 -22
  146. data/lib/budgea_client/models/inline_response_200_33.rb +27 -22
  147. data/lib/budgea_client/models/inline_response_200_34.rb +190 -0
  148. data/lib/budgea_client/models/inline_response_200_35.rb +190 -0
  149. data/lib/budgea_client/models/inline_response_200_36.rb +190 -0
  150. data/lib/budgea_client/models/inline_response_200_4.rb +20 -40
  151. data/lib/budgea_client/models/inline_response_200_5.rb +75 -30
  152. data/lib/budgea_client/models/inline_response_200_6.rb +37 -47
  153. data/lib/budgea_client/models/inline_response_200_7.rb +55 -21
  154. data/lib/budgea_client/models/inline_response_200_8.rb +27 -22
  155. data/lib/budgea_client/models/inline_response_200_9.rb +27 -22
  156. data/lib/budgea_client/models/investment.rb +20 -15
  157. data/lib/budgea_client/models/investment_value.rb +20 -15
  158. data/lib/budgea_client/models/invite.rb +18 -13
  159. data/lib/budgea_client/models/locked_user.rb +18 -13
  160. data/lib/budgea_client/models/oidc_whitelist.rb +18 -13
  161. data/lib/budgea_client/models/pocket.rb +22 -17
  162. data/lib/budgea_client/models/profile.rb +26 -20
  163. data/lib/budgea_client/models/project.rb +26 -21
  164. data/lib/budgea_client/models/project_type.rb +18 -13
  165. data/lib/budgea_client/models/recipient.rb +52 -17
  166. data/lib/budgea_client/models/recipient_log.rb +254 -0
  167. data/lib/budgea_client/models/security.rb +18 -13
  168. data/lib/budgea_client/models/subscription.rb +31 -21
  169. data/lib/budgea_client/models/terms_of_service.rb +19 -14
  170. data/lib/budgea_client/models/transaction.rb +83 -33
  171. data/lib/budgea_client/models/transaction_information.rb +19 -14
  172. data/lib/budgea_client/models/transactions_cluster.rb +21 -16
  173. data/lib/budgea_client/models/transfer.rb +32 -16
  174. data/lib/budgea_client/models/transfer_log.rb +254 -0
  175. data/lib/budgea_client/models/user.rb +22 -16
  176. data/lib/budgea_client/models/user_alert.rb +22 -16
  177. data/lib/budgea_client/models/webhook.rb +19 -14
  178. data/lib/budgea_client/models/webhook_log.rb +264 -0
  179. data/lib/budgea_client/version.rb +12 -2
  180. data/original_budgea_openapi.json +23188 -0
  181. data/spec/models/certificate_spec.rb +65 -0
  182. data/spec/models/connector_category_spec.rb +47 -0
  183. data/spec/models/connector_spec.rb +119 -0
  184. data/spec/models/inline_response_200_34_spec.rb +41 -0
  185. data/spec/models/inline_response_200_35_spec.rb +41 -0
  186. data/spec/models/inline_response_200_36_spec.rb +41 -0
  187. data/spec/models/recipient_log_spec.rb +77 -0
  188. data/spec/models/transfer_log_spec.rb +77 -0
  189. data/spec/models/webhook_log_spec.rb +83 -0
  190. metadata +52 -18
  191. data/pkg/budgea_client-1.3.9.gem +0 -0
  192. data/pkg/budgea_client-1.4.2.gem +0 -0
  193. data/pkg/budgea_client-1.4.3.gem +0 -0
@@ -1,6 +1,16 @@
1
- # frozen_string_literal: true
1
+ =begin
2
+ #Budgea API Documentation
2
3
 
3
- require "uri"
4
+ #No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
5
+
6
+ OpenAPI spec version: 2.0
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.1
10
+
11
+ =end
12
+
13
+ require 'uri'
4
14
 
5
15
  module BudgeaClient
6
16
  class DocumentsApi
@@ -9,28 +19,27 @@ module BudgeaClient
9
19
  def initialize(api_client = ApiClient.default)
10
20
  @api_client = api_client
11
21
  end
12
-
13
22
  # Get document types
14
23
  #
15
24
  # @param [Hash] opts the optional parameters
16
25
  # @option opts [String] :expand
17
- # @return [InlineResponse20013]
26
+ # @return [InlineResponse20014]
18
27
  def documenttypes_get(opts = {})
19
28
  data, _status_code, _headers = documenttypes_get_with_http_info(opts)
20
- return data
29
+ data
21
30
  end
22
31
 
23
32
  # Get document types
24
33
  #
25
34
  # @param [Hash] opts the optional parameters
26
35
  # @option opts [String] :expand
27
- # @return [Array<(InlineResponse20013, Fixnum, Hash)>] InlineResponse20013 data, response status code and response headers
36
+ # @return [Array<(InlineResponse20014, Fixnum, Hash)>] InlineResponse20014 data, response status code and response headers
28
37
  def documenttypes_get_with_http_info(opts = {})
29
38
  if @api_client.config.debugging
30
- @api_client.config.logger.debug "Calling API: DocumentsApi.documenttypes_get ..."
39
+ @api_client.config.logger.debug 'Calling API: DocumentsApi.documenttypes_get ...'
31
40
  end
32
41
  # resource path
33
- local_var_path = "/documenttypes"
42
+ local_var_path = '/documenttypes'
34
43
 
35
44
  # query parameters
36
45
  query_params = {}
@@ -55,13 +64,12 @@ module BudgeaClient
55
64
  :form_params => form_params,
56
65
  :body => post_body,
57
66
  :auth_names => auth_names,
58
- :return_type => 'InlineResponse20013')
67
+ :return_type => 'InlineResponse20014')
59
68
  if @api_client.config.debugging
60
69
  @api_client.config.logger.debug "API called: DocumentsApi#documenttypes_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
61
70
  end
62
71
  return data, status_code, headers
63
72
  end
64
-
65
73
  # Edit a document type
66
74
  # Change value of a document type.<br><br>
67
75
  # @param id_documenttype
@@ -72,7 +80,7 @@ module BudgeaClient
72
80
  # @return [DocumentType]
73
81
  def documenttypes_id_documenttype_put(id_documenttype, name, attacheable, opts = {})
74
82
  data, _status_code, _headers = documenttypes_id_documenttype_put_with_http_info(id_documenttype, name, attacheable, opts)
75
- return data
83
+ data
76
84
  end
77
85
 
78
86
  # Edit a document type
@@ -85,7 +93,7 @@ module BudgeaClient
85
93
  # @return [Array<(DocumentType, Fixnum, Hash)>] DocumentType data, response status code and response headers
86
94
  def documenttypes_id_documenttype_put_with_http_info(id_documenttype, name, attacheable, opts = {})
87
95
  if @api_client.config.debugging
88
- @api_client.config.logger.debug "Calling API: DocumentsApi.documenttypes_id_documenttype_put ..."
96
+ @api_client.config.logger.debug 'Calling API: DocumentsApi.documenttypes_id_documenttype_put ...'
89
97
  end
90
98
  # verify the required parameter 'id_documenttype' is set
91
99
  if @api_client.config.client_side_validation && id_documenttype.nil?
@@ -100,7 +108,7 @@ module BudgeaClient
100
108
  fail ArgumentError, "Missing the required parameter 'attacheable' when calling DocumentsApi.documenttypes_id_documenttype_put"
101
109
  end
102
110
  # resource path
103
- local_var_path = "/documenttypes/{id_documenttype}".sub('{' + 'id_documenttype' + '}', id_documenttype.to_s)
111
+ local_var_path = '/documenttypes/{id_documenttype}'.sub('{' + 'id_documenttype' + '}', id_documenttype.to_s)
104
112
 
105
113
  # query parameters
106
114
  query_params = {}
@@ -115,8 +123,8 @@ module BudgeaClient
115
123
 
116
124
  # form parameters
117
125
  form_params = {}
118
- form_params["name"] = name
119
- form_params["attacheable"] = attacheable
126
+ form_params['name'] = name
127
+ form_params['attacheable'] = attacheable
120
128
 
121
129
  # http body (model)
122
130
  post_body = nil
@@ -133,7 +141,6 @@ module BudgeaClient
133
141
  end
134
142
  return data, status_code, headers
135
143
  end
136
-
137
144
  # Post an image with OCR
138
145
  # Post an image and apply OCR on it to obtain found meta-data.<br><br>
139
146
  # @param file File of the document
@@ -143,7 +150,7 @@ module BudgeaClient
143
150
  # @return [nil]
144
151
  def ocr_post(file, opts = {})
145
152
  ocr_post_with_http_info(file, opts)
146
- return nil
153
+ nil
147
154
  end
148
155
 
149
156
  # Post an image with OCR
@@ -155,14 +162,14 @@ module BudgeaClient
155
162
  # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
156
163
  def ocr_post_with_http_info(file, opts = {})
157
164
  if @api_client.config.debugging
158
- @api_client.config.logger.debug "Calling API: DocumentsApi.ocr_post ..."
165
+ @api_client.config.logger.debug 'Calling API: DocumentsApi.ocr_post ...'
159
166
  end
160
167
  # verify the required parameter 'file' is set
161
168
  if @api_client.config.client_side_validation && file.nil?
162
169
  fail ArgumentError, "Missing the required parameter 'file' when calling DocumentsApi.ocr_post"
163
170
  end
164
171
  # resource path
165
- local_var_path = "/ocr"
172
+ local_var_path = '/ocr'
166
173
 
167
174
  # query parameters
168
175
  query_params = {}
@@ -176,9 +183,9 @@ module BudgeaClient
176
183
 
177
184
  # form parameters
178
185
  form_params = {}
179
- form_params["file"] = file
180
- form_params["id_transaction"] = opts[:'id_transaction'] if !opts[:'id_transaction'].nil?
181
- form_params["name"] = opts[:'name'] if !opts[:'name'].nil?
186
+ form_params['file'] = file
187
+ form_params['id_transaction'] = opts[:'id_transaction'] if !opts[:'id_transaction'].nil?
188
+ form_params['name'] = opts[:'name'] if !opts[:'name'].nil?
182
189
 
183
190
  # http body (model)
184
191
  post_body = nil
@@ -194,7 +201,6 @@ module BudgeaClient
194
201
  end
195
202
  return data, status_code, headers
196
203
  end
197
-
198
204
  # Delete documents
199
205
  #
200
206
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
@@ -205,7 +211,7 @@ module BudgeaClient
205
211
  # @return [Document]
206
212
  def users_id_user_accounts_id_account_transactions_id_transaction_documents_delete(id_user, id_account, id_transaction, opts = {})
207
213
  data, _status_code, _headers = users_id_user_accounts_id_account_transactions_id_transaction_documents_delete_with_http_info(id_user, id_account, id_transaction, opts)
208
- return data
214
+ data
209
215
  end
210
216
 
211
217
  # Delete documents
@@ -218,7 +224,7 @@ module BudgeaClient
218
224
  # @return [Array<(Document, Fixnum, Hash)>] Document data, response status code and response headers
219
225
  def users_id_user_accounts_id_account_transactions_id_transaction_documents_delete_with_http_info(id_user, id_account, id_transaction, opts = {})
220
226
  if @api_client.config.debugging
221
- @api_client.config.logger.debug "Calling API: DocumentsApi.users_id_user_accounts_id_account_transactions_id_transaction_documents_delete ..."
227
+ @api_client.config.logger.debug 'Calling API: DocumentsApi.users_id_user_accounts_id_account_transactions_id_transaction_documents_delete ...'
222
228
  end
223
229
  # verify the required parameter 'id_user' is set
224
230
  if @api_client.config.client_side_validation && id_user.nil?
@@ -233,7 +239,7 @@ module BudgeaClient
233
239
  fail ArgumentError, "Missing the required parameter 'id_transaction' when calling DocumentsApi.users_id_user_accounts_id_account_transactions_id_transaction_documents_delete"
234
240
  end
235
241
  # resource path
236
- local_var_path = "/users/{id_user}/accounts/{id_account}/transactions/{id_transaction}/documents".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_account' + '}', id_account.to_s).sub('{' + 'id_transaction' + '}', id_transaction.to_s)
242
+ local_var_path = '/users/{id_user}/accounts/{id_account}/transactions/{id_transaction}/documents'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_account' + '}', id_account.to_s).sub('{' + 'id_transaction' + '}', id_transaction.to_s)
237
243
 
238
244
  # query parameters
239
245
  query_params = {}
@@ -264,7 +270,6 @@ module BudgeaClient
264
270
  end
265
271
  return data, status_code, headers
266
272
  end
267
-
268
273
  # Get documents
269
274
  # Get list of documents<br><br>
270
275
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
@@ -276,15 +281,15 @@ module BudgeaClient
276
281
  # @option opts [Date] :min_date minimal (inclusive) date
277
282
  # @option opts [Date] :max_date maximum (inclusive) date
278
283
  # @option opts [Float] :min_amount minimal (inclusive) amount
279
- # @option opts [Float] :max_amount maximumd (inclusive) amount
284
+ # @option opts [Float] :max_amount maximum (inclusive) amount
280
285
  # @option opts [Float] :min_timestamp minimal (inclusive) timestamp
281
- # @option opts [Float] :max_timestamp maximumd (inclusive) timestamp
286
+ # @option opts [Float] :max_timestamp maximum (inclusive) timestamp
282
287
  # @option opts [Integer] :id_type filter with a document type
283
288
  # @option opts [String] :expand
284
- # @return [InlineResponse20026]
289
+ # @return [InlineResponse20028]
285
290
  def users_id_user_accounts_id_account_transactions_id_transaction_documents_get(id_user, id_account, id_transaction, opts = {})
286
291
  data, _status_code, _headers = users_id_user_accounts_id_account_transactions_id_transaction_documents_get_with_http_info(id_user, id_account, id_transaction, opts)
287
- return data
292
+ data
288
293
  end
289
294
 
290
295
  # Get documents
@@ -298,15 +303,15 @@ module BudgeaClient
298
303
  # @option opts [Date] :min_date minimal (inclusive) date
299
304
  # @option opts [Date] :max_date maximum (inclusive) date
300
305
  # @option opts [Float] :min_amount minimal (inclusive) amount
301
- # @option opts [Float] :max_amount maximumd (inclusive) amount
306
+ # @option opts [Float] :max_amount maximum (inclusive) amount
302
307
  # @option opts [Float] :min_timestamp minimal (inclusive) timestamp
303
- # @option opts [Float] :max_timestamp maximumd (inclusive) timestamp
308
+ # @option opts [Float] :max_timestamp maximum (inclusive) timestamp
304
309
  # @option opts [Integer] :id_type filter with a document type
305
310
  # @option opts [String] :expand
306
- # @return [Array<(InlineResponse20026, Fixnum, Hash)>] InlineResponse20026 data, response status code and response headers
311
+ # @return [Array<(InlineResponse20028, Fixnum, Hash)>] InlineResponse20028 data, response status code and response headers
307
312
  def users_id_user_accounts_id_account_transactions_id_transaction_documents_get_with_http_info(id_user, id_account, id_transaction, opts = {})
308
313
  if @api_client.config.debugging
309
- @api_client.config.logger.debug "Calling API: DocumentsApi.users_id_user_accounts_id_account_transactions_id_transaction_documents_get ..."
314
+ @api_client.config.logger.debug 'Calling API: DocumentsApi.users_id_user_accounts_id_account_transactions_id_transaction_documents_get ...'
310
315
  end
311
316
  # verify the required parameter 'id_user' is set
312
317
  if @api_client.config.client_side_validation && id_user.nil?
@@ -321,7 +326,7 @@ module BudgeaClient
321
326
  fail ArgumentError, "Missing the required parameter 'id_transaction' when calling DocumentsApi.users_id_user_accounts_id_account_transactions_id_transaction_documents_get"
322
327
  end
323
328
  # resource path
324
- local_var_path = "/users/{id_user}/accounts/{id_account}/transactions/{id_transaction}/documents".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_account' + '}', id_account.to_s).sub('{' + 'id_transaction' + '}', id_transaction.to_s)
329
+ local_var_path = '/users/{id_user}/accounts/{id_account}/transactions/{id_transaction}/documents'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_account' + '}', id_account.to_s).sub('{' + 'id_transaction' + '}', id_transaction.to_s)
325
330
 
326
331
  # query parameters
327
332
  query_params = {}
@@ -355,13 +360,12 @@ module BudgeaClient
355
360
  :form_params => form_params,
356
361
  :body => post_body,
357
362
  :auth_names => auth_names,
358
- :return_type => 'InlineResponse20026')
363
+ :return_type => 'InlineResponse20028')
359
364
  if @api_client.config.debugging
360
365
  @api_client.config.logger.debug "API called: DocumentsApi#users_id_user_accounts_id_account_transactions_id_transaction_documents_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
361
366
  end
362
367
  return data, status_code, headers
363
368
  end
364
-
365
369
  # Delete a document
366
370
  #
367
371
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
@@ -373,7 +377,7 @@ module BudgeaClient
373
377
  # @return [Document]
374
378
  def users_id_user_accounts_id_account_transactions_id_transaction_documents_id_document_delete(id_user, id_account, id_transaction, id_document, opts = {})
375
379
  data, _status_code, _headers = users_id_user_accounts_id_account_transactions_id_transaction_documents_id_document_delete_with_http_info(id_user, id_account, id_transaction, id_document, opts)
376
- return data
380
+ data
377
381
  end
378
382
 
379
383
  # Delete a document
@@ -387,7 +391,7 @@ module BudgeaClient
387
391
  # @return [Array<(Document, Fixnum, Hash)>] Document data, response status code and response headers
388
392
  def users_id_user_accounts_id_account_transactions_id_transaction_documents_id_document_delete_with_http_info(id_user, id_account, id_transaction, id_document, opts = {})
389
393
  if @api_client.config.debugging
390
- @api_client.config.logger.debug "Calling API: DocumentsApi.users_id_user_accounts_id_account_transactions_id_transaction_documents_id_document_delete ..."
394
+ @api_client.config.logger.debug 'Calling API: DocumentsApi.users_id_user_accounts_id_account_transactions_id_transaction_documents_id_document_delete ...'
391
395
  end
392
396
  # verify the required parameter 'id_user' is set
393
397
  if @api_client.config.client_side_validation && id_user.nil?
@@ -406,7 +410,7 @@ module BudgeaClient
406
410
  fail ArgumentError, "Missing the required parameter 'id_document' when calling DocumentsApi.users_id_user_accounts_id_account_transactions_id_transaction_documents_id_document_delete"
407
411
  end
408
412
  # resource path
409
- local_var_path = "/users/{id_user}/accounts/{id_account}/transactions/{id_transaction}/documents/{id_document}".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_account' + '}', id_account.to_s).sub('{' + 'id_transaction' + '}', id_transaction.to_s).sub('{' + 'id_document' + '}', id_document.to_s)
413
+ local_var_path = '/users/{id_user}/accounts/{id_account}/transactions/{id_transaction}/documents/{id_document}'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_account' + '}', id_account.to_s).sub('{' + 'id_transaction' + '}', id_transaction.to_s).sub('{' + 'id_document' + '}', id_document.to_s)
410
414
 
411
415
  # query parameters
412
416
  query_params = {}
@@ -437,7 +441,6 @@ module BudgeaClient
437
441
  end
438
442
  return data, status_code, headers
439
443
  end
440
-
441
444
  # Edit a document
442
445
  # Edit meta-data of a specific document.
443
446
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
@@ -460,7 +463,7 @@ module BudgeaClient
460
463
  # @return [Document]
461
464
  def users_id_user_accounts_id_account_transactions_id_transaction_documents_id_document_put(id_user, id_account, id_transaction, id_document, opts = {})
462
465
  data, _status_code, _headers = users_id_user_accounts_id_account_transactions_id_transaction_documents_id_document_put_with_http_info(id_user, id_account, id_transaction, id_document, opts)
463
- return data
466
+ data
464
467
  end
465
468
 
466
469
  # Edit a document
@@ -485,7 +488,7 @@ module BudgeaClient
485
488
  # @return [Array<(Document, Fixnum, Hash)>] Document data, response status code and response headers
486
489
  def users_id_user_accounts_id_account_transactions_id_transaction_documents_id_document_put_with_http_info(id_user, id_account, id_transaction, id_document, opts = {})
487
490
  if @api_client.config.debugging
488
- @api_client.config.logger.debug "Calling API: DocumentsApi.users_id_user_accounts_id_account_transactions_id_transaction_documents_id_document_put ..."
491
+ @api_client.config.logger.debug 'Calling API: DocumentsApi.users_id_user_accounts_id_account_transactions_id_transaction_documents_id_document_put ...'
489
492
  end
490
493
  # verify the required parameter 'id_user' is set
491
494
  if @api_client.config.client_side_validation && id_user.nil?
@@ -504,7 +507,7 @@ module BudgeaClient
504
507
  fail ArgumentError, "Missing the required parameter 'id_document' when calling DocumentsApi.users_id_user_accounts_id_account_transactions_id_transaction_documents_id_document_put"
505
508
  end
506
509
  # resource path
507
- local_var_path = "/users/{id_user}/accounts/{id_account}/transactions/{id_transaction}/documents/{id_document}".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_account' + '}', id_account.to_s).sub('{' + 'id_transaction' + '}', id_transaction.to_s).sub('{' + 'id_document' + '}', id_document.to_s)
510
+ local_var_path = '/users/{id_user}/accounts/{id_account}/transactions/{id_transaction}/documents/{id_document}'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_account' + '}', id_account.to_s).sub('{' + 'id_transaction' + '}', id_transaction.to_s).sub('{' + 'id_document' + '}', id_document.to_s)
508
511
 
509
512
  # query parameters
510
513
  query_params = {}
@@ -519,17 +522,17 @@ module BudgeaClient
519
522
 
520
523
  # form parameters
521
524
  form_params = {}
522
- form_params["id_type"] = opts[:'id_type'] if !opts[:'id_type'].nil?
523
- form_params["id_category"] = opts[:'id_category'] if !opts[:'id_category'].nil?
524
- form_params["date"] = opts[:'date'] if !opts[:'date'].nil?
525
- form_params["duedate"] = opts[:'duedate'] if !opts[:'duedate'].nil?
526
- form_params["total_amount"] = opts[:'total_amount'] if !opts[:'total_amount'].nil?
527
- form_params["untaxed_amount"] = opts[:'untaxed_amount'] if !opts[:'untaxed_amount'].nil?
528
- form_params["vat"] = opts[:'vat'] if !opts[:'vat'].nil?
529
- form_params["income"] = opts[:'income'] if !opts[:'income'].nil?
530
- form_params["readonly"] = opts[:'readonly'] if !opts[:'readonly'].nil?
531
- form_params["file"] = opts[:'file'] if !opts[:'file'].nil?
532
- form_params["name"] = opts[:'name'] if !opts[:'name'].nil?
525
+ form_params['id_type'] = opts[:'id_type'] if !opts[:'id_type'].nil?
526
+ form_params['id_category'] = opts[:'id_category'] if !opts[:'id_category'].nil?
527
+ form_params['date'] = opts[:'date'] if !opts[:'date'].nil?
528
+ form_params['duedate'] = opts[:'duedate'] if !opts[:'duedate'].nil?
529
+ form_params['total_amount'] = opts[:'total_amount'] if !opts[:'total_amount'].nil?
530
+ form_params['untaxed_amount'] = opts[:'untaxed_amount'] if !opts[:'untaxed_amount'].nil?
531
+ form_params['vat'] = opts[:'vat'] if !opts[:'vat'].nil?
532
+ form_params['income'] = opts[:'income'] if !opts[:'income'].nil?
533
+ form_params['readonly'] = opts[:'readonly'] if !opts[:'readonly'].nil?
534
+ form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
535
+ form_params['name'] = opts[:'name'] if !opts[:'name'].nil?
533
536
 
534
537
  # http body (model)
535
538
  post_body = nil
@@ -546,7 +549,6 @@ module BudgeaClient
546
549
  end
547
550
  return data, status_code, headers
548
551
  end
549
-
550
552
  # Add a new document
551
553
  # Add a new document<br><br>
552
554
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
@@ -569,7 +571,7 @@ module BudgeaClient
569
571
  # @return [Document]
570
572
  def users_id_user_accounts_id_account_transactions_id_transaction_documents_post(id_user, id_account, id_transaction, date, duedate, opts = {})
571
573
  data, _status_code, _headers = users_id_user_accounts_id_account_transactions_id_transaction_documents_post_with_http_info(id_user, id_account, id_transaction, date, duedate, opts)
572
- return data
574
+ data
573
575
  end
574
576
 
575
577
  # Add a new document
@@ -594,7 +596,7 @@ module BudgeaClient
594
596
  # @return [Array<(Document, Fixnum, Hash)>] Document data, response status code and response headers
595
597
  def users_id_user_accounts_id_account_transactions_id_transaction_documents_post_with_http_info(id_user, id_account, id_transaction, date, duedate, opts = {})
596
598
  if @api_client.config.debugging
597
- @api_client.config.logger.debug "Calling API: DocumentsApi.users_id_user_accounts_id_account_transactions_id_transaction_documents_post ..."
599
+ @api_client.config.logger.debug 'Calling API: DocumentsApi.users_id_user_accounts_id_account_transactions_id_transaction_documents_post ...'
598
600
  end
599
601
  # verify the required parameter 'id_user' is set
600
602
  if @api_client.config.client_side_validation && id_user.nil?
@@ -617,7 +619,7 @@ module BudgeaClient
617
619
  fail ArgumentError, "Missing the required parameter 'duedate' when calling DocumentsApi.users_id_user_accounts_id_account_transactions_id_transaction_documents_post"
618
620
  end
619
621
  # resource path
620
- local_var_path = "/users/{id_user}/accounts/{id_account}/transactions/{id_transaction}/documents".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_account' + '}', id_account.to_s).sub('{' + 'id_transaction' + '}', id_transaction.to_s)
622
+ local_var_path = '/users/{id_user}/accounts/{id_account}/transactions/{id_transaction}/documents'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_account' + '}', id_account.to_s).sub('{' + 'id_transaction' + '}', id_transaction.to_s)
621
623
 
622
624
  # query parameters
623
625
  query_params = {}
@@ -632,18 +634,18 @@ module BudgeaClient
632
634
 
633
635
  # form parameters
634
636
  form_params = {}
635
- form_params["date"] = date
636
- form_params["duedate"] = duedate
637
- form_params["id_type"] = opts[:'id_type'] if !opts[:'id_type'].nil?
638
- form_params["id_category"] = opts[:'id_category'] if !opts[:'id_category'].nil?
639
- form_params["total_amount"] = opts[:'total_amount'] if !opts[:'total_amount'].nil?
640
- form_params["untaxed_amount"] = opts[:'untaxed_amount'] if !opts[:'untaxed_amount'].nil?
641
- form_params["vat"] = opts[:'vat'] if !opts[:'vat'].nil?
642
- form_params["income"] = opts[:'income'] if !opts[:'income'].nil?
643
- form_params["readonly"] = opts[:'readonly'] if !opts[:'readonly'].nil?
644
- form_params["file"] = opts[:'file'] if !opts[:'file'].nil?
645
- form_params["id_ocr"] = opts[:'id_ocr'] if !opts[:'id_ocr'].nil?
646
- form_params["name"] = opts[:'name'] if !opts[:'name'].nil?
637
+ form_params['date'] = date
638
+ form_params['duedate'] = duedate
639
+ form_params['id_type'] = opts[:'id_type'] if !opts[:'id_type'].nil?
640
+ form_params['id_category'] = opts[:'id_category'] if !opts[:'id_category'].nil?
641
+ form_params['total_amount'] = opts[:'total_amount'] if !opts[:'total_amount'].nil?
642
+ form_params['untaxed_amount'] = opts[:'untaxed_amount'] if !opts[:'untaxed_amount'].nil?
643
+ form_params['vat'] = opts[:'vat'] if !opts[:'vat'].nil?
644
+ form_params['income'] = opts[:'income'] if !opts[:'income'].nil?
645
+ form_params['readonly'] = opts[:'readonly'] if !opts[:'readonly'].nil?
646
+ form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
647
+ form_params['id_ocr'] = opts[:'id_ocr'] if !opts[:'id_ocr'].nil?
648
+ form_params['name'] = opts[:'name'] if !opts[:'name'].nil?
647
649
 
648
650
  # http body (model)
649
651
  post_body = nil
@@ -660,7 +662,6 @@ module BudgeaClient
660
662
  end
661
663
  return data, status_code, headers
662
664
  end
663
-
664
665
  # Attach an existing document to a transaction or a transactions_cluster
665
666
  #
666
667
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
@@ -672,7 +673,7 @@ module BudgeaClient
672
673
  # @return [Document]
673
674
  def users_id_user_accounts_id_account_transactions_id_transaction_documents_put(id_user, id_account, id_transaction, id_document, opts = {})
674
675
  data, _status_code, _headers = users_id_user_accounts_id_account_transactions_id_transaction_documents_put_with_http_info(id_user, id_account, id_transaction, id_document, opts)
675
- return data
676
+ data
676
677
  end
677
678
 
678
679
  # Attach an existing document to a transaction or a transactions_cluster
@@ -686,7 +687,7 @@ module BudgeaClient
686
687
  # @return [Array<(Document, Fixnum, Hash)>] Document data, response status code and response headers
687
688
  def users_id_user_accounts_id_account_transactions_id_transaction_documents_put_with_http_info(id_user, id_account, id_transaction, id_document, opts = {})
688
689
  if @api_client.config.debugging
689
- @api_client.config.logger.debug "Calling API: DocumentsApi.users_id_user_accounts_id_account_transactions_id_transaction_documents_put ..."
690
+ @api_client.config.logger.debug 'Calling API: DocumentsApi.users_id_user_accounts_id_account_transactions_id_transaction_documents_put ...'
690
691
  end
691
692
  # verify the required parameter 'id_user' is set
692
693
  if @api_client.config.client_side_validation && id_user.nil?
@@ -705,7 +706,7 @@ module BudgeaClient
705
706
  fail ArgumentError, "Missing the required parameter 'id_document' when calling DocumentsApi.users_id_user_accounts_id_account_transactions_id_transaction_documents_put"
706
707
  end
707
708
  # resource path
708
- local_var_path = "/users/{id_user}/accounts/{id_account}/transactions/{id_transaction}/documents".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_account' + '}', id_account.to_s).sub('{' + 'id_transaction' + '}', id_transaction.to_s)
709
+ local_var_path = '/users/{id_user}/accounts/{id_account}/transactions/{id_transaction}/documents'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_account' + '}', id_account.to_s).sub('{' + 'id_transaction' + '}', id_transaction.to_s)
709
710
 
710
711
  # query parameters
711
712
  query_params = {}
@@ -720,7 +721,7 @@ module BudgeaClient
720
721
 
721
722
  # form parameters
722
723
  form_params = {}
723
- form_params["id_document"] = id_document
724
+ form_params['id_document'] = id_document
724
725
 
725
726
  # http body (model)
726
727
  post_body = nil
@@ -737,7 +738,6 @@ module BudgeaClient
737
738
  end
738
739
  return data, status_code, headers
739
740
  end
740
-
741
741
  # Delete documents
742
742
  #
743
743
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
@@ -748,7 +748,7 @@ module BudgeaClient
748
748
  # @return [Document]
749
749
  def users_id_user_accounts_id_account_transactionsclusters_id_transactions_cluster_documents_delete(id_user, id_account, id_transactions_cluster, opts = {})
750
750
  data, _status_code, _headers = users_id_user_accounts_id_account_transactionsclusters_id_transactions_cluster_documents_delete_with_http_info(id_user, id_account, id_transactions_cluster, opts)
751
- return data
751
+ data
752
752
  end
753
753
 
754
754
  # Delete documents
@@ -761,7 +761,7 @@ module BudgeaClient
761
761
  # @return [Array<(Document, Fixnum, Hash)>] Document data, response status code and response headers
762
762
  def users_id_user_accounts_id_account_transactionsclusters_id_transactions_cluster_documents_delete_with_http_info(id_user, id_account, id_transactions_cluster, opts = {})
763
763
  if @api_client.config.debugging
764
- @api_client.config.logger.debug "Calling API: DocumentsApi.users_id_user_accounts_id_account_transactionsclusters_id_transactions_cluster_documents_delete ..."
764
+ @api_client.config.logger.debug 'Calling API: DocumentsApi.users_id_user_accounts_id_account_transactionsclusters_id_transactions_cluster_documents_delete ...'
765
765
  end
766
766
  # verify the required parameter 'id_user' is set
767
767
  if @api_client.config.client_side_validation && id_user.nil?
@@ -776,7 +776,7 @@ module BudgeaClient
776
776
  fail ArgumentError, "Missing the required parameter 'id_transactions_cluster' when calling DocumentsApi.users_id_user_accounts_id_account_transactionsclusters_id_transactions_cluster_documents_delete"
777
777
  end
778
778
  # resource path
779
- local_var_path = "/users/{id_user}/accounts/{id_account}/transactionsclusters/{id_transactions_cluster}/documents".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_account' + '}', id_account.to_s).sub('{' + 'id_transactions_cluster' + '}', id_transactions_cluster.to_s)
779
+ local_var_path = '/users/{id_user}/accounts/{id_account}/transactionsclusters/{id_transactions_cluster}/documents'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_account' + '}', id_account.to_s).sub('{' + 'id_transactions_cluster' + '}', id_transactions_cluster.to_s)
780
780
 
781
781
  # query parameters
782
782
  query_params = {}
@@ -807,7 +807,6 @@ module BudgeaClient
807
807
  end
808
808
  return data, status_code, headers
809
809
  end
810
-
811
810
  # Get documents
812
811
  # Get list of documents<br><br>
813
812
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
@@ -819,15 +818,15 @@ module BudgeaClient
819
818
  # @option opts [Date] :min_date minimal (inclusive) date
820
819
  # @option opts [Date] :max_date maximum (inclusive) date
821
820
  # @option opts [Float] :min_amount minimal (inclusive) amount
822
- # @option opts [Float] :max_amount maximumd (inclusive) amount
821
+ # @option opts [Float] :max_amount maximum (inclusive) amount
823
822
  # @option opts [Float] :min_timestamp minimal (inclusive) timestamp
824
- # @option opts [Float] :max_timestamp maximumd (inclusive) timestamp
823
+ # @option opts [Float] :max_timestamp maximum (inclusive) timestamp
825
824
  # @option opts [Integer] :id_type filter with a document type
826
825
  # @option opts [String] :expand
827
- # @return [InlineResponse20026]
826
+ # @return [InlineResponse20028]
828
827
  def users_id_user_accounts_id_account_transactionsclusters_id_transactions_cluster_documents_get(id_user, id_account, id_transactions_cluster, opts = {})
829
828
  data, _status_code, _headers = users_id_user_accounts_id_account_transactionsclusters_id_transactions_cluster_documents_get_with_http_info(id_user, id_account, id_transactions_cluster, opts)
830
- return data
829
+ data
831
830
  end
832
831
 
833
832
  # Get documents
@@ -841,15 +840,15 @@ module BudgeaClient
841
840
  # @option opts [Date] :min_date minimal (inclusive) date
842
841
  # @option opts [Date] :max_date maximum (inclusive) date
843
842
  # @option opts [Float] :min_amount minimal (inclusive) amount
844
- # @option opts [Float] :max_amount maximumd (inclusive) amount
843
+ # @option opts [Float] :max_amount maximum (inclusive) amount
845
844
  # @option opts [Float] :min_timestamp minimal (inclusive) timestamp
846
- # @option opts [Float] :max_timestamp maximumd (inclusive) timestamp
845
+ # @option opts [Float] :max_timestamp maximum (inclusive) timestamp
847
846
  # @option opts [Integer] :id_type filter with a document type
848
847
  # @option opts [String] :expand
849
- # @return [Array<(InlineResponse20026, Fixnum, Hash)>] InlineResponse20026 data, response status code and response headers
848
+ # @return [Array<(InlineResponse20028, Fixnum, Hash)>] InlineResponse20028 data, response status code and response headers
850
849
  def users_id_user_accounts_id_account_transactionsclusters_id_transactions_cluster_documents_get_with_http_info(id_user, id_account, id_transactions_cluster, opts = {})
851
850
  if @api_client.config.debugging
852
- @api_client.config.logger.debug "Calling API: DocumentsApi.users_id_user_accounts_id_account_transactionsclusters_id_transactions_cluster_documents_get ..."
851
+ @api_client.config.logger.debug 'Calling API: DocumentsApi.users_id_user_accounts_id_account_transactionsclusters_id_transactions_cluster_documents_get ...'
853
852
  end
854
853
  # verify the required parameter 'id_user' is set
855
854
  if @api_client.config.client_side_validation && id_user.nil?
@@ -864,7 +863,7 @@ module BudgeaClient
864
863
  fail ArgumentError, "Missing the required parameter 'id_transactions_cluster' when calling DocumentsApi.users_id_user_accounts_id_account_transactionsclusters_id_transactions_cluster_documents_get"
865
864
  end
866
865
  # resource path
867
- local_var_path = "/users/{id_user}/accounts/{id_account}/transactionsclusters/{id_transactions_cluster}/documents".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_account' + '}', id_account.to_s).sub('{' + 'id_transactions_cluster' + '}', id_transactions_cluster.to_s)
866
+ local_var_path = '/users/{id_user}/accounts/{id_account}/transactionsclusters/{id_transactions_cluster}/documents'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_account' + '}', id_account.to_s).sub('{' + 'id_transactions_cluster' + '}', id_transactions_cluster.to_s)
868
867
 
869
868
  # query parameters
870
869
  query_params = {}
@@ -898,13 +897,12 @@ module BudgeaClient
898
897
  :form_params => form_params,
899
898
  :body => post_body,
900
899
  :auth_names => auth_names,
901
- :return_type => 'InlineResponse20026')
900
+ :return_type => 'InlineResponse20028')
902
901
  if @api_client.config.debugging
903
902
  @api_client.config.logger.debug "API called: DocumentsApi#users_id_user_accounts_id_account_transactionsclusters_id_transactions_cluster_documents_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
904
903
  end
905
904
  return data, status_code, headers
906
905
  end
907
-
908
906
  # Delete a document
909
907
  #
910
908
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
@@ -916,7 +914,7 @@ module BudgeaClient
916
914
  # @return [Document]
917
915
  def users_id_user_accounts_id_account_transactionsclusters_id_transactions_cluster_documents_id_document_delete(id_user, id_account, id_transactions_cluster, id_document, opts = {})
918
916
  data, _status_code, _headers = users_id_user_accounts_id_account_transactionsclusters_id_transactions_cluster_documents_id_document_delete_with_http_info(id_user, id_account, id_transactions_cluster, id_document, opts)
919
- return data
917
+ data
920
918
  end
921
919
 
922
920
  # Delete a document
@@ -930,7 +928,7 @@ module BudgeaClient
930
928
  # @return [Array<(Document, Fixnum, Hash)>] Document data, response status code and response headers
931
929
  def users_id_user_accounts_id_account_transactionsclusters_id_transactions_cluster_documents_id_document_delete_with_http_info(id_user, id_account, id_transactions_cluster, id_document, opts = {})
932
930
  if @api_client.config.debugging
933
- @api_client.config.logger.debug "Calling API: DocumentsApi.users_id_user_accounts_id_account_transactionsclusters_id_transactions_cluster_documents_id_document_delete ..."
931
+ @api_client.config.logger.debug 'Calling API: DocumentsApi.users_id_user_accounts_id_account_transactionsclusters_id_transactions_cluster_documents_id_document_delete ...'
934
932
  end
935
933
  # verify the required parameter 'id_user' is set
936
934
  if @api_client.config.client_side_validation && id_user.nil?
@@ -949,7 +947,7 @@ module BudgeaClient
949
947
  fail ArgumentError, "Missing the required parameter 'id_document' when calling DocumentsApi.users_id_user_accounts_id_account_transactionsclusters_id_transactions_cluster_documents_id_document_delete"
950
948
  end
951
949
  # resource path
952
- local_var_path = "/users/{id_user}/accounts/{id_account}/transactionsclusters/{id_transactions_cluster}/documents/{id_document}".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_account' + '}', id_account.to_s).sub('{' + 'id_transactions_cluster' + '}', id_transactions_cluster.to_s).sub('{' + 'id_document' + '}', id_document.to_s)
950
+ local_var_path = '/users/{id_user}/accounts/{id_account}/transactionsclusters/{id_transactions_cluster}/documents/{id_document}'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_account' + '}', id_account.to_s).sub('{' + 'id_transactions_cluster' + '}', id_transactions_cluster.to_s).sub('{' + 'id_document' + '}', id_document.to_s)
953
951
 
954
952
  # query parameters
955
953
  query_params = {}
@@ -980,7 +978,6 @@ module BudgeaClient
980
978
  end
981
979
  return data, status_code, headers
982
980
  end
983
-
984
981
  # Edit a document
985
982
  # Edit meta-data of a specific document.
986
983
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
@@ -1003,7 +1000,7 @@ module BudgeaClient
1003
1000
  # @return [Document]
1004
1001
  def users_id_user_accounts_id_account_transactionsclusters_id_transactions_cluster_documents_id_document_put(id_user, id_account, id_transactions_cluster, id_document, opts = {})
1005
1002
  data, _status_code, _headers = users_id_user_accounts_id_account_transactionsclusters_id_transactions_cluster_documents_id_document_put_with_http_info(id_user, id_account, id_transactions_cluster, id_document, opts)
1006
- return data
1003
+ data
1007
1004
  end
1008
1005
 
1009
1006
  # Edit a document
@@ -1028,7 +1025,7 @@ module BudgeaClient
1028
1025
  # @return [Array<(Document, Fixnum, Hash)>] Document data, response status code and response headers
1029
1026
  def users_id_user_accounts_id_account_transactionsclusters_id_transactions_cluster_documents_id_document_put_with_http_info(id_user, id_account, id_transactions_cluster, id_document, opts = {})
1030
1027
  if @api_client.config.debugging
1031
- @api_client.config.logger.debug "Calling API: DocumentsApi.users_id_user_accounts_id_account_transactionsclusters_id_transactions_cluster_documents_id_document_put ..."
1028
+ @api_client.config.logger.debug 'Calling API: DocumentsApi.users_id_user_accounts_id_account_transactionsclusters_id_transactions_cluster_documents_id_document_put ...'
1032
1029
  end
1033
1030
  # verify the required parameter 'id_user' is set
1034
1031
  if @api_client.config.client_side_validation && id_user.nil?
@@ -1047,7 +1044,7 @@ module BudgeaClient
1047
1044
  fail ArgumentError, "Missing the required parameter 'id_document' when calling DocumentsApi.users_id_user_accounts_id_account_transactionsclusters_id_transactions_cluster_documents_id_document_put"
1048
1045
  end
1049
1046
  # resource path
1050
- local_var_path = "/users/{id_user}/accounts/{id_account}/transactionsclusters/{id_transactions_cluster}/documents/{id_document}".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_account' + '}', id_account.to_s).sub('{' + 'id_transactions_cluster' + '}', id_transactions_cluster.to_s).sub('{' + 'id_document' + '}', id_document.to_s)
1047
+ local_var_path = '/users/{id_user}/accounts/{id_account}/transactionsclusters/{id_transactions_cluster}/documents/{id_document}'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_account' + '}', id_account.to_s).sub('{' + 'id_transactions_cluster' + '}', id_transactions_cluster.to_s).sub('{' + 'id_document' + '}', id_document.to_s)
1051
1048
 
1052
1049
  # query parameters
1053
1050
  query_params = {}
@@ -1062,17 +1059,17 @@ module BudgeaClient
1062
1059
 
1063
1060
  # form parameters
1064
1061
  form_params = {}
1065
- form_params["id_type"] = opts[:'id_type'] if !opts[:'id_type'].nil?
1066
- form_params["id_category"] = opts[:'id_category'] if !opts[:'id_category'].nil?
1067
- form_params["date"] = opts[:'date'] if !opts[:'date'].nil?
1068
- form_params["duedate"] = opts[:'duedate'] if !opts[:'duedate'].nil?
1069
- form_params["total_amount"] = opts[:'total_amount'] if !opts[:'total_amount'].nil?
1070
- form_params["untaxed_amount"] = opts[:'untaxed_amount'] if !opts[:'untaxed_amount'].nil?
1071
- form_params["vat"] = opts[:'vat'] if !opts[:'vat'].nil?
1072
- form_params["income"] = opts[:'income'] if !opts[:'income'].nil?
1073
- form_params["readonly"] = opts[:'readonly'] if !opts[:'readonly'].nil?
1074
- form_params["file"] = opts[:'file'] if !opts[:'file'].nil?
1075
- form_params["name"] = opts[:'name'] if !opts[:'name'].nil?
1062
+ form_params['id_type'] = opts[:'id_type'] if !opts[:'id_type'].nil?
1063
+ form_params['id_category'] = opts[:'id_category'] if !opts[:'id_category'].nil?
1064
+ form_params['date'] = opts[:'date'] if !opts[:'date'].nil?
1065
+ form_params['duedate'] = opts[:'duedate'] if !opts[:'duedate'].nil?
1066
+ form_params['total_amount'] = opts[:'total_amount'] if !opts[:'total_amount'].nil?
1067
+ form_params['untaxed_amount'] = opts[:'untaxed_amount'] if !opts[:'untaxed_amount'].nil?
1068
+ form_params['vat'] = opts[:'vat'] if !opts[:'vat'].nil?
1069
+ form_params['income'] = opts[:'income'] if !opts[:'income'].nil?
1070
+ form_params['readonly'] = opts[:'readonly'] if !opts[:'readonly'].nil?
1071
+ form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
1072
+ form_params['name'] = opts[:'name'] if !opts[:'name'].nil?
1076
1073
 
1077
1074
  # http body (model)
1078
1075
  post_body = nil
@@ -1089,7 +1086,6 @@ module BudgeaClient
1089
1086
  end
1090
1087
  return data, status_code, headers
1091
1088
  end
1092
-
1093
1089
  # Add a new document
1094
1090
  # Add a new document<br><br>
1095
1091
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
@@ -1112,7 +1108,7 @@ module BudgeaClient
1112
1108
  # @return [Document]
1113
1109
  def users_id_user_accounts_id_account_transactionsclusters_id_transactions_cluster_documents_post(id_user, id_account, id_transactions_cluster, date, duedate, opts = {})
1114
1110
  data, _status_code, _headers = users_id_user_accounts_id_account_transactionsclusters_id_transactions_cluster_documents_post_with_http_info(id_user, id_account, id_transactions_cluster, date, duedate, opts)
1115
- return data
1111
+ data
1116
1112
  end
1117
1113
 
1118
1114
  # Add a new document
@@ -1137,7 +1133,7 @@ module BudgeaClient
1137
1133
  # @return [Array<(Document, Fixnum, Hash)>] Document data, response status code and response headers
1138
1134
  def users_id_user_accounts_id_account_transactionsclusters_id_transactions_cluster_documents_post_with_http_info(id_user, id_account, id_transactions_cluster, date, duedate, opts = {})
1139
1135
  if @api_client.config.debugging
1140
- @api_client.config.logger.debug "Calling API: DocumentsApi.users_id_user_accounts_id_account_transactionsclusters_id_transactions_cluster_documents_post ..."
1136
+ @api_client.config.logger.debug 'Calling API: DocumentsApi.users_id_user_accounts_id_account_transactionsclusters_id_transactions_cluster_documents_post ...'
1141
1137
  end
1142
1138
  # verify the required parameter 'id_user' is set
1143
1139
  if @api_client.config.client_side_validation && id_user.nil?
@@ -1160,7 +1156,7 @@ module BudgeaClient
1160
1156
  fail ArgumentError, "Missing the required parameter 'duedate' when calling DocumentsApi.users_id_user_accounts_id_account_transactionsclusters_id_transactions_cluster_documents_post"
1161
1157
  end
1162
1158
  # resource path
1163
- local_var_path = "/users/{id_user}/accounts/{id_account}/transactionsclusters/{id_transactions_cluster}/documents".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_account' + '}', id_account.to_s).sub('{' + 'id_transactions_cluster' + '}', id_transactions_cluster.to_s)
1159
+ local_var_path = '/users/{id_user}/accounts/{id_account}/transactionsclusters/{id_transactions_cluster}/documents'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_account' + '}', id_account.to_s).sub('{' + 'id_transactions_cluster' + '}', id_transactions_cluster.to_s)
1164
1160
 
1165
1161
  # query parameters
1166
1162
  query_params = {}
@@ -1175,18 +1171,18 @@ module BudgeaClient
1175
1171
 
1176
1172
  # form parameters
1177
1173
  form_params = {}
1178
- form_params["date"] = date
1179
- form_params["duedate"] = duedate
1180
- form_params["id_type"] = opts[:'id_type'] if !opts[:'id_type'].nil?
1181
- form_params["id_category"] = opts[:'id_category'] if !opts[:'id_category'].nil?
1182
- form_params["total_amount"] = opts[:'total_amount'] if !opts[:'total_amount'].nil?
1183
- form_params["untaxed_amount"] = opts[:'untaxed_amount'] if !opts[:'untaxed_amount'].nil?
1184
- form_params["vat"] = opts[:'vat'] if !opts[:'vat'].nil?
1185
- form_params["income"] = opts[:'income'] if !opts[:'income'].nil?
1186
- form_params["readonly"] = opts[:'readonly'] if !opts[:'readonly'].nil?
1187
- form_params["file"] = opts[:'file'] if !opts[:'file'].nil?
1188
- form_params["id_ocr"] = opts[:'id_ocr'] if !opts[:'id_ocr'].nil?
1189
- form_params["name"] = opts[:'name'] if !opts[:'name'].nil?
1174
+ form_params['date'] = date
1175
+ form_params['duedate'] = duedate
1176
+ form_params['id_type'] = opts[:'id_type'] if !opts[:'id_type'].nil?
1177
+ form_params['id_category'] = opts[:'id_category'] if !opts[:'id_category'].nil?
1178
+ form_params['total_amount'] = opts[:'total_amount'] if !opts[:'total_amount'].nil?
1179
+ form_params['untaxed_amount'] = opts[:'untaxed_amount'] if !opts[:'untaxed_amount'].nil?
1180
+ form_params['vat'] = opts[:'vat'] if !opts[:'vat'].nil?
1181
+ form_params['income'] = opts[:'income'] if !opts[:'income'].nil?
1182
+ form_params['readonly'] = opts[:'readonly'] if !opts[:'readonly'].nil?
1183
+ form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
1184
+ form_params['id_ocr'] = opts[:'id_ocr'] if !opts[:'id_ocr'].nil?
1185
+ form_params['name'] = opts[:'name'] if !opts[:'name'].nil?
1190
1186
 
1191
1187
  # http body (model)
1192
1188
  post_body = nil
@@ -1203,7 +1199,6 @@ module BudgeaClient
1203
1199
  end
1204
1200
  return data, status_code, headers
1205
1201
  end
1206
-
1207
1202
  # Attach an existing document to a transaction or a transactions_cluster
1208
1203
  #
1209
1204
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
@@ -1215,7 +1210,7 @@ module BudgeaClient
1215
1210
  # @return [Document]
1216
1211
  def users_id_user_accounts_id_account_transactionsclusters_id_transactions_cluster_documents_put(id_user, id_account, id_transactions_cluster, id_document, opts = {})
1217
1212
  data, _status_code, _headers = users_id_user_accounts_id_account_transactionsclusters_id_transactions_cluster_documents_put_with_http_info(id_user, id_account, id_transactions_cluster, id_document, opts)
1218
- return data
1213
+ data
1219
1214
  end
1220
1215
 
1221
1216
  # Attach an existing document to a transaction or a transactions_cluster
@@ -1229,7 +1224,7 @@ module BudgeaClient
1229
1224
  # @return [Array<(Document, Fixnum, Hash)>] Document data, response status code and response headers
1230
1225
  def users_id_user_accounts_id_account_transactionsclusters_id_transactions_cluster_documents_put_with_http_info(id_user, id_account, id_transactions_cluster, id_document, opts = {})
1231
1226
  if @api_client.config.debugging
1232
- @api_client.config.logger.debug "Calling API: DocumentsApi.users_id_user_accounts_id_account_transactionsclusters_id_transactions_cluster_documents_put ..."
1227
+ @api_client.config.logger.debug 'Calling API: DocumentsApi.users_id_user_accounts_id_account_transactionsclusters_id_transactions_cluster_documents_put ...'
1233
1228
  end
1234
1229
  # verify the required parameter 'id_user' is set
1235
1230
  if @api_client.config.client_side_validation && id_user.nil?
@@ -1248,7 +1243,7 @@ module BudgeaClient
1248
1243
  fail ArgumentError, "Missing the required parameter 'id_document' when calling DocumentsApi.users_id_user_accounts_id_account_transactionsclusters_id_transactions_cluster_documents_put"
1249
1244
  end
1250
1245
  # resource path
1251
- local_var_path = "/users/{id_user}/accounts/{id_account}/transactionsclusters/{id_transactions_cluster}/documents".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_account' + '}', id_account.to_s).sub('{' + 'id_transactions_cluster' + '}', id_transactions_cluster.to_s)
1246
+ local_var_path = '/users/{id_user}/accounts/{id_account}/transactionsclusters/{id_transactions_cluster}/documents'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_account' + '}', id_account.to_s).sub('{' + 'id_transactions_cluster' + '}', id_transactions_cluster.to_s)
1252
1247
 
1253
1248
  # query parameters
1254
1249
  query_params = {}
@@ -1263,7 +1258,7 @@ module BudgeaClient
1263
1258
 
1264
1259
  # form parameters
1265
1260
  form_params = {}
1266
- form_params["id_document"] = id_document
1261
+ form_params['id_document'] = id_document
1267
1262
 
1268
1263
  # http body (model)
1269
1264
  post_body = nil
@@ -1280,7 +1275,6 @@ module BudgeaClient
1280
1275
  end
1281
1276
  return data, status_code, headers
1282
1277
  end
1283
-
1284
1278
  # Delete documents
1285
1279
  #
1286
1280
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
@@ -1292,7 +1286,7 @@ module BudgeaClient
1292
1286
  # @return [Document]
1293
1287
  def users_id_user_connections_id_connection_accounts_id_account_transactions_id_transaction_documents_delete(id_user, id_connection, id_account, id_transaction, opts = {})
1294
1288
  data, _status_code, _headers = users_id_user_connections_id_connection_accounts_id_account_transactions_id_transaction_documents_delete_with_http_info(id_user, id_connection, id_account, id_transaction, opts)
1295
- return data
1289
+ data
1296
1290
  end
1297
1291
 
1298
1292
  # Delete documents
@@ -1306,7 +1300,7 @@ module BudgeaClient
1306
1300
  # @return [Array<(Document, Fixnum, Hash)>] Document data, response status code and response headers
1307
1301
  def users_id_user_connections_id_connection_accounts_id_account_transactions_id_transaction_documents_delete_with_http_info(id_user, id_connection, id_account, id_transaction, opts = {})
1308
1302
  if @api_client.config.debugging
1309
- @api_client.config.logger.debug "Calling API: DocumentsApi.users_id_user_connections_id_connection_accounts_id_account_transactions_id_transaction_documents_delete ..."
1303
+ @api_client.config.logger.debug 'Calling API: DocumentsApi.users_id_user_connections_id_connection_accounts_id_account_transactions_id_transaction_documents_delete ...'
1310
1304
  end
1311
1305
  # verify the required parameter 'id_user' is set
1312
1306
  if @api_client.config.client_side_validation && id_user.nil?
@@ -1325,7 +1319,7 @@ module BudgeaClient
1325
1319
  fail ArgumentError, "Missing the required parameter 'id_transaction' when calling DocumentsApi.users_id_user_connections_id_connection_accounts_id_account_transactions_id_transaction_documents_delete"
1326
1320
  end
1327
1321
  # resource path
1328
- local_var_path = "/users/{id_user}/connections/{id_connection}/accounts/{id_account}/transactions/{id_transaction}/documents".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_account' + '}', id_account.to_s).sub('{' + 'id_transaction' + '}', id_transaction.to_s)
1322
+ local_var_path = '/users/{id_user}/connections/{id_connection}/accounts/{id_account}/transactions/{id_transaction}/documents'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_account' + '}', id_account.to_s).sub('{' + 'id_transaction' + '}', id_transaction.to_s)
1329
1323
 
1330
1324
  # query parameters
1331
1325
  query_params = {}
@@ -1356,7 +1350,6 @@ module BudgeaClient
1356
1350
  end
1357
1351
  return data, status_code, headers
1358
1352
  end
1359
-
1360
1353
  # Get documents
1361
1354
  # Get list of documents<br><br>
1362
1355
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
@@ -1369,15 +1362,15 @@ module BudgeaClient
1369
1362
  # @option opts [Date] :min_date minimal (inclusive) date
1370
1363
  # @option opts [Date] :max_date maximum (inclusive) date
1371
1364
  # @option opts [Float] :min_amount minimal (inclusive) amount
1372
- # @option opts [Float] :max_amount maximumd (inclusive) amount
1365
+ # @option opts [Float] :max_amount maximum (inclusive) amount
1373
1366
  # @option opts [Float] :min_timestamp minimal (inclusive) timestamp
1374
- # @option opts [Float] :max_timestamp maximumd (inclusive) timestamp
1367
+ # @option opts [Float] :max_timestamp maximum (inclusive) timestamp
1375
1368
  # @option opts [Integer] :id_type filter with a document type
1376
1369
  # @option opts [String] :expand
1377
- # @return [InlineResponse20026]
1370
+ # @return [InlineResponse20028]
1378
1371
  def users_id_user_connections_id_connection_accounts_id_account_transactions_id_transaction_documents_get(id_user, id_connection, id_account, id_transaction, opts = {})
1379
1372
  data, _status_code, _headers = users_id_user_connections_id_connection_accounts_id_account_transactions_id_transaction_documents_get_with_http_info(id_user, id_connection, id_account, id_transaction, opts)
1380
- return data
1373
+ data
1381
1374
  end
1382
1375
 
1383
1376
  # Get documents
@@ -1392,15 +1385,15 @@ module BudgeaClient
1392
1385
  # @option opts [Date] :min_date minimal (inclusive) date
1393
1386
  # @option opts [Date] :max_date maximum (inclusive) date
1394
1387
  # @option opts [Float] :min_amount minimal (inclusive) amount
1395
- # @option opts [Float] :max_amount maximumd (inclusive) amount
1388
+ # @option opts [Float] :max_amount maximum (inclusive) amount
1396
1389
  # @option opts [Float] :min_timestamp minimal (inclusive) timestamp
1397
- # @option opts [Float] :max_timestamp maximumd (inclusive) timestamp
1390
+ # @option opts [Float] :max_timestamp maximum (inclusive) timestamp
1398
1391
  # @option opts [Integer] :id_type filter with a document type
1399
1392
  # @option opts [String] :expand
1400
- # @return [Array<(InlineResponse20026, Fixnum, Hash)>] InlineResponse20026 data, response status code and response headers
1393
+ # @return [Array<(InlineResponse20028, Fixnum, Hash)>] InlineResponse20028 data, response status code and response headers
1401
1394
  def users_id_user_connections_id_connection_accounts_id_account_transactions_id_transaction_documents_get_with_http_info(id_user, id_connection, id_account, id_transaction, opts = {})
1402
1395
  if @api_client.config.debugging
1403
- @api_client.config.logger.debug "Calling API: DocumentsApi.users_id_user_connections_id_connection_accounts_id_account_transactions_id_transaction_documents_get ..."
1396
+ @api_client.config.logger.debug 'Calling API: DocumentsApi.users_id_user_connections_id_connection_accounts_id_account_transactions_id_transaction_documents_get ...'
1404
1397
  end
1405
1398
  # verify the required parameter 'id_user' is set
1406
1399
  if @api_client.config.client_side_validation && id_user.nil?
@@ -1419,7 +1412,7 @@ module BudgeaClient
1419
1412
  fail ArgumentError, "Missing the required parameter 'id_transaction' when calling DocumentsApi.users_id_user_connections_id_connection_accounts_id_account_transactions_id_transaction_documents_get"
1420
1413
  end
1421
1414
  # resource path
1422
- local_var_path = "/users/{id_user}/connections/{id_connection}/accounts/{id_account}/transactions/{id_transaction}/documents".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_account' + '}', id_account.to_s).sub('{' + 'id_transaction' + '}', id_transaction.to_s)
1415
+ local_var_path = '/users/{id_user}/connections/{id_connection}/accounts/{id_account}/transactions/{id_transaction}/documents'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_account' + '}', id_account.to_s).sub('{' + 'id_transaction' + '}', id_transaction.to_s)
1423
1416
 
1424
1417
  # query parameters
1425
1418
  query_params = {}
@@ -1453,13 +1446,12 @@ module BudgeaClient
1453
1446
  :form_params => form_params,
1454
1447
  :body => post_body,
1455
1448
  :auth_names => auth_names,
1456
- :return_type => 'InlineResponse20026')
1449
+ :return_type => 'InlineResponse20028')
1457
1450
  if @api_client.config.debugging
1458
1451
  @api_client.config.logger.debug "API called: DocumentsApi#users_id_user_connections_id_connection_accounts_id_account_transactions_id_transaction_documents_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1459
1452
  end
1460
1453
  return data, status_code, headers
1461
1454
  end
1462
-
1463
1455
  # Delete a document
1464
1456
  #
1465
1457
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
@@ -1472,7 +1464,7 @@ module BudgeaClient
1472
1464
  # @return [Document]
1473
1465
  def users_id_user_connections_id_connection_accounts_id_account_transactions_id_transaction_documents_id_document_delete(id_user, id_connection, id_account, id_transaction, id_document, opts = {})
1474
1466
  data, _status_code, _headers = users_id_user_connections_id_connection_accounts_id_account_transactions_id_transaction_documents_id_document_delete_with_http_info(id_user, id_connection, id_account, id_transaction, id_document, opts)
1475
- return data
1467
+ data
1476
1468
  end
1477
1469
 
1478
1470
  # Delete a document
@@ -1487,7 +1479,7 @@ module BudgeaClient
1487
1479
  # @return [Array<(Document, Fixnum, Hash)>] Document data, response status code and response headers
1488
1480
  def users_id_user_connections_id_connection_accounts_id_account_transactions_id_transaction_documents_id_document_delete_with_http_info(id_user, id_connection, id_account, id_transaction, id_document, opts = {})
1489
1481
  if @api_client.config.debugging
1490
- @api_client.config.logger.debug "Calling API: DocumentsApi.users_id_user_connections_id_connection_accounts_id_account_transactions_id_transaction_documents_id_document_delete ..."
1482
+ @api_client.config.logger.debug 'Calling API: DocumentsApi.users_id_user_connections_id_connection_accounts_id_account_transactions_id_transaction_documents_id_document_delete ...'
1491
1483
  end
1492
1484
  # verify the required parameter 'id_user' is set
1493
1485
  if @api_client.config.client_side_validation && id_user.nil?
@@ -1510,7 +1502,7 @@ module BudgeaClient
1510
1502
  fail ArgumentError, "Missing the required parameter 'id_document' when calling DocumentsApi.users_id_user_connections_id_connection_accounts_id_account_transactions_id_transaction_documents_id_document_delete"
1511
1503
  end
1512
1504
  # resource path
1513
- local_var_path = "/users/{id_user}/connections/{id_connection}/accounts/{id_account}/transactions/{id_transaction}/documents/{id_document}".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_account' + '}', id_account.to_s).sub('{' + 'id_transaction' + '}', id_transaction.to_s).sub('{' + 'id_document' + '}', id_document.to_s)
1505
+ local_var_path = '/users/{id_user}/connections/{id_connection}/accounts/{id_account}/transactions/{id_transaction}/documents/{id_document}'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_account' + '}', id_account.to_s).sub('{' + 'id_transaction' + '}', id_transaction.to_s).sub('{' + 'id_document' + '}', id_document.to_s)
1514
1506
 
1515
1507
  # query parameters
1516
1508
  query_params = {}
@@ -1541,7 +1533,6 @@ module BudgeaClient
1541
1533
  end
1542
1534
  return data, status_code, headers
1543
1535
  end
1544
-
1545
1536
  # Edit a document
1546
1537
  # Edit meta-data of a specific document.
1547
1538
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
@@ -1565,7 +1556,7 @@ module BudgeaClient
1565
1556
  # @return [Document]
1566
1557
  def users_id_user_connections_id_connection_accounts_id_account_transactions_id_transaction_documents_id_document_put(id_user, id_connection, id_account, id_transaction, id_document, opts = {})
1567
1558
  data, _status_code, _headers = users_id_user_connections_id_connection_accounts_id_account_transactions_id_transaction_documents_id_document_put_with_http_info(id_user, id_connection, id_account, id_transaction, id_document, opts)
1568
- return data
1559
+ data
1569
1560
  end
1570
1561
 
1571
1562
  # Edit a document
@@ -1591,7 +1582,7 @@ module BudgeaClient
1591
1582
  # @return [Array<(Document, Fixnum, Hash)>] Document data, response status code and response headers
1592
1583
  def users_id_user_connections_id_connection_accounts_id_account_transactions_id_transaction_documents_id_document_put_with_http_info(id_user, id_connection, id_account, id_transaction, id_document, opts = {})
1593
1584
  if @api_client.config.debugging
1594
- @api_client.config.logger.debug "Calling API: DocumentsApi.users_id_user_connections_id_connection_accounts_id_account_transactions_id_transaction_documents_id_document_put ..."
1585
+ @api_client.config.logger.debug 'Calling API: DocumentsApi.users_id_user_connections_id_connection_accounts_id_account_transactions_id_transaction_documents_id_document_put ...'
1595
1586
  end
1596
1587
  # verify the required parameter 'id_user' is set
1597
1588
  if @api_client.config.client_side_validation && id_user.nil?
@@ -1614,7 +1605,7 @@ module BudgeaClient
1614
1605
  fail ArgumentError, "Missing the required parameter 'id_document' when calling DocumentsApi.users_id_user_connections_id_connection_accounts_id_account_transactions_id_transaction_documents_id_document_put"
1615
1606
  end
1616
1607
  # resource path
1617
- local_var_path = "/users/{id_user}/connections/{id_connection}/accounts/{id_account}/transactions/{id_transaction}/documents/{id_document}".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_account' + '}', id_account.to_s).sub('{' + 'id_transaction' + '}', id_transaction.to_s).sub('{' + 'id_document' + '}', id_document.to_s)
1608
+ local_var_path = '/users/{id_user}/connections/{id_connection}/accounts/{id_account}/transactions/{id_transaction}/documents/{id_document}'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_account' + '}', id_account.to_s).sub('{' + 'id_transaction' + '}', id_transaction.to_s).sub('{' + 'id_document' + '}', id_document.to_s)
1618
1609
 
1619
1610
  # query parameters
1620
1611
  query_params = {}
@@ -1629,17 +1620,17 @@ module BudgeaClient
1629
1620
 
1630
1621
  # form parameters
1631
1622
  form_params = {}
1632
- form_params["id_type"] = opts[:'id_type'] if !opts[:'id_type'].nil?
1633
- form_params["id_category"] = opts[:'id_category'] if !opts[:'id_category'].nil?
1634
- form_params["date"] = opts[:'date'] if !opts[:'date'].nil?
1635
- form_params["duedate"] = opts[:'duedate'] if !opts[:'duedate'].nil?
1636
- form_params["total_amount"] = opts[:'total_amount'] if !opts[:'total_amount'].nil?
1637
- form_params["untaxed_amount"] = opts[:'untaxed_amount'] if !opts[:'untaxed_amount'].nil?
1638
- form_params["vat"] = opts[:'vat'] if !opts[:'vat'].nil?
1639
- form_params["income"] = opts[:'income'] if !opts[:'income'].nil?
1640
- form_params["readonly"] = opts[:'readonly'] if !opts[:'readonly'].nil?
1641
- form_params["file"] = opts[:'file'] if !opts[:'file'].nil?
1642
- form_params["name"] = opts[:'name'] if !opts[:'name'].nil?
1623
+ form_params['id_type'] = opts[:'id_type'] if !opts[:'id_type'].nil?
1624
+ form_params['id_category'] = opts[:'id_category'] if !opts[:'id_category'].nil?
1625
+ form_params['date'] = opts[:'date'] if !opts[:'date'].nil?
1626
+ form_params['duedate'] = opts[:'duedate'] if !opts[:'duedate'].nil?
1627
+ form_params['total_amount'] = opts[:'total_amount'] if !opts[:'total_amount'].nil?
1628
+ form_params['untaxed_amount'] = opts[:'untaxed_amount'] if !opts[:'untaxed_amount'].nil?
1629
+ form_params['vat'] = opts[:'vat'] if !opts[:'vat'].nil?
1630
+ form_params['income'] = opts[:'income'] if !opts[:'income'].nil?
1631
+ form_params['readonly'] = opts[:'readonly'] if !opts[:'readonly'].nil?
1632
+ form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
1633
+ form_params['name'] = opts[:'name'] if !opts[:'name'].nil?
1643
1634
 
1644
1635
  # http body (model)
1645
1636
  post_body = nil
@@ -1656,7 +1647,6 @@ module BudgeaClient
1656
1647
  end
1657
1648
  return data, status_code, headers
1658
1649
  end
1659
-
1660
1650
  # Add a new document
1661
1651
  # Add a new document<br><br>
1662
1652
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
@@ -1680,7 +1670,7 @@ module BudgeaClient
1680
1670
  # @return [Document]
1681
1671
  def users_id_user_connections_id_connection_accounts_id_account_transactions_id_transaction_documents_post(id_user, id_connection, id_account, id_transaction, date, duedate, opts = {})
1682
1672
  data, _status_code, _headers = users_id_user_connections_id_connection_accounts_id_account_transactions_id_transaction_documents_post_with_http_info(id_user, id_connection, id_account, id_transaction, date, duedate, opts)
1683
- return data
1673
+ data
1684
1674
  end
1685
1675
 
1686
1676
  # Add a new document
@@ -1706,7 +1696,7 @@ module BudgeaClient
1706
1696
  # @return [Array<(Document, Fixnum, Hash)>] Document data, response status code and response headers
1707
1697
  def users_id_user_connections_id_connection_accounts_id_account_transactions_id_transaction_documents_post_with_http_info(id_user, id_connection, id_account, id_transaction, date, duedate, opts = {})
1708
1698
  if @api_client.config.debugging
1709
- @api_client.config.logger.debug "Calling API: DocumentsApi.users_id_user_connections_id_connection_accounts_id_account_transactions_id_transaction_documents_post ..."
1699
+ @api_client.config.logger.debug 'Calling API: DocumentsApi.users_id_user_connections_id_connection_accounts_id_account_transactions_id_transaction_documents_post ...'
1710
1700
  end
1711
1701
  # verify the required parameter 'id_user' is set
1712
1702
  if @api_client.config.client_side_validation && id_user.nil?
@@ -1733,7 +1723,7 @@ module BudgeaClient
1733
1723
  fail ArgumentError, "Missing the required parameter 'duedate' when calling DocumentsApi.users_id_user_connections_id_connection_accounts_id_account_transactions_id_transaction_documents_post"
1734
1724
  end
1735
1725
  # resource path
1736
- local_var_path = "/users/{id_user}/connections/{id_connection}/accounts/{id_account}/transactions/{id_transaction}/documents".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_account' + '}', id_account.to_s).sub('{' + 'id_transaction' + '}', id_transaction.to_s)
1726
+ local_var_path = '/users/{id_user}/connections/{id_connection}/accounts/{id_account}/transactions/{id_transaction}/documents'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_account' + '}', id_account.to_s).sub('{' + 'id_transaction' + '}', id_transaction.to_s)
1737
1727
 
1738
1728
  # query parameters
1739
1729
  query_params = {}
@@ -1748,18 +1738,18 @@ module BudgeaClient
1748
1738
 
1749
1739
  # form parameters
1750
1740
  form_params = {}
1751
- form_params["date"] = date
1752
- form_params["duedate"] = duedate
1753
- form_params["id_type"] = opts[:'id_type'] if !opts[:'id_type'].nil?
1754
- form_params["id_category"] = opts[:'id_category'] if !opts[:'id_category'].nil?
1755
- form_params["total_amount"] = opts[:'total_amount'] if !opts[:'total_amount'].nil?
1756
- form_params["untaxed_amount"] = opts[:'untaxed_amount'] if !opts[:'untaxed_amount'].nil?
1757
- form_params["vat"] = opts[:'vat'] if !opts[:'vat'].nil?
1758
- form_params["income"] = opts[:'income'] if !opts[:'income'].nil?
1759
- form_params["readonly"] = opts[:'readonly'] if !opts[:'readonly'].nil?
1760
- form_params["file"] = opts[:'file'] if !opts[:'file'].nil?
1761
- form_params["id_ocr"] = opts[:'id_ocr'] if !opts[:'id_ocr'].nil?
1762
- form_params["name"] = opts[:'name'] if !opts[:'name'].nil?
1741
+ form_params['date'] = date
1742
+ form_params['duedate'] = duedate
1743
+ form_params['id_type'] = opts[:'id_type'] if !opts[:'id_type'].nil?
1744
+ form_params['id_category'] = opts[:'id_category'] if !opts[:'id_category'].nil?
1745
+ form_params['total_amount'] = opts[:'total_amount'] if !opts[:'total_amount'].nil?
1746
+ form_params['untaxed_amount'] = opts[:'untaxed_amount'] if !opts[:'untaxed_amount'].nil?
1747
+ form_params['vat'] = opts[:'vat'] if !opts[:'vat'].nil?
1748
+ form_params['income'] = opts[:'income'] if !opts[:'income'].nil?
1749
+ form_params['readonly'] = opts[:'readonly'] if !opts[:'readonly'].nil?
1750
+ form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
1751
+ form_params['id_ocr'] = opts[:'id_ocr'] if !opts[:'id_ocr'].nil?
1752
+ form_params['name'] = opts[:'name'] if !opts[:'name'].nil?
1763
1753
 
1764
1754
  # http body (model)
1765
1755
  post_body = nil
@@ -1776,7 +1766,6 @@ module BudgeaClient
1776
1766
  end
1777
1767
  return data, status_code, headers
1778
1768
  end
1779
-
1780
1769
  # Attach an existing document to a transaction or a transactions_cluster
1781
1770
  #
1782
1771
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
@@ -1789,7 +1778,7 @@ module BudgeaClient
1789
1778
  # @return [Document]
1790
1779
  def users_id_user_connections_id_connection_accounts_id_account_transactions_id_transaction_documents_put(id_user, id_connection, id_account, id_transaction, id_document, opts = {})
1791
1780
  data, _status_code, _headers = users_id_user_connections_id_connection_accounts_id_account_transactions_id_transaction_documents_put_with_http_info(id_user, id_connection, id_account, id_transaction, id_document, opts)
1792
- return data
1781
+ data
1793
1782
  end
1794
1783
 
1795
1784
  # Attach an existing document to a transaction or a transactions_cluster
@@ -1804,7 +1793,7 @@ module BudgeaClient
1804
1793
  # @return [Array<(Document, Fixnum, Hash)>] Document data, response status code and response headers
1805
1794
  def users_id_user_connections_id_connection_accounts_id_account_transactions_id_transaction_documents_put_with_http_info(id_user, id_connection, id_account, id_transaction, id_document, opts = {})
1806
1795
  if @api_client.config.debugging
1807
- @api_client.config.logger.debug "Calling API: DocumentsApi.users_id_user_connections_id_connection_accounts_id_account_transactions_id_transaction_documents_put ..."
1796
+ @api_client.config.logger.debug 'Calling API: DocumentsApi.users_id_user_connections_id_connection_accounts_id_account_transactions_id_transaction_documents_put ...'
1808
1797
  end
1809
1798
  # verify the required parameter 'id_user' is set
1810
1799
  if @api_client.config.client_side_validation && id_user.nil?
@@ -1827,7 +1816,7 @@ module BudgeaClient
1827
1816
  fail ArgumentError, "Missing the required parameter 'id_document' when calling DocumentsApi.users_id_user_connections_id_connection_accounts_id_account_transactions_id_transaction_documents_put"
1828
1817
  end
1829
1818
  # resource path
1830
- local_var_path = "/users/{id_user}/connections/{id_connection}/accounts/{id_account}/transactions/{id_transaction}/documents".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_account' + '}', id_account.to_s).sub('{' + 'id_transaction' + '}', id_transaction.to_s)
1819
+ local_var_path = '/users/{id_user}/connections/{id_connection}/accounts/{id_account}/transactions/{id_transaction}/documents'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_account' + '}', id_account.to_s).sub('{' + 'id_transaction' + '}', id_transaction.to_s)
1831
1820
 
1832
1821
  # query parameters
1833
1822
  query_params = {}
@@ -1842,7 +1831,7 @@ module BudgeaClient
1842
1831
 
1843
1832
  # form parameters
1844
1833
  form_params = {}
1845
- form_params["id_document"] = id_document
1834
+ form_params['id_document'] = id_document
1846
1835
 
1847
1836
  # http body (model)
1848
1837
  post_body = nil
@@ -1859,7 +1848,6 @@ module BudgeaClient
1859
1848
  end
1860
1849
  return data, status_code, headers
1861
1850
  end
1862
-
1863
1851
  # Delete documents
1864
1852
  #
1865
1853
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
@@ -1871,7 +1859,7 @@ module BudgeaClient
1871
1859
  # @return [Document]
1872
1860
  def users_id_user_connections_id_connection_accounts_id_account_transactionsclusters_id_transactions_cluster_documents_delete(id_user, id_connection, id_account, id_transactions_cluster, opts = {})
1873
1861
  data, _status_code, _headers = users_id_user_connections_id_connection_accounts_id_account_transactionsclusters_id_transactions_cluster_documents_delete_with_http_info(id_user, id_connection, id_account, id_transactions_cluster, opts)
1874
- return data
1862
+ data
1875
1863
  end
1876
1864
 
1877
1865
  # Delete documents
@@ -1885,7 +1873,7 @@ module BudgeaClient
1885
1873
  # @return [Array<(Document, Fixnum, Hash)>] Document data, response status code and response headers
1886
1874
  def users_id_user_connections_id_connection_accounts_id_account_transactionsclusters_id_transactions_cluster_documents_delete_with_http_info(id_user, id_connection, id_account, id_transactions_cluster, opts = {})
1887
1875
  if @api_client.config.debugging
1888
- @api_client.config.logger.debug "Calling API: DocumentsApi.users_id_user_connections_id_connection_accounts_id_account_transactionsclusters_id_transactions_cluster_documents_delete ..."
1876
+ @api_client.config.logger.debug 'Calling API: DocumentsApi.users_id_user_connections_id_connection_accounts_id_account_transactionsclusters_id_transactions_cluster_documents_delete ...'
1889
1877
  end
1890
1878
  # verify the required parameter 'id_user' is set
1891
1879
  if @api_client.config.client_side_validation && id_user.nil?
@@ -1904,7 +1892,7 @@ module BudgeaClient
1904
1892
  fail ArgumentError, "Missing the required parameter 'id_transactions_cluster' when calling DocumentsApi.users_id_user_connections_id_connection_accounts_id_account_transactionsclusters_id_transactions_cluster_documents_delete"
1905
1893
  end
1906
1894
  # resource path
1907
- local_var_path = "/users/{id_user}/connections/{id_connection}/accounts/{id_account}/transactionsclusters/{id_transactions_cluster}/documents".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_account' + '}', id_account.to_s).sub('{' + 'id_transactions_cluster' + '}', id_transactions_cluster.to_s)
1895
+ local_var_path = '/users/{id_user}/connections/{id_connection}/accounts/{id_account}/transactionsclusters/{id_transactions_cluster}/documents'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_account' + '}', id_account.to_s).sub('{' + 'id_transactions_cluster' + '}', id_transactions_cluster.to_s)
1908
1896
 
1909
1897
  # query parameters
1910
1898
  query_params = {}
@@ -1935,7 +1923,6 @@ module BudgeaClient
1935
1923
  end
1936
1924
  return data, status_code, headers
1937
1925
  end
1938
-
1939
1926
  # Get documents
1940
1927
  # Get list of documents<br><br>
1941
1928
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
@@ -1948,15 +1935,15 @@ module BudgeaClient
1948
1935
  # @option opts [Date] :min_date minimal (inclusive) date
1949
1936
  # @option opts [Date] :max_date maximum (inclusive) date
1950
1937
  # @option opts [Float] :min_amount minimal (inclusive) amount
1951
- # @option opts [Float] :max_amount maximumd (inclusive) amount
1938
+ # @option opts [Float] :max_amount maximum (inclusive) amount
1952
1939
  # @option opts [Float] :min_timestamp minimal (inclusive) timestamp
1953
- # @option opts [Float] :max_timestamp maximumd (inclusive) timestamp
1940
+ # @option opts [Float] :max_timestamp maximum (inclusive) timestamp
1954
1941
  # @option opts [Integer] :id_type filter with a document type
1955
1942
  # @option opts [String] :expand
1956
- # @return [InlineResponse20026]
1943
+ # @return [InlineResponse20028]
1957
1944
  def users_id_user_connections_id_connection_accounts_id_account_transactionsclusters_id_transactions_cluster_documents_get(id_user, id_connection, id_account, id_transactions_cluster, opts = {})
1958
1945
  data, _status_code, _headers = users_id_user_connections_id_connection_accounts_id_account_transactionsclusters_id_transactions_cluster_documents_get_with_http_info(id_user, id_connection, id_account, id_transactions_cluster, opts)
1959
- return data
1946
+ data
1960
1947
  end
1961
1948
 
1962
1949
  # Get documents
@@ -1971,15 +1958,15 @@ module BudgeaClient
1971
1958
  # @option opts [Date] :min_date minimal (inclusive) date
1972
1959
  # @option opts [Date] :max_date maximum (inclusive) date
1973
1960
  # @option opts [Float] :min_amount minimal (inclusive) amount
1974
- # @option opts [Float] :max_amount maximumd (inclusive) amount
1961
+ # @option opts [Float] :max_amount maximum (inclusive) amount
1975
1962
  # @option opts [Float] :min_timestamp minimal (inclusive) timestamp
1976
- # @option opts [Float] :max_timestamp maximumd (inclusive) timestamp
1963
+ # @option opts [Float] :max_timestamp maximum (inclusive) timestamp
1977
1964
  # @option opts [Integer] :id_type filter with a document type
1978
1965
  # @option opts [String] :expand
1979
- # @return [Array<(InlineResponse20026, Fixnum, Hash)>] InlineResponse20026 data, response status code and response headers
1966
+ # @return [Array<(InlineResponse20028, Fixnum, Hash)>] InlineResponse20028 data, response status code and response headers
1980
1967
  def users_id_user_connections_id_connection_accounts_id_account_transactionsclusters_id_transactions_cluster_documents_get_with_http_info(id_user, id_connection, id_account, id_transactions_cluster, opts = {})
1981
1968
  if @api_client.config.debugging
1982
- @api_client.config.logger.debug "Calling API: DocumentsApi.users_id_user_connections_id_connection_accounts_id_account_transactionsclusters_id_transactions_cluster_documents_get ..."
1969
+ @api_client.config.logger.debug 'Calling API: DocumentsApi.users_id_user_connections_id_connection_accounts_id_account_transactionsclusters_id_transactions_cluster_documents_get ...'
1983
1970
  end
1984
1971
  # verify the required parameter 'id_user' is set
1985
1972
  if @api_client.config.client_side_validation && id_user.nil?
@@ -1998,7 +1985,7 @@ module BudgeaClient
1998
1985
  fail ArgumentError, "Missing the required parameter 'id_transactions_cluster' when calling DocumentsApi.users_id_user_connections_id_connection_accounts_id_account_transactionsclusters_id_transactions_cluster_documents_get"
1999
1986
  end
2000
1987
  # resource path
2001
- local_var_path = "/users/{id_user}/connections/{id_connection}/accounts/{id_account}/transactionsclusters/{id_transactions_cluster}/documents".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_account' + '}', id_account.to_s).sub('{' + 'id_transactions_cluster' + '}', id_transactions_cluster.to_s)
1988
+ local_var_path = '/users/{id_user}/connections/{id_connection}/accounts/{id_account}/transactionsclusters/{id_transactions_cluster}/documents'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_account' + '}', id_account.to_s).sub('{' + 'id_transactions_cluster' + '}', id_transactions_cluster.to_s)
2002
1989
 
2003
1990
  # query parameters
2004
1991
  query_params = {}
@@ -2032,13 +2019,12 @@ module BudgeaClient
2032
2019
  :form_params => form_params,
2033
2020
  :body => post_body,
2034
2021
  :auth_names => auth_names,
2035
- :return_type => 'InlineResponse20026')
2022
+ :return_type => 'InlineResponse20028')
2036
2023
  if @api_client.config.debugging
2037
2024
  @api_client.config.logger.debug "API called: DocumentsApi#users_id_user_connections_id_connection_accounts_id_account_transactionsclusters_id_transactions_cluster_documents_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2038
2025
  end
2039
2026
  return data, status_code, headers
2040
2027
  end
2041
-
2042
2028
  # Delete a document
2043
2029
  #
2044
2030
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
@@ -2051,7 +2037,7 @@ module BudgeaClient
2051
2037
  # @return [Document]
2052
2038
  def users_id_user_connections_id_connection_accounts_id_account_transactionsclusters_id_transactions_cluster_documents_id_document_delete(id_user, id_connection, id_account, id_transactions_cluster, id_document, opts = {})
2053
2039
  data, _status_code, _headers = users_id_user_connections_id_connection_accounts_id_account_transactionsclusters_id_transactions_cluster_documents_id_document_delete_with_http_info(id_user, id_connection, id_account, id_transactions_cluster, id_document, opts)
2054
- return data
2040
+ data
2055
2041
  end
2056
2042
 
2057
2043
  # Delete a document
@@ -2066,7 +2052,7 @@ module BudgeaClient
2066
2052
  # @return [Array<(Document, Fixnum, Hash)>] Document data, response status code and response headers
2067
2053
  def users_id_user_connections_id_connection_accounts_id_account_transactionsclusters_id_transactions_cluster_documents_id_document_delete_with_http_info(id_user, id_connection, id_account, id_transactions_cluster, id_document, opts = {})
2068
2054
  if @api_client.config.debugging
2069
- @api_client.config.logger.debug "Calling API: DocumentsApi.users_id_user_connections_id_connection_accounts_id_account_transactionsclusters_id_transactions_cluster_documents_id_document_delete ..."
2055
+ @api_client.config.logger.debug 'Calling API: DocumentsApi.users_id_user_connections_id_connection_accounts_id_account_transactionsclusters_id_transactions_cluster_documents_id_document_delete ...'
2070
2056
  end
2071
2057
  # verify the required parameter 'id_user' is set
2072
2058
  if @api_client.config.client_side_validation && id_user.nil?
@@ -2089,7 +2075,7 @@ module BudgeaClient
2089
2075
  fail ArgumentError, "Missing the required parameter 'id_document' when calling DocumentsApi.users_id_user_connections_id_connection_accounts_id_account_transactionsclusters_id_transactions_cluster_documents_id_document_delete"
2090
2076
  end
2091
2077
  # resource path
2092
- local_var_path = "/users/{id_user}/connections/{id_connection}/accounts/{id_account}/transactionsclusters/{id_transactions_cluster}/documents/{id_document}".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_account' + '}', id_account.to_s).sub('{' + 'id_transactions_cluster' + '}', id_transactions_cluster.to_s).sub('{' + 'id_document' + '}', id_document.to_s)
2078
+ local_var_path = '/users/{id_user}/connections/{id_connection}/accounts/{id_account}/transactionsclusters/{id_transactions_cluster}/documents/{id_document}'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_account' + '}', id_account.to_s).sub('{' + 'id_transactions_cluster' + '}', id_transactions_cluster.to_s).sub('{' + 'id_document' + '}', id_document.to_s)
2093
2079
 
2094
2080
  # query parameters
2095
2081
  query_params = {}
@@ -2120,7 +2106,6 @@ module BudgeaClient
2120
2106
  end
2121
2107
  return data, status_code, headers
2122
2108
  end
2123
-
2124
2109
  # Edit a document
2125
2110
  # Edit meta-data of a specific document.
2126
2111
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
@@ -2144,7 +2129,7 @@ module BudgeaClient
2144
2129
  # @return [Document]
2145
2130
  def users_id_user_connections_id_connection_accounts_id_account_transactionsclusters_id_transactions_cluster_documents_id_document_put(id_user, id_connection, id_account, id_transactions_cluster, id_document, opts = {})
2146
2131
  data, _status_code, _headers = users_id_user_connections_id_connection_accounts_id_account_transactionsclusters_id_transactions_cluster_documents_id_document_put_with_http_info(id_user, id_connection, id_account, id_transactions_cluster, id_document, opts)
2147
- return data
2132
+ data
2148
2133
  end
2149
2134
 
2150
2135
  # Edit a document
@@ -2170,7 +2155,7 @@ module BudgeaClient
2170
2155
  # @return [Array<(Document, Fixnum, Hash)>] Document data, response status code and response headers
2171
2156
  def users_id_user_connections_id_connection_accounts_id_account_transactionsclusters_id_transactions_cluster_documents_id_document_put_with_http_info(id_user, id_connection, id_account, id_transactions_cluster, id_document, opts = {})
2172
2157
  if @api_client.config.debugging
2173
- @api_client.config.logger.debug "Calling API: DocumentsApi.users_id_user_connections_id_connection_accounts_id_account_transactionsclusters_id_transactions_cluster_documents_id_document_put ..."
2158
+ @api_client.config.logger.debug 'Calling API: DocumentsApi.users_id_user_connections_id_connection_accounts_id_account_transactionsclusters_id_transactions_cluster_documents_id_document_put ...'
2174
2159
  end
2175
2160
  # verify the required parameter 'id_user' is set
2176
2161
  if @api_client.config.client_side_validation && id_user.nil?
@@ -2193,7 +2178,7 @@ module BudgeaClient
2193
2178
  fail ArgumentError, "Missing the required parameter 'id_document' when calling DocumentsApi.users_id_user_connections_id_connection_accounts_id_account_transactionsclusters_id_transactions_cluster_documents_id_document_put"
2194
2179
  end
2195
2180
  # resource path
2196
- local_var_path = "/users/{id_user}/connections/{id_connection}/accounts/{id_account}/transactionsclusters/{id_transactions_cluster}/documents/{id_document}".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_account' + '}', id_account.to_s).sub('{' + 'id_transactions_cluster' + '}', id_transactions_cluster.to_s).sub('{' + 'id_document' + '}', id_document.to_s)
2181
+ local_var_path = '/users/{id_user}/connections/{id_connection}/accounts/{id_account}/transactionsclusters/{id_transactions_cluster}/documents/{id_document}'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_account' + '}', id_account.to_s).sub('{' + 'id_transactions_cluster' + '}', id_transactions_cluster.to_s).sub('{' + 'id_document' + '}', id_document.to_s)
2197
2182
 
2198
2183
  # query parameters
2199
2184
  query_params = {}
@@ -2208,17 +2193,17 @@ module BudgeaClient
2208
2193
 
2209
2194
  # form parameters
2210
2195
  form_params = {}
2211
- form_params["id_type"] = opts[:'id_type'] if !opts[:'id_type'].nil?
2212
- form_params["id_category"] = opts[:'id_category'] if !opts[:'id_category'].nil?
2213
- form_params["date"] = opts[:'date'] if !opts[:'date'].nil?
2214
- form_params["duedate"] = opts[:'duedate'] if !opts[:'duedate'].nil?
2215
- form_params["total_amount"] = opts[:'total_amount'] if !opts[:'total_amount'].nil?
2216
- form_params["untaxed_amount"] = opts[:'untaxed_amount'] if !opts[:'untaxed_amount'].nil?
2217
- form_params["vat"] = opts[:'vat'] if !opts[:'vat'].nil?
2218
- form_params["income"] = opts[:'income'] if !opts[:'income'].nil?
2219
- form_params["readonly"] = opts[:'readonly'] if !opts[:'readonly'].nil?
2220
- form_params["file"] = opts[:'file'] if !opts[:'file'].nil?
2221
- form_params["name"] = opts[:'name'] if !opts[:'name'].nil?
2196
+ form_params['id_type'] = opts[:'id_type'] if !opts[:'id_type'].nil?
2197
+ form_params['id_category'] = opts[:'id_category'] if !opts[:'id_category'].nil?
2198
+ form_params['date'] = opts[:'date'] if !opts[:'date'].nil?
2199
+ form_params['duedate'] = opts[:'duedate'] if !opts[:'duedate'].nil?
2200
+ form_params['total_amount'] = opts[:'total_amount'] if !opts[:'total_amount'].nil?
2201
+ form_params['untaxed_amount'] = opts[:'untaxed_amount'] if !opts[:'untaxed_amount'].nil?
2202
+ form_params['vat'] = opts[:'vat'] if !opts[:'vat'].nil?
2203
+ form_params['income'] = opts[:'income'] if !opts[:'income'].nil?
2204
+ form_params['readonly'] = opts[:'readonly'] if !opts[:'readonly'].nil?
2205
+ form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
2206
+ form_params['name'] = opts[:'name'] if !opts[:'name'].nil?
2222
2207
 
2223
2208
  # http body (model)
2224
2209
  post_body = nil
@@ -2235,7 +2220,6 @@ module BudgeaClient
2235
2220
  end
2236
2221
  return data, status_code, headers
2237
2222
  end
2238
-
2239
2223
  # Add a new document
2240
2224
  # Add a new document<br><br>
2241
2225
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
@@ -2259,7 +2243,7 @@ module BudgeaClient
2259
2243
  # @return [Document]
2260
2244
  def users_id_user_connections_id_connection_accounts_id_account_transactionsclusters_id_transactions_cluster_documents_post(id_user, id_connection, id_account, id_transactions_cluster, date, duedate, opts = {})
2261
2245
  data, _status_code, _headers = users_id_user_connections_id_connection_accounts_id_account_transactionsclusters_id_transactions_cluster_documents_post_with_http_info(id_user, id_connection, id_account, id_transactions_cluster, date, duedate, opts)
2262
- return data
2246
+ data
2263
2247
  end
2264
2248
 
2265
2249
  # Add a new document
@@ -2285,7 +2269,7 @@ module BudgeaClient
2285
2269
  # @return [Array<(Document, Fixnum, Hash)>] Document data, response status code and response headers
2286
2270
  def users_id_user_connections_id_connection_accounts_id_account_transactionsclusters_id_transactions_cluster_documents_post_with_http_info(id_user, id_connection, id_account, id_transactions_cluster, date, duedate, opts = {})
2287
2271
  if @api_client.config.debugging
2288
- @api_client.config.logger.debug "Calling API: DocumentsApi.users_id_user_connections_id_connection_accounts_id_account_transactionsclusters_id_transactions_cluster_documents_post ..."
2272
+ @api_client.config.logger.debug 'Calling API: DocumentsApi.users_id_user_connections_id_connection_accounts_id_account_transactionsclusters_id_transactions_cluster_documents_post ...'
2289
2273
  end
2290
2274
  # verify the required parameter 'id_user' is set
2291
2275
  if @api_client.config.client_side_validation && id_user.nil?
@@ -2312,7 +2296,7 @@ module BudgeaClient
2312
2296
  fail ArgumentError, "Missing the required parameter 'duedate' when calling DocumentsApi.users_id_user_connections_id_connection_accounts_id_account_transactionsclusters_id_transactions_cluster_documents_post"
2313
2297
  end
2314
2298
  # resource path
2315
- local_var_path = "/users/{id_user}/connections/{id_connection}/accounts/{id_account}/transactionsclusters/{id_transactions_cluster}/documents".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_account' + '}', id_account.to_s).sub('{' + 'id_transactions_cluster' + '}', id_transactions_cluster.to_s)
2299
+ local_var_path = '/users/{id_user}/connections/{id_connection}/accounts/{id_account}/transactionsclusters/{id_transactions_cluster}/documents'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_account' + '}', id_account.to_s).sub('{' + 'id_transactions_cluster' + '}', id_transactions_cluster.to_s)
2316
2300
 
2317
2301
  # query parameters
2318
2302
  query_params = {}
@@ -2327,18 +2311,18 @@ module BudgeaClient
2327
2311
 
2328
2312
  # form parameters
2329
2313
  form_params = {}
2330
- form_params["date"] = date
2331
- form_params["duedate"] = duedate
2332
- form_params["id_type"] = opts[:'id_type'] if !opts[:'id_type'].nil?
2333
- form_params["id_category"] = opts[:'id_category'] if !opts[:'id_category'].nil?
2334
- form_params["total_amount"] = opts[:'total_amount'] if !opts[:'total_amount'].nil?
2335
- form_params["untaxed_amount"] = opts[:'untaxed_amount'] if !opts[:'untaxed_amount'].nil?
2336
- form_params["vat"] = opts[:'vat'] if !opts[:'vat'].nil?
2337
- form_params["income"] = opts[:'income'] if !opts[:'income'].nil?
2338
- form_params["readonly"] = opts[:'readonly'] if !opts[:'readonly'].nil?
2339
- form_params["file"] = opts[:'file'] if !opts[:'file'].nil?
2340
- form_params["id_ocr"] = opts[:'id_ocr'] if !opts[:'id_ocr'].nil?
2341
- form_params["name"] = opts[:'name'] if !opts[:'name'].nil?
2314
+ form_params['date'] = date
2315
+ form_params['duedate'] = duedate
2316
+ form_params['id_type'] = opts[:'id_type'] if !opts[:'id_type'].nil?
2317
+ form_params['id_category'] = opts[:'id_category'] if !opts[:'id_category'].nil?
2318
+ form_params['total_amount'] = opts[:'total_amount'] if !opts[:'total_amount'].nil?
2319
+ form_params['untaxed_amount'] = opts[:'untaxed_amount'] if !opts[:'untaxed_amount'].nil?
2320
+ form_params['vat'] = opts[:'vat'] if !opts[:'vat'].nil?
2321
+ form_params['income'] = opts[:'income'] if !opts[:'income'].nil?
2322
+ form_params['readonly'] = opts[:'readonly'] if !opts[:'readonly'].nil?
2323
+ form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
2324
+ form_params['id_ocr'] = opts[:'id_ocr'] if !opts[:'id_ocr'].nil?
2325
+ form_params['name'] = opts[:'name'] if !opts[:'name'].nil?
2342
2326
 
2343
2327
  # http body (model)
2344
2328
  post_body = nil
@@ -2355,7 +2339,6 @@ module BudgeaClient
2355
2339
  end
2356
2340
  return data, status_code, headers
2357
2341
  end
2358
-
2359
2342
  # Attach an existing document to a transaction or a transactions_cluster
2360
2343
  #
2361
2344
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
@@ -2368,7 +2351,7 @@ module BudgeaClient
2368
2351
  # @return [Document]
2369
2352
  def users_id_user_connections_id_connection_accounts_id_account_transactionsclusters_id_transactions_cluster_documents_put(id_user, id_connection, id_account, id_transactions_cluster, id_document, opts = {})
2370
2353
  data, _status_code, _headers = users_id_user_connections_id_connection_accounts_id_account_transactionsclusters_id_transactions_cluster_documents_put_with_http_info(id_user, id_connection, id_account, id_transactions_cluster, id_document, opts)
2371
- return data
2354
+ data
2372
2355
  end
2373
2356
 
2374
2357
  # Attach an existing document to a transaction or a transactions_cluster
@@ -2383,7 +2366,7 @@ module BudgeaClient
2383
2366
  # @return [Array<(Document, Fixnum, Hash)>] Document data, response status code and response headers
2384
2367
  def users_id_user_connections_id_connection_accounts_id_account_transactionsclusters_id_transactions_cluster_documents_put_with_http_info(id_user, id_connection, id_account, id_transactions_cluster, id_document, opts = {})
2385
2368
  if @api_client.config.debugging
2386
- @api_client.config.logger.debug "Calling API: DocumentsApi.users_id_user_connections_id_connection_accounts_id_account_transactionsclusters_id_transactions_cluster_documents_put ..."
2369
+ @api_client.config.logger.debug 'Calling API: DocumentsApi.users_id_user_connections_id_connection_accounts_id_account_transactionsclusters_id_transactions_cluster_documents_put ...'
2387
2370
  end
2388
2371
  # verify the required parameter 'id_user' is set
2389
2372
  if @api_client.config.client_side_validation && id_user.nil?
@@ -2406,7 +2389,7 @@ module BudgeaClient
2406
2389
  fail ArgumentError, "Missing the required parameter 'id_document' when calling DocumentsApi.users_id_user_connections_id_connection_accounts_id_account_transactionsclusters_id_transactions_cluster_documents_put"
2407
2390
  end
2408
2391
  # resource path
2409
- local_var_path = "/users/{id_user}/connections/{id_connection}/accounts/{id_account}/transactionsclusters/{id_transactions_cluster}/documents".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_account' + '}', id_account.to_s).sub('{' + 'id_transactions_cluster' + '}', id_transactions_cluster.to_s)
2392
+ local_var_path = '/users/{id_user}/connections/{id_connection}/accounts/{id_account}/transactionsclusters/{id_transactions_cluster}/documents'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_account' + '}', id_account.to_s).sub('{' + 'id_transactions_cluster' + '}', id_transactions_cluster.to_s)
2410
2393
 
2411
2394
  # query parameters
2412
2395
  query_params = {}
@@ -2417,11 +2400,11 @@ module BudgeaClient
2417
2400
  # HTTP header 'Accept' (if needed)
2418
2401
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2419
2402
  # HTTP header 'Content-Type'
2420
- header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
2403
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
2421
2404
 
2422
2405
  # form parameters
2423
2406
  form_params = {}
2424
- form_params["id_document"] = id_document
2407
+ form_params['id_document'] = id_document
2425
2408
 
2426
2409
  # http body (model)
2427
2410
  post_body = nil
@@ -2438,7 +2421,6 @@ module BudgeaClient
2438
2421
  end
2439
2422
  return data, status_code, headers
2440
2423
  end
2441
-
2442
2424
  # Delete documents
2443
2425
  #
2444
2426
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
@@ -2448,7 +2430,7 @@ module BudgeaClient
2448
2430
  # @return [Document]
2449
2431
  def users_id_user_connections_id_connection_documents_delete(id_user, id_connection, opts = {})
2450
2432
  data, _status_code, _headers = users_id_user_connections_id_connection_documents_delete_with_http_info(id_user, id_connection, opts)
2451
- return data
2433
+ data
2452
2434
  end
2453
2435
 
2454
2436
  # Delete documents
@@ -2460,7 +2442,7 @@ module BudgeaClient
2460
2442
  # @return [Array<(Document, Fixnum, Hash)>] Document data, response status code and response headers
2461
2443
  def users_id_user_connections_id_connection_documents_delete_with_http_info(id_user, id_connection, opts = {})
2462
2444
  if @api_client.config.debugging
2463
- @api_client.config.logger.debug "Calling API: DocumentsApi.users_id_user_connections_id_connection_documents_delete ..."
2445
+ @api_client.config.logger.debug 'Calling API: DocumentsApi.users_id_user_connections_id_connection_documents_delete ...'
2464
2446
  end
2465
2447
  # verify the required parameter 'id_user' is set
2466
2448
  if @api_client.config.client_side_validation && id_user.nil?
@@ -2471,7 +2453,7 @@ module BudgeaClient
2471
2453
  fail ArgumentError, "Missing the required parameter 'id_connection' when calling DocumentsApi.users_id_user_connections_id_connection_documents_delete"
2472
2454
  end
2473
2455
  # resource path
2474
- local_var_path = "/users/{id_user}/connections/{id_connection}/documents".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s)
2456
+ local_var_path = '/users/{id_user}/connections/{id_connection}/documents'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s)
2475
2457
 
2476
2458
  # query parameters
2477
2459
  query_params = {}
@@ -2502,7 +2484,6 @@ module BudgeaClient
2502
2484
  end
2503
2485
  return data, status_code, headers
2504
2486
  end
2505
-
2506
2487
  # Get documents
2507
2488
  # Get list of documents<br><br>
2508
2489
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
@@ -2513,15 +2494,15 @@ module BudgeaClient
2513
2494
  # @option opts [Date] :min_date minimal (inclusive) date
2514
2495
  # @option opts [Date] :max_date maximum (inclusive) date
2515
2496
  # @option opts [Float] :min_amount minimal (inclusive) amount
2516
- # @option opts [Float] :max_amount maximumd (inclusive) amount
2497
+ # @option opts [Float] :max_amount maximum (inclusive) amount
2517
2498
  # @option opts [Float] :min_timestamp minimal (inclusive) timestamp
2518
- # @option opts [Float] :max_timestamp maximumd (inclusive) timestamp
2499
+ # @option opts [Float] :max_timestamp maximum (inclusive) timestamp
2519
2500
  # @option opts [Integer] :id_type filter with a document type
2520
2501
  # @option opts [String] :expand
2521
- # @return [InlineResponse20026]
2502
+ # @return [InlineResponse20028]
2522
2503
  def users_id_user_connections_id_connection_documents_get(id_user, id_connection, opts = {})
2523
2504
  data, _status_code, _headers = users_id_user_connections_id_connection_documents_get_with_http_info(id_user, id_connection, opts)
2524
- return data
2505
+ data
2525
2506
  end
2526
2507
 
2527
2508
  # Get documents
@@ -2534,15 +2515,15 @@ module BudgeaClient
2534
2515
  # @option opts [Date] :min_date minimal (inclusive) date
2535
2516
  # @option opts [Date] :max_date maximum (inclusive) date
2536
2517
  # @option opts [Float] :min_amount minimal (inclusive) amount
2537
- # @option opts [Float] :max_amount maximumd (inclusive) amount
2518
+ # @option opts [Float] :max_amount maximum (inclusive) amount
2538
2519
  # @option opts [Float] :min_timestamp minimal (inclusive) timestamp
2539
- # @option opts [Float] :max_timestamp maximumd (inclusive) timestamp
2520
+ # @option opts [Float] :max_timestamp maximum (inclusive) timestamp
2540
2521
  # @option opts [Integer] :id_type filter with a document type
2541
2522
  # @option opts [String] :expand
2542
- # @return [Array<(InlineResponse20026, Fixnum, Hash)>] InlineResponse20026 data, response status code and response headers
2523
+ # @return [Array<(InlineResponse20028, Fixnum, Hash)>] InlineResponse20028 data, response status code and response headers
2543
2524
  def users_id_user_connections_id_connection_documents_get_with_http_info(id_user, id_connection, opts = {})
2544
2525
  if @api_client.config.debugging
2545
- @api_client.config.logger.debug "Calling API: DocumentsApi.users_id_user_connections_id_connection_documents_get ..."
2526
+ @api_client.config.logger.debug 'Calling API: DocumentsApi.users_id_user_connections_id_connection_documents_get ...'
2546
2527
  end
2547
2528
  # verify the required parameter 'id_user' is set
2548
2529
  if @api_client.config.client_side_validation && id_user.nil?
@@ -2553,7 +2534,7 @@ module BudgeaClient
2553
2534
  fail ArgumentError, "Missing the required parameter 'id_connection' when calling DocumentsApi.users_id_user_connections_id_connection_documents_get"
2554
2535
  end
2555
2536
  # resource path
2556
- local_var_path = "/users/{id_user}/connections/{id_connection}/documents".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s)
2537
+ local_var_path = '/users/{id_user}/connections/{id_connection}/documents'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s)
2557
2538
 
2558
2539
  # query parameters
2559
2540
  query_params = {}
@@ -2587,13 +2568,12 @@ module BudgeaClient
2587
2568
  :form_params => form_params,
2588
2569
  :body => post_body,
2589
2570
  :auth_names => auth_names,
2590
- :return_type => 'InlineResponse20026')
2571
+ :return_type => 'InlineResponse20028')
2591
2572
  if @api_client.config.debugging
2592
2573
  @api_client.config.logger.debug "API called: DocumentsApi#users_id_user_connections_id_connection_documents_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2593
2574
  end
2594
2575
  return data, status_code, headers
2595
2576
  end
2596
-
2597
2577
  # Delete a document
2598
2578
  #
2599
2579
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
@@ -2604,7 +2584,7 @@ module BudgeaClient
2604
2584
  # @return [Document]
2605
2585
  def users_id_user_connections_id_connection_documents_id_document_delete(id_user, id_connection, id_document, opts = {})
2606
2586
  data, _status_code, _headers = users_id_user_connections_id_connection_documents_id_document_delete_with_http_info(id_user, id_connection, id_document, opts)
2607
- return data
2587
+ data
2608
2588
  end
2609
2589
 
2610
2590
  # Delete a document
@@ -2617,7 +2597,7 @@ module BudgeaClient
2617
2597
  # @return [Array<(Document, Fixnum, Hash)>] Document data, response status code and response headers
2618
2598
  def users_id_user_connections_id_connection_documents_id_document_delete_with_http_info(id_user, id_connection, id_document, opts = {})
2619
2599
  if @api_client.config.debugging
2620
- @api_client.config.logger.debug "Calling API: DocumentsApi.users_id_user_connections_id_connection_documents_id_document_delete ..."
2600
+ @api_client.config.logger.debug 'Calling API: DocumentsApi.users_id_user_connections_id_connection_documents_id_document_delete ...'
2621
2601
  end
2622
2602
  # verify the required parameter 'id_user' is set
2623
2603
  if @api_client.config.client_side_validation && id_user.nil?
@@ -2632,7 +2612,7 @@ module BudgeaClient
2632
2612
  fail ArgumentError, "Missing the required parameter 'id_document' when calling DocumentsApi.users_id_user_connections_id_connection_documents_id_document_delete"
2633
2613
  end
2634
2614
  # resource path
2635
- local_var_path = "/users/{id_user}/connections/{id_connection}/documents/{id_document}".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_document' + '}', id_document.to_s)
2615
+ local_var_path = '/users/{id_user}/connections/{id_connection}/documents/{id_document}'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_document' + '}', id_document.to_s)
2636
2616
 
2637
2617
  # query parameters
2638
2618
  query_params = {}
@@ -2663,7 +2643,6 @@ module BudgeaClient
2663
2643
  end
2664
2644
  return data, status_code, headers
2665
2645
  end
2666
-
2667
2646
  # Edit a document
2668
2647
  # Edit meta-data of a specific document.
2669
2648
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
@@ -2685,7 +2664,7 @@ module BudgeaClient
2685
2664
  # @return [Document]
2686
2665
  def users_id_user_connections_id_connection_documents_id_document_put(id_user, id_connection, id_document, opts = {})
2687
2666
  data, _status_code, _headers = users_id_user_connections_id_connection_documents_id_document_put_with_http_info(id_user, id_connection, id_document, opts)
2688
- return data
2667
+ data
2689
2668
  end
2690
2669
 
2691
2670
  # Edit a document
@@ -2709,7 +2688,7 @@ module BudgeaClient
2709
2688
  # @return [Array<(Document, Fixnum, Hash)>] Document data, response status code and response headers
2710
2689
  def users_id_user_connections_id_connection_documents_id_document_put_with_http_info(id_user, id_connection, id_document, opts = {})
2711
2690
  if @api_client.config.debugging
2712
- @api_client.config.logger.debug "Calling API: DocumentsApi.users_id_user_connections_id_connection_documents_id_document_put ..."
2691
+ @api_client.config.logger.debug 'Calling API: DocumentsApi.users_id_user_connections_id_connection_documents_id_document_put ...'
2713
2692
  end
2714
2693
  # verify the required parameter 'id_user' is set
2715
2694
  if @api_client.config.client_side_validation && id_user.nil?
@@ -2724,7 +2703,7 @@ module BudgeaClient
2724
2703
  fail ArgumentError, "Missing the required parameter 'id_document' when calling DocumentsApi.users_id_user_connections_id_connection_documents_id_document_put"
2725
2704
  end
2726
2705
  # resource path
2727
- local_var_path = "/users/{id_user}/connections/{id_connection}/documents/{id_document}".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_document' + '}', id_document.to_s)
2706
+ local_var_path = '/users/{id_user}/connections/{id_connection}/documents/{id_document}'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_document' + '}', id_document.to_s)
2728
2707
 
2729
2708
  # query parameters
2730
2709
  query_params = {}
@@ -2739,17 +2718,17 @@ module BudgeaClient
2739
2718
 
2740
2719
  # form parameters
2741
2720
  form_params = {}
2742
- form_params["id_type"] = opts[:'id_type'] if !opts[:'id_type'].nil?
2743
- form_params["id_category"] = opts[:'id_category'] if !opts[:'id_category'].nil?
2744
- form_params["date"] = opts[:'date'] if !opts[:'date'].nil?
2745
- form_params["duedate"] = opts[:'duedate'] if !opts[:'duedate'].nil?
2746
- form_params["total_amount"] = opts[:'total_amount'] if !opts[:'total_amount'].nil?
2747
- form_params["untaxed_amount"] = opts[:'untaxed_amount'] if !opts[:'untaxed_amount'].nil?
2748
- form_params["vat"] = opts[:'vat'] if !opts[:'vat'].nil?
2749
- form_params["income"] = opts[:'income'] if !opts[:'income'].nil?
2750
- form_params["readonly"] = opts[:'readonly'] if !opts[:'readonly'].nil?
2751
- form_params["file"] = opts[:'file'] if !opts[:'file'].nil?
2752
- form_params["name"] = opts[:'name'] if !opts[:'name'].nil?
2721
+ form_params['id_type'] = opts[:'id_type'] if !opts[:'id_type'].nil?
2722
+ form_params['id_category'] = opts[:'id_category'] if !opts[:'id_category'].nil?
2723
+ form_params['date'] = opts[:'date'] if !opts[:'date'].nil?
2724
+ form_params['duedate'] = opts[:'duedate'] if !opts[:'duedate'].nil?
2725
+ form_params['total_amount'] = opts[:'total_amount'] if !opts[:'total_amount'].nil?
2726
+ form_params['untaxed_amount'] = opts[:'untaxed_amount'] if !opts[:'untaxed_amount'].nil?
2727
+ form_params['vat'] = opts[:'vat'] if !opts[:'vat'].nil?
2728
+ form_params['income'] = opts[:'income'] if !opts[:'income'].nil?
2729
+ form_params['readonly'] = opts[:'readonly'] if !opts[:'readonly'].nil?
2730
+ form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
2731
+ form_params['name'] = opts[:'name'] if !opts[:'name'].nil?
2753
2732
 
2754
2733
  # http body (model)
2755
2734
  post_body = nil
@@ -2766,7 +2745,6 @@ module BudgeaClient
2766
2745
  end
2767
2746
  return data, status_code, headers
2768
2747
  end
2769
-
2770
2748
  # Add a new document
2771
2749
  # Add a new document<br><br>
2772
2750
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
@@ -2788,7 +2766,7 @@ module BudgeaClient
2788
2766
  # @return [Document]
2789
2767
  def users_id_user_connections_id_connection_documents_post(id_user, id_connection, date, duedate, opts = {})
2790
2768
  data, _status_code, _headers = users_id_user_connections_id_connection_documents_post_with_http_info(id_user, id_connection, date, duedate, opts)
2791
- return data
2769
+ data
2792
2770
  end
2793
2771
 
2794
2772
  # Add a new document
@@ -2812,7 +2790,7 @@ module BudgeaClient
2812
2790
  # @return [Array<(Document, Fixnum, Hash)>] Document data, response status code and response headers
2813
2791
  def users_id_user_connections_id_connection_documents_post_with_http_info(id_user, id_connection, date, duedate, opts = {})
2814
2792
  if @api_client.config.debugging
2815
- @api_client.config.logger.debug "Calling API: DocumentsApi.users_id_user_connections_id_connection_documents_post ..."
2793
+ @api_client.config.logger.debug 'Calling API: DocumentsApi.users_id_user_connections_id_connection_documents_post ...'
2816
2794
  end
2817
2795
  # verify the required parameter 'id_user' is set
2818
2796
  if @api_client.config.client_side_validation && id_user.nil?
@@ -2831,7 +2809,7 @@ module BudgeaClient
2831
2809
  fail ArgumentError, "Missing the required parameter 'duedate' when calling DocumentsApi.users_id_user_connections_id_connection_documents_post"
2832
2810
  end
2833
2811
  # resource path
2834
- local_var_path = "/users/{id_user}/connections/{id_connection}/documents".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s)
2812
+ local_var_path = '/users/{id_user}/connections/{id_connection}/documents'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s)
2835
2813
 
2836
2814
  # query parameters
2837
2815
  query_params = {}
@@ -2846,18 +2824,18 @@ module BudgeaClient
2846
2824
 
2847
2825
  # form parameters
2848
2826
  form_params = {}
2849
- form_params["date"] = date
2850
- form_params["duedate"] = duedate
2851
- form_params["id_type"] = opts[:'id_type'] if !opts[:'id_type'].nil?
2852
- form_params["id_category"] = opts[:'id_category'] if !opts[:'id_category'].nil?
2853
- form_params["total_amount"] = opts[:'total_amount'] if !opts[:'total_amount'].nil?
2854
- form_params["untaxed_amount"] = opts[:'untaxed_amount'] if !opts[:'untaxed_amount'].nil?
2855
- form_params["vat"] = opts[:'vat'] if !opts[:'vat'].nil?
2856
- form_params["income"] = opts[:'income'] if !opts[:'income'].nil?
2857
- form_params["readonly"] = opts[:'readonly'] if !opts[:'readonly'].nil?
2858
- form_params["file"] = opts[:'file'] if !opts[:'file'].nil?
2859
- form_params["id_ocr"] = opts[:'id_ocr'] if !opts[:'id_ocr'].nil?
2860
- form_params["name"] = opts[:'name'] if !opts[:'name'].nil?
2827
+ form_params['date'] = date
2828
+ form_params['duedate'] = duedate
2829
+ form_params['id_type'] = opts[:'id_type'] if !opts[:'id_type'].nil?
2830
+ form_params['id_category'] = opts[:'id_category'] if !opts[:'id_category'].nil?
2831
+ form_params['total_amount'] = opts[:'total_amount'] if !opts[:'total_amount'].nil?
2832
+ form_params['untaxed_amount'] = opts[:'untaxed_amount'] if !opts[:'untaxed_amount'].nil?
2833
+ form_params['vat'] = opts[:'vat'] if !opts[:'vat'].nil?
2834
+ form_params['income'] = opts[:'income'] if !opts[:'income'].nil?
2835
+ form_params['readonly'] = opts[:'readonly'] if !opts[:'readonly'].nil?
2836
+ form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
2837
+ form_params['id_ocr'] = opts[:'id_ocr'] if !opts[:'id_ocr'].nil?
2838
+ form_params['name'] = opts[:'name'] if !opts[:'name'].nil?
2861
2839
 
2862
2840
  # http body (model)
2863
2841
  post_body = nil
@@ -2874,7 +2852,6 @@ module BudgeaClient
2874
2852
  end
2875
2853
  return data, status_code, headers
2876
2854
  end
2877
-
2878
2855
  # Attach an existing document to a transaction or a transactions_cluster
2879
2856
  #
2880
2857
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
@@ -2885,7 +2862,7 @@ module BudgeaClient
2885
2862
  # @return [Document]
2886
2863
  def users_id_user_connections_id_connection_documents_put(id_user, id_connection, id_document, opts = {})
2887
2864
  data, _status_code, _headers = users_id_user_connections_id_connection_documents_put_with_http_info(id_user, id_connection, id_document, opts)
2888
- return data
2865
+ data
2889
2866
  end
2890
2867
 
2891
2868
  # Attach an existing document to a transaction or a transactions_cluster
@@ -2898,7 +2875,7 @@ module BudgeaClient
2898
2875
  # @return [Array<(Document, Fixnum, Hash)>] Document data, response status code and response headers
2899
2876
  def users_id_user_connections_id_connection_documents_put_with_http_info(id_user, id_connection, id_document, opts = {})
2900
2877
  if @api_client.config.debugging
2901
- @api_client.config.logger.debug "Calling API: DocumentsApi.users_id_user_connections_id_connection_documents_put ..."
2878
+ @api_client.config.logger.debug 'Calling API: DocumentsApi.users_id_user_connections_id_connection_documents_put ...'
2902
2879
  end
2903
2880
  # verify the required parameter 'id_user' is set
2904
2881
  if @api_client.config.client_side_validation && id_user.nil?
@@ -2913,7 +2890,7 @@ module BudgeaClient
2913
2890
  fail ArgumentError, "Missing the required parameter 'id_document' when calling DocumentsApi.users_id_user_connections_id_connection_documents_put"
2914
2891
  end
2915
2892
  # resource path
2916
- local_var_path = "/users/{id_user}/connections/{id_connection}/documents".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s)
2893
+ local_var_path = '/users/{id_user}/connections/{id_connection}/documents'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s)
2917
2894
 
2918
2895
  # query parameters
2919
2896
  query_params = {}
@@ -2928,7 +2905,7 @@ module BudgeaClient
2928
2905
 
2929
2906
  # form parameters
2930
2907
  form_params = {}
2931
- form_params["id_document"] = id_document
2908
+ form_params['id_document'] = id_document
2932
2909
 
2933
2910
  # http body (model)
2934
2911
  post_body = nil
@@ -2945,7 +2922,6 @@ module BudgeaClient
2945
2922
  end
2946
2923
  return data, status_code, headers
2947
2924
  end
2948
-
2949
2925
  # Delete documents
2950
2926
  #
2951
2927
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
@@ -2956,7 +2932,7 @@ module BudgeaClient
2956
2932
  # @return [Document]
2957
2933
  def users_id_user_connections_id_connection_subscriptions_id_subscription_documents_delete(id_user, id_connection, id_subscription, opts = {})
2958
2934
  data, _status_code, _headers = users_id_user_connections_id_connection_subscriptions_id_subscription_documents_delete_with_http_info(id_user, id_connection, id_subscription, opts)
2959
- return data
2935
+ data
2960
2936
  end
2961
2937
 
2962
2938
  # Delete documents
@@ -2969,7 +2945,7 @@ module BudgeaClient
2969
2945
  # @return [Array<(Document, Fixnum, Hash)>] Document data, response status code and response headers
2970
2946
  def users_id_user_connections_id_connection_subscriptions_id_subscription_documents_delete_with_http_info(id_user, id_connection, id_subscription, opts = {})
2971
2947
  if @api_client.config.debugging
2972
- @api_client.config.logger.debug "Calling API: DocumentsApi.users_id_user_connections_id_connection_subscriptions_id_subscription_documents_delete ..."
2948
+ @api_client.config.logger.debug 'Calling API: DocumentsApi.users_id_user_connections_id_connection_subscriptions_id_subscription_documents_delete ...'
2973
2949
  end
2974
2950
  # verify the required parameter 'id_user' is set
2975
2951
  if @api_client.config.client_side_validation && id_user.nil?
@@ -2984,7 +2960,7 @@ module BudgeaClient
2984
2960
  fail ArgumentError, "Missing the required parameter 'id_subscription' when calling DocumentsApi.users_id_user_connections_id_connection_subscriptions_id_subscription_documents_delete"
2985
2961
  end
2986
2962
  # resource path
2987
- local_var_path = "/users/{id_user}/connections/{id_connection}/subscriptions/{id_subscription}/documents".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_subscription' + '}', id_subscription.to_s)
2963
+ local_var_path = '/users/{id_user}/connections/{id_connection}/subscriptions/{id_subscription}/documents'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_subscription' + '}', id_subscription.to_s)
2988
2964
 
2989
2965
  # query parameters
2990
2966
  query_params = {}
@@ -3015,7 +2991,6 @@ module BudgeaClient
3015
2991
  end
3016
2992
  return data, status_code, headers
3017
2993
  end
3018
-
3019
2994
  # Get documents
3020
2995
  # Get list of documents<br><br>
3021
2996
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
@@ -3027,15 +3002,15 @@ module BudgeaClient
3027
3002
  # @option opts [Date] :min_date minimal (inclusive) date
3028
3003
  # @option opts [Date] :max_date maximum (inclusive) date
3029
3004
  # @option opts [Float] :min_amount minimal (inclusive) amount
3030
- # @option opts [Float] :max_amount maximumd (inclusive) amount
3005
+ # @option opts [Float] :max_amount maximum (inclusive) amount
3031
3006
  # @option opts [Float] :min_timestamp minimal (inclusive) timestamp
3032
- # @option opts [Float] :max_timestamp maximumd (inclusive) timestamp
3007
+ # @option opts [Float] :max_timestamp maximum (inclusive) timestamp
3033
3008
  # @option opts [Integer] :id_type filter with a document type
3034
3009
  # @option opts [String] :expand
3035
- # @return [InlineResponse20026]
3010
+ # @return [InlineResponse20028]
3036
3011
  def users_id_user_connections_id_connection_subscriptions_id_subscription_documents_get(id_user, id_connection, id_subscription, opts = {})
3037
3012
  data, _status_code, _headers = users_id_user_connections_id_connection_subscriptions_id_subscription_documents_get_with_http_info(id_user, id_connection, id_subscription, opts)
3038
- return data
3013
+ data
3039
3014
  end
3040
3015
 
3041
3016
  # Get documents
@@ -3049,15 +3024,15 @@ module BudgeaClient
3049
3024
  # @option opts [Date] :min_date minimal (inclusive) date
3050
3025
  # @option opts [Date] :max_date maximum (inclusive) date
3051
3026
  # @option opts [Float] :min_amount minimal (inclusive) amount
3052
- # @option opts [Float] :max_amount maximumd (inclusive) amount
3027
+ # @option opts [Float] :max_amount maximum (inclusive) amount
3053
3028
  # @option opts [Float] :min_timestamp minimal (inclusive) timestamp
3054
- # @option opts [Float] :max_timestamp maximumd (inclusive) timestamp
3029
+ # @option opts [Float] :max_timestamp maximum (inclusive) timestamp
3055
3030
  # @option opts [Integer] :id_type filter with a document type
3056
3031
  # @option opts [String] :expand
3057
- # @return [Array<(InlineResponse20026, Fixnum, Hash)>] InlineResponse20026 data, response status code and response headers
3032
+ # @return [Array<(InlineResponse20028, Fixnum, Hash)>] InlineResponse20028 data, response status code and response headers
3058
3033
  def users_id_user_connections_id_connection_subscriptions_id_subscription_documents_get_with_http_info(id_user, id_connection, id_subscription, opts = {})
3059
3034
  if @api_client.config.debugging
3060
- @api_client.config.logger.debug "Calling API: DocumentsApi.users_id_user_connections_id_connection_subscriptions_id_subscription_documents_get ..."
3035
+ @api_client.config.logger.debug 'Calling API: DocumentsApi.users_id_user_connections_id_connection_subscriptions_id_subscription_documents_get ...'
3061
3036
  end
3062
3037
  # verify the required parameter 'id_user' is set
3063
3038
  if @api_client.config.client_side_validation && id_user.nil?
@@ -3072,7 +3047,7 @@ module BudgeaClient
3072
3047
  fail ArgumentError, "Missing the required parameter 'id_subscription' when calling DocumentsApi.users_id_user_connections_id_connection_subscriptions_id_subscription_documents_get"
3073
3048
  end
3074
3049
  # resource path
3075
- local_var_path = "/users/{id_user}/connections/{id_connection}/subscriptions/{id_subscription}/documents".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_subscription' + '}', id_subscription.to_s)
3050
+ local_var_path = '/users/{id_user}/connections/{id_connection}/subscriptions/{id_subscription}/documents'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_subscription' + '}', id_subscription.to_s)
3076
3051
 
3077
3052
  # query parameters
3078
3053
  query_params = {}
@@ -3106,13 +3081,12 @@ module BudgeaClient
3106
3081
  :form_params => form_params,
3107
3082
  :body => post_body,
3108
3083
  :auth_names => auth_names,
3109
- :return_type => 'InlineResponse20026')
3084
+ :return_type => 'InlineResponse20028')
3110
3085
  if @api_client.config.debugging
3111
3086
  @api_client.config.logger.debug "API called: DocumentsApi#users_id_user_connections_id_connection_subscriptions_id_subscription_documents_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3112
3087
  end
3113
3088
  return data, status_code, headers
3114
3089
  end
3115
-
3116
3090
  # Delete a document
3117
3091
  #
3118
3092
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
@@ -3124,7 +3098,7 @@ module BudgeaClient
3124
3098
  # @return [Document]
3125
3099
  def users_id_user_connections_id_connection_subscriptions_id_subscription_documents_id_document_delete(id_user, id_connection, id_subscription, id_document, opts = {})
3126
3100
  data, _status_code, _headers = users_id_user_connections_id_connection_subscriptions_id_subscription_documents_id_document_delete_with_http_info(id_user, id_connection, id_subscription, id_document, opts)
3127
- return data
3101
+ data
3128
3102
  end
3129
3103
 
3130
3104
  # Delete a document
@@ -3138,7 +3112,7 @@ module BudgeaClient
3138
3112
  # @return [Array<(Document, Fixnum, Hash)>] Document data, response status code and response headers
3139
3113
  def users_id_user_connections_id_connection_subscriptions_id_subscription_documents_id_document_delete_with_http_info(id_user, id_connection, id_subscription, id_document, opts = {})
3140
3114
  if @api_client.config.debugging
3141
- @api_client.config.logger.debug "Calling API: DocumentsApi.users_id_user_connections_id_connection_subscriptions_id_subscription_documents_id_document_delete ..."
3115
+ @api_client.config.logger.debug 'Calling API: DocumentsApi.users_id_user_connections_id_connection_subscriptions_id_subscription_documents_id_document_delete ...'
3142
3116
  end
3143
3117
  # verify the required parameter 'id_user' is set
3144
3118
  if @api_client.config.client_side_validation && id_user.nil?
@@ -3157,7 +3131,7 @@ module BudgeaClient
3157
3131
  fail ArgumentError, "Missing the required parameter 'id_document' when calling DocumentsApi.users_id_user_connections_id_connection_subscriptions_id_subscription_documents_id_document_delete"
3158
3132
  end
3159
3133
  # resource path
3160
- local_var_path = "/users/{id_user}/connections/{id_connection}/subscriptions/{id_subscription}/documents/{id_document}".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_subscription' + '}', id_subscription.to_s).sub('{' + 'id_document' + '}', id_document.to_s)
3134
+ local_var_path = '/users/{id_user}/connections/{id_connection}/subscriptions/{id_subscription}/documents/{id_document}'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_subscription' + '}', id_subscription.to_s).sub('{' + 'id_document' + '}', id_document.to_s)
3161
3135
 
3162
3136
  # query parameters
3163
3137
  query_params = {}
@@ -3188,7 +3162,6 @@ module BudgeaClient
3188
3162
  end
3189
3163
  return data, status_code, headers
3190
3164
  end
3191
-
3192
3165
  # Edit a document
3193
3166
  # Edit meta-data of a specific document.
3194
3167
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
@@ -3211,7 +3184,7 @@ module BudgeaClient
3211
3184
  # @return [Document]
3212
3185
  def users_id_user_connections_id_connection_subscriptions_id_subscription_documents_id_document_put(id_user, id_connection, id_subscription, id_document, opts = {})
3213
3186
  data, _status_code, _headers = users_id_user_connections_id_connection_subscriptions_id_subscription_documents_id_document_put_with_http_info(id_user, id_connection, id_subscription, id_document, opts)
3214
- return data
3187
+ data
3215
3188
  end
3216
3189
 
3217
3190
  # Edit a document
@@ -3236,7 +3209,7 @@ module BudgeaClient
3236
3209
  # @return [Array<(Document, Fixnum, Hash)>] Document data, response status code and response headers
3237
3210
  def users_id_user_connections_id_connection_subscriptions_id_subscription_documents_id_document_put_with_http_info(id_user, id_connection, id_subscription, id_document, opts = {})
3238
3211
  if @api_client.config.debugging
3239
- @api_client.config.logger.debug "Calling API: DocumentsApi.users_id_user_connections_id_connection_subscriptions_id_subscription_documents_id_document_put ..."
3212
+ @api_client.config.logger.debug 'Calling API: DocumentsApi.users_id_user_connections_id_connection_subscriptions_id_subscription_documents_id_document_put ...'
3240
3213
  end
3241
3214
  # verify the required parameter 'id_user' is set
3242
3215
  if @api_client.config.client_side_validation && id_user.nil?
@@ -3255,7 +3228,7 @@ module BudgeaClient
3255
3228
  fail ArgumentError, "Missing the required parameter 'id_document' when calling DocumentsApi.users_id_user_connections_id_connection_subscriptions_id_subscription_documents_id_document_put"
3256
3229
  end
3257
3230
  # resource path
3258
- local_var_path = "/users/{id_user}/connections/{id_connection}/subscriptions/{id_subscription}/documents/{id_document}".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_subscription' + '}', id_subscription.to_s).sub('{' + 'id_document' + '}', id_document.to_s)
3231
+ local_var_path = '/users/{id_user}/connections/{id_connection}/subscriptions/{id_subscription}/documents/{id_document}'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_subscription' + '}', id_subscription.to_s).sub('{' + 'id_document' + '}', id_document.to_s)
3259
3232
 
3260
3233
  # query parameters
3261
3234
  query_params = {}
@@ -3270,17 +3243,17 @@ module BudgeaClient
3270
3243
 
3271
3244
  # form parameters
3272
3245
  form_params = {}
3273
- form_params["id_type"] = opts[:'id_type'] if !opts[:'id_type'].nil?
3274
- form_params["id_category"] = opts[:'id_category'] if !opts[:'id_category'].nil?
3275
- form_params["date"] = opts[:'date'] if !opts[:'date'].nil?
3276
- form_params["duedate"] = opts[:'duedate'] if !opts[:'duedate'].nil?
3277
- form_params["total_amount"] = opts[:'total_amount'] if !opts[:'total_amount'].nil?
3278
- form_params["untaxed_amount"] = opts[:'untaxed_amount'] if !opts[:'untaxed_amount'].nil?
3279
- form_params["vat"] = opts[:'vat'] if !opts[:'vat'].nil?
3280
- form_params["income"] = opts[:'income'] if !opts[:'income'].nil?
3281
- form_params["readonly"] = opts[:'readonly'] if !opts[:'readonly'].nil?
3282
- form_params["file"] = opts[:'file'] if !opts[:'file'].nil?
3283
- form_params["name"] = opts[:'name'] if !opts[:'name'].nil?
3246
+ form_params['id_type'] = opts[:'id_type'] if !opts[:'id_type'].nil?
3247
+ form_params['id_category'] = opts[:'id_category'] if !opts[:'id_category'].nil?
3248
+ form_params['date'] = opts[:'date'] if !opts[:'date'].nil?
3249
+ form_params['duedate'] = opts[:'duedate'] if !opts[:'duedate'].nil?
3250
+ form_params['total_amount'] = opts[:'total_amount'] if !opts[:'total_amount'].nil?
3251
+ form_params['untaxed_amount'] = opts[:'untaxed_amount'] if !opts[:'untaxed_amount'].nil?
3252
+ form_params['vat'] = opts[:'vat'] if !opts[:'vat'].nil?
3253
+ form_params['income'] = opts[:'income'] if !opts[:'income'].nil?
3254
+ form_params['readonly'] = opts[:'readonly'] if !opts[:'readonly'].nil?
3255
+ form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
3256
+ form_params['name'] = opts[:'name'] if !opts[:'name'].nil?
3284
3257
 
3285
3258
  # http body (model)
3286
3259
  post_body = nil
@@ -3297,7 +3270,6 @@ module BudgeaClient
3297
3270
  end
3298
3271
  return data, status_code, headers
3299
3272
  end
3300
-
3301
3273
  # Add a new document
3302
3274
  # Add a new document<br><br>
3303
3275
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
@@ -3320,7 +3292,7 @@ module BudgeaClient
3320
3292
  # @return [Document]
3321
3293
  def users_id_user_connections_id_connection_subscriptions_id_subscription_documents_post(id_user, id_connection, id_subscription, date, duedate, opts = {})
3322
3294
  data, _status_code, _headers = users_id_user_connections_id_connection_subscriptions_id_subscription_documents_post_with_http_info(id_user, id_connection, id_subscription, date, duedate, opts)
3323
- return data
3295
+ data
3324
3296
  end
3325
3297
 
3326
3298
  # Add a new document
@@ -3345,7 +3317,7 @@ module BudgeaClient
3345
3317
  # @return [Array<(Document, Fixnum, Hash)>] Document data, response status code and response headers
3346
3318
  def users_id_user_connections_id_connection_subscriptions_id_subscription_documents_post_with_http_info(id_user, id_connection, id_subscription, date, duedate, opts = {})
3347
3319
  if @api_client.config.debugging
3348
- @api_client.config.logger.debug "Calling API: DocumentsApi.users_id_user_connections_id_connection_subscriptions_id_subscription_documents_post ..."
3320
+ @api_client.config.logger.debug 'Calling API: DocumentsApi.users_id_user_connections_id_connection_subscriptions_id_subscription_documents_post ...'
3349
3321
  end
3350
3322
  # verify the required parameter 'id_user' is set
3351
3323
  if @api_client.config.client_side_validation && id_user.nil?
@@ -3368,7 +3340,7 @@ module BudgeaClient
3368
3340
  fail ArgumentError, "Missing the required parameter 'duedate' when calling DocumentsApi.users_id_user_connections_id_connection_subscriptions_id_subscription_documents_post"
3369
3341
  end
3370
3342
  # resource path
3371
- local_var_path = "/users/{id_user}/connections/{id_connection}/subscriptions/{id_subscription}/documents".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_subscription' + '}', id_subscription.to_s)
3343
+ local_var_path = '/users/{id_user}/connections/{id_connection}/subscriptions/{id_subscription}/documents'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_subscription' + '}', id_subscription.to_s)
3372
3344
 
3373
3345
  # query parameters
3374
3346
  query_params = {}
@@ -3383,18 +3355,18 @@ module BudgeaClient
3383
3355
 
3384
3356
  # form parameters
3385
3357
  form_params = {}
3386
- form_params["date"] = date
3387
- form_params["duedate"] = duedate
3388
- form_params["id_type"] = opts[:'id_type'] if !opts[:'id_type'].nil?
3389
- form_params["id_category"] = opts[:'id_category'] if !opts[:'id_category'].nil?
3390
- form_params["total_amount"] = opts[:'total_amount'] if !opts[:'total_amount'].nil?
3391
- form_params["untaxed_amount"] = opts[:'untaxed_amount'] if !opts[:'untaxed_amount'].nil?
3392
- form_params["vat"] = opts[:'vat'] if !opts[:'vat'].nil?
3393
- form_params["income"] = opts[:'income'] if !opts[:'income'].nil?
3394
- form_params["readonly"] = opts[:'readonly'] if !opts[:'readonly'].nil?
3395
- form_params["file"] = opts[:'file'] if !opts[:'file'].nil?
3396
- form_params["id_ocr"] = opts[:'id_ocr'] if !opts[:'id_ocr'].nil?
3397
- form_params["name"] = opts[:'name'] if !opts[:'name'].nil?
3358
+ form_params['date'] = date
3359
+ form_params['duedate'] = duedate
3360
+ form_params['id_type'] = opts[:'id_type'] if !opts[:'id_type'].nil?
3361
+ form_params['id_category'] = opts[:'id_category'] if !opts[:'id_category'].nil?
3362
+ form_params['total_amount'] = opts[:'total_amount'] if !opts[:'total_amount'].nil?
3363
+ form_params['untaxed_amount'] = opts[:'untaxed_amount'] if !opts[:'untaxed_amount'].nil?
3364
+ form_params['vat'] = opts[:'vat'] if !opts[:'vat'].nil?
3365
+ form_params['income'] = opts[:'income'] if !opts[:'income'].nil?
3366
+ form_params['readonly'] = opts[:'readonly'] if !opts[:'readonly'].nil?
3367
+ form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
3368
+ form_params['id_ocr'] = opts[:'id_ocr'] if !opts[:'id_ocr'].nil?
3369
+ form_params['name'] = opts[:'name'] if !opts[:'name'].nil?
3398
3370
 
3399
3371
  # http body (model)
3400
3372
  post_body = nil
@@ -3411,7 +3383,6 @@ module BudgeaClient
3411
3383
  end
3412
3384
  return data, status_code, headers
3413
3385
  end
3414
-
3415
3386
  # Attach an existing document to a transaction or a transactions_cluster
3416
3387
  #
3417
3388
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
@@ -3423,7 +3394,7 @@ module BudgeaClient
3423
3394
  # @return [Document]
3424
3395
  def users_id_user_connections_id_connection_subscriptions_id_subscription_documents_put(id_user, id_connection, id_subscription, id_document, opts = {})
3425
3396
  data, _status_code, _headers = users_id_user_connections_id_connection_subscriptions_id_subscription_documents_put_with_http_info(id_user, id_connection, id_subscription, id_document, opts)
3426
- return data
3397
+ data
3427
3398
  end
3428
3399
 
3429
3400
  # Attach an existing document to a transaction or a transactions_cluster
@@ -3437,7 +3408,7 @@ module BudgeaClient
3437
3408
  # @return [Array<(Document, Fixnum, Hash)>] Document data, response status code and response headers
3438
3409
  def users_id_user_connections_id_connection_subscriptions_id_subscription_documents_put_with_http_info(id_user, id_connection, id_subscription, id_document, opts = {})
3439
3410
  if @api_client.config.debugging
3440
- @api_client.config.logger.debug "Calling API: DocumentsApi.users_id_user_connections_id_connection_subscriptions_id_subscription_documents_put ..."
3411
+ @api_client.config.logger.debug 'Calling API: DocumentsApi.users_id_user_connections_id_connection_subscriptions_id_subscription_documents_put ...'
3441
3412
  end
3442
3413
  # verify the required parameter 'id_user' is set
3443
3414
  if @api_client.config.client_side_validation && id_user.nil?
@@ -3456,7 +3427,7 @@ module BudgeaClient
3456
3427
  fail ArgumentError, "Missing the required parameter 'id_document' when calling DocumentsApi.users_id_user_connections_id_connection_subscriptions_id_subscription_documents_put"
3457
3428
  end
3458
3429
  # resource path
3459
- local_var_path = "/users/{id_user}/connections/{id_connection}/subscriptions/{id_subscription}/documents".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_subscription' + '}', id_subscription.to_s)
3430
+ local_var_path = '/users/{id_user}/connections/{id_connection}/subscriptions/{id_subscription}/documents'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_subscription' + '}', id_subscription.to_s)
3460
3431
 
3461
3432
  # query parameters
3462
3433
  query_params = {}
@@ -3471,7 +3442,7 @@ module BudgeaClient
3471
3442
 
3472
3443
  # form parameters
3473
3444
  form_params = {}
3474
- form_params["id_document"] = id_document
3445
+ form_params['id_document'] = id_document
3475
3446
 
3476
3447
  # http body (model)
3477
3448
  post_body = nil
@@ -3488,7 +3459,6 @@ module BudgeaClient
3488
3459
  end
3489
3460
  return data, status_code, headers
3490
3461
  end
3491
-
3492
3462
  # Delete documents
3493
3463
  #
3494
3464
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
@@ -3499,7 +3469,7 @@ module BudgeaClient
3499
3469
  # @return [Document]
3500
3470
  def users_id_user_connections_id_connection_transactions_id_transaction_documents_delete(id_user, id_connection, id_transaction, opts = {})
3501
3471
  data, _status_code, _headers = users_id_user_connections_id_connection_transactions_id_transaction_documents_delete_with_http_info(id_user, id_connection, id_transaction, opts)
3502
- return data
3472
+ data
3503
3473
  end
3504
3474
 
3505
3475
  # Delete documents
@@ -3512,7 +3482,7 @@ module BudgeaClient
3512
3482
  # @return [Array<(Document, Fixnum, Hash)>] Document data, response status code and response headers
3513
3483
  def users_id_user_connections_id_connection_transactions_id_transaction_documents_delete_with_http_info(id_user, id_connection, id_transaction, opts = {})
3514
3484
  if @api_client.config.debugging
3515
- @api_client.config.logger.debug "Calling API: DocumentsApi.users_id_user_connections_id_connection_transactions_id_transaction_documents_delete ..."
3485
+ @api_client.config.logger.debug 'Calling API: DocumentsApi.users_id_user_connections_id_connection_transactions_id_transaction_documents_delete ...'
3516
3486
  end
3517
3487
  # verify the required parameter 'id_user' is set
3518
3488
  if @api_client.config.client_side_validation && id_user.nil?
@@ -3527,7 +3497,7 @@ module BudgeaClient
3527
3497
  fail ArgumentError, "Missing the required parameter 'id_transaction' when calling DocumentsApi.users_id_user_connections_id_connection_transactions_id_transaction_documents_delete"
3528
3498
  end
3529
3499
  # resource path
3530
- local_var_path = "/users/{id_user}/connections/{id_connection}/transactions/{id_transaction}/documents".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_transaction' + '}', id_transaction.to_s)
3500
+ local_var_path = '/users/{id_user}/connections/{id_connection}/transactions/{id_transaction}/documents'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_transaction' + '}', id_transaction.to_s)
3531
3501
 
3532
3502
  # query parameters
3533
3503
  query_params = {}
@@ -3558,7 +3528,6 @@ module BudgeaClient
3558
3528
  end
3559
3529
  return data, status_code, headers
3560
3530
  end
3561
-
3562
3531
  # Get documents
3563
3532
  # Get list of documents<br><br>
3564
3533
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
@@ -3570,15 +3539,15 @@ module BudgeaClient
3570
3539
  # @option opts [Date] :min_date minimal (inclusive) date
3571
3540
  # @option opts [Date] :max_date maximum (inclusive) date
3572
3541
  # @option opts [Float] :min_amount minimal (inclusive) amount
3573
- # @option opts [Float] :max_amount maximumd (inclusive) amount
3542
+ # @option opts [Float] :max_amount maximum (inclusive) amount
3574
3543
  # @option opts [Float] :min_timestamp minimal (inclusive) timestamp
3575
- # @option opts [Float] :max_timestamp maximumd (inclusive) timestamp
3544
+ # @option opts [Float] :max_timestamp maximum (inclusive) timestamp
3576
3545
  # @option opts [Integer] :id_type filter with a document type
3577
3546
  # @option opts [String] :expand
3578
- # @return [InlineResponse20026]
3547
+ # @return [InlineResponse20028]
3579
3548
  def users_id_user_connections_id_connection_transactions_id_transaction_documents_get(id_user, id_connection, id_transaction, opts = {})
3580
3549
  data, _status_code, _headers = users_id_user_connections_id_connection_transactions_id_transaction_documents_get_with_http_info(id_user, id_connection, id_transaction, opts)
3581
- return data
3550
+ data
3582
3551
  end
3583
3552
 
3584
3553
  # Get documents
@@ -3592,15 +3561,15 @@ module BudgeaClient
3592
3561
  # @option opts [Date] :min_date minimal (inclusive) date
3593
3562
  # @option opts [Date] :max_date maximum (inclusive) date
3594
3563
  # @option opts [Float] :min_amount minimal (inclusive) amount
3595
- # @option opts [Float] :max_amount maximumd (inclusive) amount
3564
+ # @option opts [Float] :max_amount maximum (inclusive) amount
3596
3565
  # @option opts [Float] :min_timestamp minimal (inclusive) timestamp
3597
- # @option opts [Float] :max_timestamp maximumd (inclusive) timestamp
3566
+ # @option opts [Float] :max_timestamp maximum (inclusive) timestamp
3598
3567
  # @option opts [Integer] :id_type filter with a document type
3599
3568
  # @option opts [String] :expand
3600
- # @return [Array<(InlineResponse20026, Fixnum, Hash)>] InlineResponse20026 data, response status code and response headers
3569
+ # @return [Array<(InlineResponse20028, Fixnum, Hash)>] InlineResponse20028 data, response status code and response headers
3601
3570
  def users_id_user_connections_id_connection_transactions_id_transaction_documents_get_with_http_info(id_user, id_connection, id_transaction, opts = {})
3602
3571
  if @api_client.config.debugging
3603
- @api_client.config.logger.debug "Calling API: DocumentsApi.users_id_user_connections_id_connection_transactions_id_transaction_documents_get ..."
3572
+ @api_client.config.logger.debug 'Calling API: DocumentsApi.users_id_user_connections_id_connection_transactions_id_transaction_documents_get ...'
3604
3573
  end
3605
3574
  # verify the required parameter 'id_user' is set
3606
3575
  if @api_client.config.client_side_validation && id_user.nil?
@@ -3615,7 +3584,7 @@ module BudgeaClient
3615
3584
  fail ArgumentError, "Missing the required parameter 'id_transaction' when calling DocumentsApi.users_id_user_connections_id_connection_transactions_id_transaction_documents_get"
3616
3585
  end
3617
3586
  # resource path
3618
- local_var_path = "/users/{id_user}/connections/{id_connection}/transactions/{id_transaction}/documents".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_transaction' + '}', id_transaction.to_s)
3587
+ local_var_path = '/users/{id_user}/connections/{id_connection}/transactions/{id_transaction}/documents'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_transaction' + '}', id_transaction.to_s)
3619
3588
 
3620
3589
  # query parameters
3621
3590
  query_params = {}
@@ -3649,13 +3618,12 @@ module BudgeaClient
3649
3618
  :form_params => form_params,
3650
3619
  :body => post_body,
3651
3620
  :auth_names => auth_names,
3652
- :return_type => 'InlineResponse20026')
3621
+ :return_type => 'InlineResponse20028')
3653
3622
  if @api_client.config.debugging
3654
3623
  @api_client.config.logger.debug "API called: DocumentsApi#users_id_user_connections_id_connection_transactions_id_transaction_documents_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3655
3624
  end
3656
3625
  return data, status_code, headers
3657
3626
  end
3658
-
3659
3627
  # Delete a document
3660
3628
  #
3661
3629
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
@@ -3667,7 +3635,7 @@ module BudgeaClient
3667
3635
  # @return [Document]
3668
3636
  def users_id_user_connections_id_connection_transactions_id_transaction_documents_id_document_delete(id_user, id_connection, id_transaction, id_document, opts = {})
3669
3637
  data, _status_code, _headers = users_id_user_connections_id_connection_transactions_id_transaction_documents_id_document_delete_with_http_info(id_user, id_connection, id_transaction, id_document, opts)
3670
- return data
3638
+ data
3671
3639
  end
3672
3640
 
3673
3641
  # Delete a document
@@ -3681,7 +3649,7 @@ module BudgeaClient
3681
3649
  # @return [Array<(Document, Fixnum, Hash)>] Document data, response status code and response headers
3682
3650
  def users_id_user_connections_id_connection_transactions_id_transaction_documents_id_document_delete_with_http_info(id_user, id_connection, id_transaction, id_document, opts = {})
3683
3651
  if @api_client.config.debugging
3684
- @api_client.config.logger.debug "Calling API: DocumentsApi.users_id_user_connections_id_connection_transactions_id_transaction_documents_id_document_delete ..."
3652
+ @api_client.config.logger.debug 'Calling API: DocumentsApi.users_id_user_connections_id_connection_transactions_id_transaction_documents_id_document_delete ...'
3685
3653
  end
3686
3654
  # verify the required parameter 'id_user' is set
3687
3655
  if @api_client.config.client_side_validation && id_user.nil?
@@ -3700,7 +3668,7 @@ module BudgeaClient
3700
3668
  fail ArgumentError, "Missing the required parameter 'id_document' when calling DocumentsApi.users_id_user_connections_id_connection_transactions_id_transaction_documents_id_document_delete"
3701
3669
  end
3702
3670
  # resource path
3703
- local_var_path = "/users/{id_user}/connections/{id_connection}/transactions/{id_transaction}/documents/{id_document}".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_transaction' + '}', id_transaction.to_s).sub('{' + 'id_document' + '}', id_document.to_s)
3671
+ local_var_path = '/users/{id_user}/connections/{id_connection}/transactions/{id_transaction}/documents/{id_document}'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_transaction' + '}', id_transaction.to_s).sub('{' + 'id_document' + '}', id_document.to_s)
3704
3672
 
3705
3673
  # query parameters
3706
3674
  query_params = {}
@@ -3731,7 +3699,6 @@ module BudgeaClient
3731
3699
  end
3732
3700
  return data, status_code, headers
3733
3701
  end
3734
-
3735
3702
  # Edit a document
3736
3703
  # Edit meta-data of a specific document.
3737
3704
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
@@ -3754,7 +3721,7 @@ module BudgeaClient
3754
3721
  # @return [Document]
3755
3722
  def users_id_user_connections_id_connection_transactions_id_transaction_documents_id_document_put(id_user, id_connection, id_transaction, id_document, opts = {})
3756
3723
  data, _status_code, _headers = users_id_user_connections_id_connection_transactions_id_transaction_documents_id_document_put_with_http_info(id_user, id_connection, id_transaction, id_document, opts)
3757
- return data
3724
+ data
3758
3725
  end
3759
3726
 
3760
3727
  # Edit a document
@@ -3779,7 +3746,7 @@ module BudgeaClient
3779
3746
  # @return [Array<(Document, Fixnum, Hash)>] Document data, response status code and response headers
3780
3747
  def users_id_user_connections_id_connection_transactions_id_transaction_documents_id_document_put_with_http_info(id_user, id_connection, id_transaction, id_document, opts = {})
3781
3748
  if @api_client.config.debugging
3782
- @api_client.config.logger.debug "Calling API: DocumentsApi.users_id_user_connections_id_connection_transactions_id_transaction_documents_id_document_put ..."
3749
+ @api_client.config.logger.debug 'Calling API: DocumentsApi.users_id_user_connections_id_connection_transactions_id_transaction_documents_id_document_put ...'
3783
3750
  end
3784
3751
  # verify the required parameter 'id_user' is set
3785
3752
  if @api_client.config.client_side_validation && id_user.nil?
@@ -3798,7 +3765,7 @@ module BudgeaClient
3798
3765
  fail ArgumentError, "Missing the required parameter 'id_document' when calling DocumentsApi.users_id_user_connections_id_connection_transactions_id_transaction_documents_id_document_put"
3799
3766
  end
3800
3767
  # resource path
3801
- local_var_path = "/users/{id_user}/connections/{id_connection}/transactions/{id_transaction}/documents/{id_document}".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_transaction' + '}', id_transaction.to_s).sub('{' + 'id_document' + '}', id_document.to_s)
3768
+ local_var_path = '/users/{id_user}/connections/{id_connection}/transactions/{id_transaction}/documents/{id_document}'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_transaction' + '}', id_transaction.to_s).sub('{' + 'id_document' + '}', id_document.to_s)
3802
3769
 
3803
3770
  # query parameters
3804
3771
  query_params = {}
@@ -3813,17 +3780,17 @@ module BudgeaClient
3813
3780
 
3814
3781
  # form parameters
3815
3782
  form_params = {}
3816
- form_params["id_type"] = opts[:'id_type'] if !opts[:'id_type'].nil?
3817
- form_params["id_category"] = opts[:'id_category'] if !opts[:'id_category'].nil?
3818
- form_params["date"] = opts[:'date'] if !opts[:'date'].nil?
3819
- form_params["duedate"] = opts[:'duedate'] if !opts[:'duedate'].nil?
3820
- form_params["total_amount"] = opts[:'total_amount'] if !opts[:'total_amount'].nil?
3821
- form_params["untaxed_amount"] = opts[:'untaxed_amount'] if !opts[:'untaxed_amount'].nil?
3822
- form_params["vat"] = opts[:'vat'] if !opts[:'vat'].nil?
3823
- form_params["income"] = opts[:'income'] if !opts[:'income'].nil?
3824
- form_params["readonly"] = opts[:'readonly'] if !opts[:'readonly'].nil?
3825
- form_params["file"] = opts[:'file'] if !opts[:'file'].nil?
3826
- form_params["name"] = opts[:'name'] if !opts[:'name'].nil?
3783
+ form_params['id_type'] = opts[:'id_type'] if !opts[:'id_type'].nil?
3784
+ form_params['id_category'] = opts[:'id_category'] if !opts[:'id_category'].nil?
3785
+ form_params['date'] = opts[:'date'] if !opts[:'date'].nil?
3786
+ form_params['duedate'] = opts[:'duedate'] if !opts[:'duedate'].nil?
3787
+ form_params['total_amount'] = opts[:'total_amount'] if !opts[:'total_amount'].nil?
3788
+ form_params['untaxed_amount'] = opts[:'untaxed_amount'] if !opts[:'untaxed_amount'].nil?
3789
+ form_params['vat'] = opts[:'vat'] if !opts[:'vat'].nil?
3790
+ form_params['income'] = opts[:'income'] if !opts[:'income'].nil?
3791
+ form_params['readonly'] = opts[:'readonly'] if !opts[:'readonly'].nil?
3792
+ form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
3793
+ form_params['name'] = opts[:'name'] if !opts[:'name'].nil?
3827
3794
 
3828
3795
  # http body (model)
3829
3796
  post_body = nil
@@ -3840,7 +3807,6 @@ module BudgeaClient
3840
3807
  end
3841
3808
  return data, status_code, headers
3842
3809
  end
3843
-
3844
3810
  # Add a new document
3845
3811
  # Add a new document<br><br>
3846
3812
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
@@ -3863,7 +3829,7 @@ module BudgeaClient
3863
3829
  # @return [Document]
3864
3830
  def users_id_user_connections_id_connection_transactions_id_transaction_documents_post(id_user, id_connection, id_transaction, date, duedate, opts = {})
3865
3831
  data, _status_code, _headers = users_id_user_connections_id_connection_transactions_id_transaction_documents_post_with_http_info(id_user, id_connection, id_transaction, date, duedate, opts)
3866
- return data
3832
+ data
3867
3833
  end
3868
3834
 
3869
3835
  # Add a new document
@@ -3888,7 +3854,7 @@ module BudgeaClient
3888
3854
  # @return [Array<(Document, Fixnum, Hash)>] Document data, response status code and response headers
3889
3855
  def users_id_user_connections_id_connection_transactions_id_transaction_documents_post_with_http_info(id_user, id_connection, id_transaction, date, duedate, opts = {})
3890
3856
  if @api_client.config.debugging
3891
- @api_client.config.logger.debug "Calling API: DocumentsApi.users_id_user_connections_id_connection_transactions_id_transaction_documents_post ..."
3857
+ @api_client.config.logger.debug 'Calling API: DocumentsApi.users_id_user_connections_id_connection_transactions_id_transaction_documents_post ...'
3892
3858
  end
3893
3859
  # verify the required parameter 'id_user' is set
3894
3860
  if @api_client.config.client_side_validation && id_user.nil?
@@ -3911,7 +3877,7 @@ module BudgeaClient
3911
3877
  fail ArgumentError, "Missing the required parameter 'duedate' when calling DocumentsApi.users_id_user_connections_id_connection_transactions_id_transaction_documents_post"
3912
3878
  end
3913
3879
  # resource path
3914
- local_var_path = "/users/{id_user}/connections/{id_connection}/transactions/{id_transaction}/documents".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_transaction' + '}', id_transaction.to_s)
3880
+ local_var_path = '/users/{id_user}/connections/{id_connection}/transactions/{id_transaction}/documents'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_transaction' + '}', id_transaction.to_s)
3915
3881
 
3916
3882
  # query parameters
3917
3883
  query_params = {}
@@ -3926,18 +3892,18 @@ module BudgeaClient
3926
3892
 
3927
3893
  # form parameters
3928
3894
  form_params = {}
3929
- form_params["date"] = date
3930
- form_params["duedate"] = duedate
3931
- form_params["id_type"] = opts[:'id_type'] if !opts[:'id_type'].nil?
3932
- form_params["id_category"] = opts[:'id_category'] if !opts[:'id_category'].nil?
3933
- form_params["total_amount"] = opts[:'total_amount'] if !opts[:'total_amount'].nil?
3934
- form_params["untaxed_amount"] = opts[:'untaxed_amount'] if !opts[:'untaxed_amount'].nil?
3935
- form_params["vat"] = opts[:'vat'] if !opts[:'vat'].nil?
3936
- form_params["income"] = opts[:'income'] if !opts[:'income'].nil?
3937
- form_params["readonly"] = opts[:'readonly'] if !opts[:'readonly'].nil?
3938
- form_params["file"] = opts[:'file'] if !opts[:'file'].nil?
3939
- form_params["id_ocr"] = opts[:'id_ocr'] if !opts[:'id_ocr'].nil?
3940
- form_params["name"] = opts[:'name'] if !opts[:'name'].nil?
3895
+ form_params['date'] = date
3896
+ form_params['duedate'] = duedate
3897
+ form_params['id_type'] = opts[:'id_type'] if !opts[:'id_type'].nil?
3898
+ form_params['id_category'] = opts[:'id_category'] if !opts[:'id_category'].nil?
3899
+ form_params['total_amount'] = opts[:'total_amount'] if !opts[:'total_amount'].nil?
3900
+ form_params['untaxed_amount'] = opts[:'untaxed_amount'] if !opts[:'untaxed_amount'].nil?
3901
+ form_params['vat'] = opts[:'vat'] if !opts[:'vat'].nil?
3902
+ form_params['income'] = opts[:'income'] if !opts[:'income'].nil?
3903
+ form_params['readonly'] = opts[:'readonly'] if !opts[:'readonly'].nil?
3904
+ form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
3905
+ form_params['id_ocr'] = opts[:'id_ocr'] if !opts[:'id_ocr'].nil?
3906
+ form_params['name'] = opts[:'name'] if !opts[:'name'].nil?
3941
3907
 
3942
3908
  # http body (model)
3943
3909
  post_body = nil
@@ -3954,7 +3920,6 @@ module BudgeaClient
3954
3920
  end
3955
3921
  return data, status_code, headers
3956
3922
  end
3957
-
3958
3923
  # Attach an existing document to a transaction or a transactions_cluster
3959
3924
  #
3960
3925
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
@@ -3966,7 +3931,7 @@ module BudgeaClient
3966
3931
  # @return [Document]
3967
3932
  def users_id_user_connections_id_connection_transactions_id_transaction_documents_put(id_user, id_connection, id_transaction, id_document, opts = {})
3968
3933
  data, _status_code, _headers = users_id_user_connections_id_connection_transactions_id_transaction_documents_put_with_http_info(id_user, id_connection, id_transaction, id_document, opts)
3969
- return data
3934
+ data
3970
3935
  end
3971
3936
 
3972
3937
  # Attach an existing document to a transaction or a transactions_cluster
@@ -3980,7 +3945,7 @@ module BudgeaClient
3980
3945
  # @return [Array<(Document, Fixnum, Hash)>] Document data, response status code and response headers
3981
3946
  def users_id_user_connections_id_connection_transactions_id_transaction_documents_put_with_http_info(id_user, id_connection, id_transaction, id_document, opts = {})
3982
3947
  if @api_client.config.debugging
3983
- @api_client.config.logger.debug "Calling API: DocumentsApi.users_id_user_connections_id_connection_transactions_id_transaction_documents_put ..."
3948
+ @api_client.config.logger.debug 'Calling API: DocumentsApi.users_id_user_connections_id_connection_transactions_id_transaction_documents_put ...'
3984
3949
  end
3985
3950
  # verify the required parameter 'id_user' is set
3986
3951
  if @api_client.config.client_side_validation && id_user.nil?
@@ -3999,7 +3964,7 @@ module BudgeaClient
3999
3964
  fail ArgumentError, "Missing the required parameter 'id_document' when calling DocumentsApi.users_id_user_connections_id_connection_transactions_id_transaction_documents_put"
4000
3965
  end
4001
3966
  # resource path
4002
- local_var_path = "/users/{id_user}/connections/{id_connection}/transactions/{id_transaction}/documents".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_transaction' + '}', id_transaction.to_s)
3967
+ local_var_path = '/users/{id_user}/connections/{id_connection}/transactions/{id_transaction}/documents'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_transaction' + '}', id_transaction.to_s)
4003
3968
 
4004
3969
  # query parameters
4005
3970
  query_params = {}
@@ -4014,7 +3979,7 @@ module BudgeaClient
4014
3979
 
4015
3980
  # form parameters
4016
3981
  form_params = {}
4017
- form_params["id_document"] = id_document
3982
+ form_params['id_document'] = id_document
4018
3983
 
4019
3984
  # http body (model)
4020
3985
  post_body = nil
@@ -4031,7 +3996,6 @@ module BudgeaClient
4031
3996
  end
4032
3997
  return data, status_code, headers
4033
3998
  end
4034
-
4035
3999
  # Delete documents
4036
4000
  #
4037
4001
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
@@ -4042,7 +4006,7 @@ module BudgeaClient
4042
4006
  # @return [Document]
4043
4007
  def users_id_user_connections_id_connection_transactionsclusters_id_transactions_cluster_documents_delete(id_user, id_connection, id_transactions_cluster, opts = {})
4044
4008
  data, _status_code, _headers = users_id_user_connections_id_connection_transactionsclusters_id_transactions_cluster_documents_delete_with_http_info(id_user, id_connection, id_transactions_cluster, opts)
4045
- return data
4009
+ data
4046
4010
  end
4047
4011
 
4048
4012
  # Delete documents
@@ -4055,7 +4019,7 @@ module BudgeaClient
4055
4019
  # @return [Array<(Document, Fixnum, Hash)>] Document data, response status code and response headers
4056
4020
  def users_id_user_connections_id_connection_transactionsclusters_id_transactions_cluster_documents_delete_with_http_info(id_user, id_connection, id_transactions_cluster, opts = {})
4057
4021
  if @api_client.config.debugging
4058
- @api_client.config.logger.debug "Calling API: DocumentsApi.users_id_user_connections_id_connection_transactionsclusters_id_transactions_cluster_documents_delete ..."
4022
+ @api_client.config.logger.debug 'Calling API: DocumentsApi.users_id_user_connections_id_connection_transactionsclusters_id_transactions_cluster_documents_delete ...'
4059
4023
  end
4060
4024
  # verify the required parameter 'id_user' is set
4061
4025
  if @api_client.config.client_side_validation && id_user.nil?
@@ -4070,7 +4034,7 @@ module BudgeaClient
4070
4034
  fail ArgumentError, "Missing the required parameter 'id_transactions_cluster' when calling DocumentsApi.users_id_user_connections_id_connection_transactionsclusters_id_transactions_cluster_documents_delete"
4071
4035
  end
4072
4036
  # resource path
4073
- local_var_path = "/users/{id_user}/connections/{id_connection}/transactionsclusters/{id_transactions_cluster}/documents".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_transactions_cluster' + '}', id_transactions_cluster.to_s)
4037
+ local_var_path = '/users/{id_user}/connections/{id_connection}/transactionsclusters/{id_transactions_cluster}/documents'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_transactions_cluster' + '}', id_transactions_cluster.to_s)
4074
4038
 
4075
4039
  # query parameters
4076
4040
  query_params = {}
@@ -4101,7 +4065,6 @@ module BudgeaClient
4101
4065
  end
4102
4066
  return data, status_code, headers
4103
4067
  end
4104
-
4105
4068
  # Get documents
4106
4069
  # Get list of documents<br><br>
4107
4070
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
@@ -4113,15 +4076,15 @@ module BudgeaClient
4113
4076
  # @option opts [Date] :min_date minimal (inclusive) date
4114
4077
  # @option opts [Date] :max_date maximum (inclusive) date
4115
4078
  # @option opts [Float] :min_amount minimal (inclusive) amount
4116
- # @option opts [Float] :max_amount maximumd (inclusive) amount
4079
+ # @option opts [Float] :max_amount maximum (inclusive) amount
4117
4080
  # @option opts [Float] :min_timestamp minimal (inclusive) timestamp
4118
- # @option opts [Float] :max_timestamp maximumd (inclusive) timestamp
4081
+ # @option opts [Float] :max_timestamp maximum (inclusive) timestamp
4119
4082
  # @option opts [Integer] :id_type filter with a document type
4120
4083
  # @option opts [String] :expand
4121
- # @return [InlineResponse20026]
4084
+ # @return [InlineResponse20028]
4122
4085
  def users_id_user_connections_id_connection_transactionsclusters_id_transactions_cluster_documents_get(id_user, id_connection, id_transactions_cluster, opts = {})
4123
4086
  data, _status_code, _headers = users_id_user_connections_id_connection_transactionsclusters_id_transactions_cluster_documents_get_with_http_info(id_user, id_connection, id_transactions_cluster, opts)
4124
- return data
4087
+ data
4125
4088
  end
4126
4089
 
4127
4090
  # Get documents
@@ -4135,15 +4098,15 @@ module BudgeaClient
4135
4098
  # @option opts [Date] :min_date minimal (inclusive) date
4136
4099
  # @option opts [Date] :max_date maximum (inclusive) date
4137
4100
  # @option opts [Float] :min_amount minimal (inclusive) amount
4138
- # @option opts [Float] :max_amount maximumd (inclusive) amount
4101
+ # @option opts [Float] :max_amount maximum (inclusive) amount
4139
4102
  # @option opts [Float] :min_timestamp minimal (inclusive) timestamp
4140
- # @option opts [Float] :max_timestamp maximumd (inclusive) timestamp
4103
+ # @option opts [Float] :max_timestamp maximum (inclusive) timestamp
4141
4104
  # @option opts [Integer] :id_type filter with a document type
4142
4105
  # @option opts [String] :expand
4143
- # @return [Array<(InlineResponse20026, Fixnum, Hash)>] InlineResponse20026 data, response status code and response headers
4106
+ # @return [Array<(InlineResponse20028, Fixnum, Hash)>] InlineResponse20028 data, response status code and response headers
4144
4107
  def users_id_user_connections_id_connection_transactionsclusters_id_transactions_cluster_documents_get_with_http_info(id_user, id_connection, id_transactions_cluster, opts = {})
4145
4108
  if @api_client.config.debugging
4146
- @api_client.config.logger.debug "Calling API: DocumentsApi.users_id_user_connections_id_connection_transactionsclusters_id_transactions_cluster_documents_get ..."
4109
+ @api_client.config.logger.debug 'Calling API: DocumentsApi.users_id_user_connections_id_connection_transactionsclusters_id_transactions_cluster_documents_get ...'
4147
4110
  end
4148
4111
  # verify the required parameter 'id_user' is set
4149
4112
  if @api_client.config.client_side_validation && id_user.nil?
@@ -4158,7 +4121,7 @@ module BudgeaClient
4158
4121
  fail ArgumentError, "Missing the required parameter 'id_transactions_cluster' when calling DocumentsApi.users_id_user_connections_id_connection_transactionsclusters_id_transactions_cluster_documents_get"
4159
4122
  end
4160
4123
  # resource path
4161
- local_var_path = "/users/{id_user}/connections/{id_connection}/transactionsclusters/{id_transactions_cluster}/documents".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_transactions_cluster' + '}', id_transactions_cluster.to_s)
4124
+ local_var_path = '/users/{id_user}/connections/{id_connection}/transactionsclusters/{id_transactions_cluster}/documents'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_transactions_cluster' + '}', id_transactions_cluster.to_s)
4162
4125
 
4163
4126
  # query parameters
4164
4127
  query_params = {}
@@ -4192,13 +4155,12 @@ module BudgeaClient
4192
4155
  :form_params => form_params,
4193
4156
  :body => post_body,
4194
4157
  :auth_names => auth_names,
4195
- :return_type => 'InlineResponse20026')
4158
+ :return_type => 'InlineResponse20028')
4196
4159
  if @api_client.config.debugging
4197
4160
  @api_client.config.logger.debug "API called: DocumentsApi#users_id_user_connections_id_connection_transactionsclusters_id_transactions_cluster_documents_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4198
4161
  end
4199
4162
  return data, status_code, headers
4200
4163
  end
4201
-
4202
4164
  # Delete a document
4203
4165
  #
4204
4166
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
@@ -4210,7 +4172,7 @@ module BudgeaClient
4210
4172
  # @return [Document]
4211
4173
  def users_id_user_connections_id_connection_transactionsclusters_id_transactions_cluster_documents_id_document_delete(id_user, id_connection, id_transactions_cluster, id_document, opts = {})
4212
4174
  data, _status_code, _headers = users_id_user_connections_id_connection_transactionsclusters_id_transactions_cluster_documents_id_document_delete_with_http_info(id_user, id_connection, id_transactions_cluster, id_document, opts)
4213
- return data
4175
+ data
4214
4176
  end
4215
4177
 
4216
4178
  # Delete a document
@@ -4224,7 +4186,7 @@ module BudgeaClient
4224
4186
  # @return [Array<(Document, Fixnum, Hash)>] Document data, response status code and response headers
4225
4187
  def users_id_user_connections_id_connection_transactionsclusters_id_transactions_cluster_documents_id_document_delete_with_http_info(id_user, id_connection, id_transactions_cluster, id_document, opts = {})
4226
4188
  if @api_client.config.debugging
4227
- @api_client.config.logger.debug "Calling API: DocumentsApi.users_id_user_connections_id_connection_transactionsclusters_id_transactions_cluster_documents_id_document_delete ..."
4189
+ @api_client.config.logger.debug 'Calling API: DocumentsApi.users_id_user_connections_id_connection_transactionsclusters_id_transactions_cluster_documents_id_document_delete ...'
4228
4190
  end
4229
4191
  # verify the required parameter 'id_user' is set
4230
4192
  if @api_client.config.client_side_validation && id_user.nil?
@@ -4243,7 +4205,7 @@ module BudgeaClient
4243
4205
  fail ArgumentError, "Missing the required parameter 'id_document' when calling DocumentsApi.users_id_user_connections_id_connection_transactionsclusters_id_transactions_cluster_documents_id_document_delete"
4244
4206
  end
4245
4207
  # resource path
4246
- local_var_path = "/users/{id_user}/connections/{id_connection}/transactionsclusters/{id_transactions_cluster}/documents/{id_document}".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_transactions_cluster' + '}', id_transactions_cluster.to_s).sub('{' + 'id_document' + '}', id_document.to_s)
4208
+ local_var_path = '/users/{id_user}/connections/{id_connection}/transactionsclusters/{id_transactions_cluster}/documents/{id_document}'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_transactions_cluster' + '}', id_transactions_cluster.to_s).sub('{' + 'id_document' + '}', id_document.to_s)
4247
4209
 
4248
4210
  # query parameters
4249
4211
  query_params = {}
@@ -4274,7 +4236,6 @@ module BudgeaClient
4274
4236
  end
4275
4237
  return data, status_code, headers
4276
4238
  end
4277
-
4278
4239
  # Edit a document
4279
4240
  # Edit meta-data of a specific document.
4280
4241
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
@@ -4297,7 +4258,7 @@ module BudgeaClient
4297
4258
  # @return [Document]
4298
4259
  def users_id_user_connections_id_connection_transactionsclusters_id_transactions_cluster_documents_id_document_put(id_user, id_connection, id_transactions_cluster, id_document, opts = {})
4299
4260
  data, _status_code, _headers = users_id_user_connections_id_connection_transactionsclusters_id_transactions_cluster_documents_id_document_put_with_http_info(id_user, id_connection, id_transactions_cluster, id_document, opts)
4300
- return data
4261
+ data
4301
4262
  end
4302
4263
 
4303
4264
  # Edit a document
@@ -4322,7 +4283,7 @@ module BudgeaClient
4322
4283
  # @return [Array<(Document, Fixnum, Hash)>] Document data, response status code and response headers
4323
4284
  def users_id_user_connections_id_connection_transactionsclusters_id_transactions_cluster_documents_id_document_put_with_http_info(id_user, id_connection, id_transactions_cluster, id_document, opts = {})
4324
4285
  if @api_client.config.debugging
4325
- @api_client.config.logger.debug "Calling API: DocumentsApi.users_id_user_connections_id_connection_transactionsclusters_id_transactions_cluster_documents_id_document_put ..."
4286
+ @api_client.config.logger.debug 'Calling API: DocumentsApi.users_id_user_connections_id_connection_transactionsclusters_id_transactions_cluster_documents_id_document_put ...'
4326
4287
  end
4327
4288
  # verify the required parameter 'id_user' is set
4328
4289
  if @api_client.config.client_side_validation && id_user.nil?
@@ -4341,7 +4302,7 @@ module BudgeaClient
4341
4302
  fail ArgumentError, "Missing the required parameter 'id_document' when calling DocumentsApi.users_id_user_connections_id_connection_transactionsclusters_id_transactions_cluster_documents_id_document_put"
4342
4303
  end
4343
4304
  # resource path
4344
- local_var_path = "/users/{id_user}/connections/{id_connection}/transactionsclusters/{id_transactions_cluster}/documents/{id_document}".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_transactions_cluster' + '}', id_transactions_cluster.to_s).sub('{' + 'id_document' + '}', id_document.to_s)
4305
+ local_var_path = '/users/{id_user}/connections/{id_connection}/transactionsclusters/{id_transactions_cluster}/documents/{id_document}'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_transactions_cluster' + '}', id_transactions_cluster.to_s).sub('{' + 'id_document' + '}', id_document.to_s)
4345
4306
 
4346
4307
  # query parameters
4347
4308
  query_params = {}
@@ -4356,17 +4317,17 @@ module BudgeaClient
4356
4317
 
4357
4318
  # form parameters
4358
4319
  form_params = {}
4359
- form_params["id_type"] = opts[:'id_type'] if !opts[:'id_type'].nil?
4360
- form_params["id_category"] = opts[:'id_category'] if !opts[:'id_category'].nil?
4361
- form_params["date"] = opts[:'date'] if !opts[:'date'].nil?
4362
- form_params["duedate"] = opts[:'duedate'] if !opts[:'duedate'].nil?
4363
- form_params["total_amount"] = opts[:'total_amount'] if !opts[:'total_amount'].nil?
4364
- form_params["untaxed_amount"] = opts[:'untaxed_amount'] if !opts[:'untaxed_amount'].nil?
4365
- form_params["vat"] = opts[:'vat'] if !opts[:'vat'].nil?
4366
- form_params["income"] = opts[:'income'] if !opts[:'income'].nil?
4367
- form_params["readonly"] = opts[:'readonly'] if !opts[:'readonly'].nil?
4368
- form_params["file"] = opts[:'file'] if !opts[:'file'].nil?
4369
- form_params["name"] = opts[:'name'] if !opts[:'name'].nil?
4320
+ form_params['id_type'] = opts[:'id_type'] if !opts[:'id_type'].nil?
4321
+ form_params['id_category'] = opts[:'id_category'] if !opts[:'id_category'].nil?
4322
+ form_params['date'] = opts[:'date'] if !opts[:'date'].nil?
4323
+ form_params['duedate'] = opts[:'duedate'] if !opts[:'duedate'].nil?
4324
+ form_params['total_amount'] = opts[:'total_amount'] if !opts[:'total_amount'].nil?
4325
+ form_params['untaxed_amount'] = opts[:'untaxed_amount'] if !opts[:'untaxed_amount'].nil?
4326
+ form_params['vat'] = opts[:'vat'] if !opts[:'vat'].nil?
4327
+ form_params['income'] = opts[:'income'] if !opts[:'income'].nil?
4328
+ form_params['readonly'] = opts[:'readonly'] if !opts[:'readonly'].nil?
4329
+ form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
4330
+ form_params['name'] = opts[:'name'] if !opts[:'name'].nil?
4370
4331
 
4371
4332
  # http body (model)
4372
4333
  post_body = nil
@@ -4383,7 +4344,6 @@ module BudgeaClient
4383
4344
  end
4384
4345
  return data, status_code, headers
4385
4346
  end
4386
-
4387
4347
  # Add a new document
4388
4348
  # Add a new document<br><br>
4389
4349
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
@@ -4406,7 +4366,7 @@ module BudgeaClient
4406
4366
  # @return [Document]
4407
4367
  def users_id_user_connections_id_connection_transactionsclusters_id_transactions_cluster_documents_post(id_user, id_connection, id_transactions_cluster, date, duedate, opts = {})
4408
4368
  data, _status_code, _headers = users_id_user_connections_id_connection_transactionsclusters_id_transactions_cluster_documents_post_with_http_info(id_user, id_connection, id_transactions_cluster, date, duedate, opts)
4409
- return data
4369
+ data
4410
4370
  end
4411
4371
 
4412
4372
  # Add a new document
@@ -4431,7 +4391,7 @@ module BudgeaClient
4431
4391
  # @return [Array<(Document, Fixnum, Hash)>] Document data, response status code and response headers
4432
4392
  def users_id_user_connections_id_connection_transactionsclusters_id_transactions_cluster_documents_post_with_http_info(id_user, id_connection, id_transactions_cluster, date, duedate, opts = {})
4433
4393
  if @api_client.config.debugging
4434
- @api_client.config.logger.debug "Calling API: DocumentsApi.users_id_user_connections_id_connection_transactionsclusters_id_transactions_cluster_documents_post ..."
4394
+ @api_client.config.logger.debug 'Calling API: DocumentsApi.users_id_user_connections_id_connection_transactionsclusters_id_transactions_cluster_documents_post ...'
4435
4395
  end
4436
4396
  # verify the required parameter 'id_user' is set
4437
4397
  if @api_client.config.client_side_validation && id_user.nil?
@@ -4454,7 +4414,7 @@ module BudgeaClient
4454
4414
  fail ArgumentError, "Missing the required parameter 'duedate' when calling DocumentsApi.users_id_user_connections_id_connection_transactionsclusters_id_transactions_cluster_documents_post"
4455
4415
  end
4456
4416
  # resource path
4457
- local_var_path = "/users/{id_user}/connections/{id_connection}/transactionsclusters/{id_transactions_cluster}/documents".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_transactions_cluster' + '}', id_transactions_cluster.to_s)
4417
+ local_var_path = '/users/{id_user}/connections/{id_connection}/transactionsclusters/{id_transactions_cluster}/documents'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_transactions_cluster' + '}', id_transactions_cluster.to_s)
4458
4418
 
4459
4419
  # query parameters
4460
4420
  query_params = {}
@@ -4469,18 +4429,18 @@ module BudgeaClient
4469
4429
 
4470
4430
  # form parameters
4471
4431
  form_params = {}
4472
- form_params["date"] = date
4473
- form_params["duedate"] = duedate
4474
- form_params["id_type"] = opts[:'id_type'] if !opts[:'id_type'].nil?
4475
- form_params["id_category"] = opts[:'id_category'] if !opts[:'id_category'].nil?
4476
- form_params["total_amount"] = opts[:'total_amount'] if !opts[:'total_amount'].nil?
4477
- form_params["untaxed_amount"] = opts[:'untaxed_amount'] if !opts[:'untaxed_amount'].nil?
4478
- form_params["vat"] = opts[:'vat'] if !opts[:'vat'].nil?
4479
- form_params["income"] = opts[:'income'] if !opts[:'income'].nil?
4480
- form_params["readonly"] = opts[:'readonly'] if !opts[:'readonly'].nil?
4481
- form_params["file"] = opts[:'file'] if !opts[:'file'].nil?
4482
- form_params["id_ocr"] = opts[:'id_ocr'] if !opts[:'id_ocr'].nil?
4483
- form_params["name"] = opts[:'name'] if !opts[:'name'].nil?
4432
+ form_params['date'] = date
4433
+ form_params['duedate'] = duedate
4434
+ form_params['id_type'] = opts[:'id_type'] if !opts[:'id_type'].nil?
4435
+ form_params['id_category'] = opts[:'id_category'] if !opts[:'id_category'].nil?
4436
+ form_params['total_amount'] = opts[:'total_amount'] if !opts[:'total_amount'].nil?
4437
+ form_params['untaxed_amount'] = opts[:'untaxed_amount'] if !opts[:'untaxed_amount'].nil?
4438
+ form_params['vat'] = opts[:'vat'] if !opts[:'vat'].nil?
4439
+ form_params['income'] = opts[:'income'] if !opts[:'income'].nil?
4440
+ form_params['readonly'] = opts[:'readonly'] if !opts[:'readonly'].nil?
4441
+ form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
4442
+ form_params['id_ocr'] = opts[:'id_ocr'] if !opts[:'id_ocr'].nil?
4443
+ form_params['name'] = opts[:'name'] if !opts[:'name'].nil?
4484
4444
 
4485
4445
  # http body (model)
4486
4446
  post_body = nil
@@ -4497,7 +4457,6 @@ module BudgeaClient
4497
4457
  end
4498
4458
  return data, status_code, headers
4499
4459
  end
4500
-
4501
4460
  # Attach an existing document to a transaction or a transactions_cluster
4502
4461
  #
4503
4462
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
@@ -4509,7 +4468,7 @@ module BudgeaClient
4509
4468
  # @return [Document]
4510
4469
  def users_id_user_connections_id_connection_transactionsclusters_id_transactions_cluster_documents_put(id_user, id_connection, id_transactions_cluster, id_document, opts = {})
4511
4470
  data, _status_code, _headers = users_id_user_connections_id_connection_transactionsclusters_id_transactions_cluster_documents_put_with_http_info(id_user, id_connection, id_transactions_cluster, id_document, opts)
4512
- return data
4471
+ data
4513
4472
  end
4514
4473
 
4515
4474
  # Attach an existing document to a transaction or a transactions_cluster
@@ -4523,7 +4482,7 @@ module BudgeaClient
4523
4482
  # @return [Array<(Document, Fixnum, Hash)>] Document data, response status code and response headers
4524
4483
  def users_id_user_connections_id_connection_transactionsclusters_id_transactions_cluster_documents_put_with_http_info(id_user, id_connection, id_transactions_cluster, id_document, opts = {})
4525
4484
  if @api_client.config.debugging
4526
- @api_client.config.logger.debug "Calling API: DocumentsApi.users_id_user_connections_id_connection_transactionsclusters_id_transactions_cluster_documents_put ..."
4485
+ @api_client.config.logger.debug 'Calling API: DocumentsApi.users_id_user_connections_id_connection_transactionsclusters_id_transactions_cluster_documents_put ...'
4527
4486
  end
4528
4487
  # verify the required parameter 'id_user' is set
4529
4488
  if @api_client.config.client_side_validation && id_user.nil?
@@ -4542,7 +4501,7 @@ module BudgeaClient
4542
4501
  fail ArgumentError, "Missing the required parameter 'id_document' when calling DocumentsApi.users_id_user_connections_id_connection_transactionsclusters_id_transactions_cluster_documents_put"
4543
4502
  end
4544
4503
  # resource path
4545
- local_var_path = "/users/{id_user}/connections/{id_connection}/transactionsclusters/{id_transactions_cluster}/documents".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_transactions_cluster' + '}', id_transactions_cluster.to_s)
4504
+ local_var_path = '/users/{id_user}/connections/{id_connection}/transactionsclusters/{id_transactions_cluster}/documents'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_transactions_cluster' + '}', id_transactions_cluster.to_s)
4546
4505
 
4547
4506
  # query parameters
4548
4507
  query_params = {}
@@ -4557,7 +4516,7 @@ module BudgeaClient
4557
4516
 
4558
4517
  # form parameters
4559
4518
  form_params = {}
4560
- form_params["id_document"] = id_document
4519
+ form_params['id_document'] = id_document
4561
4520
 
4562
4521
  # http body (model)
4563
4522
  post_body = nil
@@ -4574,7 +4533,6 @@ module BudgeaClient
4574
4533
  end
4575
4534
  return data, status_code, headers
4576
4535
  end
4577
-
4578
4536
  # Delete documents
4579
4537
  #
4580
4538
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
@@ -4583,7 +4541,7 @@ module BudgeaClient
4583
4541
  # @return [Document]
4584
4542
  def users_id_user_documents_delete(id_user, opts = {})
4585
4543
  data, _status_code, _headers = users_id_user_documents_delete_with_http_info(id_user, opts)
4586
- return data
4544
+ data
4587
4545
  end
4588
4546
 
4589
4547
  # Delete documents
@@ -4594,14 +4552,14 @@ module BudgeaClient
4594
4552
  # @return [Array<(Document, Fixnum, Hash)>] Document data, response status code and response headers
4595
4553
  def users_id_user_documents_delete_with_http_info(id_user, opts = {})
4596
4554
  if @api_client.config.debugging
4597
- @api_client.config.logger.debug "Calling API: DocumentsApi.users_id_user_documents_delete ..."
4555
+ @api_client.config.logger.debug 'Calling API: DocumentsApi.users_id_user_documents_delete ...'
4598
4556
  end
4599
4557
  # verify the required parameter 'id_user' is set
4600
4558
  if @api_client.config.client_side_validation && id_user.nil?
4601
4559
  fail ArgumentError, "Missing the required parameter 'id_user' when calling DocumentsApi.users_id_user_documents_delete"
4602
4560
  end
4603
4561
  # resource path
4604
- local_var_path = "/users/{id_user}/documents".sub('{' + 'id_user' + '}', id_user.to_s)
4562
+ local_var_path = '/users/{id_user}/documents'.sub('{' + 'id_user' + '}', id_user.to_s)
4605
4563
 
4606
4564
  # query parameters
4607
4565
  query_params = {}
@@ -4632,7 +4590,6 @@ module BudgeaClient
4632
4590
  end
4633
4591
  return data, status_code, headers
4634
4592
  end
4635
-
4636
4593
  # Get documents
4637
4594
  # Get list of documents<br><br>
4638
4595
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
@@ -4642,15 +4599,15 @@ module BudgeaClient
4642
4599
  # @option opts [Date] :min_date minimal (inclusive) date
4643
4600
  # @option opts [Date] :max_date maximum (inclusive) date
4644
4601
  # @option opts [Float] :min_amount minimal (inclusive) amount
4645
- # @option opts [Float] :max_amount maximumd (inclusive) amount
4602
+ # @option opts [Float] :max_amount maximum (inclusive) amount
4646
4603
  # @option opts [Float] :min_timestamp minimal (inclusive) timestamp
4647
- # @option opts [Float] :max_timestamp maximumd (inclusive) timestamp
4604
+ # @option opts [Float] :max_timestamp maximum (inclusive) timestamp
4648
4605
  # @option opts [Integer] :id_type filter with a document type
4649
4606
  # @option opts [String] :expand
4650
- # @return [InlineResponse20026]
4607
+ # @return [InlineResponse20028]
4651
4608
  def users_id_user_documents_get(id_user, opts = {})
4652
4609
  data, _status_code, _headers = users_id_user_documents_get_with_http_info(id_user, opts)
4653
- return data
4610
+ data
4654
4611
  end
4655
4612
 
4656
4613
  # Get documents
@@ -4662,22 +4619,22 @@ module BudgeaClient
4662
4619
  # @option opts [Date] :min_date minimal (inclusive) date
4663
4620
  # @option opts [Date] :max_date maximum (inclusive) date
4664
4621
  # @option opts [Float] :min_amount minimal (inclusive) amount
4665
- # @option opts [Float] :max_amount maximumd (inclusive) amount
4622
+ # @option opts [Float] :max_amount maximum (inclusive) amount
4666
4623
  # @option opts [Float] :min_timestamp minimal (inclusive) timestamp
4667
- # @option opts [Float] :max_timestamp maximumd (inclusive) timestamp
4624
+ # @option opts [Float] :max_timestamp maximum (inclusive) timestamp
4668
4625
  # @option opts [Integer] :id_type filter with a document type
4669
4626
  # @option opts [String] :expand
4670
- # @return [Array<(InlineResponse20026, Fixnum, Hash)>] InlineResponse20026 data, response status code and response headers
4627
+ # @return [Array<(InlineResponse20028, Fixnum, Hash)>] InlineResponse20028 data, response status code and response headers
4671
4628
  def users_id_user_documents_get_with_http_info(id_user, opts = {})
4672
4629
  if @api_client.config.debugging
4673
- @api_client.config.logger.debug "Calling API: DocumentsApi.users_id_user_documents_get ..."
4630
+ @api_client.config.logger.debug 'Calling API: DocumentsApi.users_id_user_documents_get ...'
4674
4631
  end
4675
4632
  # verify the required parameter 'id_user' is set
4676
4633
  if @api_client.config.client_side_validation && id_user.nil?
4677
4634
  fail ArgumentError, "Missing the required parameter 'id_user' when calling DocumentsApi.users_id_user_documents_get"
4678
4635
  end
4679
4636
  # resource path
4680
- local_var_path = "/users/{id_user}/documents".sub('{' + 'id_user' + '}', id_user.to_s)
4637
+ local_var_path = '/users/{id_user}/documents'.sub('{' + 'id_user' + '}', id_user.to_s)
4681
4638
 
4682
4639
  # query parameters
4683
4640
  query_params = {}
@@ -4711,13 +4668,12 @@ module BudgeaClient
4711
4668
  :form_params => form_params,
4712
4669
  :body => post_body,
4713
4670
  :auth_names => auth_names,
4714
- :return_type => 'InlineResponse20026')
4671
+ :return_type => 'InlineResponse20028')
4715
4672
  if @api_client.config.debugging
4716
4673
  @api_client.config.logger.debug "API called: DocumentsApi#users_id_user_documents_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4717
4674
  end
4718
4675
  return data, status_code, headers
4719
4676
  end
4720
-
4721
4677
  # Delete a document
4722
4678
  #
4723
4679
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
@@ -4727,7 +4683,7 @@ module BudgeaClient
4727
4683
  # @return [Document]
4728
4684
  def users_id_user_documents_id_document_delete(id_user, id_document, opts = {})
4729
4685
  data, _status_code, _headers = users_id_user_documents_id_document_delete_with_http_info(id_user, id_document, opts)
4730
- return data
4686
+ data
4731
4687
  end
4732
4688
 
4733
4689
  # Delete a document
@@ -4739,7 +4695,7 @@ module BudgeaClient
4739
4695
  # @return [Array<(Document, Fixnum, Hash)>] Document data, response status code and response headers
4740
4696
  def users_id_user_documents_id_document_delete_with_http_info(id_user, id_document, opts = {})
4741
4697
  if @api_client.config.debugging
4742
- @api_client.config.logger.debug "Calling API: DocumentsApi.users_id_user_documents_id_document_delete ..."
4698
+ @api_client.config.logger.debug 'Calling API: DocumentsApi.users_id_user_documents_id_document_delete ...'
4743
4699
  end
4744
4700
  # verify the required parameter 'id_user' is set
4745
4701
  if @api_client.config.client_side_validation && id_user.nil?
@@ -4750,7 +4706,7 @@ module BudgeaClient
4750
4706
  fail ArgumentError, "Missing the required parameter 'id_document' when calling DocumentsApi.users_id_user_documents_id_document_delete"
4751
4707
  end
4752
4708
  # resource path
4753
- local_var_path = "/users/{id_user}/documents/{id_document}".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_document' + '}', id_document.to_s)
4709
+ local_var_path = '/users/{id_user}/documents/{id_document}'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_document' + '}', id_document.to_s)
4754
4710
 
4755
4711
  # query parameters
4756
4712
  query_params = {}
@@ -4781,7 +4737,6 @@ module BudgeaClient
4781
4737
  end
4782
4738
  return data, status_code, headers
4783
4739
  end
4784
-
4785
4740
  # Edit a document
4786
4741
  # Edit meta-data of a specific document.
4787
4742
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
@@ -4802,7 +4757,7 @@ module BudgeaClient
4802
4757
  # @return [Document]
4803
4758
  def users_id_user_documents_id_document_put(id_user, id_document, opts = {})
4804
4759
  data, _status_code, _headers = users_id_user_documents_id_document_put_with_http_info(id_user, id_document, opts)
4805
- return data
4760
+ data
4806
4761
  end
4807
4762
 
4808
4763
  # Edit a document
@@ -4825,7 +4780,7 @@ module BudgeaClient
4825
4780
  # @return [Array<(Document, Fixnum, Hash)>] Document data, response status code and response headers
4826
4781
  def users_id_user_documents_id_document_put_with_http_info(id_user, id_document, opts = {})
4827
4782
  if @api_client.config.debugging
4828
- @api_client.config.logger.debug "Calling API: DocumentsApi.users_id_user_documents_id_document_put ..."
4783
+ @api_client.config.logger.debug 'Calling API: DocumentsApi.users_id_user_documents_id_document_put ...'
4829
4784
  end
4830
4785
  # verify the required parameter 'id_user' is set
4831
4786
  if @api_client.config.client_side_validation && id_user.nil?
@@ -4836,7 +4791,7 @@ module BudgeaClient
4836
4791
  fail ArgumentError, "Missing the required parameter 'id_document' when calling DocumentsApi.users_id_user_documents_id_document_put"
4837
4792
  end
4838
4793
  # resource path
4839
- local_var_path = "/users/{id_user}/documents/{id_document}".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_document' + '}', id_document.to_s)
4794
+ local_var_path = '/users/{id_user}/documents/{id_document}'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_document' + '}', id_document.to_s)
4840
4795
 
4841
4796
  # query parameters
4842
4797
  query_params = {}
@@ -4851,17 +4806,17 @@ module BudgeaClient
4851
4806
 
4852
4807
  # form parameters
4853
4808
  form_params = {}
4854
- form_params["id_type"] = opts[:'id_type'] if !opts[:'id_type'].nil?
4855
- form_params["id_category"] = opts[:'id_category'] if !opts[:'id_category'].nil?
4856
- form_params["date"] = opts[:'date'] if !opts[:'date'].nil?
4857
- form_params["duedate"] = opts[:'duedate'] if !opts[:'duedate'].nil?
4858
- form_params["total_amount"] = opts[:'total_amount'] if !opts[:'total_amount'].nil?
4859
- form_params["untaxed_amount"] = opts[:'untaxed_amount'] if !opts[:'untaxed_amount'].nil?
4860
- form_params["vat"] = opts[:'vat'] if !opts[:'vat'].nil?
4861
- form_params["income"] = opts[:'income'] if !opts[:'income'].nil?
4862
- form_params["readonly"] = opts[:'readonly'] if !opts[:'readonly'].nil?
4863
- form_params["file"] = opts[:'file'] if !opts[:'file'].nil?
4864
- form_params["name"] = opts[:'name'] if !opts[:'name'].nil?
4809
+ form_params['id_type'] = opts[:'id_type'] if !opts[:'id_type'].nil?
4810
+ form_params['id_category'] = opts[:'id_category'] if !opts[:'id_category'].nil?
4811
+ form_params['date'] = opts[:'date'] if !opts[:'date'].nil?
4812
+ form_params['duedate'] = opts[:'duedate'] if !opts[:'duedate'].nil?
4813
+ form_params['total_amount'] = opts[:'total_amount'] if !opts[:'total_amount'].nil?
4814
+ form_params['untaxed_amount'] = opts[:'untaxed_amount'] if !opts[:'untaxed_amount'].nil?
4815
+ form_params['vat'] = opts[:'vat'] if !opts[:'vat'].nil?
4816
+ form_params['income'] = opts[:'income'] if !opts[:'income'].nil?
4817
+ form_params['readonly'] = opts[:'readonly'] if !opts[:'readonly'].nil?
4818
+ form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
4819
+ form_params['name'] = opts[:'name'] if !opts[:'name'].nil?
4865
4820
 
4866
4821
  # http body (model)
4867
4822
  post_body = nil
@@ -4878,7 +4833,6 @@ module BudgeaClient
4878
4833
  end
4879
4834
  return data, status_code, headers
4880
4835
  end
4881
-
4882
4836
  # Add a new document
4883
4837
  # Add a new document<br><br>
4884
4838
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
@@ -4899,7 +4853,7 @@ module BudgeaClient
4899
4853
  # @return [Document]
4900
4854
  def users_id_user_documents_post(id_user, date, duedate, opts = {})
4901
4855
  data, _status_code, _headers = users_id_user_documents_post_with_http_info(id_user, date, duedate, opts)
4902
- return data
4856
+ data
4903
4857
  end
4904
4858
 
4905
4859
  # Add a new document
@@ -4922,7 +4876,7 @@ module BudgeaClient
4922
4876
  # @return [Array<(Document, Fixnum, Hash)>] Document data, response status code and response headers
4923
4877
  def users_id_user_documents_post_with_http_info(id_user, date, duedate, opts = {})
4924
4878
  if @api_client.config.debugging
4925
- @api_client.config.logger.debug "Calling API: DocumentsApi.users_id_user_documents_post ..."
4879
+ @api_client.config.logger.debug 'Calling API: DocumentsApi.users_id_user_documents_post ...'
4926
4880
  end
4927
4881
  # verify the required parameter 'id_user' is set
4928
4882
  if @api_client.config.client_side_validation && id_user.nil?
@@ -4937,7 +4891,7 @@ module BudgeaClient
4937
4891
  fail ArgumentError, "Missing the required parameter 'duedate' when calling DocumentsApi.users_id_user_documents_post"
4938
4892
  end
4939
4893
  # resource path
4940
- local_var_path = "/users/{id_user}/documents".sub('{' + 'id_user' + '}', id_user.to_s)
4894
+ local_var_path = '/users/{id_user}/documents'.sub('{' + 'id_user' + '}', id_user.to_s)
4941
4895
 
4942
4896
  # query parameters
4943
4897
  query_params = {}
@@ -4952,18 +4906,18 @@ module BudgeaClient
4952
4906
 
4953
4907
  # form parameters
4954
4908
  form_params = {}
4955
- form_params["date"] = date
4956
- form_params["duedate"] = duedate
4957
- form_params["id_type"] = opts[:'id_type'] if !opts[:'id_type'].nil?
4958
- form_params["id_category"] = opts[:'id_category'] if !opts[:'id_category'].nil?
4959
- form_params["total_amount"] = opts[:'total_amount'] if !opts[:'total_amount'].nil?
4960
- form_params["untaxed_amount"] = opts[:'untaxed_amount'] if !opts[:'untaxed_amount'].nil?
4961
- form_params["vat"] = opts[:'vat'] if !opts[:'vat'].nil?
4962
- form_params["income"] = opts[:'income'] if !opts[:'income'].nil?
4963
- form_params["readonly"] = opts[:'readonly'] if !opts[:'readonly'].nil?
4964
- form_params["file"] = opts[:'file'] if !opts[:'file'].nil?
4965
- form_params["id_ocr"] = opts[:'id_ocr'] if !opts[:'id_ocr'].nil?
4966
- form_params["name"] = opts[:'name'] if !opts[:'name'].nil?
4909
+ form_params['date'] = date
4910
+ form_params['duedate'] = duedate
4911
+ form_params['id_type'] = opts[:'id_type'] if !opts[:'id_type'].nil?
4912
+ form_params['id_category'] = opts[:'id_category'] if !opts[:'id_category'].nil?
4913
+ form_params['total_amount'] = opts[:'total_amount'] if !opts[:'total_amount'].nil?
4914
+ form_params['untaxed_amount'] = opts[:'untaxed_amount'] if !opts[:'untaxed_amount'].nil?
4915
+ form_params['vat'] = opts[:'vat'] if !opts[:'vat'].nil?
4916
+ form_params['income'] = opts[:'income'] if !opts[:'income'].nil?
4917
+ form_params['readonly'] = opts[:'readonly'] if !opts[:'readonly'].nil?
4918
+ form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
4919
+ form_params['id_ocr'] = opts[:'id_ocr'] if !opts[:'id_ocr'].nil?
4920
+ form_params['name'] = opts[:'name'] if !opts[:'name'].nil?
4967
4921
 
4968
4922
  # http body (model)
4969
4923
  post_body = nil
@@ -4980,7 +4934,6 @@ module BudgeaClient
4980
4934
  end
4981
4935
  return data, status_code, headers
4982
4936
  end
4983
-
4984
4937
  # Attach an existing document to a transaction or a transactions_cluster
4985
4938
  #
4986
4939
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
@@ -4990,7 +4943,7 @@ module BudgeaClient
4990
4943
  # @return [Document]
4991
4944
  def users_id_user_documents_put(id_user, id_document, opts = {})
4992
4945
  data, _status_code, _headers = users_id_user_documents_put_with_http_info(id_user, id_document, opts)
4993
- return data
4946
+ data
4994
4947
  end
4995
4948
 
4996
4949
  # Attach an existing document to a transaction or a transactions_cluster
@@ -5002,7 +4955,7 @@ module BudgeaClient
5002
4955
  # @return [Array<(Document, Fixnum, Hash)>] Document data, response status code and response headers
5003
4956
  def users_id_user_documents_put_with_http_info(id_user, id_document, opts = {})
5004
4957
  if @api_client.config.debugging
5005
- @api_client.config.logger.debug "Calling API: DocumentsApi.users_id_user_documents_put ..."
4958
+ @api_client.config.logger.debug 'Calling API: DocumentsApi.users_id_user_documents_put ...'
5006
4959
  end
5007
4960
  # verify the required parameter 'id_user' is set
5008
4961
  if @api_client.config.client_side_validation && id_user.nil?
@@ -5013,7 +4966,7 @@ module BudgeaClient
5013
4966
  fail ArgumentError, "Missing the required parameter 'id_document' when calling DocumentsApi.users_id_user_documents_put"
5014
4967
  end
5015
4968
  # resource path
5016
- local_var_path = "/users/{id_user}/documents".sub('{' + 'id_user' + '}', id_user.to_s)
4969
+ local_var_path = '/users/{id_user}/documents'.sub('{' + 'id_user' + '}', id_user.to_s)
5017
4970
 
5018
4971
  # query parameters
5019
4972
  query_params = {}
@@ -5028,7 +4981,7 @@ module BudgeaClient
5028
4981
 
5029
4982
  # form parameters
5030
4983
  form_params = {}
5031
- form_params["id_document"] = id_document
4984
+ form_params['id_document'] = id_document
5032
4985
 
5033
4986
  # http body (model)
5034
4987
  post_body = nil
@@ -5045,7 +4998,6 @@ module BudgeaClient
5045
4998
  end
5046
4999
  return data, status_code, headers
5047
5000
  end
5048
-
5049
5001
  # Post an image with OCR
5050
5002
  # Post an image and apply OCR on it to obtain found meta-data.<br><br>
5051
5003
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
@@ -5056,7 +5008,7 @@ module BudgeaClient
5056
5008
  # @return [nil]
5057
5009
  def users_id_user_ocr_post(id_user, file, opts = {})
5058
5010
  users_id_user_ocr_post_with_http_info(id_user, file, opts)
5059
- return nil
5011
+ nil
5060
5012
  end
5061
5013
 
5062
5014
  # Post an image with OCR
@@ -5069,7 +5021,7 @@ module BudgeaClient
5069
5021
  # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
5070
5022
  def users_id_user_ocr_post_with_http_info(id_user, file, opts = {})
5071
5023
  if @api_client.config.debugging
5072
- @api_client.config.logger.debug "Calling API: DocumentsApi.users_id_user_ocr_post ..."
5024
+ @api_client.config.logger.debug 'Calling API: DocumentsApi.users_id_user_ocr_post ...'
5073
5025
  end
5074
5026
  # verify the required parameter 'id_user' is set
5075
5027
  if @api_client.config.client_side_validation && id_user.nil?
@@ -5080,7 +5032,7 @@ module BudgeaClient
5080
5032
  fail ArgumentError, "Missing the required parameter 'file' when calling DocumentsApi.users_id_user_ocr_post"
5081
5033
  end
5082
5034
  # resource path
5083
- local_var_path = "/users/{id_user}/ocr".sub('{' + 'id_user' + '}', id_user.to_s)
5035
+ local_var_path = '/users/{id_user}/ocr'.sub('{' + 'id_user' + '}', id_user.to_s)
5084
5036
 
5085
5037
  # query parameters
5086
5038
  query_params = {}
@@ -5094,9 +5046,9 @@ module BudgeaClient
5094
5046
 
5095
5047
  # form parameters
5096
5048
  form_params = {}
5097
- form_params["file"] = file
5098
- form_params["id_transaction"] = opts[:'id_transaction'] if !opts[:'id_transaction'].nil?
5099
- form_params["name"] = opts[:'name'] if !opts[:'name'].nil?
5049
+ form_params['file'] = file
5050
+ form_params['id_transaction'] = opts[:'id_transaction'] if !opts[:'id_transaction'].nil?
5051
+ form_params['name'] = opts[:'name'] if !opts[:'name'].nil?
5100
5052
 
5101
5053
  # http body (model)
5102
5054
  post_body = nil
@@ -5112,7 +5064,6 @@ module BudgeaClient
5112
5064
  end
5113
5065
  return data, status_code, headers
5114
5066
  end
5115
-
5116
5067
  # Delete documents
5117
5068
  #
5118
5069
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
@@ -5122,7 +5073,7 @@ module BudgeaClient
5122
5073
  # @return [Document]
5123
5074
  def users_id_user_subscriptions_id_subscription_documents_delete(id_user, id_subscription, opts = {})
5124
5075
  data, _status_code, _headers = users_id_user_subscriptions_id_subscription_documents_delete_with_http_info(id_user, id_subscription, opts)
5125
- return data
5076
+ data
5126
5077
  end
5127
5078
 
5128
5079
  # Delete documents
@@ -5134,7 +5085,7 @@ module BudgeaClient
5134
5085
  # @return [Array<(Document, Fixnum, Hash)>] Document data, response status code and response headers
5135
5086
  def users_id_user_subscriptions_id_subscription_documents_delete_with_http_info(id_user, id_subscription, opts = {})
5136
5087
  if @api_client.config.debugging
5137
- @api_client.config.logger.debug "Calling API: DocumentsApi.users_id_user_subscriptions_id_subscription_documents_delete ..."
5088
+ @api_client.config.logger.debug 'Calling API: DocumentsApi.users_id_user_subscriptions_id_subscription_documents_delete ...'
5138
5089
  end
5139
5090
  # verify the required parameter 'id_user' is set
5140
5091
  if @api_client.config.client_side_validation && id_user.nil?
@@ -5145,7 +5096,7 @@ module BudgeaClient
5145
5096
  fail ArgumentError, "Missing the required parameter 'id_subscription' when calling DocumentsApi.users_id_user_subscriptions_id_subscription_documents_delete"
5146
5097
  end
5147
5098
  # resource path
5148
- local_var_path = "/users/{id_user}/subscriptions/{id_subscription}/documents".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_subscription' + '}', id_subscription.to_s)
5099
+ local_var_path = '/users/{id_user}/subscriptions/{id_subscription}/documents'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_subscription' + '}', id_subscription.to_s)
5149
5100
 
5150
5101
  # query parameters
5151
5102
  query_params = {}
@@ -5176,7 +5127,6 @@ module BudgeaClient
5176
5127
  end
5177
5128
  return data, status_code, headers
5178
5129
  end
5179
-
5180
5130
  # Get documents
5181
5131
  # Get list of documents<br><br>
5182
5132
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
@@ -5187,15 +5137,15 @@ module BudgeaClient
5187
5137
  # @option opts [Date] :min_date minimal (inclusive) date
5188
5138
  # @option opts [Date] :max_date maximum (inclusive) date
5189
5139
  # @option opts [Float] :min_amount minimal (inclusive) amount
5190
- # @option opts [Float] :max_amount maximumd (inclusive) amount
5140
+ # @option opts [Float] :max_amount maximum (inclusive) amount
5191
5141
  # @option opts [Float] :min_timestamp minimal (inclusive) timestamp
5192
- # @option opts [Float] :max_timestamp maximumd (inclusive) timestamp
5142
+ # @option opts [Float] :max_timestamp maximum (inclusive) timestamp
5193
5143
  # @option opts [Integer] :id_type filter with a document type
5194
5144
  # @option opts [String] :expand
5195
- # @return [InlineResponse20026]
5145
+ # @return [InlineResponse20028]
5196
5146
  def users_id_user_subscriptions_id_subscription_documents_get(id_user, id_subscription, opts = {})
5197
5147
  data, _status_code, _headers = users_id_user_subscriptions_id_subscription_documents_get_with_http_info(id_user, id_subscription, opts)
5198
- return data
5148
+ data
5199
5149
  end
5200
5150
 
5201
5151
  # Get documents
@@ -5208,15 +5158,15 @@ module BudgeaClient
5208
5158
  # @option opts [Date] :min_date minimal (inclusive) date
5209
5159
  # @option opts [Date] :max_date maximum (inclusive) date
5210
5160
  # @option opts [Float] :min_amount minimal (inclusive) amount
5211
- # @option opts [Float] :max_amount maximumd (inclusive) amount
5161
+ # @option opts [Float] :max_amount maximum (inclusive) amount
5212
5162
  # @option opts [Float] :min_timestamp minimal (inclusive) timestamp
5213
- # @option opts [Float] :max_timestamp maximumd (inclusive) timestamp
5163
+ # @option opts [Float] :max_timestamp maximum (inclusive) timestamp
5214
5164
  # @option opts [Integer] :id_type filter with a document type
5215
5165
  # @option opts [String] :expand
5216
- # @return [Array<(InlineResponse20026, Fixnum, Hash)>] InlineResponse20026 data, response status code and response headers
5166
+ # @return [Array<(InlineResponse20028, Fixnum, Hash)>] InlineResponse20028 data, response status code and response headers
5217
5167
  def users_id_user_subscriptions_id_subscription_documents_get_with_http_info(id_user, id_subscription, opts = {})
5218
5168
  if @api_client.config.debugging
5219
- @api_client.config.logger.debug "Calling API: DocumentsApi.users_id_user_subscriptions_id_subscription_documents_get ..."
5169
+ @api_client.config.logger.debug 'Calling API: DocumentsApi.users_id_user_subscriptions_id_subscription_documents_get ...'
5220
5170
  end
5221
5171
  # verify the required parameter 'id_user' is set
5222
5172
  if @api_client.config.client_side_validation && id_user.nil?
@@ -5227,7 +5177,7 @@ module BudgeaClient
5227
5177
  fail ArgumentError, "Missing the required parameter 'id_subscription' when calling DocumentsApi.users_id_user_subscriptions_id_subscription_documents_get"
5228
5178
  end
5229
5179
  # resource path
5230
- local_var_path = "/users/{id_user}/subscriptions/{id_subscription}/documents".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_subscription' + '}', id_subscription.to_s)
5180
+ local_var_path = '/users/{id_user}/subscriptions/{id_subscription}/documents'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_subscription' + '}', id_subscription.to_s)
5231
5181
 
5232
5182
  # query parameters
5233
5183
  query_params = {}
@@ -5261,13 +5211,12 @@ module BudgeaClient
5261
5211
  :form_params => form_params,
5262
5212
  :body => post_body,
5263
5213
  :auth_names => auth_names,
5264
- :return_type => 'InlineResponse20026')
5214
+ :return_type => 'InlineResponse20028')
5265
5215
  if @api_client.config.debugging
5266
5216
  @api_client.config.logger.debug "API called: DocumentsApi#users_id_user_subscriptions_id_subscription_documents_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
5267
5217
  end
5268
5218
  return data, status_code, headers
5269
5219
  end
5270
-
5271
5220
  # Delete a document
5272
5221
  #
5273
5222
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
@@ -5278,7 +5227,7 @@ module BudgeaClient
5278
5227
  # @return [Document]
5279
5228
  def users_id_user_subscriptions_id_subscription_documents_id_document_delete(id_user, id_subscription, id_document, opts = {})
5280
5229
  data, _status_code, _headers = users_id_user_subscriptions_id_subscription_documents_id_document_delete_with_http_info(id_user, id_subscription, id_document, opts)
5281
- return data
5230
+ data
5282
5231
  end
5283
5232
 
5284
5233
  # Delete a document
@@ -5291,7 +5240,7 @@ module BudgeaClient
5291
5240
  # @return [Array<(Document, Fixnum, Hash)>] Document data, response status code and response headers
5292
5241
  def users_id_user_subscriptions_id_subscription_documents_id_document_delete_with_http_info(id_user, id_subscription, id_document, opts = {})
5293
5242
  if @api_client.config.debugging
5294
- @api_client.config.logger.debug "Calling API: DocumentsApi.users_id_user_subscriptions_id_subscription_documents_id_document_delete ..."
5243
+ @api_client.config.logger.debug 'Calling API: DocumentsApi.users_id_user_subscriptions_id_subscription_documents_id_document_delete ...'
5295
5244
  end
5296
5245
  # verify the required parameter 'id_user' is set
5297
5246
  if @api_client.config.client_side_validation && id_user.nil?
@@ -5306,7 +5255,7 @@ module BudgeaClient
5306
5255
  fail ArgumentError, "Missing the required parameter 'id_document' when calling DocumentsApi.users_id_user_subscriptions_id_subscription_documents_id_document_delete"
5307
5256
  end
5308
5257
  # resource path
5309
- local_var_path = "/users/{id_user}/subscriptions/{id_subscription}/documents/{id_document}".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_subscription' + '}', id_subscription.to_s).sub('{' + 'id_document' + '}', id_document.to_s)
5258
+ local_var_path = '/users/{id_user}/subscriptions/{id_subscription}/documents/{id_document}'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_subscription' + '}', id_subscription.to_s).sub('{' + 'id_document' + '}', id_document.to_s)
5310
5259
 
5311
5260
  # query parameters
5312
5261
  query_params = {}
@@ -5337,7 +5286,6 @@ module BudgeaClient
5337
5286
  end
5338
5287
  return data, status_code, headers
5339
5288
  end
5340
-
5341
5289
  # Edit a document
5342
5290
  # Edit meta-data of a specific document.
5343
5291
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
@@ -5359,7 +5307,7 @@ module BudgeaClient
5359
5307
  # @return [Document]
5360
5308
  def users_id_user_subscriptions_id_subscription_documents_id_document_put(id_user, id_subscription, id_document, opts = {})
5361
5309
  data, _status_code, _headers = users_id_user_subscriptions_id_subscription_documents_id_document_put_with_http_info(id_user, id_subscription, id_document, opts)
5362
- return data
5310
+ data
5363
5311
  end
5364
5312
 
5365
5313
  # Edit a document
@@ -5383,7 +5331,7 @@ module BudgeaClient
5383
5331
  # @return [Array<(Document, Fixnum, Hash)>] Document data, response status code and response headers
5384
5332
  def users_id_user_subscriptions_id_subscription_documents_id_document_put_with_http_info(id_user, id_subscription, id_document, opts = {})
5385
5333
  if @api_client.config.debugging
5386
- @api_client.config.logger.debug "Calling API: DocumentsApi.users_id_user_subscriptions_id_subscription_documents_id_document_put ..."
5334
+ @api_client.config.logger.debug 'Calling API: DocumentsApi.users_id_user_subscriptions_id_subscription_documents_id_document_put ...'
5387
5335
  end
5388
5336
  # verify the required parameter 'id_user' is set
5389
5337
  if @api_client.config.client_side_validation && id_user.nil?
@@ -5398,7 +5346,7 @@ module BudgeaClient
5398
5346
  fail ArgumentError, "Missing the required parameter 'id_document' when calling DocumentsApi.users_id_user_subscriptions_id_subscription_documents_id_document_put"
5399
5347
  end
5400
5348
  # resource path
5401
- local_var_path = "/users/{id_user}/subscriptions/{id_subscription}/documents/{id_document}".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_subscription' + '}', id_subscription.to_s).sub('{' + 'id_document' + '}', id_document.to_s)
5349
+ local_var_path = '/users/{id_user}/subscriptions/{id_subscription}/documents/{id_document}'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_subscription' + '}', id_subscription.to_s).sub('{' + 'id_document' + '}', id_document.to_s)
5402
5350
 
5403
5351
  # query parameters
5404
5352
  query_params = {}
@@ -5413,17 +5361,17 @@ module BudgeaClient
5413
5361
 
5414
5362
  # form parameters
5415
5363
  form_params = {}
5416
- form_params["id_type"] = opts[:'id_type'] if !opts[:'id_type'].nil?
5417
- form_params["id_category"] = opts[:'id_category'] if !opts[:'id_category'].nil?
5418
- form_params["date"] = opts[:'date'] if !opts[:'date'].nil?
5419
- form_params["duedate"] = opts[:'duedate'] if !opts[:'duedate'].nil?
5420
- form_params["total_amount"] = opts[:'total_amount'] if !opts[:'total_amount'].nil?
5421
- form_params["untaxed_amount"] = opts[:'untaxed_amount'] if !opts[:'untaxed_amount'].nil?
5422
- form_params["vat"] = opts[:'vat'] if !opts[:'vat'].nil?
5423
- form_params["income"] = opts[:'income'] if !opts[:'income'].nil?
5424
- form_params["readonly"] = opts[:'readonly'] if !opts[:'readonly'].nil?
5425
- form_params["file"] = opts[:'file'] if !opts[:'file'].nil?
5426
- form_params["name"] = opts[:'name'] if !opts[:'name'].nil?
5364
+ form_params['id_type'] = opts[:'id_type'] if !opts[:'id_type'].nil?
5365
+ form_params['id_category'] = opts[:'id_category'] if !opts[:'id_category'].nil?
5366
+ form_params['date'] = opts[:'date'] if !opts[:'date'].nil?
5367
+ form_params['duedate'] = opts[:'duedate'] if !opts[:'duedate'].nil?
5368
+ form_params['total_amount'] = opts[:'total_amount'] if !opts[:'total_amount'].nil?
5369
+ form_params['untaxed_amount'] = opts[:'untaxed_amount'] if !opts[:'untaxed_amount'].nil?
5370
+ form_params['vat'] = opts[:'vat'] if !opts[:'vat'].nil?
5371
+ form_params['income'] = opts[:'income'] if !opts[:'income'].nil?
5372
+ form_params['readonly'] = opts[:'readonly'] if !opts[:'readonly'].nil?
5373
+ form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
5374
+ form_params['name'] = opts[:'name'] if !opts[:'name'].nil?
5427
5375
 
5428
5376
  # http body (model)
5429
5377
  post_body = nil
@@ -5440,7 +5388,6 @@ module BudgeaClient
5440
5388
  end
5441
5389
  return data, status_code, headers
5442
5390
  end
5443
-
5444
5391
  # Add a new document
5445
5392
  # Add a new document<br><br>
5446
5393
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
@@ -5462,7 +5409,7 @@ module BudgeaClient
5462
5409
  # @return [Document]
5463
5410
  def users_id_user_subscriptions_id_subscription_documents_post(id_user, id_subscription, date, duedate, opts = {})
5464
5411
  data, _status_code, _headers = users_id_user_subscriptions_id_subscription_documents_post_with_http_info(id_user, id_subscription, date, duedate, opts)
5465
- return data
5412
+ data
5466
5413
  end
5467
5414
 
5468
5415
  # Add a new document
@@ -5486,7 +5433,7 @@ module BudgeaClient
5486
5433
  # @return [Array<(Document, Fixnum, Hash)>] Document data, response status code and response headers
5487
5434
  def users_id_user_subscriptions_id_subscription_documents_post_with_http_info(id_user, id_subscription, date, duedate, opts = {})
5488
5435
  if @api_client.config.debugging
5489
- @api_client.config.logger.debug "Calling API: DocumentsApi.users_id_user_subscriptions_id_subscription_documents_post ..."
5436
+ @api_client.config.logger.debug 'Calling API: DocumentsApi.users_id_user_subscriptions_id_subscription_documents_post ...'
5490
5437
  end
5491
5438
  # verify the required parameter 'id_user' is set
5492
5439
  if @api_client.config.client_side_validation && id_user.nil?
@@ -5505,7 +5452,7 @@ module BudgeaClient
5505
5452
  fail ArgumentError, "Missing the required parameter 'duedate' when calling DocumentsApi.users_id_user_subscriptions_id_subscription_documents_post"
5506
5453
  end
5507
5454
  # resource path
5508
- local_var_path = "/users/{id_user}/subscriptions/{id_subscription}/documents".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_subscription' + '}', id_subscription.to_s)
5455
+ local_var_path = '/users/{id_user}/subscriptions/{id_subscription}/documents'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_subscription' + '}', id_subscription.to_s)
5509
5456
 
5510
5457
  # query parameters
5511
5458
  query_params = {}
@@ -5520,18 +5467,18 @@ module BudgeaClient
5520
5467
 
5521
5468
  # form parameters
5522
5469
  form_params = {}
5523
- form_params["date"] = date
5524
- form_params["duedate"] = duedate
5525
- form_params["id_type"] = opts[:'id_type'] if !opts[:'id_type'].nil?
5526
- form_params["id_category"] = opts[:'id_category'] if !opts[:'id_category'].nil?
5527
- form_params["total_amount"] = opts[:'total_amount'] if !opts[:'total_amount'].nil?
5528
- form_params["untaxed_amount"] = opts[:'untaxed_amount'] if !opts[:'untaxed_amount'].nil?
5529
- form_params["vat"] = opts[:'vat'] if !opts[:'vat'].nil?
5530
- form_params["income"] = opts[:'income'] if !opts[:'income'].nil?
5531
- form_params["readonly"] = opts[:'readonly'] if !opts[:'readonly'].nil?
5532
- form_params["file"] = opts[:'file'] if !opts[:'file'].nil?
5533
- form_params["id_ocr"] = opts[:'id_ocr'] if !opts[:'id_ocr'].nil?
5534
- form_params["name"] = opts[:'name'] if !opts[:'name'].nil?
5470
+ form_params['date'] = date
5471
+ form_params['duedate'] = duedate
5472
+ form_params['id_type'] = opts[:'id_type'] if !opts[:'id_type'].nil?
5473
+ form_params['id_category'] = opts[:'id_category'] if !opts[:'id_category'].nil?
5474
+ form_params['total_amount'] = opts[:'total_amount'] if !opts[:'total_amount'].nil?
5475
+ form_params['untaxed_amount'] = opts[:'untaxed_amount'] if !opts[:'untaxed_amount'].nil?
5476
+ form_params['vat'] = opts[:'vat'] if !opts[:'vat'].nil?
5477
+ form_params['income'] = opts[:'income'] if !opts[:'income'].nil?
5478
+ form_params['readonly'] = opts[:'readonly'] if !opts[:'readonly'].nil?
5479
+ form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
5480
+ form_params['id_ocr'] = opts[:'id_ocr'] if !opts[:'id_ocr'].nil?
5481
+ form_params['name'] = opts[:'name'] if !opts[:'name'].nil?
5535
5482
 
5536
5483
  # http body (model)
5537
5484
  post_body = nil
@@ -5548,7 +5495,6 @@ module BudgeaClient
5548
5495
  end
5549
5496
  return data, status_code, headers
5550
5497
  end
5551
-
5552
5498
  # Attach an existing document to a transaction or a transactions_cluster
5553
5499
  #
5554
5500
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
@@ -5559,7 +5505,7 @@ module BudgeaClient
5559
5505
  # @return [Document]
5560
5506
  def users_id_user_subscriptions_id_subscription_documents_put(id_user, id_subscription, id_document, opts = {})
5561
5507
  data, _status_code, _headers = users_id_user_subscriptions_id_subscription_documents_put_with_http_info(id_user, id_subscription, id_document, opts)
5562
- return data
5508
+ data
5563
5509
  end
5564
5510
 
5565
5511
  # Attach an existing document to a transaction or a transactions_cluster
@@ -5572,7 +5518,7 @@ module BudgeaClient
5572
5518
  # @return [Array<(Document, Fixnum, Hash)>] Document data, response status code and response headers
5573
5519
  def users_id_user_subscriptions_id_subscription_documents_put_with_http_info(id_user, id_subscription, id_document, opts = {})
5574
5520
  if @api_client.config.debugging
5575
- @api_client.config.logger.debug "Calling API: DocumentsApi.users_id_user_subscriptions_id_subscription_documents_put ..."
5521
+ @api_client.config.logger.debug 'Calling API: DocumentsApi.users_id_user_subscriptions_id_subscription_documents_put ...'
5576
5522
  end
5577
5523
  # verify the required parameter 'id_user' is set
5578
5524
  if @api_client.config.client_side_validation && id_user.nil?
@@ -5587,7 +5533,7 @@ module BudgeaClient
5587
5533
  fail ArgumentError, "Missing the required parameter 'id_document' when calling DocumentsApi.users_id_user_subscriptions_id_subscription_documents_put"
5588
5534
  end
5589
5535
  # resource path
5590
- local_var_path = "/users/{id_user}/subscriptions/{id_subscription}/documents".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_subscription' + '}', id_subscription.to_s)
5536
+ local_var_path = '/users/{id_user}/subscriptions/{id_subscription}/documents'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_subscription' + '}', id_subscription.to_s)
5591
5537
 
5592
5538
  # query parameters
5593
5539
  query_params = {}
@@ -5598,11 +5544,11 @@ module BudgeaClient
5598
5544
  # HTTP header 'Accept' (if needed)
5599
5545
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
5600
5546
  # HTTP header 'Content-Type'
5601
- header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
5547
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
5602
5548
 
5603
5549
  # form parameters
5604
5550
  form_params = {}
5605
- form_params["id_document"] = id_document
5551
+ form_params['id_document'] = id_document
5606
5552
 
5607
5553
  # http body (model)
5608
5554
  post_body = nil
@@ -5619,7 +5565,6 @@ module BudgeaClient
5619
5565
  end
5620
5566
  return data, status_code, headers
5621
5567
  end
5622
-
5623
5568
  # Delete documents
5624
5569
  #
5625
5570
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
@@ -5629,7 +5574,7 @@ module BudgeaClient
5629
5574
  # @return [Document]
5630
5575
  def users_id_user_transactions_id_transaction_documents_delete(id_user, id_transaction, opts = {})
5631
5576
  data, _status_code, _headers = users_id_user_transactions_id_transaction_documents_delete_with_http_info(id_user, id_transaction, opts)
5632
- return data
5577
+ data
5633
5578
  end
5634
5579
 
5635
5580
  # Delete documents
@@ -5641,7 +5586,7 @@ module BudgeaClient
5641
5586
  # @return [Array<(Document, Fixnum, Hash)>] Document data, response status code and response headers
5642
5587
  def users_id_user_transactions_id_transaction_documents_delete_with_http_info(id_user, id_transaction, opts = {})
5643
5588
  if @api_client.config.debugging
5644
- @api_client.config.logger.debug "Calling API: DocumentsApi.users_id_user_transactions_id_transaction_documents_delete ..."
5589
+ @api_client.config.logger.debug 'Calling API: DocumentsApi.users_id_user_transactions_id_transaction_documents_delete ...'
5645
5590
  end
5646
5591
  # verify the required parameter 'id_user' is set
5647
5592
  if @api_client.config.client_side_validation && id_user.nil?
@@ -5652,7 +5597,7 @@ module BudgeaClient
5652
5597
  fail ArgumentError, "Missing the required parameter 'id_transaction' when calling DocumentsApi.users_id_user_transactions_id_transaction_documents_delete"
5653
5598
  end
5654
5599
  # resource path
5655
- local_var_path = "/users/{id_user}/transactions/{id_transaction}/documents".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_transaction' + '}', id_transaction.to_s)
5600
+ local_var_path = '/users/{id_user}/transactions/{id_transaction}/documents'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_transaction' + '}', id_transaction.to_s)
5656
5601
 
5657
5602
  # query parameters
5658
5603
  query_params = {}
@@ -5683,7 +5628,6 @@ module BudgeaClient
5683
5628
  end
5684
5629
  return data, status_code, headers
5685
5630
  end
5686
-
5687
5631
  # Get documents
5688
5632
  # Get list of documents<br><br>
5689
5633
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
@@ -5694,15 +5638,15 @@ module BudgeaClient
5694
5638
  # @option opts [Date] :min_date minimal (inclusive) date
5695
5639
  # @option opts [Date] :max_date maximum (inclusive) date
5696
5640
  # @option opts [Float] :min_amount minimal (inclusive) amount
5697
- # @option opts [Float] :max_amount maximumd (inclusive) amount
5641
+ # @option opts [Float] :max_amount maximum (inclusive) amount
5698
5642
  # @option opts [Float] :min_timestamp minimal (inclusive) timestamp
5699
- # @option opts [Float] :max_timestamp maximumd (inclusive) timestamp
5643
+ # @option opts [Float] :max_timestamp maximum (inclusive) timestamp
5700
5644
  # @option opts [Integer] :id_type filter with a document type
5701
5645
  # @option opts [String] :expand
5702
- # @return [InlineResponse20026]
5646
+ # @return [InlineResponse20028]
5703
5647
  def users_id_user_transactions_id_transaction_documents_get(id_user, id_transaction, opts = {})
5704
5648
  data, _status_code, _headers = users_id_user_transactions_id_transaction_documents_get_with_http_info(id_user, id_transaction, opts)
5705
- return data
5649
+ data
5706
5650
  end
5707
5651
 
5708
5652
  # Get documents
@@ -5715,15 +5659,15 @@ module BudgeaClient
5715
5659
  # @option opts [Date] :min_date minimal (inclusive) date
5716
5660
  # @option opts [Date] :max_date maximum (inclusive) date
5717
5661
  # @option opts [Float] :min_amount minimal (inclusive) amount
5718
- # @option opts [Float] :max_amount maximumd (inclusive) amount
5662
+ # @option opts [Float] :max_amount maximum (inclusive) amount
5719
5663
  # @option opts [Float] :min_timestamp minimal (inclusive) timestamp
5720
- # @option opts [Float] :max_timestamp maximumd (inclusive) timestamp
5664
+ # @option opts [Float] :max_timestamp maximum (inclusive) timestamp
5721
5665
  # @option opts [Integer] :id_type filter with a document type
5722
5666
  # @option opts [String] :expand
5723
- # @return [Array<(InlineResponse20026, Fixnum, Hash)>] InlineResponse20026 data, response status code and response headers
5667
+ # @return [Array<(InlineResponse20028, Fixnum, Hash)>] InlineResponse20028 data, response status code and response headers
5724
5668
  def users_id_user_transactions_id_transaction_documents_get_with_http_info(id_user, id_transaction, opts = {})
5725
5669
  if @api_client.config.debugging
5726
- @api_client.config.logger.debug "Calling API: DocumentsApi.users_id_user_transactions_id_transaction_documents_get ..."
5670
+ @api_client.config.logger.debug 'Calling API: DocumentsApi.users_id_user_transactions_id_transaction_documents_get ...'
5727
5671
  end
5728
5672
  # verify the required parameter 'id_user' is set
5729
5673
  if @api_client.config.client_side_validation && id_user.nil?
@@ -5734,7 +5678,7 @@ module BudgeaClient
5734
5678
  fail ArgumentError, "Missing the required parameter 'id_transaction' when calling DocumentsApi.users_id_user_transactions_id_transaction_documents_get"
5735
5679
  end
5736
5680
  # resource path
5737
- local_var_path = "/users/{id_user}/transactions/{id_transaction}/documents".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_transaction' + '}', id_transaction.to_s)
5681
+ local_var_path = '/users/{id_user}/transactions/{id_transaction}/documents'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_transaction' + '}', id_transaction.to_s)
5738
5682
 
5739
5683
  # query parameters
5740
5684
  query_params = {}
@@ -5768,13 +5712,12 @@ module BudgeaClient
5768
5712
  :form_params => form_params,
5769
5713
  :body => post_body,
5770
5714
  :auth_names => auth_names,
5771
- :return_type => 'InlineResponse20026')
5715
+ :return_type => 'InlineResponse20028')
5772
5716
  if @api_client.config.debugging
5773
5717
  @api_client.config.logger.debug "API called: DocumentsApi#users_id_user_transactions_id_transaction_documents_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
5774
5718
  end
5775
5719
  return data, status_code, headers
5776
5720
  end
5777
-
5778
5721
  # Delete a document
5779
5722
  #
5780
5723
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
@@ -5785,7 +5728,7 @@ module BudgeaClient
5785
5728
  # @return [Document]
5786
5729
  def users_id_user_transactions_id_transaction_documents_id_document_delete(id_user, id_transaction, id_document, opts = {})
5787
5730
  data, _status_code, _headers = users_id_user_transactions_id_transaction_documents_id_document_delete_with_http_info(id_user, id_transaction, id_document, opts)
5788
- return data
5731
+ data
5789
5732
  end
5790
5733
 
5791
5734
  # Delete a document
@@ -5798,7 +5741,7 @@ module BudgeaClient
5798
5741
  # @return [Array<(Document, Fixnum, Hash)>] Document data, response status code and response headers
5799
5742
  def users_id_user_transactions_id_transaction_documents_id_document_delete_with_http_info(id_user, id_transaction, id_document, opts = {})
5800
5743
  if @api_client.config.debugging
5801
- @api_client.config.logger.debug "Calling API: DocumentsApi.users_id_user_transactions_id_transaction_documents_id_document_delete ..."
5744
+ @api_client.config.logger.debug 'Calling API: DocumentsApi.users_id_user_transactions_id_transaction_documents_id_document_delete ...'
5802
5745
  end
5803
5746
  # verify the required parameter 'id_user' is set
5804
5747
  if @api_client.config.client_side_validation && id_user.nil?
@@ -5813,7 +5756,7 @@ module BudgeaClient
5813
5756
  fail ArgumentError, "Missing the required parameter 'id_document' when calling DocumentsApi.users_id_user_transactions_id_transaction_documents_id_document_delete"
5814
5757
  end
5815
5758
  # resource path
5816
- local_var_path = "/users/{id_user}/transactions/{id_transaction}/documents/{id_document}".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_transaction' + '}', id_transaction.to_s).sub('{' + 'id_document' + '}', id_document.to_s)
5759
+ local_var_path = '/users/{id_user}/transactions/{id_transaction}/documents/{id_document}'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_transaction' + '}', id_transaction.to_s).sub('{' + 'id_document' + '}', id_document.to_s)
5817
5760
 
5818
5761
  # query parameters
5819
5762
  query_params = {}
@@ -5844,7 +5787,6 @@ module BudgeaClient
5844
5787
  end
5845
5788
  return data, status_code, headers
5846
5789
  end
5847
-
5848
5790
  # Edit a document
5849
5791
  # Edit meta-data of a specific document.
5850
5792
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
@@ -5866,7 +5808,7 @@ module BudgeaClient
5866
5808
  # @return [Document]
5867
5809
  def users_id_user_transactions_id_transaction_documents_id_document_put(id_user, id_transaction, id_document, opts = {})
5868
5810
  data, _status_code, _headers = users_id_user_transactions_id_transaction_documents_id_document_put_with_http_info(id_user, id_transaction, id_document, opts)
5869
- return data
5811
+ data
5870
5812
  end
5871
5813
 
5872
5814
  # Edit a document
@@ -5890,7 +5832,7 @@ module BudgeaClient
5890
5832
  # @return [Array<(Document, Fixnum, Hash)>] Document data, response status code and response headers
5891
5833
  def users_id_user_transactions_id_transaction_documents_id_document_put_with_http_info(id_user, id_transaction, id_document, opts = {})
5892
5834
  if @api_client.config.debugging
5893
- @api_client.config.logger.debug "Calling API: DocumentsApi.users_id_user_transactions_id_transaction_documents_id_document_put ..."
5835
+ @api_client.config.logger.debug 'Calling API: DocumentsApi.users_id_user_transactions_id_transaction_documents_id_document_put ...'
5894
5836
  end
5895
5837
  # verify the required parameter 'id_user' is set
5896
5838
  if @api_client.config.client_side_validation && id_user.nil?
@@ -5905,7 +5847,7 @@ module BudgeaClient
5905
5847
  fail ArgumentError, "Missing the required parameter 'id_document' when calling DocumentsApi.users_id_user_transactions_id_transaction_documents_id_document_put"
5906
5848
  end
5907
5849
  # resource path
5908
- local_var_path = "/users/{id_user}/transactions/{id_transaction}/documents/{id_document}".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_transaction' + '}', id_transaction.to_s).sub('{' + 'id_document' + '}', id_document.to_s)
5850
+ local_var_path = '/users/{id_user}/transactions/{id_transaction}/documents/{id_document}'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_transaction' + '}', id_transaction.to_s).sub('{' + 'id_document' + '}', id_document.to_s)
5909
5851
 
5910
5852
  # query parameters
5911
5853
  query_params = {}
@@ -5920,17 +5862,17 @@ module BudgeaClient
5920
5862
 
5921
5863
  # form parameters
5922
5864
  form_params = {}
5923
- form_params["id_type"] = opts[:'id_type'] if !opts[:'id_type'].nil?
5924
- form_params["id_category"] = opts[:'id_category'] if !opts[:'id_category'].nil?
5925
- form_params["date"] = opts[:'date'] if !opts[:'date'].nil?
5926
- form_params["duedate"] = opts[:'duedate'] if !opts[:'duedate'].nil?
5927
- form_params["total_amount"] = opts[:'total_amount'] if !opts[:'total_amount'].nil?
5928
- form_params["untaxed_amount"] = opts[:'untaxed_amount'] if !opts[:'untaxed_amount'].nil?
5929
- form_params["vat"] = opts[:'vat'] if !opts[:'vat'].nil?
5930
- form_params["income"] = opts[:'income'] if !opts[:'income'].nil?
5931
- form_params["readonly"] = opts[:'readonly'] if !opts[:'readonly'].nil?
5932
- form_params["file"] = opts[:'file'] if !opts[:'file'].nil?
5933
- form_params["name"] = opts[:'name'] if !opts[:'name'].nil?
5865
+ form_params['id_type'] = opts[:'id_type'] if !opts[:'id_type'].nil?
5866
+ form_params['id_category'] = opts[:'id_category'] if !opts[:'id_category'].nil?
5867
+ form_params['date'] = opts[:'date'] if !opts[:'date'].nil?
5868
+ form_params['duedate'] = opts[:'duedate'] if !opts[:'duedate'].nil?
5869
+ form_params['total_amount'] = opts[:'total_amount'] if !opts[:'total_amount'].nil?
5870
+ form_params['untaxed_amount'] = opts[:'untaxed_amount'] if !opts[:'untaxed_amount'].nil?
5871
+ form_params['vat'] = opts[:'vat'] if !opts[:'vat'].nil?
5872
+ form_params['income'] = opts[:'income'] if !opts[:'income'].nil?
5873
+ form_params['readonly'] = opts[:'readonly'] if !opts[:'readonly'].nil?
5874
+ form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
5875
+ form_params['name'] = opts[:'name'] if !opts[:'name'].nil?
5934
5876
 
5935
5877
  # http body (model)
5936
5878
  post_body = nil
@@ -5947,7 +5889,6 @@ module BudgeaClient
5947
5889
  end
5948
5890
  return data, status_code, headers
5949
5891
  end
5950
-
5951
5892
  # Add a new document
5952
5893
  # Add a new document<br><br>
5953
5894
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
@@ -5969,7 +5910,7 @@ module BudgeaClient
5969
5910
  # @return [Document]
5970
5911
  def users_id_user_transactions_id_transaction_documents_post(id_user, id_transaction, date, duedate, opts = {})
5971
5912
  data, _status_code, _headers = users_id_user_transactions_id_transaction_documents_post_with_http_info(id_user, id_transaction, date, duedate, opts)
5972
- return data
5913
+ data
5973
5914
  end
5974
5915
 
5975
5916
  # Add a new document
@@ -5993,7 +5934,7 @@ module BudgeaClient
5993
5934
  # @return [Array<(Document, Fixnum, Hash)>] Document data, response status code and response headers
5994
5935
  def users_id_user_transactions_id_transaction_documents_post_with_http_info(id_user, id_transaction, date, duedate, opts = {})
5995
5936
  if @api_client.config.debugging
5996
- @api_client.config.logger.debug "Calling API: DocumentsApi.users_id_user_transactions_id_transaction_documents_post ..."
5937
+ @api_client.config.logger.debug 'Calling API: DocumentsApi.users_id_user_transactions_id_transaction_documents_post ...'
5997
5938
  end
5998
5939
  # verify the required parameter 'id_user' is set
5999
5940
  if @api_client.config.client_side_validation && id_user.nil?
@@ -6012,7 +5953,7 @@ module BudgeaClient
6012
5953
  fail ArgumentError, "Missing the required parameter 'duedate' when calling DocumentsApi.users_id_user_transactions_id_transaction_documents_post"
6013
5954
  end
6014
5955
  # resource path
6015
- local_var_path = "/users/{id_user}/transactions/{id_transaction}/documents".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_transaction' + '}', id_transaction.to_s)
5956
+ local_var_path = '/users/{id_user}/transactions/{id_transaction}/documents'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_transaction' + '}', id_transaction.to_s)
6016
5957
 
6017
5958
  # query parameters
6018
5959
  query_params = {}
@@ -6027,18 +5968,18 @@ module BudgeaClient
6027
5968
 
6028
5969
  # form parameters
6029
5970
  form_params = {}
6030
- form_params["date"] = date
6031
- form_params["duedate"] = duedate
6032
- form_params["id_type"] = opts[:'id_type'] if !opts[:'id_type'].nil?
6033
- form_params["id_category"] = opts[:'id_category'] if !opts[:'id_category'].nil?
6034
- form_params["total_amount"] = opts[:'total_amount'] if !opts[:'total_amount'].nil?
6035
- form_params["untaxed_amount"] = opts[:'untaxed_amount'] if !opts[:'untaxed_amount'].nil?
6036
- form_params["vat"] = opts[:'vat'] if !opts[:'vat'].nil?
6037
- form_params["income"] = opts[:'income'] if !opts[:'income'].nil?
6038
- form_params["readonly"] = opts[:'readonly'] if !opts[:'readonly'].nil?
6039
- form_params["file"] = opts[:'file'] if !opts[:'file'].nil?
6040
- form_params["id_ocr"] = opts[:'id_ocr'] if !opts[:'id_ocr'].nil?
6041
- form_params["name"] = opts[:'name'] if !opts[:'name'].nil?
5971
+ form_params['date'] = date
5972
+ form_params['duedate'] = duedate
5973
+ form_params['id_type'] = opts[:'id_type'] if !opts[:'id_type'].nil?
5974
+ form_params['id_category'] = opts[:'id_category'] if !opts[:'id_category'].nil?
5975
+ form_params['total_amount'] = opts[:'total_amount'] if !opts[:'total_amount'].nil?
5976
+ form_params['untaxed_amount'] = opts[:'untaxed_amount'] if !opts[:'untaxed_amount'].nil?
5977
+ form_params['vat'] = opts[:'vat'] if !opts[:'vat'].nil?
5978
+ form_params['income'] = opts[:'income'] if !opts[:'income'].nil?
5979
+ form_params['readonly'] = opts[:'readonly'] if !opts[:'readonly'].nil?
5980
+ form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
5981
+ form_params['id_ocr'] = opts[:'id_ocr'] if !opts[:'id_ocr'].nil?
5982
+ form_params['name'] = opts[:'name'] if !opts[:'name'].nil?
6042
5983
 
6043
5984
  # http body (model)
6044
5985
  post_body = nil
@@ -6055,7 +5996,6 @@ module BudgeaClient
6055
5996
  end
6056
5997
  return data, status_code, headers
6057
5998
  end
6058
-
6059
5999
  # Attach an existing document to a transaction or a transactions_cluster
6060
6000
  #
6061
6001
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
@@ -6066,7 +6006,7 @@ module BudgeaClient
6066
6006
  # @return [Document]
6067
6007
  def users_id_user_transactions_id_transaction_documents_put(id_user, id_transaction, id_document, opts = {})
6068
6008
  data, _status_code, _headers = users_id_user_transactions_id_transaction_documents_put_with_http_info(id_user, id_transaction, id_document, opts)
6069
- return data
6009
+ data
6070
6010
  end
6071
6011
 
6072
6012
  # Attach an existing document to a transaction or a transactions_cluster
@@ -6079,7 +6019,7 @@ module BudgeaClient
6079
6019
  # @return [Array<(Document, Fixnum, Hash)>] Document data, response status code and response headers
6080
6020
  def users_id_user_transactions_id_transaction_documents_put_with_http_info(id_user, id_transaction, id_document, opts = {})
6081
6021
  if @api_client.config.debugging
6082
- @api_client.config.logger.debug "Calling API: DocumentsApi.users_id_user_transactions_id_transaction_documents_put ..."
6022
+ @api_client.config.logger.debug 'Calling API: DocumentsApi.users_id_user_transactions_id_transaction_documents_put ...'
6083
6023
  end
6084
6024
  # verify the required parameter 'id_user' is set
6085
6025
  if @api_client.config.client_side_validation && id_user.nil?
@@ -6094,7 +6034,7 @@ module BudgeaClient
6094
6034
  fail ArgumentError, "Missing the required parameter 'id_document' when calling DocumentsApi.users_id_user_transactions_id_transaction_documents_put"
6095
6035
  end
6096
6036
  # resource path
6097
- local_var_path = "/users/{id_user}/transactions/{id_transaction}/documents".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_transaction' + '}', id_transaction.to_s)
6037
+ local_var_path = '/users/{id_user}/transactions/{id_transaction}/documents'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_transaction' + '}', id_transaction.to_s)
6098
6038
 
6099
6039
  # query parameters
6100
6040
  query_params = {}
@@ -6105,11 +6045,11 @@ module BudgeaClient
6105
6045
  # HTTP header 'Accept' (if needed)
6106
6046
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
6107
6047
  # HTTP header 'Content-Type'
6108
- header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
6048
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
6109
6049
 
6110
6050
  # form parameters
6111
6051
  form_params = {}
6112
- form_params["id_document"] = id_document
6052
+ form_params['id_document'] = id_document
6113
6053
 
6114
6054
  # http body (model)
6115
6055
  post_body = nil
@@ -6126,7 +6066,6 @@ module BudgeaClient
6126
6066
  end
6127
6067
  return data, status_code, headers
6128
6068
  end
6129
-
6130
6069
  # Delete documents
6131
6070
  #
6132
6071
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
@@ -6136,7 +6075,7 @@ module BudgeaClient
6136
6075
  # @return [Document]
6137
6076
  def users_id_user_transactionsclusters_id_transactions_cluster_documents_delete(id_user, id_transactions_cluster, opts = {})
6138
6077
  data, _status_code, _headers = users_id_user_transactionsclusters_id_transactions_cluster_documents_delete_with_http_info(id_user, id_transactions_cluster, opts)
6139
- return data
6078
+ data
6140
6079
  end
6141
6080
 
6142
6081
  # Delete documents
@@ -6148,7 +6087,7 @@ module BudgeaClient
6148
6087
  # @return [Array<(Document, Fixnum, Hash)>] Document data, response status code and response headers
6149
6088
  def users_id_user_transactionsclusters_id_transactions_cluster_documents_delete_with_http_info(id_user, id_transactions_cluster, opts = {})
6150
6089
  if @api_client.config.debugging
6151
- @api_client.config.logger.debug "Calling API: DocumentsApi.users_id_user_transactionsclusters_id_transactions_cluster_documents_delete ..."
6090
+ @api_client.config.logger.debug 'Calling API: DocumentsApi.users_id_user_transactionsclusters_id_transactions_cluster_documents_delete ...'
6152
6091
  end
6153
6092
  # verify the required parameter 'id_user' is set
6154
6093
  if @api_client.config.client_side_validation && id_user.nil?
@@ -6159,7 +6098,7 @@ module BudgeaClient
6159
6098
  fail ArgumentError, "Missing the required parameter 'id_transactions_cluster' when calling DocumentsApi.users_id_user_transactionsclusters_id_transactions_cluster_documents_delete"
6160
6099
  end
6161
6100
  # resource path
6162
- local_var_path = "/users/{id_user}/transactionsclusters/{id_transactions_cluster}/documents".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_transactions_cluster' + '}', id_transactions_cluster.to_s)
6101
+ local_var_path = '/users/{id_user}/transactionsclusters/{id_transactions_cluster}/documents'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_transactions_cluster' + '}', id_transactions_cluster.to_s)
6163
6102
 
6164
6103
  # query parameters
6165
6104
  query_params = {}
@@ -6190,7 +6129,6 @@ module BudgeaClient
6190
6129
  end
6191
6130
  return data, status_code, headers
6192
6131
  end
6193
-
6194
6132
  # Get documents
6195
6133
  # Get list of documents<br><br>
6196
6134
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
@@ -6201,15 +6139,15 @@ module BudgeaClient
6201
6139
  # @option opts [Date] :min_date minimal (inclusive) date
6202
6140
  # @option opts [Date] :max_date maximum (inclusive) date
6203
6141
  # @option opts [Float] :min_amount minimal (inclusive) amount
6204
- # @option opts [Float] :max_amount maximumd (inclusive) amount
6142
+ # @option opts [Float] :max_amount maximum (inclusive) amount
6205
6143
  # @option opts [Float] :min_timestamp minimal (inclusive) timestamp
6206
- # @option opts [Float] :max_timestamp maximumd (inclusive) timestamp
6144
+ # @option opts [Float] :max_timestamp maximum (inclusive) timestamp
6207
6145
  # @option opts [Integer] :id_type filter with a document type
6208
6146
  # @option opts [String] :expand
6209
- # @return [InlineResponse20026]
6147
+ # @return [InlineResponse20028]
6210
6148
  def users_id_user_transactionsclusters_id_transactions_cluster_documents_get(id_user, id_transactions_cluster, opts = {})
6211
6149
  data, _status_code, _headers = users_id_user_transactionsclusters_id_transactions_cluster_documents_get_with_http_info(id_user, id_transactions_cluster, opts)
6212
- return data
6150
+ data
6213
6151
  end
6214
6152
 
6215
6153
  # Get documents
@@ -6222,15 +6160,15 @@ module BudgeaClient
6222
6160
  # @option opts [Date] :min_date minimal (inclusive) date
6223
6161
  # @option opts [Date] :max_date maximum (inclusive) date
6224
6162
  # @option opts [Float] :min_amount minimal (inclusive) amount
6225
- # @option opts [Float] :max_amount maximumd (inclusive) amount
6163
+ # @option opts [Float] :max_amount maximum (inclusive) amount
6226
6164
  # @option opts [Float] :min_timestamp minimal (inclusive) timestamp
6227
- # @option opts [Float] :max_timestamp maximumd (inclusive) timestamp
6165
+ # @option opts [Float] :max_timestamp maximum (inclusive) timestamp
6228
6166
  # @option opts [Integer] :id_type filter with a document type
6229
6167
  # @option opts [String] :expand
6230
- # @return [Array<(InlineResponse20026, Fixnum, Hash)>] InlineResponse20026 data, response status code and response headers
6168
+ # @return [Array<(InlineResponse20028, Fixnum, Hash)>] InlineResponse20028 data, response status code and response headers
6231
6169
  def users_id_user_transactionsclusters_id_transactions_cluster_documents_get_with_http_info(id_user, id_transactions_cluster, opts = {})
6232
6170
  if @api_client.config.debugging
6233
- @api_client.config.logger.debug "Calling API: DocumentsApi.users_id_user_transactionsclusters_id_transactions_cluster_documents_get ..."
6171
+ @api_client.config.logger.debug 'Calling API: DocumentsApi.users_id_user_transactionsclusters_id_transactions_cluster_documents_get ...'
6234
6172
  end
6235
6173
  # verify the required parameter 'id_user' is set
6236
6174
  if @api_client.config.client_side_validation && id_user.nil?
@@ -6241,7 +6179,7 @@ module BudgeaClient
6241
6179
  fail ArgumentError, "Missing the required parameter 'id_transactions_cluster' when calling DocumentsApi.users_id_user_transactionsclusters_id_transactions_cluster_documents_get"
6242
6180
  end
6243
6181
  # resource path
6244
- local_var_path = "/users/{id_user}/transactionsclusters/{id_transactions_cluster}/documents".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_transactions_cluster' + '}', id_transactions_cluster.to_s)
6182
+ local_var_path = '/users/{id_user}/transactionsclusters/{id_transactions_cluster}/documents'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_transactions_cluster' + '}', id_transactions_cluster.to_s)
6245
6183
 
6246
6184
  # query parameters
6247
6185
  query_params = {}
@@ -6275,13 +6213,12 @@ module BudgeaClient
6275
6213
  :form_params => form_params,
6276
6214
  :body => post_body,
6277
6215
  :auth_names => auth_names,
6278
- :return_type => 'InlineResponse20026')
6216
+ :return_type => 'InlineResponse20028')
6279
6217
  if @api_client.config.debugging
6280
6218
  @api_client.config.logger.debug "API called: DocumentsApi#users_id_user_transactionsclusters_id_transactions_cluster_documents_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
6281
6219
  end
6282
6220
  return data, status_code, headers
6283
6221
  end
6284
-
6285
6222
  # Delete a document
6286
6223
  #
6287
6224
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
@@ -6292,7 +6229,7 @@ module BudgeaClient
6292
6229
  # @return [Document]
6293
6230
  def users_id_user_transactionsclusters_id_transactions_cluster_documents_id_document_delete(id_user, id_transactions_cluster, id_document, opts = {})
6294
6231
  data, _status_code, _headers = users_id_user_transactionsclusters_id_transactions_cluster_documents_id_document_delete_with_http_info(id_user, id_transactions_cluster, id_document, opts)
6295
- return data
6232
+ data
6296
6233
  end
6297
6234
 
6298
6235
  # Delete a document
@@ -6305,7 +6242,7 @@ module BudgeaClient
6305
6242
  # @return [Array<(Document, Fixnum, Hash)>] Document data, response status code and response headers
6306
6243
  def users_id_user_transactionsclusters_id_transactions_cluster_documents_id_document_delete_with_http_info(id_user, id_transactions_cluster, id_document, opts = {})
6307
6244
  if @api_client.config.debugging
6308
- @api_client.config.logger.debug "Calling API: DocumentsApi.users_id_user_transactionsclusters_id_transactions_cluster_documents_id_document_delete ..."
6245
+ @api_client.config.logger.debug 'Calling API: DocumentsApi.users_id_user_transactionsclusters_id_transactions_cluster_documents_id_document_delete ...'
6309
6246
  end
6310
6247
  # verify the required parameter 'id_user' is set
6311
6248
  if @api_client.config.client_side_validation && id_user.nil?
@@ -6320,7 +6257,7 @@ module BudgeaClient
6320
6257
  fail ArgumentError, "Missing the required parameter 'id_document' when calling DocumentsApi.users_id_user_transactionsclusters_id_transactions_cluster_documents_id_document_delete"
6321
6258
  end
6322
6259
  # resource path
6323
- local_var_path = "/users/{id_user}/transactionsclusters/{id_transactions_cluster}/documents/{id_document}".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_transactions_cluster' + '}', id_transactions_cluster.to_s).sub('{' + 'id_document' + '}', id_document.to_s)
6260
+ local_var_path = '/users/{id_user}/transactionsclusters/{id_transactions_cluster}/documents/{id_document}'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_transactions_cluster' + '}', id_transactions_cluster.to_s).sub('{' + 'id_document' + '}', id_document.to_s)
6324
6261
 
6325
6262
  # query parameters
6326
6263
  query_params = {}
@@ -6351,7 +6288,6 @@ module BudgeaClient
6351
6288
  end
6352
6289
  return data, status_code, headers
6353
6290
  end
6354
-
6355
6291
  # Edit a document
6356
6292
  # Edit meta-data of a specific document.
6357
6293
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
@@ -6373,7 +6309,7 @@ module BudgeaClient
6373
6309
  # @return [Document]
6374
6310
  def users_id_user_transactionsclusters_id_transactions_cluster_documents_id_document_put(id_user, id_transactions_cluster, id_document, opts = {})
6375
6311
  data, _status_code, _headers = users_id_user_transactionsclusters_id_transactions_cluster_documents_id_document_put_with_http_info(id_user, id_transactions_cluster, id_document, opts)
6376
- return data
6312
+ data
6377
6313
  end
6378
6314
 
6379
6315
  # Edit a document
@@ -6397,7 +6333,7 @@ module BudgeaClient
6397
6333
  # @return [Array<(Document, Fixnum, Hash)>] Document data, response status code and response headers
6398
6334
  def users_id_user_transactionsclusters_id_transactions_cluster_documents_id_document_put_with_http_info(id_user, id_transactions_cluster, id_document, opts = {})
6399
6335
  if @api_client.config.debugging
6400
- @api_client.config.logger.debug "Calling API: DocumentsApi.users_id_user_transactionsclusters_id_transactions_cluster_documents_id_document_put ..."
6336
+ @api_client.config.logger.debug 'Calling API: DocumentsApi.users_id_user_transactionsclusters_id_transactions_cluster_documents_id_document_put ...'
6401
6337
  end
6402
6338
  # verify the required parameter 'id_user' is set
6403
6339
  if @api_client.config.client_side_validation && id_user.nil?
@@ -6412,7 +6348,7 @@ module BudgeaClient
6412
6348
  fail ArgumentError, "Missing the required parameter 'id_document' when calling DocumentsApi.users_id_user_transactionsclusters_id_transactions_cluster_documents_id_document_put"
6413
6349
  end
6414
6350
  # resource path
6415
- local_var_path = "/users/{id_user}/transactionsclusters/{id_transactions_cluster}/documents/{id_document}".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_transactions_cluster' + '}', id_transactions_cluster.to_s).sub('{' + 'id_document' + '}', id_document.to_s)
6351
+ local_var_path = '/users/{id_user}/transactionsclusters/{id_transactions_cluster}/documents/{id_document}'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_transactions_cluster' + '}', id_transactions_cluster.to_s).sub('{' + 'id_document' + '}', id_document.to_s)
6416
6352
 
6417
6353
  # query parameters
6418
6354
  query_params = {}
@@ -6427,17 +6363,17 @@ module BudgeaClient
6427
6363
 
6428
6364
  # form parameters
6429
6365
  form_params = {}
6430
- form_params["id_type"] = opts[:'id_type'] if !opts[:'id_type'].nil?
6431
- form_params["id_category"] = opts[:'id_category'] if !opts[:'id_category'].nil?
6432
- form_params["date"] = opts[:'date'] if !opts[:'date'].nil?
6433
- form_params["duedate"] = opts[:'duedate'] if !opts[:'duedate'].nil?
6434
- form_params["total_amount"] = opts[:'total_amount'] if !opts[:'total_amount'].nil?
6435
- form_params["untaxed_amount"] = opts[:'untaxed_amount'] if !opts[:'untaxed_amount'].nil?
6436
- form_params["vat"] = opts[:'vat'] if !opts[:'vat'].nil?
6437
- form_params["income"] = opts[:'income'] if !opts[:'income'].nil?
6438
- form_params["readonly"] = opts[:'readonly'] if !opts[:'readonly'].nil?
6439
- form_params["file"] = opts[:'file'] if !opts[:'file'].nil?
6440
- form_params["name"] = opts[:'name'] if !opts[:'name'].nil?
6366
+ form_params['id_type'] = opts[:'id_type'] if !opts[:'id_type'].nil?
6367
+ form_params['id_category'] = opts[:'id_category'] if !opts[:'id_category'].nil?
6368
+ form_params['date'] = opts[:'date'] if !opts[:'date'].nil?
6369
+ form_params['duedate'] = opts[:'duedate'] if !opts[:'duedate'].nil?
6370
+ form_params['total_amount'] = opts[:'total_amount'] if !opts[:'total_amount'].nil?
6371
+ form_params['untaxed_amount'] = opts[:'untaxed_amount'] if !opts[:'untaxed_amount'].nil?
6372
+ form_params['vat'] = opts[:'vat'] if !opts[:'vat'].nil?
6373
+ form_params['income'] = opts[:'income'] if !opts[:'income'].nil?
6374
+ form_params['readonly'] = opts[:'readonly'] if !opts[:'readonly'].nil?
6375
+ form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
6376
+ form_params['name'] = opts[:'name'] if !opts[:'name'].nil?
6441
6377
 
6442
6378
  # http body (model)
6443
6379
  post_body = nil
@@ -6454,7 +6390,6 @@ module BudgeaClient
6454
6390
  end
6455
6391
  return data, status_code, headers
6456
6392
  end
6457
-
6458
6393
  # Add a new document
6459
6394
  # Add a new document<br><br>
6460
6395
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
@@ -6476,7 +6411,7 @@ module BudgeaClient
6476
6411
  # @return [Document]
6477
6412
  def users_id_user_transactionsclusters_id_transactions_cluster_documents_post(id_user, id_transactions_cluster, date, duedate, opts = {})
6478
6413
  data, _status_code, _headers = users_id_user_transactionsclusters_id_transactions_cluster_documents_post_with_http_info(id_user, id_transactions_cluster, date, duedate, opts)
6479
- return data
6414
+ data
6480
6415
  end
6481
6416
 
6482
6417
  # Add a new document
@@ -6500,7 +6435,7 @@ module BudgeaClient
6500
6435
  # @return [Array<(Document, Fixnum, Hash)>] Document data, response status code and response headers
6501
6436
  def users_id_user_transactionsclusters_id_transactions_cluster_documents_post_with_http_info(id_user, id_transactions_cluster, date, duedate, opts = {})
6502
6437
  if @api_client.config.debugging
6503
- @api_client.config.logger.debug "Calling API: DocumentsApi.users_id_user_transactionsclusters_id_transactions_cluster_documents_post ..."
6438
+ @api_client.config.logger.debug 'Calling API: DocumentsApi.users_id_user_transactionsclusters_id_transactions_cluster_documents_post ...'
6504
6439
  end
6505
6440
  # verify the required parameter 'id_user' is set
6506
6441
  if @api_client.config.client_side_validation && id_user.nil?
@@ -6519,7 +6454,7 @@ module BudgeaClient
6519
6454
  fail ArgumentError, "Missing the required parameter 'duedate' when calling DocumentsApi.users_id_user_transactionsclusters_id_transactions_cluster_documents_post"
6520
6455
  end
6521
6456
  # resource path
6522
- local_var_path = "/users/{id_user}/transactionsclusters/{id_transactions_cluster}/documents".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_transactions_cluster' + '}', id_transactions_cluster.to_s)
6457
+ local_var_path = '/users/{id_user}/transactionsclusters/{id_transactions_cluster}/documents'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_transactions_cluster' + '}', id_transactions_cluster.to_s)
6523
6458
 
6524
6459
  # query parameters
6525
6460
  query_params = {}
@@ -6534,18 +6469,18 @@ module BudgeaClient
6534
6469
 
6535
6470
  # form parameters
6536
6471
  form_params = {}
6537
- form_params["date"] = date
6538
- form_params["duedate"] = duedate
6539
- form_params["id_type"] = opts[:'id_type'] if !opts[:'id_type'].nil?
6540
- form_params["id_category"] = opts[:'id_category'] if !opts[:'id_category'].nil?
6541
- form_params["total_amount"] = opts[:'total_amount'] if !opts[:'total_amount'].nil?
6542
- form_params["untaxed_amount"] = opts[:'untaxed_amount'] if !opts[:'untaxed_amount'].nil?
6543
- form_params["vat"] = opts[:'vat'] if !opts[:'vat'].nil?
6544
- form_params["income"] = opts[:'income'] if !opts[:'income'].nil?
6545
- form_params["readonly"] = opts[:'readonly'] if !opts[:'readonly'].nil?
6546
- form_params["file"] = opts[:'file'] if !opts[:'file'].nil?
6547
- form_params["id_ocr"] = opts[:'id_ocr'] if !opts[:'id_ocr'].nil?
6548
- form_params["name"] = opts[:'name'] if !opts[:'name'].nil?
6472
+ form_params['date'] = date
6473
+ form_params['duedate'] = duedate
6474
+ form_params['id_type'] = opts[:'id_type'] if !opts[:'id_type'].nil?
6475
+ form_params['id_category'] = opts[:'id_category'] if !opts[:'id_category'].nil?
6476
+ form_params['total_amount'] = opts[:'total_amount'] if !opts[:'total_amount'].nil?
6477
+ form_params['untaxed_amount'] = opts[:'untaxed_amount'] if !opts[:'untaxed_amount'].nil?
6478
+ form_params['vat'] = opts[:'vat'] if !opts[:'vat'].nil?
6479
+ form_params['income'] = opts[:'income'] if !opts[:'income'].nil?
6480
+ form_params['readonly'] = opts[:'readonly'] if !opts[:'readonly'].nil?
6481
+ form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
6482
+ form_params['id_ocr'] = opts[:'id_ocr'] if !opts[:'id_ocr'].nil?
6483
+ form_params['name'] = opts[:'name'] if !opts[:'name'].nil?
6549
6484
 
6550
6485
  # http body (model)
6551
6486
  post_body = nil
@@ -6562,7 +6497,6 @@ module BudgeaClient
6562
6497
  end
6563
6498
  return data, status_code, headers
6564
6499
  end
6565
-
6566
6500
  # Attach an existing document to a transaction or a transactions_cluster
6567
6501
  #
6568
6502
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
@@ -6573,7 +6507,7 @@ module BudgeaClient
6573
6507
  # @return [Document]
6574
6508
  def users_id_user_transactionsclusters_id_transactions_cluster_documents_put(id_user, id_transactions_cluster, id_document, opts = {})
6575
6509
  data, _status_code, _headers = users_id_user_transactionsclusters_id_transactions_cluster_documents_put_with_http_info(id_user, id_transactions_cluster, id_document, opts)
6576
- return data
6510
+ data
6577
6511
  end
6578
6512
 
6579
6513
  # Attach an existing document to a transaction or a transactions_cluster
@@ -6586,7 +6520,7 @@ module BudgeaClient
6586
6520
  # @return [Array<(Document, Fixnum, Hash)>] Document data, response status code and response headers
6587
6521
  def users_id_user_transactionsclusters_id_transactions_cluster_documents_put_with_http_info(id_user, id_transactions_cluster, id_document, opts = {})
6588
6522
  if @api_client.config.debugging
6589
- @api_client.config.logger.debug "Calling API: DocumentsApi.users_id_user_transactionsclusters_id_transactions_cluster_documents_put ..."
6523
+ @api_client.config.logger.debug 'Calling API: DocumentsApi.users_id_user_transactionsclusters_id_transactions_cluster_documents_put ...'
6590
6524
  end
6591
6525
  # verify the required parameter 'id_user' is set
6592
6526
  if @api_client.config.client_side_validation && id_user.nil?
@@ -6601,7 +6535,7 @@ module BudgeaClient
6601
6535
  fail ArgumentError, "Missing the required parameter 'id_document' when calling DocumentsApi.users_id_user_transactionsclusters_id_transactions_cluster_documents_put"
6602
6536
  end
6603
6537
  # resource path
6604
- local_var_path = "/users/{id_user}/transactionsclusters/{id_transactions_cluster}/documents".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_transactions_cluster' + '}', id_transactions_cluster.to_s)
6538
+ local_var_path = '/users/{id_user}/transactionsclusters/{id_transactions_cluster}/documents'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_transactions_cluster' + '}', id_transactions_cluster.to_s)
6605
6539
 
6606
6540
  # query parameters
6607
6541
  query_params = {}
@@ -6612,11 +6546,11 @@ module BudgeaClient
6612
6546
  # HTTP header 'Accept' (if needed)
6613
6547
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
6614
6548
  # HTTP header 'Content-Type'
6615
- header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
6549
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
6616
6550
 
6617
6551
  # form parameters
6618
6552
  form_params = {}
6619
- form_params["id_document"] = id_document
6553
+ form_params['id_document'] = id_document
6620
6554
 
6621
6555
  # http body (model)
6622
6556
  post_body = nil