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 Device
|
8
17
|
attr_accessor :id
|
9
18
|
|
@@ -19,7 +28,6 @@ module BudgeaClient
|
|
19
28
|
|
20
29
|
attr_accessor :debug
|
21
30
|
|
22
|
-
|
23
31
|
# Attribute mapping from ruby-style variable name to JSON key.
|
24
32
|
def self.attribute_map
|
25
33
|
{
|
@@ -52,7 +60,7 @@ module BudgeaClient
|
|
52
60
|
return unless attributes.is_a?(Hash)
|
53
61
|
|
54
62
|
# convert string to symbol for hash key
|
55
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
63
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
56
64
|
|
57
65
|
if attributes.has_key?(:'id')
|
58
66
|
self.id = attributes[:'id']
|
@@ -83,7 +91,6 @@ module BudgeaClient
|
|
83
91
|
else
|
84
92
|
self.debug = false
|
85
93
|
end
|
86
|
-
|
87
94
|
end
|
88
95
|
|
89
96
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -91,34 +98,34 @@ module BudgeaClient
|
|
91
98
|
def list_invalid_properties
|
92
99
|
invalid_properties = Array.new
|
93
100
|
if @id.nil?
|
94
|
-
invalid_properties.push(
|
101
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
95
102
|
end
|
96
103
|
|
97
104
|
if @id_token.nil?
|
98
|
-
invalid_properties.push(
|
105
|
+
invalid_properties.push('invalid value for "id_token", id_token cannot be nil.')
|
99
106
|
end
|
100
107
|
|
101
108
|
if @type.nil?
|
102
|
-
invalid_properties.push(
|
109
|
+
invalid_properties.push('invalid value for "type", type cannot be nil.')
|
103
110
|
end
|
104
111
|
|
105
112
|
if @notification_token.nil?
|
106
|
-
invalid_properties.push(
|
113
|
+
invalid_properties.push('invalid value for "notification_token", notification_token cannot be nil.')
|
107
114
|
end
|
108
115
|
|
109
116
|
if @last_update.nil?
|
110
|
-
invalid_properties.push(
|
117
|
+
invalid_properties.push('invalid value for "last_update", last_update cannot be nil.')
|
111
118
|
end
|
112
119
|
|
113
120
|
if @version.nil?
|
114
|
-
invalid_properties.push(
|
121
|
+
invalid_properties.push('invalid value for "version", version cannot be nil.')
|
115
122
|
end
|
116
123
|
|
117
124
|
if @debug.nil?
|
118
|
-
invalid_properties.push(
|
125
|
+
invalid_properties.push('invalid value for "debug", debug cannot be nil.')
|
119
126
|
end
|
120
127
|
|
121
|
-
|
128
|
+
invalid_properties
|
122
129
|
end
|
123
130
|
|
124
131
|
# Check to see if the all the properties in the model are valid
|
@@ -131,7 +138,7 @@ module BudgeaClient
|
|
131
138
|
return false if @last_update.nil?
|
132
139
|
return false if @version.nil?
|
133
140
|
return false if @debug.nil?
|
134
|
-
|
141
|
+
true
|
135
142
|
end
|
136
143
|
|
137
144
|
# Checks equality by comparing each attribute.
|
@@ -170,7 +177,7 @@ module BudgeaClient
|
|
170
177
|
# check to ensure the input is an array given that the the attribute
|
171
178
|
# is documented as an array but the input is not
|
172
179
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
173
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
180
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
174
181
|
end
|
175
182
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
176
183
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -252,7 +259,7 @@ module BudgeaClient
|
|
252
259
|
# @return [Hash] Returns the value in the form of hash
|
253
260
|
def _to_hash(value)
|
254
261
|
if value.is_a?(Array)
|
255
|
-
value.compact.map{ |v| _to_hash(v) }
|
262
|
+
value.compact.map { |v| _to_hash(v) }
|
256
263
|
elsif value.is_a?(Hash)
|
257
264
|
{}.tap do |hash|
|
258
265
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -263,7 +270,5 @@ module BudgeaClient
|
|
263
270
|
value
|
264
271
|
end
|
265
272
|
end
|
266
|
-
|
267
273
|
end
|
268
|
-
|
269
274
|
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 Document
|
8
17
|
attr_accessor :id
|
9
18
|
|
@@ -51,7 +60,6 @@ module BudgeaClient
|
|
51
60
|
# Document currency
|
52
61
|
attr_accessor :currency
|
53
62
|
|
54
|
-
|
55
63
|
# Attribute mapping from ruby-style variable name to JSON key.
|
56
64
|
def self.attribute_map
|
57
65
|
{
|
@@ -114,7 +122,7 @@ module BudgeaClient
|
|
114
122
|
return unless attributes.is_a?(Hash)
|
115
123
|
|
116
124
|
# convert string to symbol for hash key
|
117
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
125
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
118
126
|
|
119
127
|
if attributes.has_key?(:'id')
|
120
128
|
self.id = attributes[:'id']
|
@@ -207,7 +215,6 @@ module BudgeaClient
|
|
207
215
|
if attributes.has_key?(:'currency')
|
208
216
|
self.currency = attributes[:'currency']
|
209
217
|
end
|
210
|
-
|
211
218
|
end
|
212
219
|
|
213
220
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -215,26 +222,26 @@ module BudgeaClient
|
|
215
222
|
def list_invalid_properties
|
216
223
|
invalid_properties = Array.new
|
217
224
|
if @id.nil?
|
218
|
-
invalid_properties.push(
|
225
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
219
226
|
end
|
220
227
|
|
221
228
|
if @id_user.nil?
|
222
|
-
invalid_properties.push(
|
229
|
+
invalid_properties.push('invalid value for "id_user", id_user cannot be nil.')
|
223
230
|
end
|
224
231
|
|
225
232
|
if @timestamp.nil?
|
226
|
-
invalid_properties.push(
|
233
|
+
invalid_properties.push('invalid value for "timestamp", timestamp cannot be nil.')
|
227
234
|
end
|
228
235
|
|
229
236
|
if @date.nil?
|
230
|
-
invalid_properties.push(
|
237
|
+
invalid_properties.push('invalid value for "date", date cannot be nil.')
|
231
238
|
end
|
232
239
|
|
233
240
|
if @readonly.nil?
|
234
|
-
invalid_properties.push(
|
241
|
+
invalid_properties.push('invalid value for "readonly", readonly cannot be nil.')
|
235
242
|
end
|
236
243
|
|
237
|
-
|
244
|
+
invalid_properties
|
238
245
|
end
|
239
246
|
|
240
247
|
# Check to see if the all the properties in the model are valid
|
@@ -245,7 +252,7 @@ module BudgeaClient
|
|
245
252
|
return false if @timestamp.nil?
|
246
253
|
return false if @date.nil?
|
247
254
|
return false if @readonly.nil?
|
248
|
-
|
255
|
+
true
|
249
256
|
end
|
250
257
|
|
251
258
|
# Checks equality by comparing each attribute.
|
@@ -299,7 +306,7 @@ module BudgeaClient
|
|
299
306
|
# check to ensure the input is an array given that the the attribute
|
300
307
|
# is documented as an array but the input is not
|
301
308
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
302
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
309
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
303
310
|
end
|
304
311
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
305
312
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -381,7 +388,7 @@ module BudgeaClient
|
|
381
388
|
# @return [Hash] Returns the value in the form of hash
|
382
389
|
def _to_hash(value)
|
383
390
|
if value.is_a?(Array)
|
384
|
-
value.compact.map{ |v| _to_hash(v) }
|
391
|
+
value.compact.map { |v| _to_hash(v) }
|
385
392
|
elsif value.is_a?(Hash)
|
386
393
|
{}.tap do |hash|
|
387
394
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -392,7 +399,5 @@ module BudgeaClient
|
|
392
399
|
value
|
393
400
|
end
|
394
401
|
end
|
395
|
-
|
396
402
|
end
|
397
|
-
|
398
403
|
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 DocumentType
|
8
17
|
attr_accessor :id
|
9
18
|
|
@@ -11,7 +20,6 @@ module BudgeaClient
|
|
11
20
|
|
12
21
|
attr_accessor :attacheable
|
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')
|
42
50
|
self.id = attributes[:'id']
|
@@ -51,7 +59,6 @@ module BudgeaClient
|
|
51
59
|
else
|
52
60
|
self.attacheable = true
|
53
61
|
end
|
54
|
-
|
55
62
|
end
|
56
63
|
|
57
64
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -59,18 +66,18 @@ module BudgeaClient
|
|
59
66
|
def list_invalid_properties
|
60
67
|
invalid_properties = Array.new
|
61
68
|
if @id.nil?
|
62
|
-
invalid_properties.push(
|
69
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
63
70
|
end
|
64
71
|
|
65
72
|
if @name.nil?
|
66
|
-
invalid_properties.push(
|
73
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
67
74
|
end
|
68
75
|
|
69
76
|
if @attacheable.nil?
|
70
|
-
invalid_properties.push(
|
77
|
+
invalid_properties.push('invalid value for "attacheable", attacheable cannot be nil.')
|
71
78
|
end
|
72
79
|
|
73
|
-
|
80
|
+
invalid_properties
|
74
81
|
end
|
75
82
|
|
76
83
|
# Check to see if the all the properties in the model are valid
|
@@ -79,7 +86,7 @@ module BudgeaClient
|
|
79
86
|
return false if @id.nil?
|
80
87
|
return false if @name.nil?
|
81
88
|
return false if @attacheable.nil?
|
82
|
-
|
89
|
+
true
|
83
90
|
end
|
84
91
|
|
85
92
|
# Checks equality by comparing each attribute.
|
@@ -114,7 +121,7 @@ module BudgeaClient
|
|
114
121
|
# check to ensure the input is an array given that the the attribute
|
115
122
|
# is documented as an array but the input is not
|
116
123
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
117
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
124
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
118
125
|
end
|
119
126
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
120
127
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -196,7 +203,7 @@ module BudgeaClient
|
|
196
203
|
# @return [Hash] Returns the value in the form of hash
|
197
204
|
def _to_hash(value)
|
198
205
|
if value.is_a?(Array)
|
199
|
-
value.compact.map{ |v| _to_hash(v) }
|
206
|
+
value.compact.map { |v| _to_hash(v) }
|
200
207
|
elsif value.is_a?(Hash)
|
201
208
|
{}.tap do |hash|
|
202
209
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -207,7 +214,5 @@ module BudgeaClient
|
|
207
214
|
value
|
208
215
|
end
|
209
216
|
end
|
210
|
-
|
211
217
|
end
|
212
|
-
|
213
218
|
end
|
@@ -1,12 +1,21 @@
|
|
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 Field
|
8
|
-
# ID of the related
|
9
|
-
attr_accessor :
|
17
|
+
# ID of the related connector
|
18
|
+
attr_accessor :id_connector
|
10
19
|
|
11
20
|
# ID of the field
|
12
21
|
attr_accessor :id
|
@@ -31,11 +40,13 @@ module BudgeaClient
|
|
31
40
|
|
32
41
|
attr_accessor :values
|
33
42
|
|
43
|
+
# If true, field has to be set to synchronize the connection
|
44
|
+
attr_accessor :required
|
34
45
|
|
35
46
|
# Attribute mapping from ruby-style variable name to JSON key.
|
36
47
|
def self.attribute_map
|
37
48
|
{
|
38
|
-
:'
|
49
|
+
:'id_connector' => :'id_connector',
|
39
50
|
:'id' => :'id',
|
40
51
|
:'name' => :'name',
|
41
52
|
:'label' => :'label',
|
@@ -43,14 +54,15 @@ module BudgeaClient
|
|
43
54
|
:'type' => :'type',
|
44
55
|
:'ephemeral' => :'ephemeral',
|
45
56
|
:'value' => :'value',
|
46
|
-
:'values' => :'values'
|
57
|
+
:'values' => :'values',
|
58
|
+
:'required' => :'required'
|
47
59
|
}
|
48
60
|
end
|
49
61
|
|
50
62
|
# Attribute type mapping.
|
51
63
|
def self.swagger_types
|
52
64
|
{
|
53
|
-
:'
|
65
|
+
:'id_connector' => :'Integer',
|
54
66
|
:'id' => :'Integer',
|
55
67
|
:'name' => :'String',
|
56
68
|
:'label' => :'String',
|
@@ -58,7 +70,8 @@ module BudgeaClient
|
|
58
70
|
:'type' => :'String',
|
59
71
|
:'ephemeral' => :'BOOLEAN',
|
60
72
|
:'value' => :'String',
|
61
|
-
:'values' => :'Array<FieldValue>'
|
73
|
+
:'values' => :'Array<FieldValue>',
|
74
|
+
:'required' => :'BOOLEAN'
|
62
75
|
}
|
63
76
|
end
|
64
77
|
|
@@ -68,10 +81,10 @@ module BudgeaClient
|
|
68
81
|
return unless attributes.is_a?(Hash)
|
69
82
|
|
70
83
|
# convert string to symbol for hash key
|
71
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
84
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
72
85
|
|
73
|
-
if attributes.has_key?(:'
|
74
|
-
self.
|
86
|
+
if attributes.has_key?(:'id_connector')
|
87
|
+
self.id_connector = attributes[:'id_connector']
|
75
88
|
end
|
76
89
|
|
77
90
|
if attributes.has_key?(:'id')
|
@@ -93,7 +106,7 @@ module BudgeaClient
|
|
93
106
|
if attributes.has_key?(:'type')
|
94
107
|
self.type = attributes[:'type']
|
95
108
|
else
|
96
|
-
self.type =
|
109
|
+
self.type = 'text'
|
97
110
|
end
|
98
111
|
|
99
112
|
if attributes.has_key?(:'ephemeral')
|
@@ -112,39 +125,44 @@ module BudgeaClient
|
|
112
125
|
end
|
113
126
|
end
|
114
127
|
|
128
|
+
if attributes.has_key?(:'required')
|
129
|
+
self.required = attributes[:'required']
|
130
|
+
else
|
131
|
+
self.required = true
|
132
|
+
end
|
115
133
|
end
|
116
134
|
|
117
135
|
# Show invalid properties with the reasons. Usually used together with valid?
|
118
136
|
# @return Array for valid properties with the reasons
|
119
137
|
def list_invalid_properties
|
120
138
|
invalid_properties = Array.new
|
121
|
-
if @
|
122
|
-
invalid_properties.push(
|
139
|
+
if @id_connector.nil?
|
140
|
+
invalid_properties.push('invalid value for "id_connector", id_connector cannot be nil.')
|
123
141
|
end
|
124
142
|
|
125
143
|
if @id.nil?
|
126
|
-
invalid_properties.push(
|
144
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
127
145
|
end
|
128
146
|
|
129
147
|
if @name.nil?
|
130
|
-
invalid_properties.push(
|
148
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
131
149
|
end
|
132
150
|
|
133
151
|
if @label.nil?
|
134
|
-
invalid_properties.push(
|
152
|
+
invalid_properties.push('invalid value for "label", label cannot be nil.')
|
135
153
|
end
|
136
154
|
|
137
|
-
|
155
|
+
invalid_properties
|
138
156
|
end
|
139
157
|
|
140
158
|
# Check to see if the all the properties in the model are valid
|
141
159
|
# @return true if the model is valid
|
142
160
|
def valid?
|
143
|
-
return false if @
|
161
|
+
return false if @id_connector.nil?
|
144
162
|
return false if @id.nil?
|
145
163
|
return false if @name.nil?
|
146
164
|
return false if @label.nil?
|
147
|
-
|
165
|
+
true
|
148
166
|
end
|
149
167
|
|
150
168
|
# Checks equality by comparing each attribute.
|
@@ -152,7 +170,7 @@ module BudgeaClient
|
|
152
170
|
def ==(o)
|
153
171
|
return true if self.equal?(o)
|
154
172
|
self.class == o.class &&
|
155
|
-
|
173
|
+
id_connector == o.id_connector &&
|
156
174
|
id == o.id &&
|
157
175
|
name == o.name &&
|
158
176
|
label == o.label &&
|
@@ -160,7 +178,8 @@ module BudgeaClient
|
|
160
178
|
type == o.type &&
|
161
179
|
ephemeral == o.ephemeral &&
|
162
180
|
value == o.value &&
|
163
|
-
values == o.values
|
181
|
+
values == o.values &&
|
182
|
+
required == o.required
|
164
183
|
end
|
165
184
|
|
166
185
|
# @see the `==` method
|
@@ -172,7 +191,7 @@ module BudgeaClient
|
|
172
191
|
# Calculates hash code according to all attributes.
|
173
192
|
# @return [Fixnum] Hash code
|
174
193
|
def hash
|
175
|
-
[
|
194
|
+
[id_connector, id, name, label, regex, type, ephemeral, value, values, required].hash
|
176
195
|
end
|
177
196
|
|
178
197
|
# Builds the object from hash
|
@@ -185,7 +204,7 @@ module BudgeaClient
|
|
185
204
|
# check to ensure the input is an array given that the the attribute
|
186
205
|
# is documented as an array but the input is not
|
187
206
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
188
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
207
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
189
208
|
end
|
190
209
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
191
210
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -267,7 +286,7 @@ module BudgeaClient
|
|
267
286
|
# @return [Hash] Returns the value in the form of hash
|
268
287
|
def _to_hash(value)
|
269
288
|
if value.is_a?(Array)
|
270
|
-
value.compact.map{ |v| _to_hash(v) }
|
289
|
+
value.compact.map { |v| _to_hash(v) }
|
271
290
|
elsif value.is_a?(Hash)
|
272
291
|
{}.tap do |hash|
|
273
292
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -278,7 +297,5 @@ module BudgeaClient
|
|
278
297
|
value
|
279
298
|
end
|
280
299
|
end
|
281
|
-
|
282
300
|
end
|
283
|
-
|
284
301
|
end
|