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,15 +1,23 @@
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 FieldValue
8
17
  attr_accessor :value
9
18
 
10
19
  attr_accessor :label
11
20
 
12
-
13
21
  # Attribute mapping from ruby-style variable name to JSON key.
14
22
  def self.attribute_map
15
23
  {
@@ -32,7 +40,7 @@ module BudgeaClient
32
40
  return unless attributes.is_a?(Hash)
33
41
 
34
42
  # convert string to symbol for hash key
35
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
43
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
36
44
 
37
45
  if attributes.has_key?(:'value')
38
46
  self.value = attributes[:'value']
@@ -41,7 +49,6 @@ module BudgeaClient
41
49
  if attributes.has_key?(:'label')
42
50
  self.label = attributes[:'label']
43
51
  end
44
-
45
52
  end
46
53
 
47
54
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -49,14 +56,14 @@ module BudgeaClient
49
56
  def list_invalid_properties
50
57
  invalid_properties = Array.new
51
58
  if @value.nil?
52
- invalid_properties.push("invalid value for 'value', value cannot be nil.")
59
+ invalid_properties.push('invalid value for "value", value cannot be nil.')
53
60
  end
54
61
 
55
62
  if @label.nil?
56
- invalid_properties.push("invalid value for 'label', label cannot be nil.")
63
+ invalid_properties.push('invalid value for "label", label cannot be nil.')
57
64
  end
58
65
 
59
- return invalid_properties
66
+ invalid_properties
60
67
  end
61
68
 
62
69
  # Check to see if the all the properties in the model are valid
@@ -64,7 +71,7 @@ module BudgeaClient
64
71
  def valid?
65
72
  return false if @value.nil?
66
73
  return false if @label.nil?
67
- return true
74
+ true
68
75
  end
69
76
 
70
77
  # Checks equality by comparing each attribute.
@@ -98,7 +105,7 @@ module BudgeaClient
98
105
  # check to ensure the input is an array given that the the attribute
99
106
  # is documented as an array but the input is not
100
107
  if attributes[self.class.attribute_map[key]].is_a?(Array)
101
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
108
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
102
109
  end
103
110
  elsif !attributes[self.class.attribute_map[key]].nil?
104
111
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -180,7 +187,7 @@ module BudgeaClient
180
187
  # @return [Hash] Returns the value in the form of hash
181
188
  def _to_hash(value)
182
189
  if value.is_a?(Array)
183
- value.compact.map{ |v| _to_hash(v) }
190
+ value.compact.map { |v| _to_hash(v) }
184
191
  elsif value.is_a?(Hash)
185
192
  {}.tap do |hash|
186
193
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -191,7 +198,5 @@ module BudgeaClient
191
198
  value
192
199
  end
193
200
  end
194
-
195
201
  end
196
-
197
202
  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 File
8
17
  attr_accessor :id
9
18
 
@@ -13,7 +22,6 @@ module BudgeaClient
13
22
 
14
23
  attr_accessor :file_size
15
24
 
16
-
17
25
  # Attribute mapping from ruby-style variable name to JSON key.
18
26
  def self.attribute_map
19
27
  {
@@ -40,7 +48,7 @@ module BudgeaClient
40
48
  return unless attributes.is_a?(Hash)
41
49
 
42
50
  # convert string to symbol for hash key
43
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
51
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
44
52
 
45
53
  if attributes.has_key?(:'id')
46
54
  self.id = attributes[:'id']
@@ -57,7 +65,6 @@ module BudgeaClient
57
65
  if attributes.has_key?(:'file_size')
58
66
  self.file_size = attributes[:'file_size']
59
67
  end
60
-
61
68
  end
62
69
 
63
70
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -65,22 +72,22 @@ module BudgeaClient
65
72
  def list_invalid_properties
66
73
  invalid_properties = Array.new
67
74
  if @id.nil?
68
- invalid_properties.push("invalid value for 'id', id cannot be nil.")
75
+ invalid_properties.push('invalid value for "id", id cannot be nil.')
69
76
  end
70
77
 
71
78
  if @content_type.nil?
72
- invalid_properties.push("invalid value for 'content_type', content_type cannot be nil.")
79
+ invalid_properties.push('invalid value for "content_type", content_type cannot be nil.')
73
80
  end
74
81
 
75
82
  if @filename.nil?
76
- invalid_properties.push("invalid value for 'filename', filename cannot be nil.")
83
+ invalid_properties.push('invalid value for "filename", filename cannot be nil.')
77
84
  end
78
85
 
79
86
  if @file_size.nil?
80
- invalid_properties.push("invalid value for 'file_size', file_size cannot be nil.")
87
+ invalid_properties.push('invalid value for "file_size", file_size 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
@@ -90,7 +97,7 @@ module BudgeaClient
90
97
  return false if @content_type.nil?
91
98
  return false if @filename.nil?
92
99
  return false if @file_size.nil?
93
- return true
100
+ true
94
101
  end
95
102
 
96
103
  # Checks equality by comparing each attribute.
@@ -126,7 +133,7 @@ module BudgeaClient
126
133
  # check to ensure the input is an array given that the the attribute
127
134
  # is documented as an array but the input is not
128
135
  if attributes[self.class.attribute_map[key]].is_a?(Array)
129
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
136
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
130
137
  end
131
138
  elsif !attributes[self.class.attribute_map[key]].nil?
132
139
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -208,7 +215,7 @@ module BudgeaClient
208
215
  # @return [Hash] Returns the value in the form of hash
209
216
  def _to_hash(value)
210
217
  if value.is_a?(Array)
211
- value.compact.map{ |v| _to_hash(v) }
218
+ value.compact.map { |v| _to_hash(v) }
212
219
  elsif value.is_a?(Hash)
213
220
  {}.tap do |hash|
214
221
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -219,7 +226,5 @@ module BudgeaClient
219
226
  value
220
227
  end
221
228
  end
222
-
223
229
  end
224
-
225
230
  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 Group
8
17
  attr_accessor :id
9
18
 
@@ -21,7 +30,6 @@ module BudgeaClient
21
30
 
22
31
  attr_accessor :conf
23
32
 
24
-
25
33
  # Attribute mapping from ruby-style variable name to JSON key.
26
34
  def self.attribute_map
27
35
  {
@@ -56,7 +64,7 @@ module BudgeaClient
56
64
  return unless attributes.is_a?(Hash)
57
65
 
58
66
  # convert string to symbol for hash key
59
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
67
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
60
68
 
61
69
  if attributes.has_key?(:'id')
62
70
  self.id = attributes[:'id']
@@ -89,7 +97,6 @@ module BudgeaClient
89
97
  if attributes.has_key?(:'conf')
90
98
  self.conf = attributes[:'conf']
91
99
  end
92
-
93
100
  end
94
101
 
95
102
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -97,17 +104,17 @@ module BudgeaClient
97
104
  def list_invalid_properties
98
105
  invalid_properties = Array.new
99
106
  if @id.nil?
100
- invalid_properties.push("invalid value for 'id', id cannot be nil.")
107
+ invalid_properties.push('invalid value for "id", id cannot be nil.')
101
108
  end
102
109
 
103
- return invalid_properties
110
+ invalid_properties
104
111
  end
105
112
 
106
113
  # Check to see if the all the properties in the model are valid
107
114
  # @return true if the model is valid
108
115
  def valid?
109
116
  return false if @id.nil?
110
- return true
117
+ true
111
118
  end
112
119
 
113
120
  # Checks equality by comparing each attribute.
@@ -147,7 +154,7 @@ module BudgeaClient
147
154
  # check to ensure the input is an array given that the the attribute
148
155
  # is documented as an array but the input is not
149
156
  if attributes[self.class.attribute_map[key]].is_a?(Array)
150
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
157
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
151
158
  end
152
159
  elsif !attributes[self.class.attribute_map[key]].nil?
153
160
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -229,7 +236,7 @@ module BudgeaClient
229
236
  # @return [Hash] Returns the value in the form of hash
230
237
  def _to_hash(value)
231
238
  if value.is_a?(Array)
232
- value.compact.map{ |v| _to_hash(v) }
239
+ value.compact.map { |v| _to_hash(v) }
233
240
  elsif value.is_a?(Hash)
234
241
  {}.tap do |hash|
235
242
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -240,7 +247,5 @@ module BudgeaClient
240
247
  value
241
248
  end
242
249
  end
243
-
244
250
  end
245
-
246
251
  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 HashTable
8
17
  attr_accessor :wording
9
18
 
@@ -13,7 +22,6 @@ module BudgeaClient
13
22
 
14
23
  attr_accessor :nature
15
24
 
16
-
17
25
  # Attribute mapping from ruby-style variable name to JSON key.
18
26
  def self.attribute_map
19
27
  {
@@ -40,7 +48,7 @@ module BudgeaClient
40
48
  return unless attributes.is_a?(Hash)
41
49
 
42
50
  # convert string to symbol for hash key
43
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
51
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
44
52
 
45
53
  if attributes.has_key?(:'wording')
46
54
  self.wording = attributes[:'wording']
@@ -59,7 +67,6 @@ module BudgeaClient
59
67
  if attributes.has_key?(:'nature')
60
68
  self.nature = attributes[:'nature']
61
69
  end
62
-
63
70
  end
64
71
 
65
72
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -67,22 +74,22 @@ module BudgeaClient
67
74
  def list_invalid_properties
68
75
  invalid_properties = Array.new
69
76
  if @wording.nil?
70
- invalid_properties.push("invalid value for 'wording', wording cannot be nil.")
77
+ invalid_properties.push('invalid value for "wording", wording cannot be nil.')
71
78
  end
72
79
 
73
80
  if @income.nil?
74
- invalid_properties.push("invalid value for 'income', income cannot be nil.")
81
+ invalid_properties.push('invalid value for "income", income cannot be nil.')
75
82
  end
76
83
 
77
84
  if @display.nil?
78
- invalid_properties.push("invalid value for 'display', display cannot be nil.")
85
+ invalid_properties.push('invalid value for "display", display cannot be nil.')
79
86
  end
80
87
 
81
88
  if @nature.nil?
82
- invalid_properties.push("invalid value for 'nature', nature cannot be nil.")
89
+ invalid_properties.push('invalid value for "nature", nature cannot be nil.')
83
90
  end
84
91
 
85
- return invalid_properties
92
+ invalid_properties
86
93
  end
87
94
 
88
95
  # Check to see if the all the properties in the model are valid
@@ -92,7 +99,7 @@ module BudgeaClient
92
99
  return false if @income.nil?
93
100
  return false if @display.nil?
94
101
  return false if @nature.nil?
95
- return true
102
+ true
96
103
  end
97
104
 
98
105
  # Checks equality by comparing each attribute.
@@ -128,7 +135,7 @@ module BudgeaClient
128
135
  # check to ensure the input is an array given that the the attribute
129
136
  # is documented as an array but the input is not
130
137
  if attributes[self.class.attribute_map[key]].is_a?(Array)
131
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
138
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
132
139
  end
133
140
  elsif !attributes[self.class.attribute_map[key]].nil?
134
141
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -210,7 +217,7 @@ module BudgeaClient
210
217
  # @return [Hash] Returns the value in the form of hash
211
218
  def _to_hash(value)
212
219
  if value.is_a?(Array)
213
- value.compact.map{ |v| _to_hash(v) }
220
+ value.compact.map { |v| _to_hash(v) }
214
221
  elsif value.is_a?(Hash)
215
222
  {}.tap do |hash|
216
223
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -221,7 +228,5 @@ module BudgeaClient
221
228
  value
222
229
  end
223
230
  end
224
-
225
231
  end
226
-
227
232
  end
@@ -1,13 +1,21 @@
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 InlineResponse200
8
17
  attr_accessor :accounttypes
9
18
 
10
-
11
19
  # Attribute mapping from ruby-style variable name to JSON key.
12
20
  def self.attribute_map
13
21
  {
@@ -28,14 +36,13 @@ 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
41
  if attributes.has_key?(:'accounttypes')
34
42
  if (value = attributes[:'accounttypes']).is_a?(Array)
35
43
  self.accounttypes = 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?
@@ -43,17 +50,17 @@ module BudgeaClient
43
50
  def list_invalid_properties
44
51
  invalid_properties = Array.new
45
52
  if @accounttypes.nil?
46
- invalid_properties.push("invalid value for 'accounttypes', accounttypes cannot be nil.")
53
+ invalid_properties.push('invalid value for "accounttypes", accounttypes 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
62
  return false if @accounttypes.nil?
56
- return true
63
+ true
57
64
  end
58
65
 
59
66
  # Checks equality by comparing each attribute.
@@ -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