budgea_client 5.0.3 → 5.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (154) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/Gemfile.lock +4 -4
  4. data/README.md +19 -6
  5. data/budgea_client.gemspec +1 -1
  6. data/budgea_openapi.json +1624 -1420
  7. data/config.json +1 -1
  8. data/docs/Account.md +1 -0
  9. data/docs/AdministrationApi.md +12 -12
  10. data/docs/BanksApi.md +267 -52
  11. data/docs/Connection.md +2 -0
  12. data/docs/ConnectionsApi.md +255 -40
  13. data/docs/DocumentsApi.md +2 -2
  14. data/docs/InlineResponse20016.md +1 -1
  15. data/docs/InlineResponse20017.md +1 -1
  16. data/docs/InlineResponse20018.md +1 -1
  17. data/docs/InlineResponse20019.md +1 -1
  18. data/docs/InlineResponse20020.md +1 -1
  19. data/docs/InlineResponse20021.md +1 -1
  20. data/docs/InlineResponse20022.md +1 -1
  21. data/docs/InlineResponse20023.md +1 -1
  22. data/docs/InlineResponse20024.md +1 -1
  23. data/docs/InlineResponse20025.md +1 -1
  24. data/docs/InlineResponse20026.md +1 -1
  25. data/docs/InlineResponse20027.md +1 -1
  26. data/docs/InlineResponse20028.md +1 -1
  27. data/docs/InlineResponse20029.md +1 -1
  28. data/docs/InlineResponse20030.md +1 -1
  29. data/docs/PFMApi.md +9 -9
  30. data/docs/ProvidersApi.md +257 -42
  31. data/docs/TermsApi.md +72 -7
  32. data/docs/TransfersApi.md +24 -24
  33. data/docs/UsersManagementApi.md +2 -2
  34. data/docs/WealthApi.md +53 -37
  35. data/lib/budgea_client.rb +1 -1
  36. data/lib/budgea_client/api/administration_api.rb +14 -14
  37. data/lib/budgea_client/api/authentication_api.rb +1 -1
  38. data/lib/budgea_client/api/banks_api.rb +278 -78
  39. data/lib/budgea_client/api/connections_api.rb +260 -60
  40. data/lib/budgea_client/api/documents_api.rb +4 -4
  41. data/lib/budgea_client/api/ocr_api.rb +1 -1
  42. data/lib/budgea_client/api/oidc_api.rb +1 -1
  43. data/lib/budgea_client/api/pfm_api.rb +12 -12
  44. data/lib/budgea_client/api/providers_api.rb +263 -63
  45. data/lib/budgea_client/api/recipients_api.rb +1 -1
  46. data/lib/budgea_client/api/terms_api.rb +76 -10
  47. data/lib/budgea_client/api/transfer_api.rb +1 -1
  48. data/lib/budgea_client/api/transfers_api.rb +37 -37
  49. data/lib/budgea_client/api/users_management_api.rb +4 -4
  50. data/lib/budgea_client/api/wealth_api.rb +78 -54
  51. data/lib/budgea_client/api_client.rb +3 -1
  52. data/lib/budgea_client/api_error.rb +1 -1
  53. data/lib/budgea_client/configuration.rb +1 -1
  54. data/lib/budgea_client/models/access.rb +3 -2
  55. data/lib/budgea_client/models/account.rb +15 -3
  56. data/lib/budgea_client/models/account_log.rb +3 -2
  57. data/lib/budgea_client/models/account_type.rb +3 -2
  58. data/lib/budgea_client/models/alert.rb +3 -2
  59. data/lib/budgea_client/models/auth_provider.rb +3 -2
  60. data/lib/budgea_client/models/category.rb +3 -2
  61. data/lib/budgea_client/models/certificate.rb +3 -2
  62. data/lib/budgea_client/models/client.rb +3 -2
  63. data/lib/budgea_client/models/config_log.rb +3 -2
  64. data/lib/budgea_client/models/connection.rb +59 -3
  65. data/lib/budgea_client/models/connection_log.rb +3 -2
  66. data/lib/budgea_client/models/connection_source.rb +3 -2
  67. data/lib/budgea_client/models/connector.rb +3 -2
  68. data/lib/budgea_client/models/connector_category.rb +3 -2
  69. data/lib/budgea_client/models/connector_logo.rb +3 -2
  70. data/lib/budgea_client/models/connector_source.rb +3 -2
  71. data/lib/budgea_client/models/currency.rb +3 -2
  72. data/lib/budgea_client/models/device.rb +3 -2
  73. data/lib/budgea_client/models/document.rb +3 -2
  74. data/lib/budgea_client/models/document_type.rb +3 -2
  75. data/lib/budgea_client/models/field.rb +3 -2
  76. data/lib/budgea_client/models/field_value.rb +3 -2
  77. data/lib/budgea_client/models/file.rb +3 -2
  78. data/lib/budgea_client/models/group.rb +3 -2
  79. data/lib/budgea_client/models/hash_table.rb +3 -2
  80. data/lib/budgea_client/models/inline_response_200.rb +3 -2
  81. data/lib/budgea_client/models/inline_response_200_1.rb +3 -2
  82. data/lib/budgea_client/models/inline_response_200_10.rb +3 -2
  83. data/lib/budgea_client/models/inline_response_200_11.rb +3 -2
  84. data/lib/budgea_client/models/inline_response_200_12.rb +3 -2
  85. data/lib/budgea_client/models/inline_response_200_13.rb +3 -2
  86. data/lib/budgea_client/models/inline_response_200_14.rb +3 -2
  87. data/lib/budgea_client/models/inline_response_200_15.rb +3 -2
  88. data/lib/budgea_client/models/inline_response_200_16.rb +14 -13
  89. data/lib/budgea_client/models/inline_response_200_17.rb +21 -20
  90. data/lib/budgea_client/models/inline_response_200_18.rb +21 -20
  91. data/lib/budgea_client/models/inline_response_200_19.rb +21 -20
  92. data/lib/budgea_client/models/inline_response_200_2.rb +3 -2
  93. data/lib/budgea_client/models/inline_response_200_20.rb +21 -20
  94. data/lib/budgea_client/models/inline_response_200_21.rb +21 -20
  95. data/lib/budgea_client/models/inline_response_200_22.rb +14 -13
  96. data/lib/budgea_client/models/inline_response_200_23.rb +14 -13
  97. data/lib/budgea_client/models/inline_response_200_24.rb +21 -20
  98. data/lib/budgea_client/models/inline_response_200_25.rb +21 -20
  99. data/lib/budgea_client/models/inline_response_200_26.rb +14 -13
  100. data/lib/budgea_client/models/inline_response_200_27.rb +14 -13
  101. data/lib/budgea_client/models/inline_response_200_28.rb +14 -13
  102. data/lib/budgea_client/models/inline_response_200_29.rb +21 -20
  103. data/lib/budgea_client/models/inline_response_200_3.rb +3 -2
  104. data/lib/budgea_client/models/inline_response_200_30.rb +14 -13
  105. data/lib/budgea_client/models/inline_response_200_31.rb +3 -2
  106. data/lib/budgea_client/models/inline_response_200_32.rb +3 -2
  107. data/lib/budgea_client/models/inline_response_200_33.rb +3 -2
  108. data/lib/budgea_client/models/inline_response_200_34.rb +3 -2
  109. data/lib/budgea_client/models/inline_response_200_35.rb +3 -2
  110. data/lib/budgea_client/models/inline_response_200_36.rb +3 -2
  111. data/lib/budgea_client/models/inline_response_200_37.rb +3 -2
  112. data/lib/budgea_client/models/inline_response_200_38.rb +3 -2
  113. data/lib/budgea_client/models/inline_response_200_39.rb +3 -2
  114. data/lib/budgea_client/models/inline_response_200_4.rb +3 -2
  115. data/lib/budgea_client/models/inline_response_200_40.rb +3 -2
  116. data/lib/budgea_client/models/inline_response_200_41.rb +3 -2
  117. data/lib/budgea_client/models/inline_response_200_42.rb +3 -2
  118. data/lib/budgea_client/models/inline_response_200_5.rb +3 -2
  119. data/lib/budgea_client/models/inline_response_200_6.rb +3 -2
  120. data/lib/budgea_client/models/inline_response_200_7.rb +3 -2
  121. data/lib/budgea_client/models/inline_response_200_8.rb +3 -2
  122. data/lib/budgea_client/models/inline_response_200_9.rb +3 -2
  123. data/lib/budgea_client/models/investment.rb +3 -2
  124. data/lib/budgea_client/models/investment_value.rb +3 -2
  125. data/lib/budgea_client/models/keyword.rb +3 -2
  126. data/lib/budgea_client/models/locked_user.rb +3 -2
  127. data/lib/budgea_client/models/oidc_whitelist.rb +3 -2
  128. data/lib/budgea_client/models/order.rb +3 -2
  129. data/lib/budgea_client/models/pocket.rb +3 -2
  130. data/lib/budgea_client/models/profile.rb +3 -2
  131. data/lib/budgea_client/models/project.rb +3 -2
  132. data/lib/budgea_client/models/project_type.rb +3 -2
  133. data/lib/budgea_client/models/recipient.rb +3 -2
  134. data/lib/budgea_client/models/recipient_log.rb +3 -2
  135. data/lib/budgea_client/models/security.rb +3 -2
  136. data/lib/budgea_client/models/subscription.rb +3 -2
  137. data/lib/budgea_client/models/subscription_log.rb +3 -2
  138. data/lib/budgea_client/models/terms_of_service.rb +3 -2
  139. data/lib/budgea_client/models/transaction.rb +3 -2
  140. data/lib/budgea_client/models/transaction_information.rb +3 -2
  141. data/lib/budgea_client/models/transactions_cluster.rb +3 -2
  142. data/lib/budgea_client/models/transfer.rb +3 -2
  143. data/lib/budgea_client/models/transfer_log.rb +3 -2
  144. data/lib/budgea_client/models/user.rb +3 -2
  145. data/lib/budgea_client/models/user_alert.rb +3 -2
  146. data/lib/budgea_client/models/webhook.rb +3 -2
  147. data/lib/budgea_client/models/webhook_data.rb +3 -2
  148. data/lib/budgea_client/models/webhook_log.rb +3 -2
  149. data/lib/budgea_client/version.rb +2 -2
  150. data/original_budgea_openapi.json +1559 -1474
  151. data/pkg/budgea_client-5.0.3.gem +0 -0
  152. metadata +3 -4
  153. data/lib/budgea_client/api/hub_api.rb +0 -76
  154. data/lib/budgea_client/models/invite.rb +0 -238
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: budgea_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.3
4
+ version: 5.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chaker Nakhli
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-01-13 00:00:00.000000000 Z
11
+ date: 2020-06-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -323,7 +323,6 @@ files:
323
323
  - lib/budgea_client/api/banks_api.rb
