budgea_client 1.4.4 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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 TransactionInformation
8
17
  # ID of this transaction information
9
18
  attr_accessor :id
@@ -17,7 +26,6 @@ module BudgeaClient
17
26
  # Value of the transaction information
18
27
  attr_accessor :value
19
28
 
20
-
21
29
  # Attribute mapping from ruby-style variable name to JSON key.
22
30
  def self.attribute_map
23
31
  {
@@ -44,7 +52,7 @@ module BudgeaClient
44
52
  return unless attributes.is_a?(Hash)
45
53
 
46
54
  # convert string to symbol for hash key
47
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
55
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
48
56
 
49
57
  if attributes.has_key?(:'id')
50
58
  self.id = attributes[:'id']
@@ -61,7 +69,6 @@ module BudgeaClient
61
69
  if attributes.has_key?(:'value')
62
70
  self.value = attributes[:'value']
63
71
  end
64
-
65
72
  end
66
73
 
67
74
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -69,18 +76,18 @@ module BudgeaClient
69
76
  def list_invalid_properties
70
77
  invalid_properties = Array.new
71
78
  if @id.nil?
72
- invalid_properties.push("invalid value for 'id', id cannot be nil.")
79
+ invalid_properties.push('invalid value for "id", id cannot be nil.')
73
80
  end
74
81
 
75
82
  if @id_transaction.nil?
76
- invalid_properties.push("invalid value for 'id_transaction', id_transaction cannot be nil.")
83
+ invalid_properties.push('invalid value for "id_transaction", id_transaction cannot be nil.')
77
84
  end
78
85
 
79
86
  if @key.nil?
80
- invalid_properties.push("invalid value for 'key', key cannot be nil.")
87
+ invalid_properties.push('invalid value for "key", key cannot be nil.')
81
88
  end
82
89
 
83
- return invalid_properties
90
+ invalid_properties
84
91
  end
85
92
 
86
93
  # Check to see if the all the properties in the model are valid
@@ -89,7 +96,7 @@ module BudgeaClient
89
96
  return false if @id.nil?
90
97
  return false if @id_transaction.nil?
91
98
  return false if @key.nil?
92
- return true
99
+ true
93
100
  end
94
101
 
95
102
  # Checks equality by comparing each attribute.
@@ -125,7 +132,7 @@ module BudgeaClient
125
132
  # check to ensure the input is an array given that the the attribute
126
133
  # is documented as an array but the input is not
127
134
  if attributes[self.class.attribute_map[key]].is_a?(Array)
128
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
135
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
129
136
  end
130
137
  elsif !attributes[self.class.attribute_map[key]].nil?
131
138
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -207,7 +214,7 @@ module BudgeaClient
207
214
  # @return [Hash] Returns the value in the form of hash
208
215
  def _to_hash(value)
209
216
  if value.is_a?(Array)
210
- value.compact.map{ |v| _to_hash(v) }
217
+ value.compact.map { |v| _to_hash(v) }
211
218
  elsif value.is_a?(Hash)
212
219
  {}.tap do |hash|
213
220
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -218,7 +225,5 @@ module BudgeaClient
218
225
  value
219
226
  end
220
227
  end
221
-
222
228
  end
223
-
224
229
  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 TransactionsCluster
8
17
  attr_accessor :id
9
18
 
@@ -23,7 +32,6 @@ module BudgeaClient
23
32
 
24
33
  attr_accessor :created_by
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']
@@ -99,7 +107,6 @@ module BudgeaClient
99
107
  if attributes.has_key?(:'created_by')
100
108
  self.created_by = attributes[:'created_by']
101
109
  end
102
-
103
110
  end
104
111
 
105
112
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -107,26 +114,26 @@ module BudgeaClient
107
114
  def list_invalid_properties
108
115
  invalid_properties = Array.new
109
116
  if @id.nil?
110
- invalid_properties.push("invalid value for 'id', id cannot be nil.")
117
+ invalid_properties.push('invalid value for "id", id cannot be nil.')
111
118
  end
112
119
 
113
120
  if @id_account.nil?
114
- invalid_properties.push("invalid value for 'id_account', id_account cannot be nil.")
121
+ invalid_properties.push('invalid value for "id_account", id_account cannot be nil.')
115
122
  end
116
123
 
117
124
  if @mean_amount.nil?
118
- invalid_properties.push("invalid value for 'mean_amount', mean_amount cannot be nil.")
125
+ invalid_properties.push('invalid value for "mean_amount", mean_amount cannot be nil.')
119
126
  end
120
127
 
121
128
  if @enabled.nil?
122
- invalid_properties.push("invalid value for 'enabled', enabled cannot be nil.")
129
+ invalid_properties.push('invalid value for "enabled", enabled cannot be nil.')
123
130
  end
124
131
 
125
132
  if @wording.nil?
126
- invalid_properties.push("invalid value for 'wording', wording cannot be nil.")
133
+ invalid_properties.push('invalid value for "wording", wording cannot be nil.')
127
134
  end
128
135
 
129
- return invalid_properties
136
+ invalid_properties
130
137
  end
131
138
 
132
139
  # Check to see if the all the properties in the model are valid
@@ -137,7 +144,7 @@ module BudgeaClient
137
144
  return false if @mean_amount.nil?
138
145
  return false if @enabled.nil?
139
146
  return false if @wording.nil?
140
- return true
147
+ true
141
148
  end
142
149
 
143
150
  # Checks equality by comparing each attribute.
@@ -178,7 +185,7 @@ module BudgeaClient
178
185
  # check to ensure the input is an array given that the the attribute
179
186
  # is documented as an array but the input is not
180
187
  if attributes[self.class.attribute_map[key]].is_a?(Array)
181
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
188
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
182
189
  end
183
190
  elsif !attributes[self.class.attribute_map[key]].nil?
184
191
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -260,7 +267,7 @@ module BudgeaClient
260
267
  # @return [Hash] Returns the value in the form of hash
261
268
  def _to_hash(value)
262
269
  if value.is_a?(Array)
263
- value.compact.map{ |v| _to_hash(v) }
270
+ value.compact.map { |v| _to_hash(v) }
264
271
  elsif value.is_a?(Hash)
265
272
  {}.tap do |hash|
266
273
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -271,7 +278,5 @@ module BudgeaClient
271
278
  value
272
279
  end
273
280
  end
274
-
275
281
  end
276
-
277
282
  end
@@ -1,4 +1,14 @@
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
 
@@ -11,6 +21,9 @@ module BudgeaClient
11
21
  # ID of the debited account
12
22
  attr_accessor :id_account
13
23
 
24
+ # ID of the related user
25
+ attr_accessor :id_user
26
+
14
27
  # ID of the recipient
15
28
  attr_accessor :id_recipient
16
29
 
@@ -53,12 +66,12 @@ module BudgeaClient
53
66
  # Currency of the object
54
67
  attr_accessor :currency
55
68
 
56
-
57
69
  # Attribute mapping from ruby-style variable name to JSON key.
58
70
  def self.attribute_map
59
71
  {
60
72
  :'id' => :'id',
61
73
  :'id_account' => :'id_account',
74
+ :'id_user' => :'id_user',
62
75
  :'id_recipient' => :'id_recipient',
63
76
  :'account_iban' => :'account_iban',
64
77
  :'recipient_iban' => :'recipient_iban',
@@ -81,6 +94,7 @@ module BudgeaClient
81
94
  {
82
95
  :'id' => :'Integer',
83
96
  :'id_account' => :'Integer',
97
+ :'id_user' => :'Integer',
84
98
  :'id_recipient' => :'Integer',
85
99
  :'account_iban' => :'String',
86
100
  :'recipient_iban' => :'String',
@@ -104,7 +118,7 @@ module BudgeaClient
104
118
  return unless attributes.is_a?(Hash)
105
119
 
106
120
  # convert string to symbol for hash key
107
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
121
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
108
122
 
109
123
  if attributes.has_key?(:'id')
110
124
  self.id = attributes[:'id']
@@ -114,6 +128,10 @@ module BudgeaClient
114
128
  self.id_account = attributes[:'id_account']
115
129
  end
116
130
 
131
+ if attributes.has_key?(:'id_user')
132
+ self.id_user = attributes[:'id_user']
133
+ end
134
+
117
135
  if attributes.has_key?(:'id_recipient')
118
136
  self.id_recipient = attributes[:'id_recipient']
119
137
  end
@@ -169,7 +187,6 @@ module BudgeaClient
169
187
  if attributes.has_key?(:'currency')
170
188
  self.currency = attributes[:'currency']
171
189
  end
172
-
173
190
  end
174
191
 
175
192
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -177,26 +194,26 @@ module BudgeaClient
177
194
  def list_invalid_properties
178
195
  invalid_properties = Array.new
179
196
  if @id.nil?
180
- invalid_properties.push("invalid value for 'id', id cannot be nil.")
197
+ invalid_properties.push('invalid value for "id", id cannot be nil.')
181
198
  end
182
199
 
183
200
  if @exec_date.nil?
184
- invalid_properties.push("invalid value for 'exec_date', exec_date cannot be nil.")
201
+ invalid_properties.push('invalid value for "exec_date", exec_date cannot be nil.')
185
202
  end
186
203
 
187
204
  if @register_date.nil?
188
- invalid_properties.push("invalid value for 'register_date', register_date cannot be nil.")
205
+ invalid_properties.push('invalid value for "register_date", register_date cannot be nil.')
189
206
  end
190
207
 
191
208
  if @amount.nil?
192
- invalid_properties.push("invalid value for 'amount', amount cannot be nil.")
209
+ invalid_properties.push('invalid value for "amount", amount cannot be nil.')
193
210
  end
194
211
 
195
212
  if @state.nil?
196
- invalid_properties.push("invalid value for 'state', state cannot be nil.")
213
+ invalid_properties.push('invalid value for "state", state cannot be nil.')
197
214
  end
198
215
 
199
- return invalid_properties
216
+ invalid_properties
200
217
  end
201
218
 
202
219
  # Check to see if the all the properties in the model are valid
@@ -207,7 +224,7 @@ module BudgeaClient
207
224
  return false if @register_date.nil?
208
225
  return false if @amount.nil?
209
226
  return false if @state.nil?
210
- return true
227
+ true
211
228
  end
212
229
 
213
230
  # Checks equality by comparing each attribute.
@@ -217,6 +234,7 @@ module BudgeaClient
217
234
  self.class == o.class &&
218
235
  id == o.id &&
219
236
  id_account == o.id_account &&
237
+ id_user == o.id_user &&
220
238
  id_recipient == o.id_recipient &&
221
239
  account_iban == o.account_iban &&
222
240
  recipient_iban == o.recipient_iban &&
@@ -242,7 +260,7 @@ module BudgeaClient
242
260
  # Calculates hash code according to all attributes.
243
261
  # @return [Fixnum] Hash code
244
262
  def hash
245
- [id, id_account, id_recipient, account_iban, recipient_iban, exec_date, register_date, amount, fees, webid, state, error, label, account_balance, id_transaction, currency].hash
263
+ [id, id_account, id_user, id_recipient, account_iban, recipient_iban, exec_date, register_date, amount, fees, webid, state, error, label, account_balance, id_transaction, currency].hash
246
264
  end
247
265
 
248
266
  # Builds the object from hash
@@ -255,7 +273,7 @@ module BudgeaClient
255
273
  # check to ensure the input is an array given that the the attribute
256
274
  # is documented as an array but the input is not
257
275
  if attributes[self.class.attribute_map[key]].is_a?(Array)
258
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
276
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
259
277
  end
260
278
  elsif !attributes[self.class.attribute_map[key]].nil?
261
279
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -337,7 +355,7 @@ module BudgeaClient
337
355
  # @return [Hash] Returns the value in the form of hash
338
356
  def _to_hash(value)
339
357
  if value.is_a?(Array)
340
- value.compact.map{ |v| _to_hash(v) }
358
+ value.compact.map { |v| _to_hash(v) }
341
359
  elsif value.is_a?(Hash)
342
360
  {}.tap do |hash|
343
361
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -348,7 +366,5 @@ module BudgeaClient
348
366
  value
349
367
  end
350
368
  end
351
-
352
369
  end
353
-
354
370
  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 TransferLog
17
+ # ID of the transfer log entry
18
+ attr_accessor :id
19
+
20
+ # ID of the related transfer
21
+ attr_accessor :id_transfer
22
+
23
+ # ID of the related file
24
+ attr_accessor :id_file
25
+
26
+ # Data stored related to user who has requested the transfer
27
+ attr_accessor :request_data
28
+
29
+ # State of the transfer (created, scheduled, validating, pending, done, canceled, error, bug)
30
+ attr_accessor :state
31
+
32
+ # Error message during transfer, 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_transfer' => :'id_transfer',
43
+ :'id_file' => :'id_file',
44
+ :'request_data' => :'request_data',
45
+ :'state' => :'state',
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_transfer' => :'Integer',
56
+ :'id_file' => :'Integer',
57
+ :'request_data' => :'String',
58
+ :'state' => :'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_transfer')
77
+ self.id_transfer = attributes[:'id_transfer']
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?(:'state')
89
+ self.state = attributes[:'state']
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_transfer == o.id_transfer &&
131
+ id_file == o.id_file &&
132
+ request_data == o.request_data &&
133
+ state == o.state &&
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_transfer, id_file, request_data, state, 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