budgea_client 5.0.3 → 5.2.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 (154) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/Gemfile.lock +4 -4
  4. data/README.md +19 -6
  5. data/budgea_client.gemspec +1 -1
  6. data/budgea_openapi.json +1624 -1420
  7. data/config.json +1 -1
  8. data/docs/Account.md +1 -0
  9. data/docs/AdministrationApi.md +12 -12
  10. data/docs/BanksApi.md +267 -52
  11. data/docs/Connection.md +2 -0
  12. data/docs/ConnectionsApi.md +255 -40
  13. data/docs/DocumentsApi.md +2 -2
  14. data/docs/InlineResponse20016.md +1 -1
  15. data/docs/InlineResponse20017.md +1 -1
  16. data/docs/InlineResponse20018.md +1 -1
  17. data/docs/InlineResponse20019.md +1 -1
  18. data/docs/InlineResponse20020.md +1 -1
  19. data/docs/InlineResponse20021.md +1 -1
  20. data/docs/InlineResponse20022.md +1 -1
  21. data/docs/InlineResponse20023.md +1 -1
  22. data/docs/InlineResponse20024.md +1 -1
  23. data/docs/InlineResponse20025.md +1 -1
  24. data/docs/InlineResponse20026.md +1 -1
  25. data/docs/InlineResponse20027.md +1 -1
  26. data/docs/InlineResponse20028.md +1 -1
  27. data/docs/InlineResponse20029.md +1 -1
  28. data/docs/InlineResponse20030.md +1 -1
  29. data/docs/PFMApi.md +9 -9
  30. data/docs/ProvidersApi.md +257 -42
  31. data/docs/TermsApi.md +72 -7
  32. data/docs/TransfersApi.md +24 -24
  33. data/docs/UsersManagementApi.md +2 -2
  34. data/docs/WealthApi.md +53 -37
  35. data/lib/budgea_client.rb +1 -1
  36. data/lib/budgea_client/api/administration_api.rb +14 -14
  37. data/lib/budgea_client/api/authentication_api.rb +1 -1
  38. data/lib/budgea_client/api/banks_api.rb +278 -78
  39. data/lib/budgea_client/api/connections_api.rb +260 -60
  40. data/lib/budgea_client/api/documents_api.rb +4 -4
  41. data/lib/budgea_client/api/ocr_api.rb +1 -1
  42. data/lib/budgea_client/api/oidc_api.rb +1 -1
  43. data/lib/budgea_client/api/pfm_api.rb +12 -12
  44. data/lib/budgea_client/api/providers_api.rb +263 -63
  45. data/lib/budgea_client/api/recipients_api.rb +1 -1
  46. data/lib/budgea_client/api/terms_api.rb +76 -10
  47. data/lib/budgea_client/api/transfer_api.rb +1 -1
  48. data/lib/budgea_client/api/transfers_api.rb +37 -37
  49. data/lib/budgea_client/api/users_management_api.rb +4 -4
  50. data/lib/budgea_client/api/wealth_api.rb +78 -54
  51. data/lib/budgea_client/api_client.rb +3 -1
  52. data/lib/budgea_client/api_error.rb +1 -1
  53. data/lib/budgea_client/configuration.rb +1 -1
  54. data/lib/budgea_client/models/access.rb +3 -2
  55. data/lib/budgea_client/models/account.rb +15 -3
  56. data/lib/budgea_client/models/account_log.rb +3 -2
  57. data/lib/budgea_client/models/account_type.rb +3 -2
  58. data/lib/budgea_client/models/alert.rb +3 -2
  59. data/lib/budgea_client/models/auth_provider.rb +3 -2
  60. data/lib/budgea_client/models/category.rb +3 -2
  61. data/lib/budgea_client/models/certificate.rb +3 -2
  62. data/lib/budgea_client/models/client.rb +3 -2
  63. data/lib/budgea_client/models/config_log.rb +3 -2
  64. data/lib/budgea_client/models/connection.rb +59 -3
  65. data/lib/budgea_client/models/connection_log.rb +3 -2
  66. data/lib/budgea_client/models/connection_source.rb +3 -2
  67. data/lib/budgea_client/models/connector.rb +3 -2
  68. data/lib/budgea_client/models/connector_category.rb +3 -2
  69. data/lib/budgea_client/models/connector_logo.rb +3 -2
  70. data/lib/budgea_client/models/connector_source.rb +3 -2
  71. data/lib/budgea_client/models/currency.rb +3 -2
  72. data/lib/budgea_client/models/device.rb +3 -2
  73. data/lib/budgea_client/models/document.rb +3 -2
  74. data/lib/budgea_client/models/document_type.rb +3 -2
  75. data/lib/budgea_client/models/field.rb +3 -2
  76. data/lib/budgea_client/models/field_value.rb +3 -2
  77. data/lib/budgea_client/models/file.rb +3 -2
  78. data/lib/budgea_client/models/group.rb +3 -2
  79. data/lib/budgea_client/models/hash_table.rb +3 -2
  80. data/lib/budgea_client/models/inline_response_200.rb +3 -2
  81. data/lib/budgea_client/models/inline_response_200_1.rb +3 -2
  82. data/lib/budgea_client/models/inline_response_200_10.rb +3 -2
  83. data/lib/budgea_client/models/inline_response_200_11.rb +3 -2
  84. data/lib/budgea_client/models/inline_response_200_12.rb +3 -2
  85. data/lib/budgea_client/models/inline_response_200_13.rb +3 -2
  86. data/lib/budgea_client/models/inline_response_200_14.rb +3 -2
  87. data/lib/budgea_client/models/inline_response_200_15.rb +3 -2
  88. data/lib/budgea_client/models/inline_response_200_16.rb +14 -13
  89. data/lib/budgea_client/models/inline_response_200_17.rb +21 -20
  90. data/lib/budgea_client/models/inline_response_200_18.rb +21 -20
  91. data/lib/budgea_client/models/inline_response_200_19.rb +21 -20
  92. data/lib/budgea_client/models/inline_response_200_2.rb +3 -2
  93. data/lib/budgea_client/models/inline_response_200_20.rb +21 -20
  94. data/lib/budgea_client/models/inline_response_200_21.rb +21 -20
  95. data/lib/budgea_client/models/inline_response_200_22.rb +14 -13
  96. data/lib/budgea_client/models/inline_response_200_23.rb +14 -13
  97. data/lib/budgea_client/models/inline_response_200_24.rb +21 -20
  98. data/lib/budgea_client/models/inline_response_200_25.rb +21 -20
  99. data/lib/budgea_client/models/inline_response_200_26.rb +14 -13
  100. data/lib/budgea_client/models/inline_response_200_27.rb +14 -13
  101. data/lib/budgea_client/models/inline_response_200_28.rb +14 -13
  102. data/lib/budgea_client/models/inline_response_200_29.rb +21 -20
  103. data/lib/budgea_client/models/inline_response_200_3.rb +3 -2
  104. data/lib/budgea_client/models/inline_response_200_30.rb +14 -13
  105. data/lib/budgea_client/models/inline_response_200_31.rb +3 -2
  106. data/lib/budgea_client/models/inline_response_200_32.rb +3 -2
  107. data/lib/budgea_client/models/inline_response_200_33.rb +3 -2
  108. data/lib/budgea_client/models/inline_response_200_34.rb +3 -2
  109. data/lib/budgea_client/models/inline_response_200_35.rb +3 -2
  110. data/lib/budgea_client/models/inline_response_200_36.rb +3 -2
  111. data/lib/budgea_client/models/inline_response_200_37.rb +3 -2
  112. data/lib/budgea_client/models/inline_response_200_38.rb +3 -2
  113. data/lib/budgea_client/models/inline_response_200_39.rb +3 -2
  114. data/lib/budgea_client/models/inline_response_200_4.rb +3 -2
  115. data/lib/budgea_client/models/inline_response_200_40.rb +3 -2
  116. data/lib/budgea_client/models/inline_response_200_41.rb +3 -2
  117. data/lib/budgea_client/models/inline_response_200_42.rb +3 -2
  118. data/lib/budgea_client/models/inline_response_200_5.rb +3 -2
  119. data/lib/budgea_client/models/inline_response_200_6.rb +3 -2
  120. data/lib/budgea_client/models/inline_response_200_7.rb +3 -2
  121. data/lib/budgea_client/models/inline_response_200_8.rb +3 -2
  122. data/lib/budgea_client/models/inline_response_200_9.rb +3 -2
  123. data/lib/budgea_client/models/investment.rb +3 -2
  124. data/lib/budgea_client/models/investment_value.rb +3 -2
  125. data/lib/budgea_client/models/keyword.rb +3 -2
  126. data/lib/budgea_client/models/locked_user.rb +3 -2
  127. data/lib/budgea_client/models/oidc_whitelist.rb +3 -2
  128. data/lib/budgea_client/models/order.rb +3 -2
  129. data/lib/budgea_client/models/pocket.rb +3 -2
  130. data/lib/budgea_client/models/profile.rb +3 -2
  131. data/lib/budgea_client/models/project.rb +3 -2
  132. data/lib/budgea_client/models/project_type.rb +3 -2
  133. data/lib/budgea_client/models/recipient.rb +3 -2
  134. data/lib/budgea_client/models/recipient_log.rb +3 -2
  135. data/lib/budgea_client/models/security.rb +3 -2
  136. data/lib/budgea_client/models/subscription.rb +3 -2
  137. data/lib/budgea_client/models/subscription_log.rb +3 -2
  138. data/lib/budgea_client/models/terms_of_service.rb +3 -2
  139. data/lib/budgea_client/models/transaction.rb +3 -2
  140. data/lib/budgea_client/models/transaction_information.rb +3 -2
  141. data/lib/budgea_client/models/transactions_cluster.rb +3 -2
  142. data/lib/budgea_client/models/transfer.rb +3 -2
  143. data/lib/budgea_client/models/transfer_log.rb +3 -2
  144. data/lib/budgea_client/models/user.rb +3 -2
  145. data/lib/budgea_client/models/user_alert.rb +3 -2
  146. data/lib/budgea_client/models/webhook.rb +3 -2
  147. data/lib/budgea_client/models/webhook_data.rb +3 -2
  148. data/lib/budgea_client/models/webhook_log.rb +3 -2
  149. data/lib/budgea_client/version.rb +2 -2
  150. data/original_budgea_openapi.json +1559 -1474
  151. data/pkg/budgea_client-5.0.3.gem +0 -0
  152. metadata +3 -4
  153. data/lib/budgea_client/api/hub_api.rb +0 -76
  154. data/lib/budgea_client/models/invite.rb +0 -238
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: 2.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.4.1
9
+ Swagger Codegen version: 2.4.14
10
10
 