324
324
  - lib/budgea_client/api/connections_api.rb
325
325
  - lib/budgea_client/api/documents_api.rb
326
- - lib/budgea_client/api/hub_api.rb
327
326
  - lib/budgea_client/api/ocr_api.rb
328
327
  - lib/budgea_client/api/oidc_api.rb
329
328
  - lib/budgea_client/api/pfm_api.rb
@@ -408,7 +407,6 @@ files:
408
407
  - lib/budgea_client/models/inline_response_200_9.rb
409
408
  - lib/budgea_client/models/investment.rb
410
409
  - lib/budgea_client/models/investment_value.rb
411
- - lib/budgea_client/models/invite.rb
412
410
  - lib/budgea_client/models/keyword.rb
413
411
  - lib/budgea_client/models/locked_user.rb
414
412
  - lib/budgea_client/models/oidc_whitelist.rb
@@ -435,6 +433,7 @@ files:
435
433
  - lib/budgea_client/models/webhook_log.rb
436
434
  - lib/budgea_client/version.rb
437
435
  - original_budgea_openapi.json
436
+ - pkg/budgea_client-5.0.3.gem
438
437
  - spec/api/administration_api_spec.rb
439
438
  - spec/api/authentication_api_spec.rb
440
439
  - spec/api/banks_api_spec.rb
