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 RecipientsApi
@@ -9,33 +19,34 @@ module BudgeaClient
9
19
  def initialize(api_client = ApiClient.default)
10
20
  @api_client = api_client
11
21
  end
12
-
13
22
  # Add a recipient.
14
- #
23
+ # if config key transfer.recipient.iban_white_list.enabled is set to 1, recipients whose IBAN are not from countries codes contained in transfer.recipient.iban_white_list.entries will be deleted<br><br>
15
24
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
16
25
  # @param id_account
17
26
  # @param [Hash] opts the optional parameters
27
+ # @option opts [BOOLEAN] :background if true, do synchronization in background
18
28
  # @option opts [String] :label label of recipient
19
29
  # @option opts [String] :iban iban of recipient
20
30
  # @option opts [String] :expand
21
31
  # @return [Recipient]
22
32
  def users_id_user_accounts_id_account_recipients_post(id_user, id_account, opts = {})
23
33
  data, _status_code, _headers = users_id_user_accounts_id_account_recipients_post_with_http_info(id_user, id_account, opts)
24
- return data
34
+ data
25
35
  end
26
36
 
27
37
  # Add a recipient.
28
- #
38
+ # if config key transfer.recipient.iban_white_list.enabled is set to 1, recipients whose IBAN are not from countries codes contained in transfer.recipient.iban_white_list.entries will be deleted&lt;br&gt;&lt;br&gt;
29
39
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
30
40
  # @param id_account
31
41
  # @param [Hash] opts the optional parameters
42
+ # @option opts [BOOLEAN] :background if true, do synchronization in background
32
43
  # @option opts [String] :label label of recipient
33
44
  # @option opts [String] :iban iban of recipient
34
45
  # @option opts [String] :expand
35
46
  # @return [Array<(Recipient, Fixnum, Hash)>] Recipient data, response status code and response headers
36
47
  def users_id_user_accounts_id_account_recipients_post_with_http_info(id_user, id_account, opts = {})
37
48
  if @api_client.config.debugging
38
- @api_client.config.logger.debug "Calling API: RecipientsApi.users_id_user_accounts_id_account_recipients_post ..."
49
+ @api_client.config.logger.debug 'Calling API: RecipientsApi.users_id_user_accounts_id_account_recipients_post ...'
39
50
  end
40
51
  # verify the required parameter 'id_user' is set
41
52
  if @api_client.config.client_side_validation && id_user.nil?
@@ -46,10 +57,11 @@ module BudgeaClient
46
57
  fail ArgumentError, "Missing the required parameter 'id_account' when calling RecipientsApi.users_id_user_accounts_id_account_recipients_post"
47
58
  end
48
59
  # resource path
49
- local_var_path = "/users/{id_user}/accounts/{id_account}/recipients".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_account' + '}', id_account.to_s)
60
+ local_var_path = '/users/{id_user}/accounts/{id_account}/recipients'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_account' + '}', id_account.to_s)
50
61
 
51
62
  # query parameters
52
63
  query_params = {}
64
+ query_params[:'background'] = opts[:'background'] if !opts[:'background'].nil?
53
65
  query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
54
66
 
55
67
  # header parameters
@@ -61,8 +73,8 @@ module BudgeaClient
61
73
 
62
74
  # form parameters
63
75
  form_params = {}
64
- form_params["label"] = opts[:'label'] if !opts[:'label'].nil?
65
- form_params["iban"] = opts[:'iban'] if !opts[:'iban'].nil?
76
+ form_params['label'] = opts[:'label'] if !opts[:'label'].nil?
77
+ form_params['iban'] = opts[:'iban'] if !opts[:'iban'].nil?
66
78
 
67
79
  # http body (model)
68
80
  post_body = nil
@@ -79,35 +91,36 @@ module BudgeaClient
79
91
  end
80
92
  return data, status_code, headers
81
93
  end
82
-
83
94
  # Add a recipient.
84
- #
95
+ # if config key transfer.recipient.iban_white_list.enabled is set to 1, recipients whose IBAN are not from countries codes contained in transfer.recipient.iban_white_list.entries will be deleted<br><br>
85
96
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
86
97
  # @param id_connection
87
98
  # @param id_account
88
99
  # @param [Hash] opts the optional parameters
100
+ # @option opts [BOOLEAN] :background if true, do synchronization in background
89
101
  # @option opts [String] :label label of recipient
90
102
  # @option opts [String] :iban iban of recipient
91
103
  # @option opts [String] :expand
92
104
  # @return [Recipient]
93
105
  def users_id_user_connections_id_connection_accounts_id_account_recipients_post(id_user, id_connection, id_account, opts = {})
