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,24 +1,32 @@
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 InlineResponse2008
8
- attr_accessor :connections
9
-
17
+ attr_accessor :banks
10
18
 
11
19
  # Attribute mapping from ruby-style variable name to JSON key.
12
20
  def self.attribute_map
13
21
  {
14
- :'connections' => :'connections'
22
+ :'banks' => :'banks'
15
23
  }
16
24
  end
17
25
 
18
26
  # Attribute type mapping.
19
27
  def self.swagger_types
20
28
  {
21
- :'connections' => :'Array<Connection>'
29
+ :'banks' => :'Array<Connector>'
22
30
  }
23
31
  end
24
32
 
@@ -28,32 +36,31 @@ module BudgeaClient
28
36
  return unless attributes.is_a?(Hash)
29
37
 
30
38
  # convert string to symbol for hash key
31
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
39
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
32
40
 
33
- if attributes.has_key?(:'connections')
34
- if (value = attributes[:'connections']).is_a?(Array)
35
- self.connections = value
41
+ if attributes.has_key?(:'banks')
42
+ if (value = attributes[:'banks']).is_a?(Array)
43
+ self.banks = value
36
44
  end
37
45
  end
38
-
39
46
  end
40
47
 
41
48
  # Show invalid properties with the reasons. Usually used together with valid?
42
49
  # @return Array for valid properties with the reasons
43
50
  def list_invalid_properties
44
51
  invalid_properties = Array.new
45
- if @connections.nil?
46
- invalid_properties.push("invalid value for 'connections', connections cannot be nil.")
52
+ if @banks.nil?
53
+ invalid_properties.push('invalid value for "banks", banks cannot be nil.')
47
54
  end
48
55
 
49
- return invalid_properties
56
+ invalid_properties
50
57
  end
51
58
 
52
59
  # Check to see if the all the properties in the model are valid
53
60
  # @return true if the model is valid
54
61
  def valid?
55
- return false if @connections.nil?
56
- return true
62
+ return false if @banks.nil?
63
+ true
57
64
  end
58
65
 
59
66
  # Checks equality by comparing each attribute.
@@ -61,7 +68,7 @@ module BudgeaClient
61
68
  def ==(o)
62
69
  return true if self.equal?(o)
63
70
  self.class == o.class &&
64
- connections == o.connections
71
+ banks == o.banks
65
72
  end
66
73
 
67
74
  # @see the `==` method
@@ -73,7 +80,7 @@ module BudgeaClient
73
80
  # Calculates hash code according to all attributes.
74
81
  # @return [Fixnum] Hash code
75
82
  def hash
76
- [connections].hash
83
+ [banks].hash
77
84
  end
78
85
 
79
86
  # Builds the object from hash
@@ -86,7 +93,7 @@ module BudgeaClient
86
93
  # check to ensure the input is an array given that the the attribute
87
94
  # is documented as an array but the input is not
88
95
  if attributes[self.class.attribute_map[key]].is_a?(Array)
89
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
96
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
90
97
  end
91
98
  elsif !attributes[self.class.attribute_map[key]].nil?
92
99
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -168,7 +175,7 @@ module BudgeaClient
168
175
  # @return [Hash] Returns the value in the form of hash
169
176
  def _to_hash(value)
170
177
  if value.is_a?(Array)
171
- value.compact.map{ |v| _to_hash(v) }
178
+ value.compact.map { |v| _to_hash(v) }
172
179
  elsif value.is_a?(Hash)
173
180
  {}.tap do |hash|
174
181
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -179,7 +186,5 @@ module BudgeaClient
179
186
  value
180
187
  end
181
188
  end
182
-
183
189
  end
184
-
185
190
  end
@@ -1,24 +1,32 @@
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 InlineResponse2009
8
- attr_accessor :connectorlogos
9
-
17
+ attr_accessor :connections
10
18
 
11
19
  # Attribute mapping from ruby-style variable name to JSON key.
12
20
  def self.attribute_map
13
21
  {
14
- :'connectorlogos' => :'connectorlogos'
22
+ :'connections' => :'connections'
15
23
  }
16
24
  end
17
25
 
18
26
  # Attribute type mapping.
19
27
  def self.swagger_types
20
28
  {
21
- :'connectorlogos' => :'Array<ConnectorLogo>'
29
+ :'connections' => :'Array<Connection>'
22
30
  }
23
31
  end
24
32
 
@@ -28,32 +36,31 @@ module BudgeaClient
28
36
  return unless attributes.is_a?(Hash)
29
37
 
30
38
  # convert string to symbol for hash key
31
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
39
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
32
40
 
33
- if attributes.has_key?(:'connectorlogos')
34
- if (value = attributes[:'connectorlogos']).is_a?(Array)
35
- self.connectorlogos = value
41
+ if attributes.has_key?(:'connections')
42
+ if (value = attributes[:'connections']).is_a?(Array)
43
+ self.connections = value
36
44
  end