@@ -1,76 +0,0 @@
1
- =begin
2
- #Budgea API Documentation
3
-
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'
14
-
15
- module BudgeaClient
16
- class HUBApi
17
- attr_accessor :api_client
18
-
19
- def initialize(api_client = ApiClient.default)
20
- @api_client = api_client
21
- end
22
- # Setup a field to store in user config when calling the endpoint
23
- # For each parameter, a value will be added in the webhook data. Use the key to set the name of the field. The values that can be added are to be found in the user configuration.<br><br>
24
- # @param id_webhook
25
- # @param [Hash] opts the optional parameters
26
- # @return [nil]
27
- def webhooks_id_webhook_add_to_data_post(id_webhook, opts = {})
28
- webhooks_id_webhook_add_to_data_post_with_http_info(id_webhook, opts)
29
- nil
30
- end
31
-
32
- # Setup a field to store in user config when calling the endpoint
33
- # For each parameter, a value will be added in the webhook data. Use the key to set the name of the field. The values that can be added are to be found in the user configuration.&lt;br&gt;&lt;br&gt;
34
- # @param id_webhook
35
- # @param [Hash] opts the optional parameters
36
- # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
37
- def webhooks_id_webhook_add_to_data_post_with_http_info(id_webhook, opts = {})
38
- if @api_client.config.debugging
39
- @api_client.config.logger.debug 'Calling API: HUBApi.webhooks_id_webhook_add_to_data_post ...'
40
- end
41
- # verify the required parameter 'id_webhook' is set
42
- if @api_client.config.client_side_validation && id_webhook.nil?
43
- fail ArgumentError, "Missing the required parameter 'id_webhook' when calling HUBApi.webhooks_id_webhook_add_to_data_post"
44
- end
45
- # resource path
46
- local_var_path = '/webhooks/{id_webhook}/add_to_data'.sub('{' + 'id_webhook' + '}', id_webhook.to_s)
47
-
48
- # query parameters
49
- query_params = {}
50
-
51
- # header parameters
52
- header_params = {}
53
- # HTTP header 'Accept' (if needed)
54
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
55
- # HTTP header 'Content-Type'
56
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
57
-
58
- # form parameters
59
- form_params = {}
60
-
61
- # http body (model)
62
- post_body = nil
63
- auth_names = ['api_key']
64
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
65
- :header_params => header_params,
66
- :query_params => query_params,
67
- :form_params => form_params,
68
- :body => post_body,
69
- :auth_names => auth_names)
70
- if @api_client.config.debugging
71
- @api_client.config.logger.debug "API called: HUBApi#webhooks_id_webhook_add_to_data_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
72
- end
73
- return data, status_code, headers
74
- end
75
- end
76
- end
@@ -1,238 +0,0 @@
1
- =begin
2
- #Budgea API Documentation
3
-
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 'date'
14
-
15
- module BudgeaClient
16
- class Invite
17
- attr_accessor :id
18
-
19
- attr_accessor :id_unsubscribe
20
-
21
- attr_accessor :id_user_inviting
22
-
23
- attr_accessor :id_user_invited
24
-
25
- attr_accessor :email_invited
26
-
27
- attr_accessor :timestamp
28
-
29
- # Attribute mapping from ruby-style variable name to JSON key.
30
- def self.attribute_map
31
- {
32
- :'id' => :'id',
33
- :'id_unsubscribe' => :'id_unsubscribe',
34
- :'id_user_inviting' => :'id_user_inviting',
35
- :'id_user_invited' => :'id_user_invited',
36
- :'email_invited' => :'email_invited',
37
- :'timestamp' => :'timestamp'
38
- }
39
- end
40
-
41
- # Attribute type mapping.
42
- def self.swagger_types
43
- {
44
- :'id' => :'Integer',
45
- :'id_unsubscribe' => :'Integer',
46
- :'id_user_inviting' => :'Integer',
47
- :'id_user_invited' => :'Integer',
48
- :'email_invited' => :'String',
49
- :'timestamp' => :'DateTime'
50
- }
51
- end
52
-
53
- # Initializes the object
54
- # @param [Hash] attributes Model attributes in the form of hash
55
- def initialize(attributes = {})
56
- return unless attributes.is_a?(Hash)
57
-
58
- # convert string to symbol for hash key
59
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
60
-
61
- if attributes.has_key?(:'id')
62
- self.id = attributes[:'id']
63
- end
64
-
65
- if attributes.has_key?(:'id_unsubscribe')
66
- self.id_unsubscribe = attributes[:'id_unsubscribe']
67
- end
68
-
69
- if attributes.has_key?(:'id_user_inviting')
70
- self.id_user_inviting = attributes[:'id_user_inviting']
71
- end
72
-
73
- if attributes.has_key?(:'id_user_invited')
74
- self.id_user_invited = attributes[:'id_user_invited']
75
- end
76
-
77
- if attributes.has_key?(:'email_invited')
78
- self.email_invited = attributes[:'email_invited']
79
- end
80
-
81
- if attributes.has_key?(:'timestamp')
82
- self.timestamp = attributes[:'timestamp']
83
- end
84
- end
85
-
86
- # Show invalid properties with the reasons. Usually used together with valid?
87
- # @return Array for valid properties with the reasons
88
- def list_invalid_properties
89
- invalid_properties = Array.new
90
- if @id.nil?
91
- invalid_properties.push('invalid value for "id", id cannot be nil.')
92
- end
93
-
94
- if @id_user_inviting.nil?
95
- invalid_properties.push('invalid value for "id_user_inviting", id_user_inviting cannot be nil.')
96
- end
97
-
98
- invalid_properties
99
- end
100
-
101
- # Check to see if the all the properties in the model are valid
102
- # @return true if the model is valid
103
- def valid?
104
- return false if @id.nil?
105
- return false if @id_user_inviting.nil?
106
- true
107
- end
108
-
109
- # Checks equality by comparing each attribute.
110
- # @param [Object] Object to be compared
111
- def ==(o)
112
- return true if self.equal?(o)
113
- self.class == o.class &&
114
- id == o.id &&
115
- id_unsubscribe == o.id_unsubscribe &&
116
- id_user_inviting == o.id_user_inviting &&
117
- id_user_invited == o.id_user_invited &&
118
- email_invited == o.email_invited &&
119
- timestamp == o.timestamp
120
- end
121
-
122
- # @see the `==` method
123
- # @param [Object] Object to be compared
124
- def eql?(o)
125
- self == o
126
- end
127
-
128
- # Calculates hash code according to all attributes.
129
- # @return [Fixnum] Hash code
130
- def hash
131
- [id, id_unsubscribe, id_user_inviting, id_user_invited, email_invited, timestamp].hash
132
- end
133
-
134
- # Builds the object from hash
135
- # @param [Hash] attributes Model attributes in the form of hash
136
- # @return [Object] Returns the model itself
137
- def build_from_hash(attributes)
138
- return nil unless attributes.is_a?(Hash)
139
- self.class.swagger_types.each_pair do |key, type|
140
- if type =~ /\AArray<(.*)>/i
141
- # check to ensure the input is an array given that the the attribute
142
- # is documented as an array but the input is not
143
- if attributes[self.class.attribute_map[key]].is_a?(Array)
144
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
145
- end
146
- elsif !attributes[self.class.attribute_map[key]].nil?
147
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
148
- end # or else data not found in attributes(hash), not an issue as the data can be optional
149
- end
150
-
151
- self
152
- end
153
-
154
- # Deserializes the data based on type
155
- # @param string type Data type
156
- # @param string value Value to be deserialized
157
- # @return [Object] Deserialized data
158
- def _deserialize(type, value)
159
- case type.to_sym
160
- when :DateTime
161
- DateTime.parse(value)
162
- when :Date
163
- Date.parse(value)
164
- when :String
165
- value.to_s
166
- when :Integer
167
- value.to_i
168
- when :Float
169
- value.to_f
170
- when :BOOLEAN
171
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
172
- true
173
- else
174
- false
175
- end
176
- when :Object
177
- # generic object (usually a Hash), return directly
178
- value
179
- when /\AArray<(?<inner_type>.+)>\z/
180
- inner_type = Regexp.last_match[:inner_type]
181
- value.map { |v| _deserialize(inner_type, v) }
182
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
183
- k_type = Regexp.last_match[:k_type]
184
- v_type = Regexp.last_match[:v_type]
185
- {}.tap do |hash|
186
- value.each do |k, v|
187
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
188
- end
189
- end
190
- else # model
191
- temp_model = BudgeaClient.const_get(type).new
192
- temp_model.build_from_hash(value)
193
- end
194
- end
195
-
196
- # Returns the string representation of the object
197
- # @return [String] String presentation of the object
198
- def to_s
199
- to_hash.to_s
200
- end
201
-
202
- # to_body is an alias to to_hash (backward compatibility)
203
- # @return [Hash] Returns the object in the form of hash
204
- def to_body
205
- to_hash
206
- end
207
-
208
- # Returns the object in the form of hash
209
- # @return [Hash] Returns the object in the form of hash
210
- def to_hash
211
- hash = {}
212
- self.class.attribute_map.each_pair do |attr, param|
213
- value = self.send(attr)
214
- next if value.nil?
215
- hash[param] = _to_hash(value)
216
- end
217
- hash
218
- end
219
-
220
- # Outputs non-array value in the form of hash
221
- # For object, use to_hash. Otherwise, just return the value
222
- # @param [Object] value Any valid value
223
- # @return [Hash] Returns the value in the form of hash
224
- def _to_hash(value)
225
- if value.is_a?(Array)
226
- value.compact.map { |v| _to_hash(v) }
227
- elsif value.is_a?(Hash)
228
- {}.tap do |hash|
229
- value.each { |k, v| hash[k] = _to_hash(v) }
230
- end
231
- elsif value.respond_to? :to_hash
232
- value.to_hash
233
- else
234
- value
235
- end
236
- end
237
- end
238
- end