11
11
  =end
12
12
 
@@ -100,7 +100,7 @@ module BudgeaClient
100
100
  return nil unless attributes.is_a?(Hash)
101
101
  self.class.swagger_types.each_pair do |key, type|
102
102
  if type =~ /\AArray<(.*)>/i
103
- # check to ensure the input is an array given that the the attribute
103
+ # check to ensure the input is an array given that the attribute
104
104
  # is documented as an array but the input is not
105
105
  if attributes[self.class.attribute_map[key]].is_a?(Array)
106
106
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -196,5 +196,6 @@ module BudgeaClient
196
196
  value
197
197
  end
198
198
  end
199
+
199
200
  end
200
201
  end
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: 2.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.4.1
9
+ Swagger Codegen version: 2.4.14
10
10
 
11
11
  =end
12
12
 
@@ -100,7 +100,7 @@ module BudgeaClient
100
100
  return nil unless attributes.is_a?(Hash)
101
101
  self.class.swagger_types.each_pair do |key, type|
102
102
  if type =~ /\AArray<(.*)>/i
103
- # check to ensure the input is an array given that the the attribute
103
+ # check to ensure the input is an array given that the attribute
104
104
  # is documented as an array but the input is not
105
105
  if attributes[self.class.attribute_map[key]].is_a?(Array)