94
106
  data, _status_code, _headers = users_id_user_connections_id_connection_accounts_id_account_recipients_post_with_http_info(id_user, id_connection, id_account, opts)
95
- return data
107
+ data
96
108
  end
97
109
 
98
110
  # Add a recipient.
99
- #
111
+ # if config key transfer.recipient.iban_white_list.enabled is set to 1, recipients whose IBAN are not from countries codes contained in transfer.recipient.iban_white_list.entries will be deleted&lt;br&gt;&lt;br&gt;
100
112
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
101
113
  # @param id_connection
102
114
  # @param id_account
103
115
  # @param [Hash] opts the optional parameters
116
+ # @option opts [BOOLEAN] :background if true, do synchronization in background
104
117
  # @option opts [String] :label label of recipient
105
118
  # @option opts [String] :iban iban of recipient
106
119
  # @option opts [String] :expand
107
120
  # @return [Array<(Recipient, Fixnum, Hash)>] Recipient data, response status code and response headers
108
121
  def users_id_user_connections_id_connection_accounts_id_account_recipients_post_with_http_info(id_user, id_connection, id_account, opts = {})
109
122
  if @api_client.config.debugging
110
- @api_client.config.logger.debug "Calling API: RecipientsApi.users_id_user_connections_id_connection_accounts_id_account_recipients_post ..."
123
+ @api_client.config.logger.debug 'Calling API: RecipientsApi.users_id_user_connections_id_connection_accounts_id_account_recipients_post ...'
111
124
  end
112
125
  # verify the required parameter 'id_user' is set
113
126
  if @api_client.config.client_side_validation && id_user.nil?
@@ -122,10 +135,11 @@ module BudgeaClient
122
135
  fail ArgumentError, "Missing the required parameter 'id_account' when calling RecipientsApi.users_id_user_connections_id_connection_accounts_id_account_recipients_post"
123
136
  end
124
137
  # resource path
125
- local_var_path = "/users/{id_user}/connections/{id_connection}/accounts/{id_account}/recipients".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_account' + '}', id_account.to_s)
138
+ local_var_path = '/users/{id_user}/connections/{id_connection}/accounts/{id_account}/recipients'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_account' + '}', id_account.to_s)
126
139
 
127
140
  # query parameters
128
141
  query_params = {}
142
+ query_params[:'background'] = opts[:'background'] if !opts[:'background'].nil?
129
143
  query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
130
144
 
131
145
  # header parameters
@@ -137,8 +151,8 @@ module BudgeaClient
137
151
 
138
152
  # form parameters
139
153
  form_params = {}
140
- form_params["label"] = opts[:'label'] if !opts[:'label'].nil?
141
- form_params["iban"] = opts[:'iban'] if !opts[:'iban'].nil?
154
+ form_params['label'] = opts[:'label'] if !opts[:'label'].nil?
155
+ form_params['iban'] = opts[:'iban'] if !opts[:'iban'].nil?
142
156
 
143
157
  # http body (model)
144
158
  post_body = nil
@@ -155,33 +169,34 @@ module BudgeaClient
155
169
  end
156
170
  return data, status_code, headers
157
171
  end
158
-
159
172
  # Add a recipient.
160
- #
173
+ # if config key transfer.recipient.iban_white_list.enabled is set to 1, recipients whose IBAN are not from countries codes contained in transfer.recipient.iban_white_list.entries will be deleted<br><br>
161
174
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
162
175
  # @param id_connection
163
176
  # @param [Hash] opts the optional parameters
177
+ # @option opts [BOOLEAN] :background if true, do synchronization in background
164
178
  # @option opts [String] :label label of recipient
165
179
  # @option opts [String] :iban iban of recipient
166
180
  # @option opts [String] :expand
167
181
  # @return [Recipient]
168
182
  def users_id_user_connections_id_connection_recipients_post(id_user, id_connection, opts = {})
169
183
  data, _status_code, _headers = users_id_user_connections_id_connection_recipients_post_with_http_info(id_user, id_connection, opts)
170
- return data
184
+ data
171
185
  end
172
186
 
173
187
  # Add a recipient.
174
- #
188
+ # if config key transfer.recipient.iban_white_list.enabled is set to 1, recipients whose IBAN are not from countries codes contained in transfer.recipient.iban_white_list.entries will be deleted&lt;br&gt;&lt;br&gt;
175
189
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
176
190
  # @param id_connection
177
191
  # @param [Hash] opts the optional parameters
192
+ # @option opts [BOOLEAN] :background if true, do synchronization in background
178
193
  # @option opts [String] :label label of recipient
179
194
  # @option opts [String] :iban iban of recipient