37
45
  end
38
-
39
46
  end
40
47
 
41
48
  # Show invalid properties with the reasons. Usually used together with valid?
42
49
  # @return Array for valid properties with the reasons
43
50
  def list_invalid_properties
44
51
  invalid_properties = Array.new
45
- if @connectorlogos.nil?
46
- invalid_properties.push("invalid value for 'connectorlogos', connectorlogos cannot be nil.")
52
+ if @connections.nil?
53
+ invalid_properties.push('invalid value for "connections", connections cannot be nil.')
47
54
  end
48
55
 
49
- return invalid_properties
56
+ invalid_properties
50
57
  end
51
58
 
52
59
  # Check to see if the all the properties in the model are valid
53
60
  # @return true if the model is valid
54
61
  def valid?
55
- return false if @connectorlogos.nil?
56
- return true
62
+ return false if @connections.nil?
63
+ true
57
64
  end
58
65
 
59
66
  # Checks equality by comparing each attribute.
@@ -61,7 +68,7 @@ module BudgeaClient
61
68
  def ==(o)
62
69
  return true if self.equal?(o)
63
70
  self.class == o.class &&
64
- connectorlogos == o.connectorlogos
71
+ connections == o.connections
65
72
  end
66
73
 
67
74
  # @see the `==` method
@@ -73,7 +80,7 @@ module BudgeaClient
73
80
  # Calculates hash code according to all attributes.
74
81
  # @return [Fixnum] Hash code
75
82
  def hash
76
- [connectorlogos].hash
83
+ [connections].hash
77
84
  end
78
85
 
79
86
  # Builds the object from hash
@@ -86,7 +93,7 @@ module BudgeaClient
86
93
  # check to ensure the input is an array given that the the attribute
87
94
  # is documented as an array but the input is not
88
95
  if attributes[self.class.attribute_map[key]].is_a?(Array)
89
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
96
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
90
97
  end
91
98
  elsif !attributes[self.class.attribute_map[key]].nil?
92
99
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -168,7 +175,7 @@ module BudgeaClient
168
175
  # @return [Hash] Returns the value in the form of hash
169
176
  def _to_hash(value)
170
177
  if value.is_a?(Array)
171
- value.compact.map{ |v| _to_hash(v) }
178
+ value.compact.map { |v| _to_hash(v) }
172
179
  elsif value.is_a?(Hash)
173
180
  {}.tap do |hash|
174
181
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -179,7 +186,5 @@ module BudgeaClient
179
186
  value
180
187
  end
181
188
  end
182
-
183
189
  end
184
-
185
190
  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 Investment
8
17
  # ID of the investment
9
18
  attr_accessor :id
@@ -80,7 +89,6 @@ module BudgeaClient
80
89
  # If set, this investment has been removed from the website
81
90
  attr_accessor :deleted
82
91
 
83
-
84
92
  # Attribute mapping from ruby-style variable name to JSON key.
85
93
  def self.attribute_map