106
106
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -196,5 +196,6 @@ module BudgeaClient
196
196
  value
197
197
  end
198
198
  end
199
+
199
200
  end
200
201
  end
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: 2.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.4.1
9
+ Swagger Codegen version: 2.4.14
10
10
 
11
11
  =end
12
12
 
@@ -100,7 +100,7 @@ module BudgeaClient
100
100
  return nil unless attributes.is_a?(Hash)
101
101
  self.class.swagger_types.each_pair do |key, type|
102
102
  if type =~ /\AArray<(.*)>/i
103
- # check to ensure the input is an array given that the the attribute
103
+ # check to ensure the input is an array given that the attribute
104
104
  # is documented as an array but the input is not
105
105
  if attributes[self.class.attribute_map[key]].is_a?(Array)
106
106
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -196,5 +196,6 @@ module BudgeaClient
196
196
  value
197
197
  end
198
198
  end
199
+
199
200
  end
200
201
  end
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: 2.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.4.1
9
+ Swagger Codegen version: 2.4.14
10
10
 
11
11
  =end
12
12
 
@@ -100,7 +100,7 @@ module BudgeaClient
100
100
  return nil unless attributes.is_a?(Hash)
101
101
  self.class.swagger_types.each_pair do |key, type|
102
102
  if type =~ /\AArray<(.*)>/i