180
195
  # @option opts [String] :expand
181
196
  # @return [Array<(Recipient, Fixnum, Hash)>] Recipient data, response status code and response headers
182
197
  def users_id_user_connections_id_connection_recipients_post_with_http_info(id_user, id_connection, opts = {})
183
198
  if @api_client.config.debugging
184
- @api_client.config.logger.debug "Calling API: RecipientsApi.users_id_user_connections_id_connection_recipients_post ..."
199
+ @api_client.config.logger.debug 'Calling API: RecipientsApi.users_id_user_connections_id_connection_recipients_post ...'
185
200
  end
186
201
  # verify the required parameter 'id_user' is set
187
202
  if @api_client.config.client_side_validation && id_user.nil?
@@ -192,10 +207,11 @@ module BudgeaClient
192
207
  fail ArgumentError, "Missing the required parameter 'id_connection' when calling RecipientsApi.users_id_user_connections_id_connection_recipients_post"
193
208
  end
194
209
  # resource path
195
- local_var_path = "/users/{id_user}/connections/{id_connection}/recipients".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s)
210
+ local_var_path = '/users/{id_user}/connections/{id_connection}/recipients'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s)
196
211
 
197
212
  # query parameters
198
213
  query_params = {}
214
+ query_params[:'background'] = opts[:'background'] if !opts[:'background'].nil?
199
215
  query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
200
216
 
201
217
  # header parameters
@@ -207,8 +223,8 @@ module BudgeaClient
207
223
 
208
224
  # form parameters
209
225
  form_params = {}
210
- form_params["label"] = opts[:'label'] if !opts[:'label'].nil?
211
- form_params["iban"] = opts[:'iban'] if !opts[:'iban'].nil?
226
+ form_params['label'] = opts[:'label'] if !opts[:'label'].nil?
227
+ form_params['iban'] = opts[:'iban'] if !opts[:'iban'].nil?
212
228
 
213
229
  # http body (model)
214
230
  post_body = nil
@@ -225,41 +241,43 @@ module BudgeaClient
225
241
  end
226
242
  return data, status_code, headers
227
243
  end
228
-
229
244
  # Add a recipient.
230
- #
245
+ # if config key transfer.recipient.iban_white_list.enabled is set to 1, recipients whose IBAN are not from countries codes contained in transfer.recipient.iban_white_list.entries will be deleted<br><br>
231
246
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
232
247
  # @param [Hash] opts the optional parameters
248
+ # @option opts [BOOLEAN] :background if true, do synchronization in background
233
249
  # @option opts [String] :label label of recipient
234
250
  # @option opts [String] :iban iban of recipient
235
251
  # @option opts [String] :expand
236
252
  # @return [Recipient]
237
253
  def users_id_user_recipients_post(id_user, opts = {})
238
254
  data, _status_code, _headers = users_id_user_recipients_post_with_http_info(id_user, opts)
239
- return data
255
+ data
240
256
  end
241
257
 
242
258
  # Add a recipient.
243
- #
259
+ # if config key transfer.recipient.iban_white_list.enabled is set to 1, recipients whose IBAN are not from countries codes contained in transfer.recipient.iban_white_list.entries will be deleted&lt;br&gt;&lt;br&gt;
244
260
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
245
261
  # @param [Hash] opts the optional parameters
262
+ # @option opts [BOOLEAN] :background if true, do synchronization in background
246
263
  # @option opts [String] :label label of recipient
247
264
  # @option opts [String] :iban iban of recipient
248
265
  # @option opts [String] :expand
249
266
  # @return [Array<(Recipient, Fixnum, Hash)>] Recipient data, response status code and response headers
250
267
  def users_id_user_recipients_post_with_http_info(id_user, opts = {})
251
268
  if @api_client.config.debugging
252
- @api_client.config.logger.debug "Calling API: RecipientsApi.users_id_user_recipients_post ..."
269
+ @api_client.config.logger.debug 'Calling API: RecipientsApi.users_id_user_recipients_post ...'
253
270
  end
254
271
  # verify the required parameter 'id_user' is set
255
272
  if @api_client.config.client_side_validation && id_user.nil?
256
273
  fail ArgumentError, "Missing the required parameter 'id_user' when calling RecipientsApi.users_id_user_recipients_post"
257
274
  end
258
275
  # resource path
259
- local_var_path = "/users/{id_user}/recipients".sub('{' + 'id_user' + '}', id_user.to_s)
276
+ local_var_path = '/users/{id_user}/recipients'.sub('{' + 'id_user' + '}', id_user.to_s)
260
277
 
261
278
  # query parameters
262
279
  query_params = {}