86
94
  {
@@ -149,7 +157,7 @@ module BudgeaClient
149
157
  return unless attributes.is_a?(Hash)
150
158
 
151
159
  # convert string to symbol for hash key
152
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
160
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
153
161
 
154
162
  if attributes.has_key?(:'id')
155
163
  self.id = attributes[:'id']
@@ -260,7 +268,6 @@ module BudgeaClient
260
268
  if attributes.has_key?(:'deleted')
261
269
  self.deleted = attributes[:'deleted']
262
270
  end
263
-
264
271
  end
265
272
 
266
273
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -268,22 +275,22 @@ module BudgeaClient
268
275
  def list_invalid_properties
269
276
  invalid_properties = Array.new
270
277
  if @id.nil?
271
- invalid_properties.push("invalid value for 'id', id cannot be nil.")
278
+ invalid_properties.push('invalid value for "id", id cannot be nil.')
272
279
  end
273
280
 
274
281
  if @id_account.nil?
275
- invalid_properties.push("invalid value for 'id_account', id_account cannot be nil.")
282
+ invalid_properties.push('invalid value for "id_account", id_account cannot be nil.')
276
283
  end
277
284
 
278
285
  if @label.nil?
279
- invalid_properties.push("invalid value for 'label', label cannot be nil.")
286
+ invalid_properties.push('invalid value for "label", label cannot be nil.')
280
287
  end
281
288
 
282
289
  if @code.nil?
283
- invalid_properties.push("invalid value for 'code', code cannot be nil.")
290
+ invalid_properties.push('invalid value for "code", code cannot be nil.')
284
291
  end
285
292
 
286
- return invalid_properties
293
+ invalid_properties
287
294
  end
288
295
 
289
296
  # Check to see if the all the properties in the model are valid
@@ -293,7 +300,7 @@ module BudgeaClient
293
300
  return false if @id_account.nil?
294
301
  return false if @label.nil?
295
302
  return false if @code.nil?
296
- return true
303
+ true
297
304
  end
298
305
 
299
306
  # Checks equality by comparing each attribute.
@@ -350,7 +357,7 @@ module BudgeaClient
350
357
  # check to ensure the input is an array given that the the attribute
351
358
  # is documented as an array but the input is not
352
359
  if attributes[self.class.attribute_map[key]].is_a?(Array)
353
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
360
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
354
361
  end
355
362
  elsif !attributes[self.class.attribute_map[key]].nil?
356
363
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -432,7 +439,7 @@ module BudgeaClient
432
439
  # @return [Hash] Returns the value in the form of hash
433
440
  def _to_hash(value)
434
441
  if value.is_a?(Array)
435
- value.compact.map{ |v| _to_hash(v) }
442
+ value.compact.map { |v| _to_hash(v) }
436
443
  elsif value.is_a?(Hash)
437
444
  {}.tap do |hash|
438
445
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -443,7 +450,5 @@ module BudgeaClient
443
450
  value
444
451
  end
445
452
  end
446
-
447
453
  end
448
-
449
454
  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 InvestmentValue
8
17
  # ID of the value
9
18
  attr_accessor :id
@@ -23,7 +32,6 @@ module BudgeaClient
23
32
  # Value on this date, in the original currency
24
33
  attr_accessor :original_unitvalue
25
34
 
26
-
27
35
  # Attribute mapping from ruby-style variable name to JSON key.
28
36
  def self.attribute_map
29
37
  {
@@ -54,7 +62,7 @@ module BudgeaClient
54
62
  return unless attributes.is_a?(Hash)
55
63
 
56
64
  # convert string to symbol for hash key
57
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
65
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
58
66
 
59
67
  if attributes.has_key?(:'id')
60
68
  self.id = attributes[:'id']
@@ -79,7 +87,6 @@ module BudgeaClient
79
87
  if attributes.has_key?(:'original_unitvalue')
80
88
  self.original_unitvalue = attributes[:'original_unitvalue']
81
89
  end
82
-
83
90
  end
84
91
 
85
92
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -87,22 +94,22 @@ module BudgeaClient
87
94
  def list_invalid_properties
88
95
  invalid_properties = Array.new
89
96
  if @id.nil?
90
- invalid_properties.push("invalid value for 'id', id cannot be nil.")
97
+ invalid_properties.push('invalid value for "id", id cannot be nil.')
91
98
  end
92
99
 
93
100
  if @id_investment.nil?
94
- invalid_properties.push("invalid value for 'id_investment', id_investment cannot be nil.")
101
+ invalid_properties.push('invalid value for "id_investment", id_investment cannot be nil.')
95
102
  end
96
103
 
97
104
  if @vdate.nil?
98
- invalid_properties.push("invalid value for 'vdate', vdate cannot be nil.")
105
+ invalid_properties.push('invalid value for "vdate", vdate cannot be nil.')
99
106
  end
100
107
 
101
108
  if @unitvalue.nil?
102
- invalid_properties.push("invalid value for 'unitvalue', unitvalue cannot be nil.")
109
+ invalid_properties.push('invalid value for "unitvalue", unitvalue cannot be nil.')
103
110
  end
104
111
 
105
- return invalid_properties
112
+ invalid_properties
106
113
  end
107
114
 
108
115
  # Check to see if the all the properties in the model are valid
@@ -112,7 +119,7 @@ module BudgeaClient
112
119
  return false if @id_investment.nil?
113
120
  return false if @vdate.nil?
114
121
  return false if @unitvalue.nil?
115
- return true
122
+ true
116
123
  end
117
124
 
118
125
  # Checks equality by comparing each attribute.
@@ -150,7 +157,7 @@ module BudgeaClient
150
157
  # check to ensure the input is an array given that the the attribute
151
158
  # is documented as an array but the input is not
152
159
  if attributes[self.class.attribute_map[key]].is_a?(Array)
153
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
160
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
154
161
  end
155
162
  elsif !attributes[self.class.attribute_map[key]].nil?
156
163
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -232,7 +239,7 @@ module BudgeaClient
232
239
  # @return [Hash] Returns the value in the form of hash
233
240
  def _to_hash(value)
234
241
  if value.is_a?(Array)
235
- value.compact.map{ |v| _to_hash(v) }
242
+ value.compact.map { |v| _to_hash(v) }
236
243
  elsif value.is_a?(Hash)
237
244
  {}.tap do |hash|
238
245
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -243,7 +250,5 @@ module BudgeaClient
243
250
  value
244
251
  end
245
252
  end
246
-
247
253
  end
248
-
249
254
  end