103
- # check to ensure the input is an array given that the the attribute
103
+ # check to ensure the input is an array given that the attribute
104
104
  # is documented as an array but the input is not
105
105
  if attributes[self.class.attribute_map[key]].is_a?(Array)
106
106
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -196,5 +196,6 @@ module BudgeaClient
196
196
  value
197
197
  end
198
198
  end
199
+
199
200
  end
200
201
  end
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: 2.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.4.1
9
+ Swagger Codegen version: 2.4.14
10
10
 
11
11
  =end
12
12
 
@@ -14,7 +14,7 @@ require 'date'
14
14
 
15
15
  module BudgeaClient
16
16
  class InlineResponse20016
17
- attr_accessor :connectors
17
+ attr_accessor :sources
18
18
 
19
19
  # total number of results
20
20
  attr_accessor :total
@@ -22,7 +22,7 @@ module BudgeaClient
22
22
  # Attribute mapping from ruby-style variable name to JSON key.
23
23
  def self.attribute_map
24
24
  {
25
- :'connectors' => :'connectors',
25
+ :'sources' => :'sources',
26
26
  :'total' => :'total'
27
27
  }
28
28
  end
@@ -30,7 +30,7 @@ module BudgeaClient
30
30
  # Attribute type mapping.
31
31
  def self.swagger_types
32
32
  {
33
- :'connectors' => :'Array<Connector>',
33
+ :'sources' => :'Array<ConnectionSource>',
34
34
  :'total' => :'Float'
35
35
  }
36
36
  end
@@ -43,9 +43,9 @@ module BudgeaClient
43
43
  # convert string to symbol for hash key
44
44
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
45
45
 
46
- if attributes.has_key?(:'connectors')
47
- if (value = attributes[:'connectors']).is_a?(Array)
48
- self.connectors = value
46
+ if attributes.has_key?(:'sources')
47
+ if (value = attributes[:'sources']).is_a?(Array)
48
+ self.sources = value
49
49
  end
50
50
  end
51
51
 
@@ -58,8 +58,8 @@ module BudgeaClient
58
58
  # @return Array for valid properties with the reasons
59
59
  def list_invalid_properties
60
60
  invalid_properties = Array.new
61
- if @connectors.nil?
62
- invalid_properties.push('invalid value for "connectors", connectors cannot be nil.')
61
+ if @sources.nil?
62
+ invalid_properties.push('invalid value for "sources", sources cannot be nil.')
63
63
  end
64
64
 
65
65
  invalid_properties
@@ -68,7 +68,7 @@ module BudgeaClient
68
68
  # Check to see if the all the properties in the model are valid
69
69
  # @return true if the model is valid
70
70
  def valid?
71
- return false if @connectors.nil?
71
+ return false if @sources.nil?
72
72
  true
73
73
  end
74
74
 
@@ -77,7 +77,7 @@ module BudgeaClient
77
77
  def ==(o)
78
78
  return true if self.equal?(o)
79
79
  self.class == o.class &&
80
- connectors == o.connectors &&
80
+ sources == o.sources &&
81
81
  total == o.total
82
82
  end
83
83
 
@@ -90,7 +90,7 @@ module BudgeaClient
90
90
  # Calculates hash code according to all attributes.
91
91
  # @return [Fixnum] Hash code
92
92
  def hash
93
- [connectors, total].hash
93
+ [sources, total].hash
94
94
  end