280
+ query_params[:'background'] = opts[:'background'] if !opts[:'background'].nil?
263
281
  query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
264
282
 
265
283
  # header parameters
@@ -271,8 +289,8 @@ module BudgeaClient
271
289
 
272
290
  # form parameters
273
291
  form_params = {}
274
- form_params["label"] = opts[:'label'] if !opts[:'label'].nil?
275
- form_params["iban"] = opts[:'iban'] if !opts[:'iban'].nil?
292
+ form_params['label'] = opts[:'label'] if !opts[:'label'].nil?
293
+ form_params['iban'] = opts[:'iban'] if !opts[:'iban'].nil?
276
294
 
277
295
  # http body (model)
278
296
  post_body = nil
@@ -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 TermsApi
@@ -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
  # Return the current terms and the content of the associated file
14
23
  #
15
24
  # @param [Hash] opts the optional parameters
16
25
  # @option opts [String] :expand
17
- # @return [InlineResponse20016]
26
+ # @return [InlineResponse20018]
18
27
  def terms_get(opts = {})
19
28
  data, _status_code, _headers = terms_get_with_http_info(opts)
20
- return data
29
+ data
21
30
  end
22
31
 
23
32
  # Return the current terms and the content of the associated file
24
33
  #
25
34
  # @param [Hash] opts the optional parameters
26
35
  # @option opts [String] :expand
27
- # @return [Array<(InlineResponse20016, Fixnum, Hash)>] InlineResponse20016 data, response status code and response headers
36
+ # @return [Array<(InlineResponse20018, Fixnum, Hash)>] InlineResponse20018 data, response status code and response headers
28
37
  def terms_get_with_http_info(opts = {})
29
38
  if @api_client.config.debugging
30
- @api_client.config.logger.debug "Calling API: TermsApi.terms_get ..."
39
+ @api_client.config.logger.debug 'Calling API: TermsApi.terms_get ...'
31
40
  end
32
41
  # resource path
33
- local_var_path = "/terms"
42
+ local_var_path = '/terms'
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 => 'InlineResponse20016')
67
+ :return_type => 'InlineResponse20018')
59
68
  if @api_client.config.debugging
60
69
  @api_client.config.logger.debug "API called: TermsApi#terms_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
  # Register a version of 'Terms of Service' in database
66
74
  #
67
75
  # @param [Hash] opts the optional parameters
@@ -71,7 +79,7 @@ module BudgeaClient
71
79
  # @return [TermsOfService]
72
80
  def terms_post(opts = {})
73
81
  data, _status_code, _headers = terms_post_with_http_info(opts)
74
- return data
82
+ data
75
83
  end
76
84
 
77
85
  # Register a version of &#39;Terms of Service&#39; in database
@@ -83,10 +91,10 @@ module BudgeaClient
83
91
  # @return [Array<(TermsOfService, Fixnum, Hash)>] TermsOfService data, response status code and response headers
84
92
  def terms_post_with_http_info(opts = {})
85
93
  if @api_client.config.debugging
86
- @api_client.config.logger.debug "Calling API: TermsApi.terms_post ..."
94
+ @api_client.config.logger.debug 'Calling API: TermsApi.terms_post ...'
87
95
  end
88
96
  # resource path
89
- local_var_path = "/terms"
97
+ local_var_path = '/terms'
90
98
 
91
99
  # query parameters
92
100
  query_params = {}
@@ -101,8 +109,8 @@ module BudgeaClient
101
109
 
102
110
  # form parameters
103
111
  form_params = {}
104
- form_params["version"] = opts[:'version'] if !opts[:'version'].nil?
105
- form_params["file_content"] = opts[:'file_content'] if !opts[:'file_content'].nil?
112
+ form_params['version'] = opts[:'version'] if !opts[:'version'].nil?
113
+ form_params['file_content'] = opts[:'file_content'] if !opts[:'file_content'].nil?
106
114
 
107
115
  # http body (model)
108
116
  post_body = nil
@@ -119,16 +127,15 @@ module BudgeaClient
119
127
  end
120
128
  return data, status_code, headers
121
129
  end
122
-
123
130
  # Get active terms object for a specific user, only one terms can be active
124
131
  #
125
132
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
126
133
  # @param [Hash] opts the optional parameters
127
134
  # @option opts [String] :expand
128
- # @return [InlineResponse20016]
135
+ # @return [InlineResponse20018]
129
136
  def users_id_user_terms_get(id_user, opts = {})
130
137
  data, _status_code, _headers = users_id_user_terms_get_with_http_info(id_user, opts)
131
- return data
138
+ data
132
139
  end
133
140
 
