budgea_client 5.3.8 → 5.4.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 +11 -10
- data/README.md +14 -4
- data/budgea_openapi.json +329 -27
- data/config.json +1 -1
- data/docs/AuthenticationApi.md +62 -0
- data/docs/Connector.md +1 -0
- data/docs/ConnectorSource.md +7 -0
- data/docs/Field.md +2 -1
- data/docs/InlineResponse2005.md +1 -3
- data/docs/PFMApi.md +9 -12
- data/docs/Payment.md +15 -0
- data/docs/PaymentBeneficiary.md +13 -0
- data/docs/PaymentBeneficiaryRequest.md +12 -0
- data/docs/PaymentData.md +13 -0
- data/docs/PaymentErrorCode.md +7 -0
- data/docs/PaymentInstruction.md +12 -0
- data/docs/PaymentInstructionRequest.md +13 -0
- data/docs/PaymentRequest.md +13 -0
- data/docs/PaymentState.md +7 -0
- data/docs/PaymentsApi.md +61 -0
- data/lib/budgea_client.rb +9 -0
- data/lib/budgea_client/api/authentication_api.rb +60 -0
- data/lib/budgea_client/api/payments_api.rb +75 -0
- data/lib/budgea_client/api/pfm_api.rb +14 -26
- data/lib/budgea_client/models/connection.rb +2 -4
- data/lib/budgea_client/models/connector.rb +15 -4
- data/lib/budgea_client/models/connector_source.rb +79 -4
- data/lib/budgea_client/models/field.rb +18 -5
- data/lib/budgea_client/models/inline_response_200_5.rb +7 -37
- data/lib/budgea_client/models/payment.rb +255 -0
- data/lib/budgea_client/models/payment_beneficiary.rb +235 -0
- data/lib/budgea_client/models/payment_beneficiary_request.rb +240 -0
- data/lib/budgea_client/models/payment_data.rb +246 -0
- data/lib/budgea_client/models/payment_error_code.rb +44 -0
- data/lib/budgea_client/models/payment_instruction.rb +224 -0
- data/lib/budgea_client/models/payment_instruction_request.rb +254 -0
- data/lib/budgea_client/models/payment_request.rb +246 -0
- data/lib/budgea_client/models/payment_state.rb +35 -0
- data/lib/budgea_client/version.rb +1 -1
- data/spec/api/payments_api_spec.rb +46 -0
- data/spec/models/payment_beneficiary_request_spec.rb +65 -0
- data/spec/models/payment_beneficiary_spec.rb +35 -0
- data/spec/models/payment_data_spec.rb +71 -0
- data/spec/models/payment_error_code_spec.rb +35 -0
- data/spec/models/payment_instruction_request_spec.rb +35 -0
- data/spec/models/payment_instruction_spec.rb +35 -0
- data/spec/models/payment_request_spec.rb +71 -0
- data/spec/models/payment_spec.rb +35 -0
- data/spec/models/payment_state_spec.rb +35 -0
- metadata +42 -3
- data/pkg/budgea_client-5.3.7.gem +0 -0
@@ -0,0 +1,75 @@
|
|
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.19
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'uri'
|
14
|
+
|
15
|
+
module BudgeaClient
|
16
|
+
class PaymentsApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# Create and validate a payment request
|
23
|
+
# @param payment_data
|
24
|
+
# @param [Hash] opts the optional parameters
|
25
|
+
# @return [Payment]
|
26
|
+
def payments_post(payment_data, opts = {})
|
27
|
+
data, _status_code, _headers = payments_post_with_http_info(payment_data, opts)
|
28
|
+
data
|
29
|
+
end
|
30
|
+
|
31
|
+
# Create and validate a payment request
|
32
|
+
# @param payment_data
|
33
|
+
# @param [Hash] opts the optional parameters
|
34
|
+
# @return [Array<(Payment, Fixnum, Hash)>] Payment data, response status code and response headers
|
35
|
+
def payments_post_with_http_info(payment_data, opts = {})
|
36
|
+
if @api_client.config.debugging
|
37
|
+
@api_client.config.logger.debug 'Calling API: PaymentsApi.payments_post ...'
|
38
|
+
end
|
39
|
+
# verify the required parameter 'payment_data' is set
|
40
|
+
if @api_client.config.client_side_validation && payment_data.nil?
|
41
|
+
fail ArgumentError, "Missing the required parameter 'payment_data' when calling PaymentsApi.payments_post"
|
42
|
+
end
|
43
|
+
# resource path
|
44
|
+
local_var_path = '/payments'
|
45
|
+
|
46
|
+
# query parameters
|
47
|
+
query_params = {}
|
48
|
+
|
49
|
+
# header parameters
|
50
|
+
header_params = {}
|
51
|
+
# HTTP header 'Accept' (if needed)
|
52
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
53
|
+
# HTTP header 'Content-Type'
|
54
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
55
|
+
|
56
|
+
# form parameters
|
57
|
+
form_params = {}
|
58
|
+
|
59
|
+
# http body (model)
|
60
|
+
post_body = @api_client.object_to_http_body(payment_data)
|
61
|
+
auth_names = ['api_key']
|
62
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
63
|
+
:header_params => header_params,
|
64
|
+
:query_params => query_params,
|
65
|
+
:form_params => form_params,
|
66
|
+
:body => post_body,
|
67
|
+
:auth_names => auth_names,
|
68
|
+
:return_type => 'Payment')
|
69
|
+
if @api_client.config.debugging
|
70
|
+
@api_client.config.logger.debug "API called: PaymentsApi#payments_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
71
|
+
end
|
72
|
+
return data, status_code, headers
|
73
|
+
end
|
74
|
+
end
|
75
|
+
end
|
@@ -376,42 +376,30 @@ module BudgeaClient
|
|
376
376
|
return data, status_code, headers
|
377
377
|
end
|
378
378
|
# Login to API with credentials
|
379
|
-
# Request a new
|
380
|
-
# @param username username
|
381
|
-
# @param password password
|
382
|
-
# @param application application name
|
379
|
+
# Request a new token by giving the client_id and client_secret
|
383
380
|
# @param [Hash] opts the optional parameters
|
381
|
+
# @option opts [String] :client_id
|
382
|
+
# @option opts [String] :client_secret
|
383
|
+
# @option opts [String] :grant_type grant type
|
384
384
|
# @option opts [String] :scope scope requested for the token
|
385
385
|
# @return [InlineResponse2005]
|
386
|
-
def auth_token_post(
|
387
|
-
data, _status_code, _headers = auth_token_post_with_http_info(
|
386
|
+
def auth_token_post(opts = {})
|
387
|
+
data, _status_code, _headers = auth_token_post_with_http_info(opts)
|
388
388
|
data
|
389
389
|
end
|
390
390
|
|
391
391
|
# Login to API with credentials
|
392
|
-
# Request a new
|
393
|
-
# @param username username
|
394
|
-
# @param password password
|
395
|
-
# @param application application name
|
392
|
+
# Request a new token by giving the client_id and client_secret
|
396
393
|
# @param [Hash] opts the optional parameters
|
394
|
+
# @option opts [String] :client_id
|
395
|
+
# @option opts [String] :client_secret
|
396
|
+
# @option opts [String] :grant_type grant type
|
397
397
|
# @option opts [String] :scope scope requested for the token
|
398
398
|
# @return [Array<(InlineResponse2005, Fixnum, Hash)>] InlineResponse2005 data, response status code and response headers
|
399
|
-
def auth_token_post_with_http_info(
|
399
|
+
def auth_token_post_with_http_info(opts = {})
|
400
400
|
if @api_client.config.debugging
|
401
401
|
@api_client.config.logger.debug 'Calling API: PFMApi.auth_token_post ...'
|
402
402
|
end
|
403
|
-
# verify the required parameter 'username' is set
|
404
|
-
if @api_client.config.client_side_validation && username.nil?
|
405
|
-
fail ArgumentError, "Missing the required parameter 'username' when calling PFMApi.auth_token_post"
|
406
|
-
end
|
407
|
-
# verify the required parameter 'password' is set
|
408
|
-
if @api_client.config.client_side_validation && password.nil?
|
409
|
-
fail ArgumentError, "Missing the required parameter 'password' when calling PFMApi.auth_token_post"
|
410
|
-
end
|
411
|
-
# verify the required parameter 'application' is set
|
412
|
-
if @api_client.config.client_side_validation && application.nil?
|
413
|
-
fail ArgumentError, "Missing the required parameter 'application' when calling PFMApi.auth_token_post"
|
414
|
-
end
|
415
403
|
# resource path
|
416
404
|
local_var_path = '/auth/token'
|
417
405
|
|
@@ -427,9 +415,9 @@ module BudgeaClient
|
|
427
415
|
|
428
416
|
# form parameters
|
429
417
|
form_params = {}
|
430
|
-
form_params['
|
431
|
-
form_params['
|
432
|
-
form_params['
|
418
|
+
form_params['client_id'] = opts[:'client_id'] if !opts[:'client_id'].nil?
|
419
|
+
form_params['client_secret'] = opts[:'client_secret'] if !opts[:'client_secret'].nil?
|
420
|
+
form_params['grant_type'] = opts[:'grant_type'] if !opts[:'grant_type'].nil?
|
433
421
|
form_params['scope'] = opts[:'scope'] if !opts[:'scope'].nil?
|
434
422
|
|
435
423
|
# http body (model)
|
@@ -248,8 +248,7 @@ module BudgeaClient
|
|
248
248
|
return false if @id.nil?
|
249
249
|
return false if @id_connector.nil?
|
250
250
|
return false if @active.nil?
|
251
|
-
|
252
|
-
state_validator = EnumAttributeValidator.new('String', ['wrongpass', 'additionalInformationNeeded', 'websiteUnavailable', 'actionNeeded', 'SCARequired', 'decoupled', 'passwordExpired', 'webauthRequired', 'rateLimiting', 'bug', nil])
|
251
|
+
state_validator = EnumAttributeValidator.new('String', ['wrongpass', 'additionalInformationNeeded', 'websiteUnavailable', 'actionNeeded', 'SCARequired', 'decoupled', 'passwordExpired', 'webauthRequired', 'rateLimiting', 'bug'])
|
253
252
|
return false unless state_validator.valid?(@state)
|
254
253
|
true
|
255
254
|
end
|
@@ -257,8 +256,7 @@ module BudgeaClient
|
|
257
256
|
# Custom attribute writer method checking allowed values (enum).
|
258
257
|
# @param [Object] state Object to be assigned
|
259
258
|
def state=(state)
|
260
|
-
|
261
|
-
validator = EnumAttributeValidator.new('String', ['wrongpass', 'additionalInformationNeeded', 'websiteUnavailable', 'actionNeeded', 'SCARequired', 'decoupled', 'passwordExpired', 'webauthRequired', 'rateLimiting', 'bug', nil])
|
259
|
+
validator = EnumAttributeValidator.new('String', ['wrongpass', 'additionalInformationNeeded', 'websiteUnavailable', 'actionNeeded', 'SCARequired', 'decoupled', 'passwordExpired', 'webauthRequired', 'rateLimiting', 'bug'])
|
262
260
|
unless validator.valid?(state)
|
263
261
|
fail ArgumentError, 'invalid value for "state", must be one of #{validator.allowable_values}.'
|
264
262
|
end
|
@@ -61,6 +61,8 @@ module BudgeaClient
|
|
61
61
|
|
62
62
|
attr_accessor :capabilities
|
63
63
|
|
64
|
+
attr_accessor :sources
|
65
|
+
|
64
66
|
# Attribute mapping from ruby-style variable name to JSON key.
|
65
67
|
def self.attribute_map
|
66
68
|
{
|
@@ -80,7 +82,8 @@ module BudgeaClient
|
|
80
82
|
:'uuid' => :'uuid',
|
81
83
|
:'restricted' => :'restricted',
|
82
84
|
:'fields' => :'fields',
|
83
|
-
:'capabilities' => :'capabilities'
|
85
|
+
:'capabilities' => :'capabilities',
|
86
|
+
:'sources' => :'sources'
|
84
87
|
}
|
85
88
|
end
|
86
89
|
|
@@ -103,7 +106,8 @@ module BudgeaClient
|
|
103
106
|
:'uuid' => :'String',
|
104
107
|
:'restricted' => :'BOOLEAN',
|
105
108
|
:'fields' => :'Array<Field>',
|
106
|
-
:'capabilities' => :'Array<String>'
|
109
|
+
:'capabilities' => :'Array<String>',
|
110
|
+
:'sources' => :'Array<ConnectorSource>'
|
107
111
|
}
|
108
112
|
end
|
109
113
|
|
@@ -196,6 +200,12 @@ module BudgeaClient
|
|
196
200
|
self.capabilities = value
|
197
201
|
end
|
198
202
|
end
|
203
|
+
|
204
|
+
if attributes.has_key?(:'sources')
|
205
|
+
if (value = attributes[:'sources']).is_a?(Array)
|
206
|
+
self.sources = value
|
207
|
+
end
|
208
|
+
end
|
199
209
|
end
|
200
210
|
|
201
211
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -262,7 +272,8 @@ module BudgeaClient
|
|
262
272
|
uuid == o.uuid &&
|
263
273
|
restricted == o.restricted &&
|
264
274
|
fields == o.fields &&
|
265
|
-
capabilities == o.capabilities
|
275
|
+
capabilities == o.capabilities &&
|
276
|
+
sources == o.sources
|
266
277
|
end
|
267
278
|
|
268
279
|
# @see the `==` method
|
@@ -274,7 +285,7 @@ module BudgeaClient
|
|
274
285
|
# Calculates hash code according to all attributes.
|
275
286
|
# @return [Fixnum] Hash code
|
276
287
|
def hash
|
277
|
-
[id, name, hidden, charged, code, beta, color, slug, sync_frequency, months_to_fetch, account_types, auth_mechanism, siret, uuid, restricted, fields, capabilities].hash
|
288
|
+
[id, name, hidden, charged, code, beta, color, slug, sync_frequency, months_to_fetch, account_types, auth_mechanism, siret, uuid, restricted, fields, capabilities, sources].hash
|
278
289
|
end
|
279
290
|
|
280
291
|
# Builds the object from hash
|
@@ -37,6 +37,20 @@ module BudgeaClient
|
|
37
37
|
# The source priority order for the synchronization
|
38
38
|
attr_accessor :priority
|
39
39
|
|
40
|
+
attr_accessor :capabilities
|
41
|
+
|
42
|
+
attr_accessor :available_auth_mechanisms
|
43
|
+
|
44
|
+
attr_accessor :urls
|
45
|
+
|
46
|
+
attr_accessor :available_transfer_mechanisms
|
47
|
+
|
48
|
+
attr_accessor :transfer_validate_mechanism
|
49
|
+
|
50
|
+
attr_accessor :transfer_execution_date_types
|
51
|
+
|
52
|
+
attr_accessor :transfer_execution_frequencies
|
53
|
+
|
40
54
|
# Attribute mapping from ruby-style variable name to JSON key.
|
41
55
|
def self.attribute_map
|
42
56
|
{
|
@@ -47,7 +61,14 @@ module BudgeaClient
|
|
47
61
|
:'auth_mechanism' => :'auth_mechanism',
|
48
62
|
:'fallback' => :'fallback',
|
49
63
|
:'disabled' => :'disabled',
|
50
|
-
:'priority' => :'priority'
|
64
|
+
:'priority' => :'priority',
|
65
|
+
:'capabilities' => :'capabilities',
|
66
|
+
:'available_auth_mechanisms' => :'available_auth_mechanisms',
|
67
|
+
:'urls' => :'urls',
|
68
|
+
:'available_transfer_mechanisms' => :'available_transfer_mechanisms',
|
69
|
+
:'transfer_validate_mechanism' => :'transfer_validate_mechanism',
|
70
|
+
:'transfer_execution_date_types' => :'transfer_execution_date_types',
|
71
|
+
:'transfer_execution_frequencies' => :'transfer_execution_frequencies'
|
51
72
|
}
|
52
73
|
end
|
53
74
|
|
@@ -61,7 +82,14 @@ module BudgeaClient
|
|
61
82
|
:'auth_mechanism' => :'String',
|
62
83
|
:'fallback' => :'String',
|
63
84
|
:'disabled' => :'DateTime',
|
64
|
-
:'priority' => :'Integer'
|
85
|
+
:'priority' => :'Integer',
|
86
|
+
:'capabilities' => :'Array<String>',
|
87
|
+
:'available_auth_mechanisms' => :'Array<String>',
|
88
|
+
:'urls' => :'Array<String>',
|
89
|
+
:'available_transfer_mechanisms' => :'Array<String>',
|
90
|
+
:'transfer_validate_mechanism' => :'String',
|
91
|
+
:'transfer_execution_date_types' => :'Array<String>',
|
92
|
+
:'transfer_execution_frequencies' => :'Array<String>'
|
65
93
|
}
|
66
94
|
end
|
67
95
|
|
@@ -104,6 +132,46 @@ module BudgeaClient
|
|
104
132
|
if attributes.has_key?(:'priority')
|
105
133
|
self.priority = attributes[:'priority']
|
106
134
|
end
|
135
|
+
|
136
|
+
if attributes.has_key?(:'capabilities')
|
137
|
+
if (value = attributes[:'capabilities']).is_a?(Array)
|
138
|
+
self.capabilities = value
|
139
|
+
end
|
140
|
+
end
|
141
|
+
|
142
|
+
if attributes.has_key?(:'available_auth_mechanisms')
|
143
|
+
if (value = attributes[:'available_auth_mechanisms']).is_a?(Array)
|
144
|
+
self.available_auth_mechanisms = value
|
145
|
+
end
|
146
|
+
end
|
147
|
+
|
148
|
+
if attributes.has_key?(:'urls')
|
149
|
+
if (value = attributes[:'urls']).is_a?(Array)
|
150
|
+
self.urls = value
|
151
|
+
end
|
152
|
+
end
|
153
|
+
|
154
|
+
if attributes.has_key?(:'available_transfer_mechanisms')
|
155
|
+
if (value = attributes[:'available_transfer_mechanisms']).is_a?(Array)
|
156
|
+
self.available_transfer_mechanisms = value
|
157
|
+
end
|
158
|
+
end
|
159
|
+
|
160
|
+
if attributes.has_key?(:'transfer_validate_mechanism')
|
161
|
+
self.transfer_validate_mechanism = attributes[:'transfer_validate_mechanism']
|
162
|
+
end
|
163
|
+
|
164
|
+
if attributes.has_key?(:'transfer_execution_date_types')
|
165
|
+
if (value = attributes[:'transfer_execution_date_types']).is_a?(Array)
|
166
|
+
self.transfer_execution_date_types = value
|
167
|
+
end
|
168
|
+
end
|
169
|
+
|
170
|
+
if attributes.has_key?(:'transfer_execution_frequencies')
|
171
|
+
if (value = attributes[:'transfer_execution_frequencies']).is_a?(Array)
|
172
|
+
self.transfer_execution_frequencies = value
|
173
|
+
end
|
174
|
+
end
|
107
175
|
end
|
108
176
|
|
109
177
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -151,7 +219,14 @@ module BudgeaClient
|
|
151
219
|
auth_mechanism == o.auth_mechanism &&
|
152
220
|
fallback == o.fallback &&
|
153
221
|
disabled == o.disabled &&
|
154
|
-
priority == o.priority
|
222
|
+
priority == o.priority &&
|
223
|
+
capabilities == o.capabilities &&
|
224
|
+
available_auth_mechanisms == o.available_auth_mechanisms &&
|
225
|
+
urls == o.urls &&
|
226
|
+
available_transfer_mechanisms == o.available_transfer_mechanisms &&
|
227
|
+
transfer_validate_mechanism == o.transfer_validate_mechanism &&
|
228
|
+
transfer_execution_date_types == o.transfer_execution_date_types &&
|
229
|
+
transfer_execution_frequencies == o.transfer_execution_frequencies
|
155
230
|
end
|
156
231
|
|
157
232
|
# @see the `==` method
|
@@ -163,7 +238,7 @@ module BudgeaClient
|
|
163
238
|
# Calculates hash code according to all attributes.
|
164
239
|
# @return [Fixnum] Hash code
|
165
240
|
def hash
|
166
|
-
[id, id_connector, name, id_weboob, auth_mechanism, fallback, disabled, priority].hash
|
241
|
+
[id, id_connector, name, id_weboob, auth_mechanism, fallback, disabled, priority, capabilities, available_auth_mechanisms, urls, available_transfer_mechanisms, transfer_validate_mechanism, transfer_execution_date_types, transfer_execution_frequencies].hash
|
167
242
|
end
|
168
243
|
|
169
244
|
# Builds the object from hash
|
@@ -46,6 +46,8 @@ module BudgeaClient
|
|
46
46
|
# Authentication mechanisms this field is used for
|
47
47
|
attr_accessor :auth_mechanisms
|
48
48
|
|
49
|
+
attr_accessor :connector_sources
|
50
|
+
|
49
51
|
# Attribute mapping from ruby-style variable name to JSON key.
|
50
52
|
def self.attribute_map
|
51
53
|
{
|
@@ -59,7 +61,8 @@ module BudgeaClient
|
|
59
61
|
:'value' => :'value',
|
60
62
|
:'values' => :'values',
|
61
63
|
:'required' => :'required',
|
62
|
-
:'auth_mechanisms' => :'auth_mechanisms'
|
64
|
+
:'auth_mechanisms' => :'auth_mechanisms',
|
65
|
+
:'connector_sources' => :'connector_sources'
|
63
66
|
}
|
64
67
|
end
|
65
68
|
|
@@ -76,7 +79,8 @@ module BudgeaClient
|
|
76
79
|
:'value' => :'String',
|
77
80
|
:'values' => :'Array<FieldValue>',
|
78
81
|
:'required' => :'BOOLEAN',
|
79
|
-
:'auth_mechanisms' => :'String'
|
82
|
+
:'auth_mechanisms' => :'Array<String>',
|
83
|
+
:'connector_sources' => :'Array<String>'
|
80
84
|
}
|
81
85
|
end
|
82
86
|
|
@@ -137,7 +141,15 @@ module BudgeaClient
|
|
137
141
|
end
|
138
142
|
|
139
143
|
if attributes.has_key?(:'auth_mechanisms')
|
140
|
-
|
144
|
+
if (value = attributes[:'auth_mechanisms']).is_a?(Array)
|
145
|
+
self.auth_mechanisms = value
|
146
|
+
end
|
147
|
+
end
|
148
|
+
|
149
|
+
if attributes.has_key?(:'connector_sources')
|
150
|
+
if (value = attributes[:'connector_sources']).is_a?(Array)
|
151
|
+
self.connector_sources = value
|
152
|
+
end
|
141
153
|
end
|
142
154
|
end
|
143
155
|
|
@@ -189,7 +201,8 @@ module BudgeaClient
|
|
189
201
|
value == o.value &&
|
190
202
|
values == o.values &&
|
191
203
|
required == o.required &&
|
192
|
-
auth_mechanisms == o.auth_mechanisms
|
204
|
+
auth_mechanisms == o.auth_mechanisms &&
|
205
|
+
connector_sources == o.connector_sources
|
193
206
|
end
|
194
207
|
|
195
208
|
# @see the `==` method
|
@@ -201,7 +214,7 @@ module BudgeaClient
|
|
201
214
|
# Calculates hash code according to all attributes.
|
202
215
|
# @return [Fixnum] Hash code
|
203
216
|
def hash
|
204
|
-
[id_connector, id, name, label, regex, type, ephemeral, value, values, required, auth_mechanisms].hash
|
217
|
+
[id_connector, id, name, label, regex, type, ephemeral, value, values, required, auth_mechanisms, connector_sources].hash
|
205
218
|
end
|
206
219
|
|
207
220
|
# Builds the object from hash
|
@@ -14,9 +14,6 @@ require 'date'
|
|
14
14
|
|
15
15
|
module BudgeaClient
|
16
16
|
class InlineResponse2005
|
17
|
-
# the user profile data object
|
18
|
-
attr_accessor :profile
|
19
|
-
|
20
17
|
# the token scope
|
21
18
|
attr_accessor :scope
|
22
19
|
|
@@ -24,30 +21,23 @@ module BudgeaClient
|
|
24
21
|
attr_accessor :token
|
25
22
|
|
26
23
|
# duration in seconds of the token validity
|
27
|
-
attr_accessor :
|
28
|
-
|
29
|
-
# the user data object
|
30
|
-
attr_accessor :user
|
24
|
+
attr_accessor :expire_in
|
31
25
|
|
32
26
|
# Attribute mapping from ruby-style variable name to JSON key.
|
33
27
|
def self.attribute_map
|
34
28
|
{
|
35
|
-
:'profile' => :'profile',
|
36
29
|
:'scope' => :'scope',
|
37
30
|
:'token' => :'token',
|
38
|
-
:'
|
39
|
-
:'user' => :'user'
|
31
|
+
:'expire_in' => :'expire_in'
|
40
32
|
}
|
41
33
|
end
|
42
34
|
|
43
35
|
# Attribute type mapping.
|
44
36
|
def self.swagger_types
|
45
37
|
{
|
46
|
-
:'profile' => :'Object',
|
47
38
|
:'scope' => :'String',
|
48
39
|
:'token' => :'String',
|
49
|
-
:'
|
50
|
-
:'user' => :'Object'
|
40
|
+
:'expire_in' => :'Integer'
|
51
41
|
}
|
52
42
|
end
|
53
43
|
|
@@ -59,10 +49,6 @@ module BudgeaClient
|
|
59
49
|
# convert string to symbol for hash key
|
60
50
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
61
51
|
|
62
|
-
if attributes.has_key?(:'profile')
|
63
|
-
self.profile = attributes[:'profile']
|
64
|
-
end
|
65
|
-
|
66
52
|
if attributes.has_key?(:'scope')
|
67
53
|
self.scope = attributes[:'scope']
|
68
54
|
end
|
@@ -71,12 +57,8 @@ module BudgeaClient
|
|
71
57
|
self.token = attributes[:'token']
|
72
58
|
end
|
73
59
|
|
74
|
-
if attributes.has_key?(:'
|
75
|
-
self.
|
76
|
-
end
|
77
|
-
|
78
|
-
if attributes.has_key?(:'user')
|
79
|
-
self.user = attributes[:'user']
|
60
|
+
if attributes.has_key?(:'expire_in')
|
61
|
+
self.expire_in = attributes[:'expire_in']
|
80
62
|
end
|
81
63
|
end
|
82
64
|
|
@@ -84,10 +66,6 @@ module BudgeaClient
|
|
84
66
|
# @return Array for valid properties with the reasons
|
85
67
|
def list_invalid_properties
|
86
68
|
invalid_properties = Array.new
|
87
|
-
if @profile.nil?
|
88
|
-
invalid_properties.push('invalid value for "profile", profile cannot be nil.')
|
89
|
-
end
|
90
|
-
|
91
69
|
if @scope.nil?
|
92
70
|
invalid_properties.push('invalid value for "scope", scope cannot be nil.')
|
93
71
|
end
|
@@ -96,20 +74,14 @@ module BudgeaClient
|
|
96
74
|
invalid_properties.push('invalid value for "token", token cannot be nil.')
|
97
75
|
end
|
98
76
|
|
99
|
-
if @user.nil?
|
100
|
-
invalid_properties.push('invalid value for "user", user cannot be nil.')
|
101
|
-
end
|
102
|
-
|
103
77
|
invalid_properties
|
104
78
|
end
|
105
79
|
|
106
80
|
# Check to see if the all the properties in the model are valid
|
107
81
|
# @return true if the model is valid
|
108
82
|
def valid?
|
109
|
-
return false if @profile.nil?
|
110
83
|
return false if @scope.nil?
|
111
84
|
return false if @token.nil?
|
112
|
-
return false if @user.nil?
|
113
85
|
true
|
114
86
|
end
|
115
87
|
|
@@ -118,11 +90,9 @@ module BudgeaClient
|
|
118
90
|
def ==(o)
|
119
91
|
return true if self.equal?(o)
|
120
92
|
self.class == o.class &&
|
121
|
-
profile == o.profile &&
|
122
93
|
scope == o.scope &&
|
123
94
|
token == o.token &&
|
124
|
-
|
125
|
-
user == o.user
|
95
|
+
expire_in == o.expire_in
|
126
96
|
end
|
127
97
|
|
128
98
|
# @see the `==` method
|
@@ -134,7 +104,7 @@ module BudgeaClient
|
|
134
104
|
# Calculates hash code according to all attributes.
|
135
105
|
# @return [Fixnum] Hash code
|
136
106
|
def hash
|
137
|
-
[
|
107
|
+
[scope, token, expire_in].hash
|
138
108
|
end
|
139
109
|
|
140
110
|
# Builds the object from hash
|