95
95
 
96
96
  # Builds the object from hash
@@ -100,7 +100,7 @@ module BudgeaClient
100
100
  return nil unless attributes.is_a?(Hash)
101
101
  self.class.swagger_types.each_pair do |key, type|
102
102
  if type =~ /\AArray<(.*)>/i
103
- # check to ensure the input is an array given that the the attribute
103
+ # check to ensure the input is an array given that the attribute
104
104
  # is documented as an array but the input is not
105
105
  if attributes[self.class.attribute_map[key]].is_a?(Array)
106
106
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -196,5 +196,6 @@ module BudgeaClient
196
196
  value
197
197
  end
198
198
  end
199
+
199
200
  end
200
201
  end
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: 2.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.4.1
9
+ Swagger Codegen version: 2.4.14
10
10
 
11
11
  =end
12
12
 
@@ -14,24 +14,24 @@ require 'date'
14
14
 
15
15
  module BudgeaClient
16
16
  class InlineResponse20017
17
+ attr_accessor :connectors
18
+
17
19
  # total number of results
18
20
  attr_accessor :total
19
21
 
20
- attr_accessor :documenttypes
21
-
22
22
  # Attribute mapping from ruby-style variable name to JSON key.
23
23
  def self.attribute_map
24
24
  {
25
- :'total' => :'total',
26
- :'documenttypes' => :'documenttypes'
25
+ :'connectors' => :'connectors',
26
+ :'total' => :'total'
27
27
  }
28
28
  end
29
29
 
30
30
  # Attribute type mapping.
31
31
  def self.swagger_types
32
32
  {
33
- :'total' => :'Float',
34
- :'documenttypes' => :'Array<DocumentType>'
33
+ :'connectors' => :'Array<Connector>',
34
+ :'total' => :'Float'
35
35
  }
36
36
  end
37
37
 
@@ -43,14 +43,14 @@ module BudgeaClient
43
43
  # convert string to symbol for hash key
44
44
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
45
45
 
46
- if attributes.has_key?(:'total')
47
- self.total = attributes[:'total']
46
+ if attributes.has_key?(:'connectors')
47
+ if (value = attributes[:'connectors']).is_a?(Array)
48
+ self.connectors = value
49
+ end
48
50
  end
49
51
 
50
- if attributes.has_key?(:'documenttypes')
51
- if (value = attributes[:'documenttypes']).is_a?(Array)
52
- self.documenttypes = value
53
- end
52
+ if attributes.has_key?(:'total')
53
+ self.total = attributes[:'total']
54
54
  end
55
55
  end
56
56
 
@@ -58,8 +58,8 @@ module BudgeaClient
58
58
  # @return Array for valid properties with the reasons
59
59
  def list_invalid_properties
60
60
  invalid_properties = Array.new
61
- if @documenttypes.nil?
62
- invalid_properties.push('invalid value for "documenttypes", documenttypes cannot be nil.')
61
+ if @connectors.nil?
62
+ invalid_properties.push('invalid value for "connectors", connectors cannot be nil.')
63
63
  end
64
64
 
65
65
  invalid_properties
@@ -68,7 +68,7 @@ module BudgeaClient
68
68
  # Check to see if the all the properties in the model are valid
69
69
  # @return true if the model is valid
70
70
  def valid?
71
- return false if @documenttypes.nil?
71
+ return false if @connectors.nil?
72
72
  true
73
73
  end
74
74
 
@@ -77,8 +77,8 @@ module BudgeaClient
77
77
  def ==(o)
78
78
  return true if self.equal?(o)
79
79
  self.class == o.class &&
80
- total == o.total &&
81
- documenttypes == o.documenttypes
80
+ connectors == o.connectors &&
81
+ total == o.total
82
82
  end
83
83
 
84
84
  # @see the `==` method
@@ -90,7 +90,7 @@ module BudgeaClient
90
90
  # Calculates hash code according to all attributes.
91
91
  # @return [Fixnum] Hash code
92
92
  def hash
93
- [total, documenttypes].hash
93
+ [connectors, total].hash
94
94
  end
95
95
 
96
96
  # Builds the object from hash
@@ -100,7 +100,7 @@ module BudgeaClient
100
100
  return nil unless attributes.is_a?(Hash)
