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,24 +1,32 @@
|
|
|
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 InlineResponse20013
|
|
8
|
-
attr_accessor :
|
|
9
|
-
|
|
17
|
+
attr_accessor :connectors
|
|
10
18
|
|
|
11
19
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
12
20
|
def self.attribute_map
|
|
13
21
|
{
|
|
14
|
-
:'
|
|
22
|
+
:'connectors' => :'connectors'
|
|
15
23
|
}
|
|
16
24
|
end
|
|
17
25
|
|
|
18
26
|
# Attribute type mapping.
|
|
19
27
|
def self.swagger_types
|
|
20
28
|
{
|
|
21
|
-
:'
|
|
29
|
+
:'connectors' => :'Array<Connector>'
|
|
22
30
|
}
|
|
23
31
|
end
|
|
24
32
|
|
|
@@ -28,32 +36,31 @@ 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
|
-
if attributes.has_key?(:'
|
|
34
|
-
if (value = attributes[:'
|
|
35
|
-
self.
|
|
41
|
+
if attributes.has_key?(:'connectors')
|
|
42
|
+
if (value = attributes[:'connectors']).is_a?(Array)
|
|
43
|
+
self.connectors = 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?
|
|
42
49
|
# @return Array for valid properties with the reasons
|
|
43
50
|
def list_invalid_properties
|
|
44
51
|
invalid_properties = Array.new
|
|
45
|
-
if @
|
|
46
|
-
invalid_properties.push(
|
|
52
|
+
if @connectors.nil?
|
|
53
|
+
invalid_properties.push('invalid value for "connectors", connectors 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
|
-
return false if @
|
|
56
|
-
|
|
62
|
+
return false if @connectors.nil?
|
|
63
|
+
true
|
|
57
64
|
end
|
|
58
65
|
|
|
59
66
|
# Checks equality by comparing each attribute.
|
|
@@ -61,7 +68,7 @@ module BudgeaClient
|
|
|
61
68
|
def ==(o)
|
|
62
69
|
return true if self.equal?(o)
|
|
63
70
|
self.class == o.class &&
|
|
64
|
-
|
|
71
|
+
connectors == o.connectors
|
|
65
72
|
end
|
|
66
73
|
|
|
67
74
|
# @see the `==` method
|
|
@@ -73,7 +80,7 @@ module BudgeaClient
|
|
|
73
80
|
# Calculates hash code according to all attributes.
|
|
74
81
|
# @return [Fixnum] Hash code
|
|
75
82
|
def hash
|
|
76
|
-
[
|
|
83
|
+
[connectors].hash
|
|
77
84
|
end
|
|
78
85
|
|
|
79
86
|
# Builds the object from hash
|
|
@@ -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
|
|
@@ -1,24 +1,32 @@
|
|
|
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 InlineResponse20014
|
|
8
|
-
attr_accessor :
|
|
9
|
-
|
|
17
|
+
attr_accessor :documenttypes
|
|
10
18
|
|
|
11
19
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
12
20
|
def self.attribute_map
|
|
13
21
|
{
|
|
14
|
-
:'
|
|
22
|
+
:'documenttypes' => :'documenttypes'
|
|
15
23
|
}
|
|
16
24
|
end
|
|
17
25
|
|
|
18
26
|
# Attribute type mapping.
|
|
19
27
|
def self.swagger_types
|
|
20
28
|
{
|
|
21
|
-
:'
|
|
29
|
+
:'documenttypes' => :'Array<DocumentType>'
|
|
22
30
|
}
|
|
23
31
|
end
|
|
24
32
|
|
|
@@ -28,32 +36,31 @@ 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
|
-
if attributes.has_key?(:'
|
|
34
|
-
if (value = attributes[:'
|
|
35
|
-
self.
|
|
41
|
+
if attributes.has_key?(:'documenttypes')
|
|
42
|
+
if (value = attributes[:'documenttypes']).is_a?(Array)
|
|
43
|
+
self.documenttypes = 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?
|
|
42
49
|
# @return Array for valid properties with the reasons
|
|
43
50
|
def list_invalid_properties
|
|
44
51
|
invalid_properties = Array.new
|
|
45
|
-
if @
|
|
46
|
-
invalid_properties.push(
|
|
52
|
+
if @documenttypes.nil?
|
|
53
|
+
invalid_properties.push('invalid value for "documenttypes", documenttypes 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
|
-
return false if @
|
|
56
|
-
|
|
62
|
+
return false if @documenttypes.nil?
|
|
63
|
+
true
|
|
57
64
|
end
|
|
58
65
|
|
|
59
66
|
# Checks equality by comparing each attribute.
|
|
@@ -61,7 +68,7 @@ module BudgeaClient
|
|
|
61
68
|
def ==(o)
|
|
62
69
|
return true if self.equal?(o)
|
|
63
70
|
self.class == o.class &&
|
|
64
|
-
|
|
71
|
+
documenttypes == o.documenttypes
|
|
65
72
|
end
|
|
66
73
|
|
|
67
74
|
# @see the `==` method
|
|
@@ -73,7 +80,7 @@ module BudgeaClient
|
|
|
73
80
|
# Calculates hash code according to all attributes.
|
|
74
81
|
# @return [Fixnum] Hash code
|
|
75
82
|
def hash
|
|
76
|
-
[
|
|
83
|
+
[documenttypes].hash
|
|
77
84
|
end
|
|
78
85
|
|
|
79
86
|
# Builds the object from hash
|
|
@@ -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
|
|
@@ -1,24 +1,32 @@
|
|
|
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 InlineResponse20015
|
|
8
|
-
attr_accessor :
|
|
9
|
-
|
|
17
|
+
attr_accessor :securities
|
|
10
18
|
|
|
11
19
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
12
20
|
def self.attribute_map
|
|
13
21
|
{
|
|
14
|
-
:'
|
|
22
|
+
:'securities' => :'securities'
|
|
15
23
|
}
|
|
16
24
|
end
|
|
17
25
|
|
|
18
26
|
# Attribute type mapping.
|
|
19
27
|
def self.swagger_types
|
|
20
28
|
{
|
|
21
|
-
:'
|
|
29
|
+
:'securities' => :'Array<Security>'
|
|
22
30
|
}
|
|
23
31
|
end
|
|
24
32
|
|
|
@@ -28,32 +36,31 @@ 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
|
-
if attributes.has_key?(:'
|
|
34
|
-
if (value = attributes[:'
|
|
35
|
-
self.
|
|
41
|
+
if attributes.has_key?(:'securities')
|
|
42
|
+
if (value = attributes[:'securities']).is_a?(Array)
|
|
43
|
+
self.securities = 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?
|
|
42
49
|
# @return Array for valid properties with the reasons
|
|
43
50
|
def list_invalid_properties
|
|
44
51
|
invalid_properties = Array.new
|
|
45
|
-
if @
|
|
46
|
-
invalid_properties.push(
|
|
52
|
+
if @securities.nil?
|
|
53
|
+
invalid_properties.push('invalid value for "securities", securities 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
|
-
return false if @
|
|
56
|
-
|
|
62
|
+
return false if @securities.nil?
|
|
63
|
+
true
|
|
57
64
|
end
|
|
58
65
|
|
|
59
66
|
# Checks equality by comparing each attribute.
|
|
@@ -61,7 +68,7 @@ module BudgeaClient
|
|
|
61
68
|
def ==(o)
|
|
62
69
|
return true if self.equal?(o)
|
|
63
70
|
self.class == o.class &&
|
|
64
|
-
|
|
71
|
+
securities == o.securities
|
|
65
72
|
end
|
|
66
73
|
|
|
67
74
|
# @see the `==` method
|
|
@@ -73,7 +80,7 @@ module BudgeaClient
|
|
|
73
80
|
# Calculates hash code according to all attributes.
|
|
74
81
|
# @return [Fixnum] Hash code
|
|
75
82
|
def hash
|
|
76
|
-
[
|
|
83
|
+
[securities].hash
|
|
77
84
|
end
|
|
78
85
|
|
|
79
86
|
# Builds the object from hash
|
|
@@ -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
|
|
@@ -1,24 +1,32 @@
|
|
|
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 InlineResponse20016
|
|
8
|
-
attr_accessor :
|
|
9
|
-
|
|
17
|
+
attr_accessor :connectionlogs
|
|
10
18
|
|
|
11
19
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
12
20
|
def self.attribute_map
|
|
13
21
|
{
|
|
14
|
-
:'
|
|
22
|
+
:'connectionlogs' => :'connectionlogs'
|
|
15
23
|
}
|
|
16
24
|
end
|
|
17
25
|
|
|
18
26
|
# Attribute type mapping.
|
|
19
27
|
def self.swagger_types
|
|
20
28
|
{
|
|
21
|
-
:'
|
|
29
|
+
:'connectionlogs' => :'Array<ConnectionLog>'
|
|
22
30
|
}
|
|
23
31
|
end
|
|
24
32
|
|
|
@@ -28,32 +36,31 @@ 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
|
-
if attributes.has_key?(:'
|
|
34
|
-
if (value = attributes[:'
|
|
35
|
-
self.
|
|
41
|
+
if attributes.has_key?(:'connectionlogs')
|
|
42
|
+
if (value = attributes[:'connectionlogs']).is_a?(Array)
|
|
43
|
+
self.connectionlogs = 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?
|
|
42
49
|
# @return Array for valid properties with the reasons
|
|
43
50
|
def list_invalid_properties
|
|
44
51
|
invalid_properties = Array.new
|
|
45
|
-
if @
|
|
46
|
-
invalid_properties.push(
|
|
52
|
+
if @connectionlogs.nil?
|
|
53
|
+
invalid_properties.push('invalid value for "connectionlogs", connectionlogs 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
|
-
return false if @
|
|
56
|
-
|
|
62
|
+
return false if @connectionlogs.nil?
|
|
63
|
+
true
|
|
57
64
|
end
|
|
58
65
|
|
|
59
66
|
# Checks equality by comparing each attribute.
|
|
@@ -61,7 +68,7 @@ module BudgeaClient
|
|
|
61
68
|
def ==(o)
|
|
62
69
|
return true if self.equal?(o)
|
|
63
70
|
self.class == o.class &&
|
|
64
|
-
|
|
71
|
+
connectionlogs == o.connectionlogs
|
|
65
72
|
end
|
|
66
73
|
|
|
67
74
|
# @see the `==` method
|
|
@@ -73,7 +80,7 @@ module BudgeaClient
|
|
|
73
80
|
# Calculates hash code according to all attributes.
|
|
74
81
|
# @return [Fixnum] Hash code
|
|
75
82
|
def hash
|
|
76
|
-
[
|
|
83
|
+
[connectionlogs].hash
|
|
77
84
|
end
|
|
78
85
|
|
|
79
86
|
# Builds the object from hash
|
|
@@ -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
|