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,30 +1,53 @@
|
|
|
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 InlineResponse2005
|
|
8
|
-
# the
|
|
9
|
-
attr_accessor :
|
|
17
|
+
# the user profile data object
|
|
18
|
+
attr_accessor :profile
|
|
10
19
|
|
|
11
|
-
# the
|
|
12
|
-
attr_accessor :
|
|
20
|
+
# the token scope
|
|
21
|
+
attr_accessor :scope
|
|
13
22
|
|
|
23
|
+
# the requested token
|
|
24
|
+
attr_accessor :token
|
|
25
|
+
|
|
26
|
+
# duration in seconds of the token validity
|
|
27
|
+
attr_accessor :expires_in
|
|
28
|
+
|
|
29
|
+
# the user data object
|
|
30
|
+
attr_accessor :user
|
|
14
31
|
|
|
15
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
16
33
|
def self.attribute_map
|
|
17
34
|
{
|
|
18
|
-
:'
|
|
19
|
-
:'
|
|
35
|
+
:'profile' => :'profile',
|
|
36
|
+
:'scope' => :'scope',
|
|
37
|
+
:'token' => :'token',
|
|
38
|
+
:'expires_in' => :'expires_in',
|
|
39
|
+
:'user' => :'user'
|
|
20
40
|
}
|
|
21
41
|
end
|
|
22
42
|
|
|
23
43
|
# Attribute type mapping.
|
|
24
44
|
def self.swagger_types
|
|
25
45
|
{
|
|
26
|
-
:'
|
|
27
|
-
:'
|
|
46
|
+
:'profile' => :'Object',
|
|
47
|
+
:'scope' => :'String',
|
|
48
|
+
:'token' => :'String',
|
|
49
|
+
:'expires_in' => :'Integer',
|
|
50
|
+
:'user' => :'Object'
|
|
28
51
|
}
|
|
29
52
|
end
|
|
30
53
|
|
|
@@ -34,39 +57,60 @@ module BudgeaClient
|
|
|
34
57
|
return unless attributes.is_a?(Hash)
|
|
35
58
|
|
|
36
59
|
# convert string to symbol for hash key
|
|
37
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
|
60
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
61
|
+
|
|
62
|
+
if attributes.has_key?(:'profile')
|
|
63
|
+
self.profile = attributes[:'profile']
|
|
64
|
+
end
|
|
38
65
|
|
|
39
|
-
if attributes.has_key?(:'
|
|
40
|
-
self.
|
|
66
|
+
if attributes.has_key?(:'scope')
|
|
67
|
+
self.scope = attributes[:'scope']
|
|
41
68
|
end
|
|
42
69
|
|
|
43
|
-
if attributes.has_key?(:'
|
|
44
|
-
self.
|
|
70
|
+
if attributes.has_key?(:'token')
|
|
71
|
+
self.token = attributes[:'token']
|
|
45
72
|
end
|
|
46
73
|
|
|
74
|
+
if attributes.has_key?(:'expires_in')
|
|
75
|
+
self.expires_in = attributes[:'expires_in']
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
if attributes.has_key?(:'user')
|
|
79
|
+
self.user = attributes[:'user']
|
|
80
|
+
end
|
|
47
81
|
end
|
|
48
82
|
|
|
49
83
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
50
84
|
# @return Array for valid properties with the reasons
|
|
51
85
|
def list_invalid_properties
|
|
52
86
|
invalid_properties = Array.new
|
|
53
|
-
if @
|
|
54
|
-
invalid_properties.push(
|
|
87
|
+
if @profile.nil?
|
|
88
|
+
invalid_properties.push('invalid value for "profile", profile cannot be nil.')
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
if @scope.nil?
|
|
92
|
+
invalid_properties.push('invalid value for "scope", scope cannot be nil.')
|
|
55
93
|
end
|
|
56
94
|
|
|
57
|
-
if @
|
|
58
|
-
invalid_properties.push(
|
|
95
|
+
if @token.nil?
|
|
96
|
+
invalid_properties.push('invalid value for "token", token cannot be nil.')
|
|
59
97
|
end
|
|
60
98
|
|
|
61
|
-
|
|
99
|
+
if @user.nil?
|
|
100
|
+
invalid_properties.push('invalid value for "user", user cannot be nil.')
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
invalid_properties
|
|
62
104
|
end
|
|
63
105
|
|
|
64
106
|
# Check to see if the all the properties in the model are valid
|
|
65
107
|
# @return true if the model is valid
|
|
66
108
|
def valid?
|
|
67
|
-
return false if @
|
|
68
|
-
return false if @
|
|
69
|
-
return
|
|
109
|
+
return false if @profile.nil?
|
|
110
|
+
return false if @scope.nil?
|
|
111
|
+
return false if @token.nil?
|
|
112
|
+
return false if @user.nil?
|
|
113
|
+
true
|
|
70
114
|
end
|
|
71
115
|
|
|
72
116
|
# Checks equality by comparing each attribute.
|
|
@@ -74,8 +118,11 @@ module BudgeaClient
|
|
|
74
118
|
def ==(o)
|
|
75
119
|
return true if self.equal?(o)
|
|
76
120
|
self.class == o.class &&
|
|
77
|
-
|
|
78
|
-
|
|
121
|
+
profile == o.profile &&
|
|
122
|
+
scope == o.scope &&
|
|
123
|
+
token == o.token &&
|
|
124
|
+
expires_in == o.expires_in &&
|
|
125
|
+
user == o.user
|
|
79
126
|
end
|
|
80
127
|
|
|
81
128
|
# @see the `==` method
|
|
@@ -87,7 +134,7 @@ module BudgeaClient
|
|
|
87
134
|
# Calculates hash code according to all attributes.
|
|
88
135
|
# @return [Fixnum] Hash code
|
|
89
136
|
def hash
|
|
90
|
-
[
|
|
137
|
+
[profile, scope, token, expires_in, user].hash
|
|
91
138
|
end
|
|
92
139
|
|
|
93
140
|
# Builds the object from hash
|
|
@@ -100,7 +147,7 @@ module BudgeaClient
|
|
|
100
147
|
# check to ensure the input is an array given that the the attribute
|
|
101
148
|
# is documented as an array but the input is not
|
|
102
149
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
103
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
|
150
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
104
151
|
end
|
|
105
152
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
106
153
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
@@ -182,7 +229,7 @@ module BudgeaClient
|
|
|
182
229
|
# @return [Hash] Returns the value in the form of hash
|
|
183
230
|
def _to_hash(value)
|
|
184
231
|
if value.is_a?(Array)
|
|
185
|
-
value.compact.map{ |v| _to_hash(v) }
|
|
232
|
+
value.compact.map { |v| _to_hash(v) }
|
|
186
233
|
elsif value.is_a?(Hash)
|
|
187
234
|
{}.tap do |hash|
|
|
188
235
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
@@ -193,7 +240,5 @@ module BudgeaClient
|
|
|
193
240
|
value
|
|
194
241
|
end
|
|
195
242
|
end
|
|
196
|
-
|
|
197
243
|
end
|
|
198
|
-
|
|
199
244
|
end
|
|
@@ -1,35 +1,38 @@
|
|
|
1
|
-
|
|
1
|
+
=begin
|
|
2
|
+
#Budgea API Documentation
|
|
2
3
|
|
|
3
|
-
|
|
4
|
+
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
|
4
5
|
|
|
5
|
-
|
|
6
|
+
OpenAPI spec version: 2.0
|
|
6
7
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
attr_accessor :expires_in
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
Swagger Codegen version: 2.4.1
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
attr_accessor :code
|
|
11
|
+
=end
|
|
13
12
|
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
require 'date'
|
|
14
|
+
|
|
15
|
+
module BudgeaClient
|
|
16
|
+
class InlineResponse2006
|
|
17
|
+
# the access token transformed from the temporary one
|
|
18
|
+
attr_accessor :access_token
|
|
16
19
|
|
|
20
|
+
# the access token type
|
|
21
|
+
attr_accessor :token_type
|
|
17
22
|
|
|
18
23
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
19
24
|
def self.attribute_map
|
|
20
25
|
{
|
|
21
|
-
:'
|
|
22
|
-
:'
|
|
23
|
-
:'type' => :'type'
|
|
26
|
+
:'access_token' => :'access_token',
|
|
27
|
+
:'token_type' => :'token_type'
|
|
24
28
|
}
|
|
25
29
|
end
|
|
26
30
|
|
|
27
31
|
# Attribute type mapping.
|
|
28
32
|
def self.swagger_types
|
|
29
33
|
{
|
|
30
|
-
:'
|
|
31
|
-
:'
|
|
32
|
-
:'type' => :'Object'
|
|
34
|
+
:'access_token' => :'String',
|
|
35
|
+
:'token_type' => :'String'
|
|
33
36
|
}
|
|
34
37
|
end
|
|
35
38
|
|
|
@@ -39,48 +42,38 @@ module BudgeaClient
|
|
|
39
42
|
return unless attributes.is_a?(Hash)
|
|
40
43
|
|
|
41
44
|
# convert string to symbol for hash key
|
|
42
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
|
45
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
43
46
|
|
|
44
|
-
if attributes.has_key?(:'
|
|
45
|
-
self.
|
|
47
|
+
if attributes.has_key?(:'access_token')
|
|
48
|
+
self.access_token = attributes[:'access_token']
|
|
46
49
|
end
|
|
47
50
|
|
|
48
|
-
if attributes.has_key?(:'
|
|
49
|
-
self.
|
|
51
|
+
if attributes.has_key?(:'token_type')
|
|
52
|
+
self.token_type = attributes[:'token_type']
|
|
50
53
|
end
|
|
51
|
-
|
|
52
|
-
if attributes.has_key?(:'type')
|
|
53
|
-
self.type = attributes[:'type']
|
|
54
|
-
end
|
|
55
|
-
|
|
56
54
|
end
|
|
57
55
|
|
|
58
56
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
59
57
|
# @return Array for valid properties with the reasons
|
|
60
58
|
def list_invalid_properties
|
|
61
59
|
invalid_properties = Array.new
|
|
62
|
-
if @
|
|
63
|
-
invalid_properties.push(
|
|
60
|
+
if @access_token.nil?
|
|
61
|
+
invalid_properties.push('invalid value for "access_token", access_token cannot be nil.')
|
|
64
62
|
end
|
|
65
63
|
|
|
66
|
-
if @
|
|
67
|
-
invalid_properties.push(
|
|
64
|
+
if @token_type.nil?
|
|
65
|
+
invalid_properties.push('invalid value for "token_type", token_type cannot be nil.')
|
|
68
66
|
end
|
|
69
67
|
|
|
70
|
-
|
|
71
|
-
invalid_properties.push("invalid value for 'type', type cannot be nil.")
|
|
72
|
-
end
|
|
73
|
-
|
|
74
|
-
return invalid_properties
|
|
68
|
+
invalid_properties
|
|
75
69
|
end
|
|
76
70
|
|
|
77
71
|
# Check to see if the all the properties in the model are valid
|
|
78
72
|
# @return true if the model is valid
|
|
79
73
|
def valid?
|
|
80
|
-
return false if @
|
|
81
|
-
return false if @
|
|
82
|
-
|
|
83
|
-
return true
|
|
74
|
+
return false if @access_token.nil?
|
|
75
|
+
return false if @token_type.nil?
|
|
76
|
+
true
|
|
84
77
|
end
|
|
85
78
|
|
|
86
79
|
# Checks equality by comparing each attribute.
|
|
@@ -88,9 +81,8 @@ module BudgeaClient
|
|
|
88
81
|
def ==(o)
|
|
89
82
|
return true if self.equal?(o)
|
|
90
83
|
self.class == o.class &&
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
type == o.type
|
|
84
|
+
access_token == o.access_token &&
|
|
85
|
+
token_type == o.token_type
|
|
94
86
|
end
|
|
95
87
|
|
|
96
88
|
# @see the `==` method
|
|
@@ -102,7 +94,7 @@ module BudgeaClient
|
|
|
102
94
|
# Calculates hash code according to all attributes.
|
|
103
95
|
# @return [Fixnum] Hash code
|
|
104
96
|
def hash
|
|
105
|
-
[
|
|
97
|
+
[access_token, token_type].hash
|
|
106
98
|
end
|
|
107
99
|
|
|
108
100
|
# Builds the object from hash
|
|
@@ -115,7 +107,7 @@ module BudgeaClient
|
|
|
115
107
|
# check to ensure the input is an array given that the the attribute
|
|
116
108
|
# is documented as an array but the input is not
|
|
117
109
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
118
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
|
110
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
119
111
|
end
|
|
120
112
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
121
113
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
@@ -197,7 +189,7 @@ module BudgeaClient
|
|
|
197
189
|
# @return [Hash] Returns the value in the form of hash
|
|
198
190
|
def _to_hash(value)
|
|
199
191
|
if value.is_a?(Array)
|
|
200
|
-
value.compact.map{ |v| _to_hash(v) }
|
|
192
|
+
value.compact.map { |v| _to_hash(v) }
|
|
201
193
|
elsif value.is_a?(Hash)
|
|
202
194
|
{}.tap do |hash|
|
|
203
195
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
@@ -208,7 +200,5 @@ module BudgeaClient
|
|
|
208
200
|
value
|
|
209
201
|
end
|
|
210
202
|
end
|
|
211
|
-
|
|
212
203
|
end
|
|
213
|
-
|
|
214
204
|
end
|
|
@@ -1,24 +1,43 @@
|
|
|
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 InlineResponse2007
|
|
8
|
-
|
|
17
|
+
# duration in seconds of the token validity
|
|
18
|
+
attr_accessor :expires_in
|
|
19
|
+
|
|
20
|
+
# the temporary token
|
|
21
|
+
attr_accessor :code
|
|
9
22
|
|
|
23
|
+
# the token type
|
|
24
|
+
attr_accessor :type
|
|
10
25
|
|
|
11
26
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
12
27
|
def self.attribute_map
|
|
13
28
|
{
|
|
14
|
-
:'
|
|
29
|
+
:'expires_in' => :'expires_in',
|
|
30
|
+
:'code' => :'code',
|
|
31
|
+
:'type' => :'type'
|
|
15
32
|
}
|
|
16
33
|
end
|
|
17
34
|
|
|
18
35
|
# Attribute type mapping.
|
|
19
36
|
def self.swagger_types
|
|
20
37
|
{
|
|
21
|
-
:'
|
|
38
|
+
:'expires_in' => :'Integer',
|
|
39
|
+
:'code' => :'String',
|
|
40
|
+
:'type' => :'Object'
|
|
22
41
|
}
|
|
23
42
|
end
|
|
24
43
|
|
|
@@ -28,32 +47,47 @@ module BudgeaClient
|
|
|
28
47
|
return unless attributes.is_a?(Hash)
|
|
29
48
|
|
|
30
49
|
# convert string to symbol for hash key
|
|
31
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
|
50
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
32
51
|
|
|
33
|
-
if attributes.has_key?(:'
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
52
|
+
if attributes.has_key?(:'expires_in')
|
|
53
|
+
self.expires_in = attributes[:'expires_in']
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
if attributes.has_key?(:'code')
|
|
57
|
+
self.code = attributes[:'code']
|
|
37
58
|
end
|
|
38
59
|
|
|
60
|
+
if attributes.has_key?(:'type')
|
|
61
|
+
self.type = attributes[:'type']
|
|
62
|
+
end
|
|
39
63
|
end
|
|
40
64
|
|
|
41
65
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
42
66
|
# @return Array for valid properties with the reasons
|
|
43
67
|
def list_invalid_properties
|
|
44
68
|
invalid_properties = Array.new
|
|
45
|
-
if @
|
|
46
|
-
invalid_properties.push(
|
|
69
|
+
if @expires_in.nil?
|
|
70
|
+
invalid_properties.push('invalid value for "expires_in", expires_in cannot be nil.')
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
if @code.nil?
|
|
74
|
+
invalid_properties.push('invalid value for "code", code cannot be nil.')
|
|
47
75
|
end
|
|
48
76
|
|
|
49
|
-
|
|
77
|
+
if @type.nil?
|
|
78
|
+
invalid_properties.push('invalid value for "type", type cannot be nil.')
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
invalid_properties
|
|
50
82
|
end
|
|
51
83
|
|
|
52
84
|
# Check to see if the all the properties in the model are valid
|
|
53
85
|
# @return true if the model is valid
|
|
54
86
|
def valid?
|
|
55
|
-
return false if @
|
|
56
|
-
return
|
|
87
|
+
return false if @expires_in.nil?
|
|
88
|
+
return false if @code.nil?
|
|
89
|
+
return false if @type.nil?
|
|
90
|
+
true
|
|
57
91
|
end
|
|
58
92
|
|
|
59
93
|
# Checks equality by comparing each attribute.
|
|
@@ -61,7 +95,9 @@ module BudgeaClient
|
|
|
61
95
|
def ==(o)
|
|
62
96
|
return true if self.equal?(o)
|
|
63
97
|
self.class == o.class &&
|
|
64
|
-
|
|
98
|
+
expires_in == o.expires_in &&
|
|
99
|
+
code == o.code &&
|
|
100
|
+
type == o.type
|
|
65
101
|
end
|
|
66
102
|
|
|
67
103
|
# @see the `==` method
|
|
@@ -73,7 +109,7 @@ module BudgeaClient
|
|
|
73
109
|
# Calculates hash code according to all attributes.
|
|
74
110
|
# @return [Fixnum] Hash code
|
|
75
111
|
def hash
|
|
76
|
-
[
|
|
112
|
+
[expires_in, code, type].hash
|
|
77
113
|
end
|
|
78
114
|
|
|
79
115
|
# Builds the object from hash
|
|
@@ -86,7 +122,7 @@ module BudgeaClient
|
|
|
86
122
|
# check to ensure the input is an array given that the the attribute
|
|
87
123
|
# is documented as an array but the input is not
|
|
88
124
|
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) }
|
|
125
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
90
126
|
end
|
|
91
127
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
92
128
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
@@ -168,7 +204,7 @@ module BudgeaClient
|
|
|
168
204
|
# @return [Hash] Returns the value in the form of hash
|
|
169
205
|
def _to_hash(value)
|
|
170
206
|
if value.is_a?(Array)
|
|
171
|
-
value.compact.map{ |v| _to_hash(v) }
|
|
207
|
+
value.compact.map { |v| _to_hash(v) }
|
|
172
208
|
elsif value.is_a?(Hash)
|
|
173
209
|
{}.tap do |hash|
|
|
174
210
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
@@ -179,7 +215,5 @@ module BudgeaClient
|
|
|
179
215
|
value
|
|
180
216
|
end
|
|
181
217
|
end
|
|
182
|
-
|
|
183
218
|
end
|
|
184
|
-
|
|
185
219
|
end
|