budgea_client 4.0.3 → 5.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 +2 -2
- data/README.md +50 -5
- data/budgea_openapi.json +1888 -383
- data/docs/Account.md +2 -0
- data/docs/AccountLog.md +1 -0
- data/docs/AdministrationApi.md +366 -55
- data/docs/AuthenticationApi.md +15 -13
- data/docs/BanksApi.md +988 -194
- data/docs/Client.md +1 -1
- data/docs/Connection.md +2 -0
- data/docs/ConnectionLog.md +1 -0
- data/docs/ConnectionSource.md +18 -0
- data/docs/ConnectionsApi.md +618 -25
- data/docs/Connector.md +1 -1
- data/docs/ConnectorSource.md +15 -0
- data/docs/DocumentsApi.md +72 -72
- data/docs/Field.md +1 -0
- 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 +2 -1
- 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 +1 -1
- data/docs/InlineResponse20035.md +1 -1
- data/docs/InlineResponse20036.md +1 -1
- data/docs/InlineResponse20037.md +1 -1
- data/docs/InlineResponse20038.md +1 -1
- data/docs/InlineResponse20039.md +1 -1
- data/docs/InlineResponse20040.md +1 -1
- data/docs/InlineResponse20041.md +9 -0
- data/docs/InlineResponse20042.md +9 -0
- data/docs/OIDCApi.md +3 -3
- data/docs/Order.md +14 -0
- data/docs/PFMApi.md +87 -39
- data/docs/ProvidersApi.md +979 -122
- data/docs/RecipientsApi.md +4 -4
- data/docs/Subscription.md +1 -0
- data/docs/SubscriptionLog.md +15 -0
- data/docs/TermsApi.md +3 -3
- data/docs/Transaction.md +1 -0
- data/docs/Transfer.md +5 -1
- data/docs/TransferApi.md +77 -0
- data/docs/TransfersApi.md +39 -39
- data/docs/UsersManagementApi.md +13 -13
- data/docs/WealthApi.md +24 -24
- data/lib/budgea_client.rb +7 -2
- data/lib/budgea_client/api/administration_api.rb +381 -71
- data/lib/budgea_client/api/authentication_api.rb +16 -13
- data/lib/budgea_client/api/banks_api.rb +1034 -211
- data/lib/budgea_client/api/connections_api.rb +648 -30
- data/lib/budgea_client/api/documents_api.rb +85 -85
- data/lib/budgea_client/api/oidc_api.rb +3 -3
- data/lib/budgea_client/api/pfm_api.rb +87 -40
- data/lib/budgea_client/api/providers_api.rb +1045 -151
- data/lib/budgea_client/api/recipients_api.rb +4 -4
- data/lib/budgea_client/api/terms_api.rb +3 -3
- data/lib/budgea_client/api/transfer_api.rb +94 -0
- data/lib/budgea_client/api/transfers_api.rb +39 -39
- data/lib/budgea_client/api/users_management_api.rb +14 -14
- data/lib/budgea_client/api/wealth_api.rb +25 -25
- data/lib/budgea_client/models/account.rb +24 -4
- data/lib/budgea_client/models/account_log.rb +16 -1
- data/lib/budgea_client/models/client.rb +11 -11
- data/lib/budgea_client/models/connection.rb +23 -4
- data/lib/budgea_client/models/connection_log.rb +11 -1
- data/lib/budgea_client/models/connection_source.rb +309 -0
- data/lib/budgea_client/models/connector.rb +18 -15
- data/lib/budgea_client/models/connector_source.rb +273 -0
- data/lib/budgea_client/models/field.rb +14 -4
- data/lib/budgea_client/models/inline_response_200_11.rb +18 -18
- data/lib/budgea_client/models/inline_response_200_12.rb +11 -11
- data/lib/budgea_client/models/inline_response_200_13.rb +11 -11
- data/lib/budgea_client/models/inline_response_200_14.rb +18 -18
- data/lib/budgea_client/models/inline_response_200_15.rb +11 -11
- data/lib/budgea_client/models/inline_response_200_16.rb +11 -11
- data/lib/budgea_client/models/inline_response_200_17.rb +11 -11
- data/lib/budgea_client/models/inline_response_200_18.rb +18 -18
- data/lib/budgea_client/models/inline_response_200_19.rb +21 -11
- data/lib/budgea_client/models/inline_response_200_30.rb +18 -18
- data/lib/budgea_client/models/inline_response_200_31.rb +11 -11
- data/lib/budgea_client/models/inline_response_200_32.rb +18 -18
- data/lib/budgea_client/models/inline_response_200_33.rb +18 -18
- data/lib/budgea_client/models/inline_response_200_34.rb +11 -11
- data/lib/budgea_client/models/inline_response_200_35.rb +18 -18
- data/lib/budgea_client/models/inline_response_200_36.rb +18 -18
- data/lib/budgea_client/models/inline_response_200_37.rb +11 -11
- data/lib/budgea_client/models/inline_response_200_38.rb +18 -18
- data/lib/budgea_client/models/inline_response_200_39.rb +11 -11
- data/lib/budgea_client/models/inline_response_200_40.rb +18 -18
- data/lib/budgea_client/models/inline_response_200_41.rb +200 -0
- data/lib/budgea_client/models/inline_response_200_42.rb +200 -0
- data/lib/budgea_client/models/order.rb +259 -0
- data/lib/budgea_client/models/subscription.rb +11 -1
- data/lib/budgea_client/models/subscription_log.rb +269 -0
- data/lib/budgea_client/models/transaction.rb +11 -1
- data/lib/budgea_client/models/transfer.rb +49 -2
- data/lib/budgea_client/models/user.rb +2 -2
- data/lib/budgea_client/version.rb +1 -1
- data/original_budgea_openapi.json +1980 -351
- data/pkg/budgea_client-2.0.0.gem +0 -0
- data/pkg/budgea_client-3.0.1.gem +0 -0
- data/pkg/budgea_client-4.0.0.gem +0 -0
- data/spec/api/transfer_api_spec.rb +54 -0
- data/spec/models/connection_source_spec.rb +101 -0
- data/spec/models/connector_source_spec.rb +83 -0
- data/spec/models/inline_response_200_41_spec.rb +47 -0
- data/spec/models/inline_response_200_42_spec.rb +47 -0
- data/spec/models/order_spec.rb +77 -0
- data/spec/models/subscription_log_spec.rb +83 -0
- metadata +34 -9
- data/config.yaml +0 -15
- data/pkg/budgea_client-2.0.1.gem +0 -0
- data/pkg/budgea_client-2.0.2.gem +0 -0
- data/pkg/budgea_client-3.0.0.gem +0 -0
- data/pkg/budgea_client-4.0.1.gem +0 -0
- data/pkg/budgea_client-4.0.2.gem +0 -0
@@ -17,13 +17,13 @@ module BudgeaClient
|
|
17
17
|
# total number of results
|
18
18
|
attr_accessor :total
|
19
19
|
|
20
|
-
attr_accessor :
|
20
|
+
attr_accessor :documenttypes
|
21
21
|
|
22
22
|
# Attribute mapping from ruby-style variable name to JSON key.
|
23
23
|
def self.attribute_map
|
24
24
|
{
|
25
25
|
:'total' => :'total',
|
26
|
-
:'
|
26
|
+
:'documenttypes' => :'documenttypes'
|
27
27
|
}
|
28
28
|
end
|
29
29
|
|
@@ -31,7 +31,7 @@ module BudgeaClient
|
|
31
31
|
def self.swagger_types
|
32
32
|
{
|
33
33
|
:'total' => :'Float',
|
34
|
-
:'
|
34
|
+
:'documenttypes' => :'Array<DocumentType>'
|
35
35
|
}
|
36
36
|
end
|
37
37
|
|
@@ -47,9 +47,9 @@ module BudgeaClient
|
|
47
47
|
self.total = attributes[:'total']
|
48
48
|
end
|
49
49
|
|
50
|
-
if attributes.has_key?(:'
|
51
|
-
if (value = attributes[:'
|
52
|
-
self.
|
50
|
+
if attributes.has_key?(:'documenttypes')
|
51
|
+
if (value = attributes[:'documenttypes']).is_a?(Array)
|
52
|
+
self.documenttypes = value
|
53
53
|
end
|
54
54
|
end
|
55
55
|
end
|
@@ -58,8 +58,8 @@ module BudgeaClient
|
|
58
58
|
# @return Array for valid properties with the reasons
|
59
59
|
def list_invalid_properties
|
60
60
|
invalid_properties = Array.new
|
61
|
-
if @
|
62
|
-
invalid_properties.push('invalid value for "
|
61
|
+
if @documenttypes.nil?
|
62
|
+
invalid_properties.push('invalid value for "documenttypes", documenttypes cannot be nil.')
|
63
63
|
end
|
64
64
|
|
65
65
|
invalid_properties
|
@@ -68,7 +68,7 @@ module BudgeaClient
|
|
68
68
|
# Check to see if the all the properties in the model are valid
|
69
69
|
# @return true if the model is valid
|
70
70
|
def valid?
|
71
|
-
return false if @
|
71
|
+
return false if @documenttypes.nil?
|
72
72
|
true
|
73
73
|
end
|
74
74
|
|
@@ -78,7 +78,7 @@ module BudgeaClient
|
|
78
78
|
return true if self.equal?(o)
|
79
79
|
self.class == o.class &&
|
80
80
|
total == o.total &&
|
81
|
-
|
81
|
+
documenttypes == o.documenttypes
|
82
82
|
end
|
83
83
|
|
84
84
|
# @see the `==` method
|
@@ -90,7 +90,7 @@ module BudgeaClient
|
|
90
90
|
# Calculates hash code according to all attributes.
|
91
91
|
# @return [Fixnum] Hash code
|
92
92
|
def hash
|
93
|
-
[total,
|
93
|
+
[total, documenttypes].hash
|
94
94
|
end
|
95
95
|
|
96
96
|
# Builds the object from hash
|
@@ -14,24 +14,24 @@ require 'date'
|
|
14
14
|
|
15
15
|
module BudgeaClient
|
16
16
|
class InlineResponse20018
|
17
|
+
attr_accessor :securities
|
18
|
+
|
17
19
|
# total number of results
|
18
20
|
attr_accessor :total
|
19
21
|
|
20
|
-
attr_accessor :providers
|
21
|
-
|
22
22
|
# Attribute mapping from ruby-style variable name to JSON key.
|
23
23
|
def self.attribute_map
|
24
24
|
{
|
25
|
-
:'
|
26
|
-
:'
|
25
|
+
:'securities' => :'securities',
|
26
|
+
:'total' => :'total'
|
27
27
|
}
|
28
28
|
end
|
29
29
|
|
30
30
|
# Attribute type mapping.
|
31
31
|
def self.swagger_types
|
32
32
|
{
|
33
|
-
:'
|
34
|
-
:'
|
33
|
+
:'securities' => :'Array<Security>',
|
34
|
+
:'total' => :'Float'
|
35
35
|
}
|
36
36
|
end
|
37
37
|
|
@@ -43,14 +43,14 @@ module BudgeaClient
|
|
43
43
|
# convert string to symbol for hash key
|
44
44
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
45
45
|
|
46
|
-
if attributes.has_key?(:'
|
47
|
-
|
46
|
+
if attributes.has_key?(:'securities')
|
47
|
+
if (value = attributes[:'securities']).is_a?(Array)
|
48
|
+
self.securities = value
|
49
|
+
end
|
48
50
|
end
|
49
51
|
|
50
|
-
if attributes.has_key?(:'
|
51
|
-
|
52
|
-
self.providers = value
|
53
|
-
end
|
52
|
+
if attributes.has_key?(:'total')
|
53
|
+
self.total = attributes[:'total']
|
54
54
|
end
|
55
55
|
end
|
56
56
|
|
@@ -58,8 +58,8 @@ module BudgeaClient
|
|
58
58
|
# @return Array for valid properties with the reasons
|
59
59
|
def list_invalid_properties
|
60
60
|
invalid_properties = Array.new
|
61
|
-
if @
|
62
|
-
invalid_properties.push('invalid value for "
|
61
|
+
if @securities.nil?
|
62
|
+
invalid_properties.push('invalid value for "securities", securities cannot be nil.')
|
63
63
|
end
|
64
64
|
|
65
65
|
invalid_properties
|
@@ -68,7 +68,7 @@ module BudgeaClient
|
|
68
68
|
# Check to see if the all the properties in the model are valid
|
69
69
|
# @return true if the model is valid
|
70
70
|
def valid?
|
71
|
-
return false if @
|
71
|
+
return false if @securities.nil?
|
72
72
|
true
|
73
73
|
end
|
74
74
|
|
@@ -77,8 +77,8 @@ module BudgeaClient
|
|
77
77
|
def ==(o)
|
78
78
|
return true if self.equal?(o)
|
79
79
|
self.class == o.class &&
|
80
|
-
|
81
|
-
|
80
|
+
securities == o.securities &&
|
81
|
+
total == o.total
|
82
82
|
end
|
83
83
|
|
84
84
|
# @see the `==` method
|
@@ -90,7 +90,7 @@ module BudgeaClient
|
|
90
90
|
# Calculates hash code according to all attributes.
|
91
91
|
# @return [Fixnum] Hash code
|
92
92
|
def hash
|
93
|
-
[
|
93
|
+
[securities, total].hash
|
94
94
|
end
|
95
95
|
|
96
96
|
# Builds the object from hash
|
@@ -14,19 +14,24 @@ require 'date'
|
|
14
14
|
|
15
15
|
module BudgeaClient
|
16
16
|
class InlineResponse20019
|
17
|
-
|
17
|
+
# total number of results
|
18
|
+
attr_accessor :total
|
19
|
+
|
20
|
+
attr_accessor :providers
|
18
21
|
|
19
22
|
# Attribute mapping from ruby-style variable name to JSON key.
|
20
23
|
def self.attribute_map
|
21
24
|
{
|
22
|
-
:'
|
25
|
+
:'total' => :'total',
|
26
|
+
:'providers' => :'providers'
|
23
27
|
}
|
24
28
|
end
|
25
29
|
|
26
30
|
# Attribute type mapping.
|
27
31
|
def self.swagger_types
|
28
32
|
{
|
29
|
-
:'
|
33
|
+
:'total' => :'Float',
|
34
|
+
:'providers' => :'Array<Connector>'
|
30
35
|
}
|
31
36
|
end
|
32
37
|
|
@@ -38,9 +43,13 @@ module BudgeaClient
|
|
38
43
|
# convert string to symbol for hash key
|
39
44
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
40
45
|
|
41
|
-
if attributes.has_key?(:'
|
42
|
-
|
43
|
-
|
46
|
+
if attributes.has_key?(:'total')
|
47
|
+
self.total = attributes[:'total']
|
48
|
+
end
|
49
|
+
|
50
|
+
if attributes.has_key?(:'providers')
|
51
|
+
if (value = attributes[:'providers']).is_a?(Array)
|
52
|
+
self.providers = value
|
44
53
|
end
|
45
54
|
end
|
46
55
|
end
|
@@ -49,8 +58,8 @@ module BudgeaClient
|
|
49
58
|
# @return Array for valid properties with the reasons
|
50
59
|
def list_invalid_properties
|
51
60
|
invalid_properties = Array.new
|
52
|
-
if @
|
53
|
-
invalid_properties.push('invalid value for "
|
61
|
+
if @providers.nil?
|
62
|
+
invalid_properties.push('invalid value for "providers", providers cannot be nil.')
|
54
63
|
end
|
55
64
|
|
56
65
|
invalid_properties
|
@@ -59,7 +68,7 @@ module BudgeaClient
|
|
59
68
|
# Check to see if the all the properties in the model are valid
|
60
69
|
# @return true if the model is valid
|
61
70
|
def valid?
|
62
|
-
return false if @
|
71
|
+
return false if @providers.nil?
|
63
72
|
true
|
64
73
|
end
|
65
74
|
|
@@ -68,7 +77,8 @@ module BudgeaClient
|
|
68
77
|
def ==(o)
|
69
78
|
return true if self.equal?(o)
|
70
79
|
self.class == o.class &&
|
71
|
-
|
80
|
+
total == o.total &&
|
81
|
+
providers == o.providers
|
72
82
|
end
|
73
83
|
|
74
84
|
# @see the `==` method
|
@@ -80,7 +90,7 @@ module BudgeaClient
|
|
80
90
|
# Calculates hash code according to all attributes.
|
81
91
|
# @return [Fixnum] Hash code
|
82
92
|
def hash
|
83
|
-
[
|
93
|
+
[total, providers].hash
|
84
94
|
end
|
85
95
|
|
86
96
|
# Builds the object from hash
|
@@ -14,24 +14,24 @@ require 'date'
|
|
14
14
|
|
15
15
|
module BudgeaClient
|
16
16
|
class InlineResponse20030
|
17
|
+
attr_accessor :sources
|
18
|
+
|
17
19
|
# total number of results
|
18
20
|
attr_accessor :total
|
19
21
|
|
20
|
-
attr_accessor :transactions
|
21
|
-
|
22
22
|
# Attribute mapping from ruby-style variable name to JSON key.
|
23
23
|
def self.attribute_map
|
24
24
|
{
|
25
|
-
:'
|
26
|
-
:'
|
25
|
+
:'sources' => :'sources',
|
26
|
+
:'total' => :'total'
|
27
27
|
}
|
28
28
|
end
|
29
29
|
|
30
30
|
# Attribute type mapping.
|
31
31
|
def self.swagger_types
|
32
32
|
{
|
33
|
-
:'
|
34
|
-
:'
|
33
|
+
:'sources' => :'Array<ConnectionSource>',
|
34
|
+
:'total' => :'Float'
|
35
35
|
}
|
36
36
|
end
|
37
37
|
|
@@ -43,14 +43,14 @@ module BudgeaClient
|
|
43
43
|
# convert string to symbol for hash key
|
44
44
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
45
45
|
|
46
|
-
if attributes.has_key?(:'
|
47
|
-
|
46
|
+
if attributes.has_key?(:'sources')
|
47
|
+
if (value = attributes[:'sources']).is_a?(Array)
|
48
|
+
self.sources = value
|
49
|
+
end
|
48
50
|
end
|
49
51
|
|
50
|
-
if attributes.has_key?(:'
|
51
|
-
|
52
|
-
self.transactions = value
|
53
|
-
end
|
52
|
+
if attributes.has_key?(:'total')
|
53
|
+
self.total = attributes[:'total']
|
54
54
|
end
|
55
55
|
end
|
56
56
|
|
@@ -58,8 +58,8 @@ module BudgeaClient
|
|
58
58
|
# @return Array for valid properties with the reasons
|
59
59
|
def list_invalid_properties
|
60
60
|
invalid_properties = Array.new
|
61
|
-
if @
|
62
|
-
invalid_properties.push('invalid value for "
|
61
|
+
if @sources.nil?
|
62
|
+
invalid_properties.push('invalid value for "sources", sources cannot be nil.')
|
63
63
|
end
|
64
64
|
|
65
65
|
invalid_properties
|
@@ -68,7 +68,7 @@ module BudgeaClient
|
|
68
68
|
# Check to see if the all the properties in the model are valid
|
69
69
|
# @return true if the model is valid
|
70
70
|
def valid?
|
71
|
-
return false if @
|
71
|
+
return false if @sources.nil?
|
72
72
|
true
|
73
73
|
end
|
74
74
|
|
@@ -77,8 +77,8 @@ module BudgeaClient
|
|
77
77
|
def ==(o)
|
78
78
|
return true if self.equal?(o)
|
79
79
|
self.class == o.class &&
|
80
|
-
|
81
|
-
|
80
|
+
sources == o.sources &&
|
81
|
+
total == o.total
|
82
82
|
end
|
83
83
|
|
84
84
|
# @see the `==` method
|
@@ -90,7 +90,7 @@ module BudgeaClient
|
|
90
90
|
# Calculates hash code according to all attributes.
|
91
91
|
# @return [Fixnum] Hash code
|
92
92
|
def hash
|
93
|
-
[
|
93
|
+
[sources, total].hash
|
94
94
|
end
|
95
95
|
|
96
96
|
# Builds the object from hash
|
@@ -17,13 +17,13 @@ module BudgeaClient
|
|
17
17
|
# total number of results
|
18
18
|
attr_accessor :total
|
19
19
|
|
20
|
-
attr_accessor :
|
20
|
+
attr_accessor :transactions
|
21
21
|
|
22
22
|
# Attribute mapping from ruby-style variable name to JSON key.
|
23
23
|
def self.attribute_map
|
24
24
|
{
|
25
25
|
:'total' => :'total',
|
26
|
-
:'
|
26
|
+
:'transactions' => :'transactions'
|
27
27
|
}
|
28
28
|
end
|
29
29
|
|
@@ -31,7 +31,7 @@ module BudgeaClient
|
|
31
31
|
def self.swagger_types
|
32
32
|
{
|
33
33
|
:'total' => :'Float',
|
34
|
-
:'
|
34
|
+
:'transactions' => :'Array<Transaction>'
|
35
35
|
}
|
36
36
|
end
|
37
37
|
|
@@ -47,9 +47,9 @@ module BudgeaClient
|
|
47
47
|
self.total = attributes[:'total']
|
48
48
|
end
|
49
49
|
|
50
|
-
if attributes.has_key?(:'
|
51
|
-
if (value = attributes[:'
|
52
|
-
self.
|
50
|
+
if attributes.has_key?(:'transactions')
|
51
|
+
if (value = attributes[:'transactions']).is_a?(Array)
|
52
|
+
self.transactions = value
|
53
53
|
end
|
54
54
|
end
|
55
55
|
end
|
@@ -58,8 +58,8 @@ module BudgeaClient
|
|
58
58
|
# @return Array for valid properties with the reasons
|
59
59
|
def list_invalid_properties
|
60
60
|
invalid_properties = Array.new
|
61
|
-
if @
|
62
|
-
invalid_properties.push('invalid value for "
|
61
|
+
if @transactions.nil?
|
62
|
+
invalid_properties.push('invalid value for "transactions", transactions cannot be nil.')
|
63
63
|
end
|
64
64
|
|
65
65
|
invalid_properties
|
@@ -68,7 +68,7 @@ module BudgeaClient
|
|
68
68
|
# Check to see if the all the properties in the model are valid
|
69
69
|
# @return true if the model is valid
|
70
70
|
def valid?
|
71
|
-
return false if @
|
71
|
+
return false if @transactions.nil?
|
72
72
|
true
|
73
73
|
end
|
74
74
|
|
@@ -78,7 +78,7 @@ module BudgeaClient
|
|
78
78
|
return true if self.equal?(o)
|
79
79
|
self.class == o.class &&
|
80
80
|
total == o.total &&
|
81
|
-
|
81
|
+
transactions == o.transactions
|
82
82
|
end
|
83
83
|
|
84
84
|
# @see the `==` method
|
@@ -90,7 +90,7 @@ module BudgeaClient
|
|
90
90
|
# Calculates hash code according to all attributes.
|
91
91
|
# @return [Fixnum] Hash code
|
92
92
|
def hash
|
93
|
-
[total,
|
93
|
+
[total, transactions].hash
|
94
94
|
end
|
95
95
|
|
96
96
|
# Builds the object from hash
|
@@ -14,24 +14,24 @@ require 'date'
|
|
14
14
|
|
15
15
|
module BudgeaClient
|
16
16
|
class InlineResponse20032
|
17
|
-
attr_accessor :transactioninformations
|
18
|
-
|
19
17
|
# total number of results
|
20
18
|
attr_accessor :total
|
21
19
|
|
20
|
+
attr_accessor :documents
|
21
|
+
|
22
22
|
# Attribute mapping from ruby-style variable name to JSON key.
|
23
23
|
def self.attribute_map
|
24
24
|
{
|
25
|
-
:'
|
26
|
-
:'
|
25
|
+
:'total' => :'total',
|
26
|
+
:'documents' => :'documents'
|
27
27
|
}
|
28
28
|
end
|
29
29
|
|
30
30
|
# Attribute type mapping.
|
31
31
|
def self.swagger_types
|
32
32
|
{
|
33
|
-
:'
|
34
|
-
:'
|
33
|
+
:'total' => :'Float',
|
34
|
+
:'documents' => :'Array<Document>'
|
35
35
|
}
|
36
36
|
end
|
37
37
|
|
@@ -43,23 +43,23 @@ module BudgeaClient
|
|
43
43
|
# convert string to symbol for hash key
|
44
44
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
45
45
|
|
46
|
-
if attributes.has_key?(:'transactioninformations')
|
47
|
-
if (value = attributes[:'transactioninformations']).is_a?(Array)
|
48
|
-
self.transactioninformations = value
|
49
|
-
end
|
50
|
-
end
|
51
|
-
|
52
46
|
if attributes.has_key?(:'total')
|
53
47
|
self.total = attributes[:'total']
|
54
48
|
end
|
49
|
+
|
50
|
+
if attributes.has_key?(:'documents')
|
51
|
+
if (value = attributes[:'documents']).is_a?(Array)
|
52
|
+
self.documents = value
|
53
|
+
end
|
54
|
+
end
|
55
55
|
end
|
56
56
|
|
57
57
|
# Show invalid properties with the reasons. Usually used together with valid?
|
58
58
|
# @return Array for valid properties with the reasons
|
59
59
|
def list_invalid_properties
|
60
60
|
invalid_properties = Array.new
|
61
|
-
if @
|
62
|
-
invalid_properties.push('invalid value for "
|
61
|
+
if @documents.nil?
|
62
|
+
invalid_properties.push('invalid value for "documents", documents cannot be nil.')
|
63
63
|
end
|
64
64
|
|
65
65
|
invalid_properties
|
@@ -68,7 +68,7 @@ module BudgeaClient
|
|
68
68
|
# Check to see if the all the properties in the model are valid
|
69
69
|
# @return true if the model is valid
|
70
70
|
def valid?
|
71
|
-
return false if @
|
71
|
+
return false if @documents.nil?
|
72
72
|
true
|
73
73
|
end
|
74
74
|
|
@@ -77,8 +77,8 @@ module BudgeaClient
|
|
77
77
|
def ==(o)
|
78
78
|
return true if self.equal?(o)
|
79
79
|
self.class == o.class &&
|
80
|
-
|
81
|
-
|
80
|
+
total == o.total &&
|
81
|
+
documents == o.documents
|
82
82
|
end
|
83
83
|
|
84
84
|
# @see the `==` method
|
@@ -90,7 +90,7 @@ module BudgeaClient
|
|
90
90
|
# Calculates hash code according to all attributes.
|
91
91
|
# @return [Fixnum] Hash code
|
92
92
|
def hash
|
93
|
-
[
|
93
|
+
[total, documents].hash
|
94
94
|
end
|
95
95
|
|
96
96
|
# Builds the object from hash
|