101
101
  self.class.swagger_types.each_pair do |key, type|
102
102
  if type =~ /\AArray<(.*)>/i
103
- # check to ensure the input is an array given that the the attribute
103
+ # check to ensure the input is an array given that the attribute
104
104
  # is documented as an array but the input is not
105
105
  if attributes[self.class.attribute_map[key]].is_a?(Array)
106
106
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -196,5 +196,6 @@ module BudgeaClient
196
196
  value
197
197
  end
198
198
  end
199
+
199
200
  end
200
201
  end
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: 2.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.4.1
9
+ Swagger Codegen version: 2.4.14
10
10
 
11
11
  =end
12
12
 
@@ -14,24 +14,24 @@ require 'date'
14
14
 
15
15
  module BudgeaClient
16
16
  class InlineResponse20018
17
- attr_accessor :securities
18
-
19
17
  # total number of results
20
18
  attr_accessor :total
21
19
 
20
+ attr_accessor :documenttypes
21
+
22
22
  # Attribute mapping from ruby-style variable name to JSON key.
23
23
  def self.attribute_map
24
24
  {
25
- :'securities' => :'securities',
26
- :'total' => :'total'
25
+ :'total' => :'total',
26
+ :'documenttypes' => :'documenttypes'
27
27
  }
28
28
  end
29
29
 
30
30
  # Attribute type mapping.
31
31
  def self.swagger_types
32
32
  {
33
- :'securities' => :'Array<Security>',
34
- :'total' => :'Float'
33
+ :'total' => :'Float',
34
+ :'documenttypes' => :'Array<DocumentType>'
35
35
  }
36
36
  end
37
37
 
@@ -43,23 +43,23 @@ module BudgeaClient
43
43
  # convert string to symbol for hash key
44
44
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
45
45
 
46
- if attributes.has_key?(:'securities')
47
- if (value = attributes[:'securities']).is_a?(Array)
48
- self.securities = value
49
- end
50
- end
51
-
52
46
  if attributes.has_key?(:'total')
53
47
  self.total = attributes[:'total']
54
48
  end
49
+
50
+ if attributes.has_key?(:'documenttypes')
51
+ if (value = attributes[:'documenttypes']).is_a?(Array)
52
+ self.documenttypes = value
53
+ end
54
+ end
55
55
  end
56
56
 
57
57
  # Show invalid properties with the reasons. Usually used together with valid?
58
58
  # @return Array for valid properties with the reasons
59
59
  def list_invalid_properties
60
60
  invalid_properties = Array.new
61
- if @securities.nil?
62
- invalid_properties.push('invalid value for "securities", securities cannot be nil.')
61
+ if @documenttypes.nil?
62
+ invalid_properties.push('invalid value for "documenttypes", documenttypes cannot be nil.')
63
63
  end
64
64
 
65
65
  invalid_properties
@@ -68,7 +68,7 @@ module BudgeaClient
68
68
  # Check to see if the all the properties in the model are valid
69
69
  # @return true if the model is valid
70
70
  def valid?
71
- return false if @securities.nil?
71
+ return false if @documenttypes.nil?
72
72
  true
73
73
  end
74
74
 
@@ -77,8 +77,8 @@ module BudgeaClient
77
77
  def ==(o)
78
78
  return true if self.equal?(o)
79
79
  self.class == o.class &&
80
- securities == o.securities &&
81
- total == o.total
80
+ total == o.total &&
81
+ documenttypes == o.documenttypes
82
82
  end
83
83
 
84
84
  # @see the `==` method
@@ -90,7 +90,7 @@ module BudgeaClient
90
90
  # Calculates hash code according to all attributes.
91
91
  # @return [Fixnum] Hash code
92
92
  def hash
93
- [securities, total].hash
93
+ [total, documenttypes].hash
94
94
  end
95
95
 
96
96
  # Builds the object from hash
@@ -100,7 +100,7 @@ module BudgeaClient
100
100
  return nil unless attributes.is_a?(Hash)
101
101
  self.class.swagger_types.each_pair do |key, type|
102
102
  if type =~ /\AArray<(.*)>/i
103
- # check to ensure the input is an array given that the the attribute
103
+ # check to ensure the input is an array given that the attribute
104
104
  # is documented as an array but the input is not
