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,9 +1,18 @@
1
- # frozen_string_literal: true
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
2
12
 
3
13
  require 'date'
4
14
 
5
15
  module BudgeaClient
6
-
7
16
  class Project
8
17
  attr_accessor :id
9
18
 
@@ -23,7 +32,6 @@ module BudgeaClient
23
32
 
24
33
  attr_accessor :active
25
34
 
26
-
27
35
  # Attribute mapping from ruby-style variable name to JSON key.
28
36
  def self.attribute_map
29
37
  {
@@ -60,7 +68,7 @@ module BudgeaClient
60
68
  return unless attributes.is_a?(Hash)
61
69
 
62
70
  # convert string to symbol for hash key
63
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
71
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
64
72
 
65
73
  if attributes.has_key?(:'id')
66
74
  self.id = attributes[:'id']
@@ -95,7 +103,7 @@ module BudgeaClient
95
103
  if attributes.has_key?(:'comment')
96
104
  self.comment = attributes[:'comment']
97
105
  else
98
- self.comment = ""
106
+ self.comment = ''
99
107
  end
100
108
 
101
109
  if attributes.has_key?(:'active')
@@ -103,7 +111,6 @@ module BudgeaClient
103
111
  else
104
112
  self.active = true
105
113
  end
106
-
107
114
  end
108
115
 
109
116
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -111,42 +118,42 @@ module BudgeaClient
111
118
  def list_invalid_properties
112
119
  invalid_properties = Array.new
113
120
  if @id.nil?
114
- invalid_properties.push("invalid value for 'id', id cannot be nil.")
121
+ invalid_properties.push('invalid value for "id", id cannot be nil.')
115
122
  end
116
123
 
117
124
  if @id_user.nil?
118
- invalid_properties.push("invalid value for 'id_user', id_user cannot be nil.")
125
+ invalid_properties.push('invalid value for "id_user", id_user cannot be nil.')
119
126
  end
120
127
 
121
128
  if @id_type.nil?
122
- invalid_properties.push("invalid value for 'id_type', id_type cannot be nil.")
129
+ invalid_properties.push('invalid value for "id_type", id_type cannot be nil.')
123
130
  end
124
131
 
125
132
  if @name.nil?
126
- invalid_properties.push("invalid value for 'name', name cannot be nil.")
133
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
127
134
  end
128
135
 
129
136
  if @target.nil?
130
- invalid_properties.push("invalid value for 'target', target cannot be nil.")
137
+ invalid_properties.push('invalid value for "target", target cannot be nil.')
131
138
  end
132
139
 
133
140
  if @saved.nil?
134
- invalid_properties.push("invalid value for 'saved', saved cannot be nil.")
141
+ invalid_properties.push('invalid value for "saved", saved cannot be nil.')
135
142
  end
136
143
 
137
144
  if @monthly_savings.nil?
138
- invalid_properties.push("invalid value for 'monthly_savings', monthly_savings cannot be nil.")
145
+ invalid_properties.push('invalid value for "monthly_savings", monthly_savings cannot be nil.')
139
146
  end
140
147
 
141
148
  if @comment.nil?
142
- invalid_properties.push("invalid value for 'comment', comment cannot be nil.")
149
+ invalid_properties.push('invalid value for "comment", comment cannot be nil.')
143
150
  end
144
151
 
145
152
  if @active.nil?
146
- invalid_properties.push("invalid value for 'active', active cannot be nil.")
153
+ invalid_properties.push('invalid value for "active", active cannot be nil.')
147
154
  end
148
155
 
149
- return invalid_properties
156
+ invalid_properties
150
157
  end
151
158
 
152
159
  # Check to see if the all the properties in the model are valid
@@ -161,7 +168,7 @@ module BudgeaClient
161
168
  return false if @monthly_savings.nil?
162
169
  return false if @comment.nil?
163
170
  return false if @active.nil?
164
- return true
171
+ true
165
172
  end
166
173
 
167
174
  # Checks equality by comparing each attribute.
@@ -202,7 +209,7 @@ module BudgeaClient
202
209
  # check to ensure the input is an array given that the the attribute
203
210
  # is documented as an array but the input is not
204
211
  if attributes[self.class.attribute_map[key]].is_a?(Array)
205
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
212
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
206
213
  end
207
214
  elsif !attributes[self.class.attribute_map[key]].nil?
208
215
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -284,7 +291,7 @@ module BudgeaClient
284
291
  # @return [Hash] Returns the value in the form of hash
285
292
  def _to_hash(value)
286
293
  if value.is_a?(Array)
287
- value.compact.map{ |v| _to_hash(v) }
294
+ value.compact.map { |v| _to_hash(v) }
288
295
  elsif value.is_a?(Hash)
289
296
  {}.tap do |hash|
290
297
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -295,7 +302,5 @@ module BudgeaClient
295
302
  value
296
303
  end
297
304
  end
298
-
299
305
  end
300
-
301
306
  end
@@ -1,9 +1,18 @@
1
- # frozen_string_literal: true
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
2
12
 
3
13
  require 'date'
4
14
 
5
15
  module BudgeaClient
6
-
7
16
  class ProjectType
8
17
  attr_accessor :id
9
18
 
@@ -11,7 +20,6 @@ module BudgeaClient
11
20
 
12
21
  attr_accessor :icon_url
13
22
 
14
-
15
23
  # Attribute mapping from ruby-style variable name to JSON key.
16
24
  def self.attribute_map
17
25
  {
@@ -36,7 +44,7 @@ module BudgeaClient
36
44
  return unless attributes.is_a?(Hash)
37
45
 
38
46
  # convert string to symbol for hash key
39
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
47
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
40
48
 
41
49
  if attributes.has_key?(:'id')
42
50
  self.id = attributes[:'id']
@@ -49,7 +57,6 @@ module BudgeaClient
49
57
  if attributes.has_key?(:'icon_url')
50
58
  self.icon_url = attributes[:'icon_url']
51
59
  end
52
-
53
60
  end
54
61
 
55
62
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -57,14 +64,14 @@ module BudgeaClient
57
64
  def list_invalid_properties
58
65
  invalid_properties = Array.new
59
66
  if @id.nil?
60
- invalid_properties.push("invalid value for 'id', id cannot be nil.")
67
+ invalid_properties.push('invalid value for "id", id cannot be nil.')
61
68
  end
62
69
 
63
70
  if @name.nil?
64
- invalid_properties.push("invalid value for 'name', name cannot be nil.")
71
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
65
72
  end
66
73
 
67
- return invalid_properties
74
+ invalid_properties
68
75
  end
69
76
 
70
77
  # Check to see if the all the properties in the model are valid
@@ -72,7 +79,7 @@ module BudgeaClient
72
79
  def valid?
73
80
  return false if @id.nil?
74
81
  return false if @name.nil?
75
- return true
82
+ true
76
83
  end
77
84
 
78
85
  # Checks equality by comparing each attribute.
@@ -107,7 +114,7 @@ module BudgeaClient
107
114
  # check to ensure the input is an array given that the the attribute
108
115
  # is documented as an array but the input is not
109
116
  if attributes[self.class.attribute_map[key]].is_a?(Array)
110
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
117
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
111
118
  end
112
119
  elsif !attributes[self.class.attribute_map[key]].nil?
113
120
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -189,7 +196,7 @@ module BudgeaClient
189
196
  # @return [Hash] Returns the value in the form of hash
190
197
  def _to_hash(value)
191
198
  if value.is_a?(Array)
192
- value.compact.map{ |v| _to_hash(v) }
199
+ value.compact.map { |v| _to_hash(v) }
193
200
  elsif value.is_a?(Hash)
194
201
  {}.tap do |hash|
195
202
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -200,7 +207,5 @@ module BudgeaClient
200
207
  value
201
208
  end
202
209
  end
203
-
204
210
  end
205
-
206
211
  end
@@ -1,9 +1,18 @@
1
- # frozen_string_literal: true
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
2
12
 
3
13
  require 'date'
4
14
 
5
15
  module BudgeaClient
6
-
7
16
  class Recipient
8
17
  # ID of the recipient
9
18
  attr_accessor :id
@@ -46,10 +55,18 @@ module BudgeaClient
46
55
  # Was the recipient adding authorized
47
56
  attr_accessor :add_verified
48
57
 
58
+ # State of recipient
59
+ attr_accessor :state
60
+
61
+ # Error message
62
+ attr_accessor :error
63
+
64
+ # Fields for recipient with additionalInformationNeeded state
65
+ attr_accessor :fields
66
+
49
67
  # Currency of the object
50
68
  attr_accessor :currency
51
69
 
52
-
53
70
  # Attribute mapping from ruby-style variable name to JSON key.
54
71
  def self.attribute_map
55
72
  {
@@ -67,6 +84,9 @@ module BudgeaClient
67
84
  :'expire' => :'expire',
68
85
  :'enabled_at' => :'enabled_at',
69
86
  :'add_verified' => :'add_verified',
87
+ :'state' => :'state',
88
+ :'error' => :'error',
89
+ :'fields' => :'fields',
70
90
  :'currency' => :'currency'
71
91
  }
72
92
  end
@@ -88,6 +108,9 @@ module BudgeaClient
88
108
  :'expire' => :'DateTime',
89
109
  :'enabled_at' => :'DateTime',
90
110
  :'add_verified' => :'BOOLEAN',
111
+ :'state' => :'String',
112
+ :'error' => :'String',
113
+ :'fields' => :'String',
91
114
  :'currency' => :'Object'
92
115
  }
93
116
  end
@@ -98,7 +121,7 @@ module BudgeaClient
98
121
  return unless attributes.is_a?(Hash)
99
122
 
100
123
  # convert string to symbol for hash key
101
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
124
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
102
125
 
103
126
  if attributes.has_key?(:'id')
104
127
  self.id = attributes[:'id']
@@ -156,10 +179,21 @@ module BudgeaClient
156
179
  self.add_verified = attributes[:'add_verified']
157
180
  end
158
181
 
182
+ if attributes.has_key?(:'state')
183
+ self.state = attributes[:'state']
184
+ end
185
+
186
+ if attributes.has_key?(:'error')
187
+ self.error = attributes[:'error']
188
+ end
189
+
190
+ if attributes.has_key?(:'fields')
191
+ self.fields = attributes[:'fields']
192
+ end
193
+
159
194
  if attributes.has_key?(:'currency')
160
195
  self.currency = attributes[:'currency']
161
196
  end
162
-
163
197
  end
164
198
 
165
199
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -167,26 +201,26 @@ module BudgeaClient
167
201
  def list_invalid_properties
168
202
  invalid_properties = Array.new
169
203
  if @id.nil?
170
- invalid_properties.push("invalid value for 'id', id cannot be nil.")
204
+ invalid_properties.push('invalid value for "id", id cannot be nil.')
171
205
  end
172
206
 
173
207
  if @id_account.nil?
174
- invalid_properties.push("invalid value for 'id_account', id_account cannot be nil.")
208
+ invalid_properties.push('invalid value for "id_account", id_account cannot be nil.')
175
209
  end
176
210
 
177
211
  if @label.nil?
178
- invalid_properties.push("invalid value for 'label', label cannot be nil.")
212
+ invalid_properties.push('invalid value for "label", label cannot be nil.')
179
213
  end
180
214
 
181
215
  if @category.nil?
182
- invalid_properties.push("invalid value for 'category', category cannot be nil.")
216
+ invalid_properties.push('invalid value for "category", category cannot be nil.')
183
217
  end
184
218
 
185
219
  if @last_update.nil?
186
- invalid_properties.push("invalid value for 'last_update', last_update cannot be nil.")
220
+ invalid_properties.push('invalid value for "last_update", last_update cannot be nil.')
187
221
  end
188
222
 
189
- return invalid_properties
223
+ invalid_properties
190
224
  end
191
225
 
192
226
  # Check to see if the all the properties in the model are valid
@@ -197,7 +231,7 @@ module BudgeaClient
197
231
  return false if @label.nil?
198
232
  return false if @category.nil?
199
233
  return false if @last_update.nil?
200
- return true
234
+ true
201
235
  end
202
236
 
203
237
  # Checks equality by comparing each attribute.
@@ -219,6 +253,9 @@ module BudgeaClient
219
253
  expire == o.expire &&
220
254
  enabled_at == o.enabled_at &&
221
255
  add_verified == o.add_verified &&
256
+ state == o.state &&
257
+ error == o.error &&
258
+ fields == o.fields &&
222
259
  currency == o.currency
223
260
  end
224
261
 
@@ -231,7 +268,7 @@ module BudgeaClient
231
268
  # Calculates hash code according to all attributes.
232
269
  # @return [Fixnum] Hash code
233
270
  def hash
234
- [id, id_account, id_target_account, label, bank_name, iban, webid, category, last_update, time_scraped, deleted, expire, enabled_at, add_verified, currency].hash
271
+ [id, id_account, id_target_account, label, bank_name, iban, webid, category, last_update, time_scraped, deleted, expire, enabled_at, add_verified, state, error, fields, currency].hash
235
272
  end
236
273
 
237
274
  # Builds the object from hash
@@ -244,7 +281,7 @@ module BudgeaClient
244
281
  # check to ensure the input is an array given that the the attribute
245
282
  # is documented as an array but the input is not
246
283
  if attributes[self.class.attribute_map[key]].is_a?(Array)
247
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
284
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
248
285
  end
249
286
  elsif !attributes[self.class.attribute_map[key]].nil?
250
287
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -326,7 +363,7 @@ module BudgeaClient
326
363
  # @return [Hash] Returns the value in the form of hash
327
364
  def _to_hash(value)
328
365
  if value.is_a?(Array)
329
- value.compact.map{ |v| _to_hash(v) }
366
+ value.compact.map { |v| _to_hash(v) }
330
367
  elsif value.is_a?(Hash)
331
368
  {}.tap do |hash|
332
369
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -337,7 +374,5 @@ module BudgeaClient
337
374
  value
338
375
  end
339
376
  end
340
-
341
377
  end
342
-
343
378
  end
@@ -0,0 +1,254 @@
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 RecipientLog
17
+ # ID of the transfer log entry
18
+ attr_accessor :id
19
+
20
+ # ID of the related recipient
21
+ attr_accessor :id_recipient
22
+
23
+ # ID of the related file
24
+ attr_accessor :id_file
25
+
26
+ # Data stored related to user who has requested the recipient addition
27
+ attr_accessor :request_data
28
+
29
+ # Step of recipient addition, (add_recipient, asking_field, recipient addition validated, creation, storing_files)
30
+ attr_accessor :step
31
+
32
+ # Error message during recipient addition, if any
33
+ attr_accessor :error
34
+
35
+ # Timestamp of the log
36
+ attr_accessor :timestamp
37
+
38
+ # Attribute mapping from ruby-style variable name to JSON key.
39
+ def self.attribute_map
40
+ {
41
+ :'id' => :'id',
42
+ :'id_recipient' => :'id_recipient',
43
+ :'id_file' => :'id_file',
44
+ :'request_data' => :'request_data',
45
+ :'step' => :'step',
46
+ :'error' => :'error',
47
+ :'timestamp' => :'timestamp'
48
+ }
49
+ end
50
+
51
+ # Attribute type mapping.
52
+ def self.swagger_types
53
+ {
54
+ :'id' => :'Integer',
55
+ :'id_recipient' => :'Integer',
56
+ :'id_file' => :'Integer',
57
+ :'request_data' => :'String',
58
+ :'step' => :'String',
59
+ :'error' => :'String',
60
+ :'timestamp' => :'DateTime'
61
+ }
62
+ end
63
+
64
+ # Initializes the object
65
+ # @param [Hash] attributes Model attributes in the form of hash
66
+ def initialize(attributes = {})
67
+ return unless attributes.is_a?(Hash)
68
+
69
+ # convert string to symbol for hash key
70
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
71
+
72
+ if attributes.has_key?(:'id')
73
+ self.id = attributes[:'id']
74
+ end
75
+
76
+ if attributes.has_key?(:'id_recipient')
77
+ self.id_recipient = attributes[:'id_recipient']
78
+ end
79
+
80
+ if attributes.has_key?(:'id_file')
81
+ self.id_file = attributes[:'id_file']
82
+ end
83
+
84
+ if attributes.has_key?(:'request_data')
85
+ self.request_data = attributes[:'request_data']
86
+ end
87
+
88
+ if attributes.has_key?(:'step')
89
+ self.step = attributes[:'step']
90
+ end
91
+
92
+ if attributes.has_key?(:'error')
93
+ self.error = attributes[:'error']
94
+ end
95
+
96
+ if attributes.has_key?(:'timestamp')
97
+ self.timestamp = attributes[:'timestamp']
98
+ end
99
+ end
100
+
101
+ # Show invalid properties with the reasons. Usually used together with valid?
102
+ # @return Array for valid properties with the reasons
103
+ def list_invalid_properties
104
+ invalid_properties = Array.new
105
+ if @id.nil?
106
+ invalid_properties.push('invalid value for "id", id cannot be nil.')
107
+ end
108
+
109
+ if @timestamp.nil?
110
+ invalid_properties.push('invalid value for "timestamp", timestamp cannot be nil.')
111
+ end
112
+
113
+ invalid_properties
114
+ end
115
+
116
+ # Check to see if the all the properties in the model are valid
117
+ # @return true if the model is valid
118
+ def valid?
119
+ return false if @id.nil?
120
+ return false if @timestamp.nil?
121
+ true
122
+ end
123
+
124
+ # Checks equality by comparing each attribute.
125
+ # @param [Object] Object to be compared
126
+ def ==(o)
127
+ return true if self.equal?(o)
128
+ self.class == o.class &&
129
+ id == o.id &&
130
+ id_recipient == o.id_recipient &&
131
+ id_file == o.id_file &&
132
+ request_data == o.request_data &&
133
+ step == o.step &&
134
+ error == o.error &&
135
+ timestamp == o.timestamp
136
+ end
137
+
138
+ # @see the `==` method
139
+ # @param [Object] Object to be compared
140
+ def eql?(o)
141
+ self == o
142
+ end
143
+
144
+ # Calculates hash code according to all attributes.
145
+ # @return [Fixnum] Hash code
146
+ def hash
147
+ [id, id_recipient, id_file, request_data, step, error, timestamp].hash
148
+ end
149
+
150
+ # Builds the object from hash
151
+ # @param [Hash] attributes Model attributes in the form of hash
152
+ # @return [Object] Returns the model itself
153
+ def build_from_hash(attributes)
154
+ return nil unless attributes.is_a?(Hash)
155
+ self.class.swagger_types.each_pair do |key, type|
156
+ if type =~ /\AArray<(.*)>/i
157
+ # check to ensure the input is an array given that the the attribute
158
+ # is documented as an array but the input is not
159
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
160
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
161
+ end
162
+ elsif !attributes[self.class.attribute_map[key]].nil?
163
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
164
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
165
+ end
166
+
167
+ self
168
+ end
169
+
170
+ # Deserializes the data based on type
171
+ # @param string type Data type
172
+ # @param string value Value to be deserialized
173
+ # @return [Object] Deserialized data
174
+ def _deserialize(type, value)
175
+ case type.to_sym
176
+ when :DateTime
177
+ DateTime.parse(value)
178
+ when :Date
179
+ Date.parse(value)
180
+ when :String
181
+ value.to_s
182
+ when :Integer
183
+ value.to_i
184
+ when :Float
185
+ value.to_f
186
+ when :BOOLEAN
187
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
188
+ true
189
+ else
190
+ false
191
+ end
192
+ when :Object
193
+ # generic object (usually a Hash), return directly
194
+ value
195
+ when /\AArray<(?<inner_type>.+)>\z/
196
+ inner_type = Regexp.last_match[:inner_type]
197
+ value.map { |v| _deserialize(inner_type, v) }
198
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
199
+ k_type = Regexp.last_match[:k_type]
200
+ v_type = Regexp.last_match[:v_type]
201
+ {}.tap do |hash|
202
+ value.each do |k, v|
203
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
204
+ end
205
+ end
206
+ else # model
207
+ temp_model = BudgeaClient.const_get(type).new
208
+ temp_model.build_from_hash(value)
209
+ end
210
+ end
211
+
212
+ # Returns the string representation of the object
213
+ # @return [String] String presentation of the object
214
+ def to_s
215
+ to_hash.to_s
216
+ end
217
+
218
+ # to_body is an alias to to_hash (backward compatibility)
219
+ # @return [Hash] Returns the object in the form of hash
220
+ def to_body
221
+ to_hash
222
+ end
223
+
224
+ # Returns the object in the form of hash
225
+ # @return [Hash] Returns the object in the form of hash
226
+ def to_hash
227
+ hash = {}
228
+ self.class.attribute_map.each_pair do |attr, param|
229
+ value = self.send(attr)
230
+ next if value.nil?
231
+ hash[param] = _to_hash(value)
232
+ end
233
+ hash
234
+ end
235
+
236
+ # Outputs non-array value in the form of hash
237
+ # For object, use to_hash. Otherwise, just return the value
238
+ # @param [Object] value Any valid value
239
+ # @return [Hash] Returns the value in the form of hash
240
+ def _to_hash(value)
241
+ if value.is_a?(Array)
242
+ value.compact.map { |v| _to_hash(v) }
243
+ elsif value.is_a?(Hash)
244
+ {}.tap do |hash|
245
+ value.each { |k, v| hash[k] = _to_hash(v) }
246
+ end
247
+ elsif value.respond_to? :to_hash
248
+ value.to_hash
249
+ else
250
+ value
251
+ end
252
+ end
253
+ end
254
+ end