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 AccountType
8
17
  # ID of the account type
9
18
  attr_accessor :id
@@ -29,7 +38,6 @@ module BudgeaClient
29
38
  # Id of the parent type
30
39
  attr_accessor :id_parent
31
40
 
32
-
33
41
  # Attribute mapping from ruby-style variable name to JSON key.
34
42
  def self.attribute_map
35
43
  {
@@ -64,7 +72,7 @@ module BudgeaClient
64
72
  return unless attributes.is_a?(Hash)
65
73
 
66
74
  # convert string to symbol for hash key
67
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
75
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
68
76
 
69
77
  if attributes.has_key?(:'id')
70
78
  self.id = attributes[:'id']
@@ -99,7 +107,6 @@ module BudgeaClient
99
107
  if attributes.has_key?(:'id_parent')
100
108
  self.id_parent = attributes[:'id_parent']
101
109
  end
102
-
103
110
  end
104
111
 
105
112
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -107,30 +114,30 @@ 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 @name.nil?
114
- invalid_properties.push("invalid value for 'name', name cannot be nil.")
121
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
115
122
  end
116
123
 
117
124
  if @is_invest.nil?
118
- invalid_properties.push("invalid value for 'is_invest', is_invest cannot be nil.")
125
+ invalid_properties.push('invalid value for "is_invest", is_invest cannot be nil.')
119
126
  end
120
127
 
121
128
  if @weboob_type_id.nil?
122
- invalid_properties.push("invalid value for 'weboob_type_id', weboob_type_id cannot be nil.")
129
+ invalid_properties.push('invalid value for "weboob_type_id", weboob_type_id cannot be nil.')
123
130
  end
124
131
 
125
132
  if @display_name_p.nil?
126
- invalid_properties.push("invalid value for 'display_name_p', display_name_p cannot be nil.")
133
+ invalid_properties.push('invalid value for "display_name_p", display_name_p cannot be nil.')
127
134
  end
128
135
 
129
136
  if @display_name.nil?
130
- invalid_properties.push("invalid value for 'display_name', display_name cannot be nil.")
137
+ invalid_properties.push('invalid value for "display_name", display_name cannot be nil.')
131
138
  end
132
139
 
133
- return invalid_properties
140
+ invalid_properties
134
141
  end
135
142
 
136
143
  # Check to see if the all the properties in the model are valid
@@ -142,7 +149,7 @@ module BudgeaClient
142
149
  return false if @weboob_type_id.nil?
143
150
  return false if @display_name_p.nil?
144
151
  return false if @display_name.nil?
145
- return true
152
+ true
146
153
  end
147
154
 
148
155
  # Checks equality by comparing each attribute.
@@ -182,7 +189,7 @@ module BudgeaClient
182
189
  # check to ensure the input is an array given that the the attribute
183
190
  # is documented as an array but the input is not
184
191
  if attributes[self.class.attribute_map[key]].is_a?(Array)
185
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
192
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
186
193
  end
187
194
  elsif !attributes[self.class.attribute_map[key]].nil?
188
195
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -264,7 +271,7 @@ module BudgeaClient
264
271
  # @return [Hash] Returns the value in the form of hash
265
272
  def _to_hash(value)
266
273
  if value.is_a?(Array)
267
- value.compact.map{ |v| _to_hash(v) }
274
+ value.compact.map { |v| _to_hash(v) }
268
275
  elsif value.is_a?(Hash)
269
276
  {}.tap do |hash|
270
277
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -275,7 +282,5 @@ module BudgeaClient
275
282
  value
276
283
  end
277
284
  end
278
-
279
285
  end
280
-
281
286
  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 Alert
8
17
  attr_accessor :id
9
18
 
@@ -28,7 +37,6 @@ module BudgeaClient
28
37
  # ID of the related investment
29
38
  attr_accessor :id_investment
30
39
 
31
-
32
40
  # Attribute mapping from ruby-style variable name to JSON key.
33
41
  def self.attribute_map
34
42
  {
@@ -63,7 +71,7 @@ module BudgeaClient
63
71
  return unless attributes.is_a?(Hash)
64
72
 
65
73
  # convert string to symbol for hash key
66
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
74
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
67
75
 
68
76
  if attributes.has_key?(:'id')
69
77
  self.id = attributes[:'id']
@@ -96,7 +104,6 @@ module BudgeaClient
96
104
  if attributes.has_key?(:'id_investment')
97
105
  self.id_investment = attributes[:'id_investment']
98
106
  end
99
-
100
107
  end
101
108
 
102
109
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -104,26 +111,26 @@ module BudgeaClient
104
111
  def list_invalid_properties
105
112
  invalid_properties = Array.new
106
113
  if @id.nil?
107
- invalid_properties.push("invalid value for 'id', id cannot be nil.")
114
+ invalid_properties.push('invalid value for "id", id cannot be nil.')
108
115
  end
109
116
 
110
117
  if @id_user.nil?
111
- invalid_properties.push("invalid value for 'id_user', id_user cannot be nil.")
118
+ invalid_properties.push('invalid value for "id_user", id_user cannot be nil.')
112
119
  end
113
120
 
114
121
  if @timestamp.nil?
115
- invalid_properties.push("invalid value for 'timestamp', timestamp cannot be nil.")
122
+ invalid_properties.push('invalid value for "timestamp", timestamp cannot be nil.')
116
123
  end
117
124
 
118
125
  if @type.nil?
119
- invalid_properties.push("invalid value for 'type', type cannot be nil.")
126
+ invalid_properties.push('invalid value for "type", type cannot be nil.')
120
127
  end
121
128
 
122
129
  if @value.nil?
123
- invalid_properties.push("invalid value for 'value', value cannot be nil.")
130
+ invalid_properties.push('invalid value for "value", value cannot be nil.')
124
131
  end
125
132
 
126
- return invalid_properties
133
+ invalid_properties
127
134
  end
128
135
 
129
136
  # Check to see if the all the properties in the model are valid
@@ -134,7 +141,7 @@ module BudgeaClient
134
141
  return false if @timestamp.nil?
135
142
  return false if @type.nil?
136
143
  return false if @value.nil?
137
- return true
144
+ true
138
145
  end
139
146
 
140
147
  # Checks equality by comparing each attribute.
@@ -174,7 +181,7 @@ module BudgeaClient
174
181
  # check to ensure the input is an array given that the the attribute
175
182
  # is documented as an array but the input is not
176
183
  if attributes[self.class.attribute_map[key]].is_a?(Array)
177
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
184
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
178
185
  end
179
186
  elsif !attributes[self.class.attribute_map[key]].nil?
180
187
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -256,7 +263,7 @@ module BudgeaClient
256
263
  # @return [Hash] Returns the value in the form of hash
257
264
  def _to_hash(value)
258
265
  if value.is_a?(Array)
259
- value.compact.map{ |v| _to_hash(v) }
266
+ value.compact.map { |v| _to_hash(v) }
260
267
  elsif value.is_a?(Hash)
261
268
  {}.tap do |hash|
262
269
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -267,7 +274,5 @@ module BudgeaClient
267
274
  value
268
275
  end
269
276
  end
270
-
271
277
  end
272
-
273
278
  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 Bank
8
17
  # ID of the connector
9
18
  attr_accessor :id
@@ -40,7 +49,6 @@ module BudgeaClient
40
49
 
41
50
  attr_accessor :fields
42
51
 
43
-
44
52
  # Attribute mapping from ruby-style variable name to JSON key.
45
53
  def self.attribute_map
46
54
  {
@@ -85,7 +93,7 @@ module BudgeaClient
85
93
  return unless attributes.is_a?(Hash)
86
94
 
87
95
  # convert string to symbol for hash key
88
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
96
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
89
97
 
90
98
  if attributes.has_key?(:'id')
91
99
  self.id = attributes[:'id']
@@ -148,7 +156,6 @@ module BudgeaClient
148
156
  self.fields = value
149
157
  end
150
158
  end
151
-
152
159
  end
153
160
 
154
161
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -156,26 +163,26 @@ module BudgeaClient
156
163
  def list_invalid_properties
157
164
  invalid_properties = Array.new
158
165
  if @id.nil?
159
- invalid_properties.push("invalid value for 'id', id cannot be nil.")
166
+ invalid_properties.push('invalid value for "id", id cannot be nil.')
160
167
  end
161
168
 
162
169
  if @name.nil?
163
- invalid_properties.push("invalid value for 'name', name cannot be nil.")
170
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
164
171
  end
165
172
 
166
173
  if @id_weboob.nil?
167
- invalid_properties.push("invalid value for 'id_weboob', id_weboob cannot be nil.")
174
+ invalid_properties.push('invalid value for "id_weboob", id_weboob cannot be nil.')
168
175
  end
169
176
 
170
177
  if @charged.nil?
171
- invalid_properties.push("invalid value for 'charged', charged cannot be nil.")
178
+ invalid_properties.push('invalid value for "charged", charged cannot be nil.')
172
179
  end
173
180
 
174
181
  if @beta.nil?
175
- invalid_properties.push("invalid value for 'beta', beta cannot be nil.")
182
+ invalid_properties.push('invalid value for "beta", beta cannot be nil.')
176
183
  end
177
184
 
178
- return invalid_properties
185
+ invalid_properties
179
186
  end
180
187
 
181
188
  # Check to see if the all the properties in the model are valid
@@ -186,7 +193,7 @@ module BudgeaClient
186
193
  return false if @id_weboob.nil?
187
194
  return false if @charged.nil?
188
195
  return false if @beta.nil?
189
- return true
196
+ true
190
197
  end
191
198
 
192
199
  # Checks equality by comparing each attribute.
@@ -231,7 +238,7 @@ module BudgeaClient
231
238
  # check to ensure the input is an array given that the the attribute
232
239
  # is documented as an array but the input is not
233
240
  if attributes[self.class.attribute_map[key]].is_a?(Array)
234
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
241
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
235
242
  end
236
243
  elsif !attributes[self.class.attribute_map[key]].nil?
237
244
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -313,7 +320,7 @@ module BudgeaClient
313
320
  # @return [Hash] Returns the value in the form of hash
314
321
  def _to_hash(value)
315
322
  if value.is_a?(Array)
316
- value.compact.map{ |v| _to_hash(v) }
323
+ value.compact.map { |v| _to_hash(v) }
317
324
  elsif value.is_a?(Hash)
318
325
  {}.tap do |hash|
319
326
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -324,7 +331,5 @@ module BudgeaClient
324
331
  value
325
332
  end
326
333
  end
327
-
328
334
  end
329
-
330
335
  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 BankCategory
8
17
  # ID of the bank category
9
18
  attr_accessor :id
@@ -11,7 +20,6 @@ module BudgeaClient
11
20
  # Name of the category
12
21
  attr_accessor :name
13
22
 
14
-
15
23
  # Attribute mapping from ruby-style variable name to JSON key.
16
24
  def self.attribute_map
17
25
  {
@@ -34,7 +42,7 @@ module BudgeaClient
34
42
  return unless attributes.is_a?(Hash)
35
43
 
36
44
  # convert string to symbol for hash key
37
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
45
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
38
46
 
39
47
  if attributes.has_key?(:'id')
40
48
  self.id = attributes[:'id']
@@ -43,9 +51,8 @@ module BudgeaClient
43
51
  if attributes.has_key?(:'name')
44
52
  self.name = attributes[:'name']
45
53
  else
46
- self.name = "false"
54
+ self.name = 'false'
47
55
  end
48
-
49
56
  end
50
57
 
51
58
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -53,14 +60,14 @@ module BudgeaClient
53
60
  def list_invalid_properties
54
61
  invalid_properties = Array.new
55
62
  if @id.nil?
56
- invalid_properties.push("invalid value for 'id', id cannot be nil.")
63
+ invalid_properties.push('invalid value for "id", id cannot be nil.')
57
64
  end
58
65
 
59
66
  if @name.nil?
60
- invalid_properties.push("invalid value for 'name', name cannot be nil.")
67
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
61
68
  end
62
69
 
63
- return invalid_properties
70
+ invalid_properties
64
71
  end
65
72
 
66
73
  # Check to see if the all the properties in the model are valid
@@ -68,7 +75,7 @@ module BudgeaClient
68
75
  def valid?
69
76
  return false if @id.nil?
70
77
  return false if @name.nil?
71
- return true
78
+ true
72
79
  end
73
80
 
74
81
  # Checks equality by comparing each attribute.
@@ -102,7 +109,7 @@ module BudgeaClient
102
109
  # check to ensure the input is an array given that the the attribute
103
110
  # is documented as an array but the input is not
104
111
  if attributes[self.class.attribute_map[key]].is_a?(Array)
105
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
112
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
106
113
  end
107
114
  elsif !attributes[self.class.attribute_map[key]].nil?
108
115
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -184,7 +191,7 @@ module BudgeaClient
184
191
  # @return [Hash] Returns the value in the form of hash
185
192
  def _to_hash(value)
186
193
  if value.is_a?(Array)
187
- value.compact.map{ |v| _to_hash(v) }
194
+ value.compact.map { |v| _to_hash(v) }
188
195
  elsif value.is_a?(Hash)
189
196
  {}.tap do |hash|
190
197
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -195,7 +202,5 @@ module BudgeaClient
195
202
  value
196
203
  end
197
204
  end
198
-
199
205
  end
200
-
201
206
  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 Category
8
17
  # ID of the category
9
18
  attr_accessor :id
@@ -35,7 +44,6 @@ module BudgeaClient
35
44
  # ID of the logo
36
45
  attr_accessor :id_logo
37
46
 
38
-
39
47
  # Attribute mapping from ruby-style variable name to JSON key.
40
48
  def self.attribute_map
41
49
  {
@@ -74,7 +82,7 @@ module BudgeaClient
74
82
  return unless attributes.is_a?(Hash)
75
83
 
76
84
  # convert string to symbol for hash key
77
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
85
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
78
86
 
79
87
  if attributes.has_key?(:'id')
80
88
  self.id = attributes[:'id']
@@ -115,7 +123,6 @@ module BudgeaClient
115
123
  if attributes.has_key?(:'id_logo')
116
124
  self.id_logo = attributes[:'id_logo']
117
125
  end
118
-
119
126
  end
120
127
 
121
128
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -123,30 +130,30 @@ module BudgeaClient
123
130
  def list_invalid_properties
124
131
  invalid_properties = Array.new
125
132
  if @id.nil?
126
- invalid_properties.push("invalid value for 'id', id cannot be nil.")
133
+ invalid_properties.push('invalid value for "id", id cannot be nil.')
127
134
  end
128
135
 
129
136
  if @id_parent_category.nil?
130
- invalid_properties.push("invalid value for 'id_parent_category', id_parent_category cannot be nil.")
137
+ invalid_properties.push('invalid value for "id_parent_category", id_parent_category cannot be nil.')
131
138
  end
132
139
 
133
140
  if @name.nil?
134
- invalid_properties.push("invalid value for 'name', name cannot be nil.")
141
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
135
142
  end
136
143
 
137
144
  if @color.nil?
138
- invalid_properties.push("invalid value for 'color', color cannot be nil.")
145
+ invalid_properties.push('invalid value for "color", color cannot be nil.')
139
146
  end
140
147
 
141
148
  if @id_parent_category_in_menu.nil?
142
- invalid_properties.push("invalid value for 'id_parent_category_in_menu', id_parent_category_in_menu cannot be nil.")
149
+ invalid_properties.push('invalid value for "id_parent_category_in_menu", id_parent_category_in_menu cannot be nil.')
143
150
  end
144
151
 
145
152
  if @refundable.nil?
146
- invalid_properties.push("invalid value for 'refundable', refundable cannot be nil.")
153
+ invalid_properties.push('invalid value for "refundable", refundable 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
@@ -158,7 +165,7 @@ module BudgeaClient
158
165
  return false if @color.nil?
159
166
  return false if @id_parent_category_in_menu.nil?
160
167
  return false if @refundable.nil?
161
- return true
168
+ true
162
169
  end
163
170
 
164
171
  # Checks equality by comparing each attribute.
@@ -200,7 +207,7 @@ module BudgeaClient
200
207
  # check to ensure the input is an array given that the the attribute
201
208
  # is documented as an array but the input is not
202
209
  if attributes[self.class.attribute_map[key]].is_a?(Array)
203
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
210
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
204
211
  end
205
212
  elsif !attributes[self.class.attribute_map[key]].nil?
206
213
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -282,7 +289,7 @@ module BudgeaClient
282
289
  # @return [Hash] Returns the value in the form of hash
283
290
  def _to_hash(value)
284
291
  if value.is_a?(Array)
285
- value.compact.map{ |v| _to_hash(v) }
292
+ value.compact.map { |v| _to_hash(v) }
286
293
  elsif value.is_a?(Hash)
287
294
  {}.tap do |hash|
288
295
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -293,7 +300,5 @@ module BudgeaClient
293
300
  value
294
301
  end
295
302
  end
296
-
297
303
  end
298
-
299
304
  end