105
105
  if attributes[self.class.attribute_map[key]].is_a?(Array)
106
106
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -196,5 +196,6 @@ module BudgeaClient
196
196
  value
197
197
  end
198
198
  end
199
+
199
200
  end
200
201
  end
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: 2.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.4.1
9
+ Swagger Codegen version: 2.4.14
10
10
 
11
11
  =end
12
12
 
@@ -14,24 +14,24 @@ require 'date'
14
14
 
15
15
  module BudgeaClient
16
16
  class InlineResponse20019
17
+ attr_accessor :securities
18
+
17
19
  # total number of results
18
20
  attr_accessor :total
19
21
 
20
- attr_accessor :providers
21
-
22
22
  # Attribute mapping from ruby-style variable name to JSON key.
23
23
  def self.attribute_map
24
24
  {
25
- :'total' => :'total',
26
- :'providers' => :'providers'
25
+ :'securities' => :'securities',
26
+ :'total' => :'total'
27
27
  }
28
28
  end
29
29
 
30
30
  # Attribute type mapping.
31
31
  def self.swagger_types
32
32
  {
33
- :'total' => :'Float',
34
- :'providers' => :'Array<Connector>'
33
+ :'securities' => :'Array<Security>',
34
+ :'total' => :'Float'
35
35
  }
36
36
  end
37
37
 
@@ -43,14 +43,14 @@ module BudgeaClient
43
43
  # convert string to symbol for hash key
44
44
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
45
45
 
46
- if attributes.has_key?(:'total')
47
- self.total = attributes[:'total']
46
+ if attributes.has_key?(:'securities')
47
+ if (value = attributes[:'securities']).is_a?(Array)
48
+ self.securities = value
49
+ end
48
50
  end
49
51
 
50
- if attributes.has_key?(:'providers')
51
- if (value = attributes[:'providers']).is_a?(Array)
52
- self.providers = value
53
- end
52
+ if attributes.has_key?(:'total')
53
+ self.total = attributes[:'total']
54
54
  end
55
55
  end
56
56
 
@@ -58,8 +58,8 @@ module BudgeaClient
58
58
  # @return Array for valid properties with the reasons
59
59
  def list_invalid_properties
60
60
  invalid_properties = Array.new
61
- if @providers.nil?
62
- invalid_properties.push('invalid value for "providers", providers cannot be nil.')
61
+ if @securities.nil?
62
+ invalid_properties.push('invalid value for "securities", securities cannot be nil.')
63
63
  end
64
64
 
65
65
  invalid_properties
@@ -68,7 +68,7 @@ module BudgeaClient
68
68
  # Check to see if the all the properties in the model are valid
69
69
  # @return true if the model is valid
70
70
  def valid?
71
- return false if @providers.nil?
71
+ return false if @securities.nil?
72
72
  true
73
73
  end
74
74
 
@@ -77,8 +77,8 @@ module BudgeaClient
77
77
  def ==(o)
78
78
  return true if self.equal?(o)
79
79
  self.class == o.class &&
80
- total == o.total &&
81
- providers == o.providers
80
+ securities == o.securities &&
81
+ total == o.total
82
82
  end
83
83
 
84
84
  # @see the `==` method
@@ -90,7 +90,7 @@ module BudgeaClient
90
90
  # Calculates hash code according to all attributes.
91
91
  # @return [Fixnum] Hash code
92
92
  def hash
93
- [total, providers].hash
93
+ [securities, total].hash
94
94
  end
95
95
 
96
96
  # Builds the object from hash
@@ -100,7 +100,7 @@ module BudgeaClient
100
100
  return nil unless attributes.is_a?(Hash)
101
101
  self.class.swagger_types.each_pair do |key, type|
102
102
  if type =~ /\AArray<(.*)>/i
103
- # check to ensure the input is an array given that the the attribute
103
+ # check to ensure the input is an array given that the attribute
104
104
  # is documented as an array but the input is not
105
105
  if attributes[self.class.attribute_map[key]].is_a?(Array)
106
106
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -196,5 +196,6 @@ module BudgeaClient
196
196
  value
197
197
  end
198
198
  end
199
+
199
200
  end
200
201
  end