134
141
  # Get active terms object for a specific user, only one terms can be active
@@ -136,17 +143,17 @@ module BudgeaClient
136
143
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
137
144
  # @param [Hash] opts the optional parameters
138
145
  # @option opts [String] :expand
139
- # @return [Array<(InlineResponse20016, Fixnum, Hash)>] InlineResponse20016 data, response status code and response headers
146
+ # @return [Array<(InlineResponse20018, Fixnum, Hash)>] InlineResponse20018 data, response status code and response headers
140
147
  def users_id_user_terms_get_with_http_info(id_user, opts = {})
141
148
  if @api_client.config.debugging
142
- @api_client.config.logger.debug "Calling API: TermsApi.users_id_user_terms_get ..."
149
+ @api_client.config.logger.debug 'Calling API: TermsApi.users_id_user_terms_get ...'
143
150
  end
144
151
  # verify the required parameter 'id_user' is set
145
152
  if @api_client.config.client_side_validation && id_user.nil?
146
153
  fail ArgumentError, "Missing the required parameter 'id_user' when calling TermsApi.users_id_user_terms_get"
147
154
  end
148
155
  # resource path
149
- local_var_path = "/users/{id_user}/terms".sub('{' + 'id_user' + '}', id_user.to_s)
156
+ local_var_path = '/users/{id_user}/terms'.sub('{' + 'id_user' + '}', id_user.to_s)
150
157
 
151
158
  # query parameters
152
159
  query_params = {}
@@ -171,44 +178,41 @@ module BudgeaClient
171
178
  :form_params => form_params,
172
179
  :body => post_body,
173
180
  :auth_names => auth_names,
174
- :return_type => 'InlineResponse20016')
181
+ :return_type => 'InlineResponse20018')
175
182
  if @api_client.config.debugging
176
183
  @api_client.config.logger.debug "API called: TermsApi#users_id_user_terms_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
177
184
  end
178
185
  return data, status_code, headers
179
186
  end
180
-
181
187
  # Register user's consent for a specific terms id
182
188
  #
183
189
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
184
190
  # @param [Hash] opts the optional parameters
185
- # @option opts [Integer] :id_user2 user id (optionnal)
186
191
  # @option opts [Integer] :id_terms terms id
187
192
  # @option opts [String] :expand
188
193
  # @return [TermsOfService]
189
194
  def users_id_user_terms_post(id_user, opts = {})
190
195
  data, _status_code, _headers = users_id_user_terms_post_with_http_info(id_user, opts)
191
- return data
196
+ data
192
197
  end
193
198
 
194
199
  # Register user&#39;s consent for a specific terms id
195
200
  #
196
201
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
197
202
  # @param [Hash] opts the optional parameters
198
- # @option opts [Integer] :id_user2 user id (optionnal)
199
203
  # @option opts [Integer] :id_terms terms id
200
204
  # @option opts [String] :expand
201
205
  # @return [Array<(TermsOfService, Fixnum, Hash)>] TermsOfService data, response status code and response headers
202
206
  def users_id_user_terms_post_with_http_info(id_user, opts = {})
203
207
  if @api_client.config.debugging
204
- @api_client.config.logger.debug "Calling API: TermsApi.users_id_user_terms_post ..."
208
+ @api_client.config.logger.debug 'Calling API: TermsApi.users_id_user_terms_post ...'
205
209
  end
206
210
  # verify the required parameter 'id_user' is set
207
211
  if @api_client.config.client_side_validation && id_user.nil?
208
212
  fail ArgumentError, "Missing the required parameter 'id_user' when calling TermsApi.users_id_user_terms_post"
209
213
  end
210
214
  # resource path
211
- local_var_path = "/users/{id_user}/terms".sub('{' + 'id_user' + '}', id_user.to_s)
215
+ local_var_path = '/users/{id_user}/terms'.sub('{' + 'id_user' + '}', id_user.to_s)
212
216
 
213
217
  # query parameters
214
218
  query_params = {}
@@ -219,12 +223,11 @@ module BudgeaClient
219
223
  # HTTP header 'Accept' (if needed)
220
224
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
221
225
  # HTTP header 'Content-Type'
222
- header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
226
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
223
227
 
224
228
  # form parameters
225
229
  form_params = {}
226
- form_params["id_user"] = opts[:'id_user2'] if !opts[:'id_user2'].nil?
227
- form_params["id_terms"] = opts[:'id_terms'] if !opts[:'id_terms'].nil?
230
+ form_params['id_terms'] = opts[:'id_terms'] if !opts[:'id_terms'].nil?
228
231
 
229
232
  # http body (model)
230
233
  post_body = nil