budgea_client 1.4.4 → 2.0.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.
- 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,15 +1,23 @@
|
|
|
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 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(
|
|
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(
|
|
63
|
+
invalid_properties.push('invalid value for "label", label cannot be nil.')
|
|
57
64
|
end
|
|
58
65
|
|
|
59
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
87
|
+
invalid_properties.push('invalid value for "file_size", file_size cannot be nil.')
|
|
81
88
|
end
|
|
82
89
|
|
|
83
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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(
|
|
107
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
|
101
108
|
end
|
|
102
109
|
|
|
103
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
89
|
+
invalid_properties.push('invalid value for "nature", nature cannot be nil.')
|
|
83
90
|
end
|
|
84
91
|
|
|
85
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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(
|
|
53
|
+
invalid_properties.push('invalid value for "accounttypes", accounttypes cannot be nil.')
|
|
47
54
|
end
|
|
48
55
|
|
|
49
|
-
|
|
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
|
-
|
|
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
|