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.
- checksums.yaml +4 -4
- data/Gemfile.lock +5 -5
- data/README.md +67 -725
- data/budgea_client.gemspec +15 -3
- data/budgea_openapi.json +2011 -524
- data/docs/Account.md +3 -1
- data/docs/AccountLog.md +2 -2
- data/docs/AdministrationApi.md +354 -34
- data/docs/AuthenticationApi.md +264 -18
- data/docs/BankCategory.md +1 -1
- data/docs/BanksApi.md +939 -550
- data/docs/Certificate.md +12 -0
- data/docs/Client.md +5 -2
- data/docs/Connection.md +1 -1
- data/docs/ConnectionLog.md +3 -2
- data/docs/ConnectionsApi.md +162 -103
- data/docs/Connector.md +21 -0
- data/docs/ConnectorCategory.md +9 -0
- data/docs/ConnectorLogo.md +1 -1
- data/docs/Currency.md +4 -0
- data/docs/DocumentsApi.md +350 -350
- data/docs/Field.md +3 -2
- data/docs/InlineResponse20010.md +1 -1
- data/docs/InlineResponse20011.md +1 -1
- data/docs/InlineResponse20012.md +1 -1
- data/docs/InlineResponse20013.md +1 -1
- data/docs/InlineResponse20014.md +1 -1
- data/docs/InlineResponse20015.md +1 -1
- data/docs/InlineResponse20016.md +1 -1
- data/docs/InlineResponse20017.md +1 -1
- data/docs/InlineResponse20018.md +1 -1
- data/docs/InlineResponse20019.md +1 -1
- data/docs/InlineResponse20020.md +1 -1
- data/docs/InlineResponse20021.md +1 -1
- data/docs/InlineResponse20022.md +1 -1
- data/docs/InlineResponse20023.md +1 -1
- data/docs/InlineResponse20024.md +1 -1
- data/docs/InlineResponse20025.md +1 -1
- data/docs/InlineResponse20026.md +1 -1
- data/docs/InlineResponse20027.md +1 -1
- data/docs/InlineResponse20028.md +1 -1
- data/docs/InlineResponse20029.md +1 -1
- data/docs/InlineResponse2003.md +2 -3
- data/docs/InlineResponse20030.md +1 -1
- data/docs/InlineResponse20031.md +1 -1
- data/docs/InlineResponse20032.md +1 -1
- data/docs/InlineResponse20033.md +1 -1
- data/docs/InlineResponse20034.md +8 -0
- data/docs/InlineResponse20035.md +8 -0
- data/docs/InlineResponse20036.md +8 -0
- data/docs/InlineResponse2004.md +0 -2
- data/docs/InlineResponse2005.md +5 -2
- data/docs/InlineResponse2006.md +2 -3
- data/docs/InlineResponse2007.md +3 -1
- data/docs/InlineResponse2008.md +1 -1
- data/docs/InlineResponse2009.md +1 -1
- data/docs/OCRApi.md +5 -5
- data/docs/OIDCApi.md +5 -5
- data/docs/PFMApi.md +122 -122
- data/docs/Pocket.md +1 -1
- data/docs/Profile.md +1 -1
- data/docs/Project.md +1 -1
- data/docs/ProvidersApi.md +602 -604
- data/docs/Recipient.md +3 -0
- data/docs/RecipientLog.md +14 -0
- data/docs/RecipientsApi.md +28 -20
- data/docs/Subscription.md +2 -1
- data/docs/TermsApi.md +13 -15
- data/docs/Transaction.md +8 -3
- data/docs/Transfer.md +1 -0
- data/docs/TransferLog.md +14 -0
- data/docs/TransfersApi.md +165 -141
- data/docs/UserAlert.md +2 -2
- data/docs/UsersManagementApi.md +24 -24
- data/docs/WealthApi.md +54 -54
- data/docs/WebhookLog.md +15 -0
- data/lib/budgea_client.rb +27 -3
- data/lib/budgea_client/api/administration_api.rb +425 -106
- data/lib/budgea_client/api/authentication_api.rb +287 -46
- data/lib/budgea_client/api/banks_api.rb +1271 -974
- data/lib/budgea_client/api/connections_api.rb +207 -156
- data/lib/budgea_client/api/documents_api.rb +627 -693
- data/lib/budgea_client/api/ocr_api.rb +24 -16
- data/lib/budgea_client/api/oidc_api.rb +23 -16
- data/lib/budgea_client/api/pfm_api.rb +219 -248
- data/lib/budgea_client/api/providers_api.rb +998 -1099
- data/lib/budgea_client/api/recipients_api.rb +52 -34
- data/lib/budgea_client/api/terms_api.rb +34 -31
- data/lib/budgea_client/api/transfers_api.rb +245 -239
- data/lib/budgea_client/api/users_management_api.rb +56 -58
- data/lib/budgea_client/api/wealth_api.rb +81 -85
- data/lib/budgea_client/api_client.rb +20 -11
- data/lib/budgea_client/api_error.rb +11 -1
- data/lib/budgea_client/configuration.rb +12 -2
- data/lib/budgea_client/models/access.rb +18 -13
- data/lib/budgea_client/models/account.rb +44 -23
- data/lib/budgea_client/models/account_log.rb +33 -28
- data/lib/budgea_client/models/account_type.rb +22 -17
- data/lib/budgea_client/models/alert.rb +21 -16
- data/lib/budgea_client/models/bank.rb +21 -16
- data/lib/budgea_client/models/bank_category.rb +19 -14
- data/lib/budgea_client/models/category.rb +22 -17
- data/lib/budgea_client/models/certificate.rb +244 -0
- data/lib/budgea_client/models/client.rb +53 -20
- data/lib/budgea_client/models/connection.rb +29 -24
- data/lib/budgea_client/models/connection_log.rb +39 -24
- data/lib/budgea_client/models/connector.rb +345 -0
- data/lib/budgea_client/models/connector_category.rb +206 -0
- data/lib/budgea_client/models/connector_logo.rb +29 -24
- data/lib/budgea_client/models/currency.rb +63 -16
- data/lib/budgea_client/models/device.rb +23 -18
- data/lib/budgea_client/models/document.rb +21 -16
- data/lib/budgea_client/models/document_type.rb +19 -14
- data/lib/budgea_client/models/field.rb +44 -27
- data/lib/budgea_client/models/field_value.rb +18 -13
- data/lib/budgea_client/models/file.rb +20 -15
- data/lib/budgea_client/models/group.rb +17 -12
- data/lib/budgea_client/models/hash_table.rb +20 -15
- data/lib/budgea_client/models/inline_response_200.rb +17 -12
- data/lib/budgea_client/models/inline_response_200_1.rb +18 -13
- data/lib/budgea_client/models/inline_response_200_10.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_11.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_12.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_13.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_14.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_15.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_16.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_17.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_18.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_19.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_2.rb +18 -13
- data/lib/budgea_client/models/inline_response_200_20.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_21.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_22.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_23.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_24.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_25.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_26.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_27.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_28.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_29.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_3.rb +37 -47
- data/lib/budgea_client/models/inline_response_200_30.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_31.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_32.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_33.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_34.rb +190 -0
- data/lib/budgea_client/models/inline_response_200_35.rb +190 -0
- data/lib/budgea_client/models/inline_response_200_36.rb +190 -0
- data/lib/budgea_client/models/inline_response_200_4.rb +20 -40
- data/lib/budgea_client/models/inline_response_200_5.rb +75 -30
- data/lib/budgea_client/models/inline_response_200_6.rb +37 -47
- data/lib/budgea_client/models/inline_response_200_7.rb +55 -21
- data/lib/budgea_client/models/inline_response_200_8.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_9.rb +27 -22
- data/lib/budgea_client/models/investment.rb +20 -15
- data/lib/budgea_client/models/investment_value.rb +20 -15
- data/lib/budgea_client/models/invite.rb +18 -13
- data/lib/budgea_client/models/locked_user.rb +18 -13
- data/lib/budgea_client/models/oidc_whitelist.rb +18 -13
- data/lib/budgea_client/models/pocket.rb +22 -17
- data/lib/budgea_client/models/profile.rb +26 -20
- data/lib/budgea_client/models/project.rb +26 -21
- data/lib/budgea_client/models/project_type.rb +18 -13
- data/lib/budgea_client/models/recipient.rb +52 -17
- data/lib/budgea_client/models/recipient_log.rb +254 -0
- data/lib/budgea_client/models/security.rb +18 -13
- data/lib/budgea_client/models/subscription.rb +31 -21
- data/lib/budgea_client/models/terms_of_service.rb +19 -14
- data/lib/budgea_client/models/transaction.rb +83 -33
- data/lib/budgea_client/models/transaction_information.rb +19 -14
- data/lib/budgea_client/models/transactions_cluster.rb +21 -16
- data/lib/budgea_client/models/transfer.rb +32 -16
- data/lib/budgea_client/models/transfer_log.rb +254 -0
- data/lib/budgea_client/models/user.rb +22 -16
- data/lib/budgea_client/models/user_alert.rb +22 -16
- data/lib/budgea_client/models/webhook.rb +19 -14
- data/lib/budgea_client/models/webhook_log.rb +264 -0
- data/lib/budgea_client/version.rb +12 -2
- data/original_budgea_openapi.json +23188 -0
- data/spec/models/certificate_spec.rb +65 -0
- data/spec/models/connector_category_spec.rb +47 -0
- data/spec/models/connector_spec.rb +119 -0
- data/spec/models/inline_response_200_34_spec.rb +41 -0
- data/spec/models/inline_response_200_35_spec.rb +41 -0
- data/spec/models/inline_response_200_36_spec.rb +41 -0
- data/spec/models/recipient_log_spec.rb +77 -0
- data/spec/models/transfer_log_spec.rb +77 -0
- data/spec/models/webhook_log_spec.rb +83 -0
- metadata +52 -18
- data/pkg/budgea_client-1.3.9.gem +0 -0
- data/pkg/budgea_client-1.4.2.gem +0 -0
- data/pkg/budgea_client-1.4.3.gem +0 -0
@@ -1,9 +1,18 @@
|
|
1
|
-
|
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 Invite
|
8
17
|
attr_accessor :id
|
9
18
|
|
@@ -17,7 +26,6 @@ module BudgeaClient
|
|
17
26
|
|
18
27
|
attr_accessor :timestamp
|
19
28
|
|
20
|
-
|
21
29
|
# Attribute mapping from ruby-style variable name to JSON key.
|
22
30
|
def self.attribute_map
|
23
31
|
{
|
@@ -48,7 +56,7 @@ module BudgeaClient
|
|
48
56
|
return unless attributes.is_a?(Hash)
|
49
57
|
|
50
58
|
# convert string to symbol for hash key
|
51
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
59
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
52
60
|
|
53
61
|
if attributes.has_key?(:'id')
|
54
62
|
self.id = attributes[:'id']
|
@@ -73,7 +81,6 @@ module BudgeaClient
|
|
73
81
|
if attributes.has_key?(:'timestamp')
|
74
82
|
self.timestamp = attributes[:'timestamp']
|
75
83
|
end
|
76
|
-
|
77
84
|
end
|
78
85
|
|
79
86
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -81,14 +88,14 @@ module BudgeaClient
|
|
81
88
|
def list_invalid_properties
|
82
89
|
invalid_properties = Array.new
|
83
90
|
if @id.nil?
|
84
|
-
invalid_properties.push(
|
91
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
85
92
|
end
|
86
93
|
|
87
94
|
if @id_user_inviting.nil?
|
88
|
-
invalid_properties.push(
|
95
|
+
invalid_properties.push('invalid value for "id_user_inviting", id_user_inviting cannot be nil.')
|
89
96
|
end
|
90
97
|
|
91
|
-
|
98
|
+
invalid_properties
|
92
99
|
end
|
93
100
|
|
94
101
|
# Check to see if the all the properties in the model are valid
|
@@ -96,7 +103,7 @@ module BudgeaClient
|
|
96
103
|
def valid?
|
97
104
|
return false if @id.nil?
|
98
105
|
return false if @id_user_inviting.nil?
|
99
|
-
|
106
|
+
true
|
100
107
|
end
|
101
108
|
|
102
109
|
# Checks equality by comparing each attribute.
|
@@ -134,7 +141,7 @@ module BudgeaClient
|
|
134
141
|
# check to ensure the input is an array given that the the attribute
|
135
142
|
# is documented as an array but the input is not
|
136
143
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
137
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
144
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
138
145
|
end
|
139
146
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
140
147
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -216,7 +223,7 @@ module BudgeaClient
|
|
216
223
|
# @return [Hash] Returns the value in the form of hash
|
217
224
|
def _to_hash(value)
|
218
225
|
if value.is_a?(Array)
|
219
|
-
value.compact.map{ |v| _to_hash(v) }
|
226
|
+
value.compact.map { |v| _to_hash(v) }
|
220
227
|
elsif value.is_a?(Hash)
|
221
228
|
{}.tap do |hash|
|
222
229
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -227,7 +234,5 @@ module BudgeaClient
|
|
227
234
|
value
|
228
235
|
end
|
229
236
|
end
|
230
|
-
|
231
237
|
end
|
232
|
-
|
233
238
|
end
|
@@ -1,9 +1,18 @@
|
|
1
|
-
|
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 LockedUser
|
8
17
|
attr_accessor :id_user
|
9
18
|
|
@@ -11,7 +20,6 @@ module BudgeaClient
|
|
11
20
|
|
12
21
|
attr_accessor :worker
|
13
22
|
|
14
|
-
|
15
23
|
# Attribute mapping from ruby-style variable name to JSON key.
|
16
24
|
def self.attribute_map
|
17
25
|
{
|
@@ -36,7 +44,7 @@ module BudgeaClient
|
|
36
44
|
return unless attributes.is_a?(Hash)
|
37
45
|
|
38
46
|
# convert string to symbol for hash key
|
39
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
47
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
40
48
|
|
41
49
|
if attributes.has_key?(:'id_user')
|
42
50
|
self.id_user = attributes[:'id_user']
|
@@ -49,7 +57,6 @@ module BudgeaClient
|
|
49
57
|
if attributes.has_key?(:'worker')
|
50
58
|
self.worker = attributes[:'worker']
|
51
59
|
end
|
52
|
-
|
53
60
|
end
|
54
61
|
|
55
62
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -57,14 +64,14 @@ module BudgeaClient
|
|
57
64
|
def list_invalid_properties
|
58
65
|
invalid_properties = Array.new
|
59
66
|
if @id_user.nil?
|
60
|
-
invalid_properties.push(
|
67
|
+
invalid_properties.push('invalid value for "id_user", id_user cannot be nil.')
|
61
68
|
end
|
62
69
|
|
63
70
|
if @timestamp.nil?
|
64
|
-
invalid_properties.push(
|
71
|
+
invalid_properties.push('invalid value for "timestamp", timestamp cannot be nil.')
|
65
72
|
end
|
66
73
|
|
67
|
-
|
74
|
+
invalid_properties
|
68
75
|
end
|
69
76
|
|
70
77
|
# Check to see if the all the properties in the model are valid
|
@@ -72,7 +79,7 @@ module BudgeaClient
|
|
72
79
|
def valid?
|
73
80
|
return false if @id_user.nil?
|
74
81
|
return false if @timestamp.nil?
|
75
|
-
|
82
|
+
true
|
76
83
|
end
|
77
84
|
|
78
85
|
# Checks equality by comparing each attribute.
|
@@ -107,7 +114,7 @@ module BudgeaClient
|
|
107
114
|
# check to ensure the input is an array given that the the attribute
|
108
115
|
# is documented as an array but the input is not
|
109
116
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
110
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
117
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
111
118
|
end
|
112
119
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
113
120
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -189,7 +196,7 @@ module BudgeaClient
|
|
189
196
|
# @return [Hash] Returns the value in the form of hash
|
190
197
|
def _to_hash(value)
|
191
198
|
if value.is_a?(Array)
|
192
|
-
value.compact.map{ |v| _to_hash(v) }
|
199
|
+
value.compact.map { |v| _to_hash(v) }
|
193
200
|
elsif value.is_a?(Hash)
|
194
201
|
{}.tap do |hash|
|
195
202
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -200,7 +207,5 @@ module BudgeaClient
|
|
200
207
|
value
|
201
208
|
end
|
202
209
|
end
|
203
|
-
|
204
210
|
end
|
205
|
-
|
206
211
|
end
|
@@ -1,16 +1,24 @@
|
|
1
|
-
|
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 OidcWhitelist
|
8
17
|
attr_accessor :id
|
9
18
|
|
10
19
|
# authorized redirect uri
|
11
20
|
attr_accessor :redirect_uri
|
12
21
|
|
13
|
-
|
14
22
|
# Attribute mapping from ruby-style variable name to JSON key.
|
15
23
|
def self.attribute_map
|
16
24
|
{
|
@@ -33,7 +41,7 @@ module BudgeaClient
|
|
33
41
|
return unless attributes.is_a?(Hash)
|
34
42
|
|
35
43
|
# convert string to symbol for hash key
|
36
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
44
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
37
45
|
|
38
46
|
if attributes.has_key?(:'id')
|
39
47
|
self.id = attributes[:'id']
|
@@ -42,7 +50,6 @@ module BudgeaClient
|
|
42
50
|
if attributes.has_key?(:'redirect_uri')
|
43
51
|
self.redirect_uri = attributes[:'redirect_uri']
|
44
52
|
end
|
45
|
-
|
46
53
|
end
|
47
54
|
|
48
55
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -50,14 +57,14 @@ module BudgeaClient
|
|
50
57
|
def list_invalid_properties
|
51
58
|
invalid_properties = Array.new
|
52
59
|
if @id.nil?
|
53
|
-
invalid_properties.push(
|
60
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
54
61
|
end
|
55
62
|
|
56
63
|
if @redirect_uri.nil?
|
57
|
-
invalid_properties.push(
|
64
|
+
invalid_properties.push('invalid value for "redirect_uri", redirect_uri cannot be nil.')
|
58
65
|
end
|
59
66
|
|
60
|
-
|
67
|
+
invalid_properties
|
61
68
|
end
|
62
69
|
|
63
70
|
# Check to see if the all the properties in the model are valid
|
@@ -65,7 +72,7 @@ module BudgeaClient
|
|
65
72
|
def valid?
|
66
73
|
return false if @id.nil?
|
67
74
|
return false if @redirect_uri.nil?
|
68
|
-
|
75
|
+
true
|
69
76
|
end
|
70
77
|
|
71
78
|
# Checks equality by comparing each attribute.
|
@@ -99,7 +106,7 @@ module BudgeaClient
|
|
99
106
|
# check to ensure the input is an array given that the the attribute
|
100
107
|
# is documented as an array but the input is not
|
101
108
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
102
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
109
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
103
110
|
end
|
104
111
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
105
112
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -181,7 +188,7 @@ module BudgeaClient
|
|
181
188
|
# @return [Hash] Returns the value in the form of hash
|
182
189
|
def _to_hash(value)
|
183
190
|
if value.is_a?(Array)
|
184
|
-
value.compact.map{ |v| _to_hash(v) }
|
191
|
+
value.compact.map { |v| _to_hash(v) }
|
185
192
|
elsif value.is_a?(Hash)
|
186
193
|
{}.tap do |hash|
|
187
194
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -192,7 +199,5 @@ module BudgeaClient
|
|
192
199
|
value
|
193
200
|
end
|
194
201
|
end
|
195
|
-
|
196
202
|
end
|
197
|
-
|
198
203
|
end
|
@@ -1,9 +1,18 @@
|
|
1
|
-
|
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 Pocket
|
8
17
|
# ID of the pocket
|
9
18
|
attr_accessor :id
|
@@ -35,7 +44,6 @@ module BudgeaClient
|
|
35
44
|
# If set, this pocket has been removed from the website
|
36
45
|
attr_accessor :deleted
|
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']
|
@@ -109,7 +117,7 @@ module BudgeaClient
|
|
109
117
|
if attributes.has_key?(:'condition')
|
110
118
|
self.condition = attributes[:'condition']
|
111
119
|
else
|
112
|
-
self.condition =
|
120
|
+
self.condition = 'inconnu'
|
113
121
|
end
|
114
122
|
|
115
123
|
if attributes.has_key?(:'last_update')
|
@@ -119,7 +127,6 @@ module BudgeaClient
|
|
119
127
|
if attributes.has_key?(:'deleted')
|
120
128
|
self.deleted = attributes[:'deleted']
|
121
129
|
end
|
122
|
-
|
123
130
|
end
|
124
131
|
|
125
132
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -127,26 +134,26 @@ module BudgeaClient
|
|
127
134
|
def list_invalid_properties
|
128
135
|
invalid_properties = Array.new
|
129
136
|
if @id.nil?
|
130
|
-
invalid_properties.push(
|
137
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
131
138
|
end
|
132
139
|
|
133
140
|
if @id_account.nil?
|
134
|
-
invalid_properties.push(
|
141
|
+
invalid_properties.push('invalid value for "id_account", id_account cannot be nil.')
|
135
142
|
end
|
136
143
|
|
137
144
|
if @id_investment.nil?
|
138
|
-
invalid_properties.push(
|
145
|
+
invalid_properties.push('invalid value for "id_investment", id_investment cannot be nil.')
|
139
146
|
end
|
140
147
|
|
141
148
|
if @value.nil?
|
142
|
-
invalid_properties.push(
|
149
|
+
invalid_properties.push('invalid value for "value", value cannot be nil.')
|
143
150
|
end
|
144
151
|
|
145
152
|
if @condition.nil?
|
146
|
-
invalid_properties.push(
|
153
|
+
invalid_properties.push('invalid value for "condition", condition cannot be nil.')
|
147
154
|
end
|
148
155
|
|
149
|
-
|
156
|
+
invalid_properties
|
150
157
|
end
|
151
158
|
|
152
159
|
# Check to see if the all the properties in the model are valid
|
@@ -157,7 +164,7 @@ module BudgeaClient
|
|
157
164
|
return false if @id_investment.nil?
|
158
165
|
return false if @value.nil?
|
159
166
|
return false if @condition.nil?
|
160
|
-
|
167
|
+
true
|
161
168
|
end
|
162
169
|
|
163
170
|
# Checks equality by comparing each attribute.
|
@@ -199,7 +206,7 @@ module BudgeaClient
|
|
199
206
|
# check to ensure the input is an array given that the the attribute
|
200
207
|
# is documented as an array but the input is not
|
201
208
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
202
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
209
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
203
210
|
end
|
204
211
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
205
212
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -281,7 +288,7 @@ module BudgeaClient
|
|
281
288
|
# @return [Hash] Returns the value in the form of hash
|
282
289
|
def _to_hash(value)
|
283
290
|
if value.is_a?(Array)
|
284
|
-
value.compact.map{ |v| _to_hash(v) }
|
291
|
+
value.compact.map { |v| _to_hash(v) }
|
285
292
|
elsif value.is_a?(Hash)
|
286
293
|
{}.tap do |hash|
|
287
294
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -292,7 +299,5 @@ module BudgeaClient
|
|
292
299
|
value
|
293
300
|
end
|
294
301
|
end
|
295
|
-
|
296
302
|
end
|
297
|
-
|
298
303
|
end
|
@@ -1,9 +1,18 @@
|
|
1
|
-
|
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 Profile
|
8
17
|
attr_accessor :id
|
9
18
|
|
@@ -77,7 +86,7 @@ module BudgeaClient
|
|
77
86
|
return unless attributes.is_a?(Hash)
|
78
87
|
|
79
88
|
# convert string to symbol for hash key
|
80
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
89
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
81
90
|
|
82
91
|
if attributes.has_key?(:'id')
|
83
92
|
self.id = attributes[:'id']
|
@@ -90,7 +99,7 @@ module BudgeaClient
|
|
90
99
|
if attributes.has_key?(:'role')
|
91
100
|
self.role = attributes[:'role']
|
92
101
|
else
|
93
|
-
self.role =
|
102
|
+
self.role = 'admin'
|
94
103
|
end
|
95
104
|
|
96
105
|
if attributes.has_key?(:'email')
|
@@ -114,7 +123,6 @@ module BudgeaClient
|
|
114
123
|
if attributes.has_key?(:'lang')
|
115
124
|
self.lang = attributes[:'lang']
|
116
125
|
end
|
117
|
-
|
118
126
|
end
|
119
127
|
|
120
128
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -122,30 +130,30 @@ module BudgeaClient
|
|
122
130
|
def list_invalid_properties
|
123
131
|
invalid_properties = Array.new
|
124
132
|
if @id.nil?
|
125
|
-
invalid_properties.push(
|
133
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
126
134
|
end
|
127
135
|
|
128
136
|
if @id_user.nil?
|
129
|
-
invalid_properties.push(
|
137
|
+
invalid_properties.push('invalid value for "id_user", id_user cannot be nil.')
|
130
138
|
end
|
131
139
|
|
132
140
|
if @role.nil?
|
133
|
-
invalid_properties.push(
|
141
|
+
invalid_properties.push('invalid value for "role", role cannot be nil.')
|
134
142
|
end
|
135
143
|
|
136
144
|
if @email.nil?
|
137
|
-
invalid_properties.push(
|
145
|
+
invalid_properties.push('invalid value for "email", email cannot be nil.')
|
138
146
|
end
|
139
147
|
|
140
148
|
if @statut.nil?
|
141
|
-
invalid_properties.push(
|
149
|
+
invalid_properties.push('invalid value for "statut", statut cannot be nil.')
|
142
150
|
end
|
143
151
|
|
144
152
|
if @admin.nil?
|
145
|
-
invalid_properties.push(
|
153
|
+
invalid_properties.push('invalid value for "admin", admin cannot be nil.')
|
146
154
|
end
|
147
155
|
|
148
|
-
|
156
|
+
invalid_properties
|
149
157
|
end
|
150
158
|
|
151
159
|
# Check to see if the all the properties in the model are valid
|
@@ -154,20 +162,20 @@ module BudgeaClient
|
|
154
162
|
return false if @id.nil?
|
155
163
|
return false if @id_user.nil?
|
156
164
|
return false if @role.nil?
|
157
|
-
role_validator = EnumAttributeValidator.new('String', [
|
165
|
+
role_validator = EnumAttributeValidator.new('String', ['admin', 'ser'])
|
158
166
|
return false unless role_validator.valid?(@role)
|
159
167
|
return false if @email.nil?
|
160
168
|
return false if @statut.nil?
|
161
169
|
return false if @admin.nil?
|
162
|
-
|
170
|
+
true
|
163
171
|
end
|
164
172
|
|
165
173
|
# Custom attribute writer method checking allowed values (enum).
|
166
174
|
# @param [Object] role Object to be assigned
|
167
175
|
def role=(role)
|
168
|
-
validator = EnumAttributeValidator.new('String', [
|
176
|
+
validator = EnumAttributeValidator.new('String', ['admin', 'ser'])
|
169
177
|
unless validator.valid?(role)
|
170
|
-
fail ArgumentError,
|
178
|
+
fail ArgumentError, 'invalid value for "role", must be one of #{validator.allowable_values}.'
|
171
179
|
end
|
172
180
|
@role = role
|
173
181
|
end
|
@@ -209,7 +217,7 @@ module BudgeaClient
|
|
209
217
|
# check to ensure the input is an array given that the the attribute
|
210
218
|
# is documented as an array but the input is not
|
211
219
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
212
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
220
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
213
221
|
end
|
214
222
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
215
223
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -291,7 +299,7 @@ module BudgeaClient
|
|
291
299
|
# @return [Hash] Returns the value in the form of hash
|
292
300
|
def _to_hash(value)
|
293
301
|
if value.is_a?(Array)
|
294
|
-
value.compact.map{ |v| _to_hash(v) }
|
302
|
+
value.compact.map { |v| _to_hash(v) }
|
295
303
|
elsif value.is_a?(Hash)
|
296
304
|
{}.tap do |hash|
|
297
305
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -302,7 +310,5 @@ module BudgeaClient
|
|
302
310
|
value
|
303
311
|
end
|
304
312
|
end
|
305
|
-
|
306
313
|
end
|
307
|
-
|
308
314
|
end
|