budgea_client 2.0.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (88) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/README.md +17 -0
  4. data/Rakefile +1 -5
  5. data/budgea_openapi.json +748 -63
  6. data/docs/Account.md +2 -0
  7. data/docs/AdministrationApi.md +497 -4
  8. data/docs/AuthenticationApi.md +2 -0
  9. data/docs/BanksApi.md +165 -48
  10. data/docs/ConnectionsApi.md +14 -12
  11. data/docs/Connector.md +2 -0
  12. data/docs/DocumentsApi.md +26 -26
  13. data/docs/InlineResponse20013.md +1 -1
  14. data/docs/InlineResponse20014.md +1 -1
  15. data/docs/InlineResponse20015.md +1 -1
  16. data/docs/InlineResponse20016.md +1 -1
  17. data/docs/InlineResponse20017.md +1 -1
  18. data/docs/InlineResponse20018.md +1 -1
  19. data/docs/InlineResponse20019.md +1 -1
  20. data/docs/InlineResponse20020.md +1 -1
  21. data/docs/InlineResponse20021.md +1 -1
  22. data/docs/InlineResponse20022.md +1 -1
  23. data/docs/InlineResponse20023.md +1 -1
  24. data/docs/InlineResponse20024.md +1 -1
  25. data/docs/InlineResponse20025.md +1 -1
  26. data/docs/InlineResponse20026.md +1 -1
  27. data/docs/InlineResponse20027.md +1 -1
  28. data/docs/InlineResponse20028.md +1 -1
  29. data/docs/InlineResponse20029.md +1 -1
  30. data/docs/InlineResponse20030.md +1 -1
  31. data/docs/InlineResponse20031.md +1 -1
  32. data/docs/InlineResponse20032.md +1 -1
  33. data/docs/InlineResponse20033.md +1 -1
  34. data/docs/InlineResponse20034.md +1 -1
  35. data/docs/InlineResponse20035.md +1 -1
  36. data/docs/InlineResponse20036.md +1 -1
  37. data/docs/PFMApi.md +10 -10
  38. data/docs/ProvidersApi.md +38 -38
  39. data/docs/TermsApi.md +4 -4
  40. data/docs/Transaction.md +1 -1
  41. data/docs/TransfersApi.md +43 -25
  42. data/docs/UsersManagementApi.md +4 -4
  43. data/docs/WealthApi.md +18 -18
  44. data/docs/Webhook.md +2 -0
  45. data/lib/budgea_client/api/administration_api.rb +506 -6
  46. data/lib/budgea_client/api/authentication_api.rb +3 -0
  47. data/lib/budgea_client/api/banks_api.rb +183 -72
  48. data/lib/budgea_client/api/connections_api.rb +21 -18
  49. data/lib/budgea_client/api/documents_api.rb +39 -39
  50. data/lib/budgea_client/api/pfm_api.rb +15 -15
  51. data/lib/budgea_client/api/providers_api.rb +57 -57
  52. data/lib/budgea_client/api/terms_api.rb +6 -6
  53. data/lib/budgea_client/api/transfers_api.rb +63 -36
  54. data/lib/budgea_client/api/users_management_api.rb +6 -6
  55. data/lib/budgea_client/api/wealth_api.rb +27 -27
  56. data/lib/budgea_client/models/account.rb +24 -4
  57. data/lib/budgea_client/models/connector.rb +26 -1
  58. data/lib/budgea_client/models/inline_response_200_13.rb +11 -11
  59. data/lib/budgea_client/models/inline_response_200_14.rb +11 -11
  60. data/lib/budgea_client/models/inline_response_200_15.rb +11 -11
  61. data/lib/budgea_client/models/inline_response_200_16.rb +11 -11
  62. data/lib/budgea_client/models/inline_response_200_17.rb +11 -11
  63. data/lib/budgea_client/models/inline_response_200_18.rb +11 -11
  64. data/lib/budgea_client/models/inline_response_200_19.rb +11 -11
  65. data/lib/budgea_client/models/inline_response_200_20.rb +11 -11
  66. data/lib/budgea_client/models/inline_response_200_21.rb +11 -11
  67. data/lib/budgea_client/models/inline_response_200_22.rb +11 -11
  68. data/lib/budgea_client/models/inline_response_200_23.rb +11 -11
  69. data/lib/budgea_client/models/inline_response_200_24.rb +11 -11
  70. data/lib/budgea_client/models/inline_response_200_25.rb +11 -11
  71. data/lib/budgea_client/models/inline_response_200_26.rb +11 -11
  72. data/lib/budgea_client/models/inline_response_200_27.rb +11 -11
  73. data/lib/budgea_client/models/inline_response_200_28.rb +11 -11
  74. data/lib/budgea_client/models/inline_response_200_29.rb +11 -11
  75. data/lib/budgea_client/models/inline_response_200_30.rb +11 -11
  76. data/lib/budgea_client/models/inline_response_200_31.rb +11 -11
  77. data/lib/budgea_client/models/inline_response_200_32.rb +11 -11
  78. data/lib/budgea_client/models/inline_response_200_33.rb +11 -11
  79. data/lib/budgea_client/models/inline_response_200_34.rb +11 -11
  80. data/lib/budgea_client/models/inline_response_200_35.rb +11 -11
  81. data/lib/budgea_client/models/inline_response_200_36.rb +11 -11
  82. data/lib/budgea_client/models/transaction.rb +11 -18
  83. data/lib/budgea_client/models/webhook.rb +24 -4
  84. data/lib/budgea_client/version.rb +1 -1
  85. data/lib/budgea_client.rb +7 -0
  86. data/original_budgea_openapi.json +771 -142
  87. data/pkg/budgea_client-2.0.1.gem +0 -0
  88. metadata +4 -3
@@ -14,19 +14,19 @@ require 'date'
14
14
 
15
15
  module BudgeaClient
16
16
  class InlineResponse20034
17
- attr_accessor :profiles
17
+ attr_accessor :devices
18
18
 
19
19
  # Attribute mapping from ruby-style variable name to JSON key.
20
20
  def self.attribute_map
21
21
  {
22
- :'profiles' => :'profiles'
22
+ :'devices' => :'devices'
23
23
  }
24
24
  end
25
25
 
26
26
  # Attribute type mapping.
27
27
  def self.swagger_types
28
28
  {
29
- :'profiles' => :'Array<Profile>'
29
+ :'devices' => :'Array<Device>'
30
30
  }
31
31
  end
32
32
 
@@ -38,9 +38,9 @@ module BudgeaClient
38
38
  # convert string to symbol for hash key
39
39
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
40
40
 
41
- if attributes.has_key?(:'profiles')
42
- if (value = attributes[:'profiles']).is_a?(Array)
43
- self.profiles = value
41
+ if attributes.has_key?(:'devices')
42
+ if (value = attributes[:'devices']).is_a?(Array)
43
+ self.devices = value
44
44
  end
45
45
  end
46
46
  end
@@ -49,8 +49,8 @@ module BudgeaClient
49
49
  # @return Array for valid properties with the reasons
50
50
  def list_invalid_properties
51
51
  invalid_properties = Array.new
52
- if @profiles.nil?
53
- invalid_properties.push('invalid value for "profiles", profiles cannot be nil.')
52
+ if @devices.nil?
53
+ invalid_properties.push('invalid value for "devices", devices cannot be nil.')
54
54
  end
55
55
 
56
56
  invalid_properties
@@ -59,7 +59,7 @@ module BudgeaClient
59
59
  # Check to see if the all the properties in the model are valid
60
60
  # @return true if the model is valid
61
61
  def valid?
62
- return false if @profiles.nil?
62
+ return false if @devices.nil?
63
63
  true
64
64
  end
65
65
 
@@ -68,7 +68,7 @@ module BudgeaClient
68
68
  def ==(o)
69
69
  return true if self.equal?(o)
70
70
  self.class == o.class &&
71
- profiles == o.profiles
71
+ devices == o.devices
72
72
  end
73
73
 
74
74
  # @see the `==` method
@@ -80,7 +80,7 @@ module BudgeaClient
80
80
  # Calculates hash code according to all attributes.
81
81
  # @return [Fixnum] Hash code
82
82
  def hash
83
- [profiles].hash
83
+ [devices].hash
84
84
  end
85
85
 
86
86
  # Builds the object from hash
@@ -14,19 +14,19 @@ require 'date'
14
14
 
15
15
  module BudgeaClient
16
16
  class InlineResponse20035
17
- attr_accessor :webhooks
17
+ attr_accessor :profiles
18
18
 
19
19
  # Attribute mapping from ruby-style variable name to JSON key.
20
20
  def self.attribute_map
21
21
  {
22
- :'webhooks' => :'webhooks'
22
+ :'profiles' => :'profiles'
23
23
  }
24
24
  end
25
25
 
26
26
  # Attribute type mapping.
27
27
  def self.swagger_types
28
28
  {
29
- :'webhooks' => :'Array<Webhook>'
29
+ :'profiles' => :'Array<Profile>'
30
30
  }
31
31
  end
32
32
 
@@ -38,9 +38,9 @@ module BudgeaClient
38
38
  # convert string to symbol for hash key
39
39
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
40
40
 
41
- if attributes.has_key?(:'webhooks')
42
- if (value = attributes[:'webhooks']).is_a?(Array)
43
- self.webhooks = value
41
+ if attributes.has_key?(:'profiles')
42
+ if (value = attributes[:'profiles']).is_a?(Array)
43
+ self.profiles = value
44
44
  end
45
45
  end
46
46
  end
@@ -49,8 +49,8 @@ module BudgeaClient
49
49
  # @return Array for valid properties with the reasons
50
50
  def list_invalid_properties
51
51
  invalid_properties = Array.new
52
- if @webhooks.nil?
53
- invalid_properties.push('invalid value for "webhooks", webhooks cannot be nil.')
52
+ if @profiles.nil?
53
+ invalid_properties.push('invalid value for "profiles", profiles cannot be nil.')
54
54
  end
55
55
 
56
56
  invalid_properties
@@ -59,7 +59,7 @@ module BudgeaClient
59
59
  # Check to see if the all the properties in the model are valid
60
60
  # @return true if the model is valid
61
61
  def valid?
62
- return false if @webhooks.nil?
62
+ return false if @profiles.nil?
63
63
  true
64
64
  end
65
65
 
@@ -68,7 +68,7 @@ module BudgeaClient
68
68
  def ==(o)
69
69
  return true if self.equal?(o)
70
70
  self.class == o.class &&
71
- webhooks == o.webhooks
71
+ profiles == o.profiles
72
72
  end
73
73
 
74
74
  # @see the `==` method
@@ -80,7 +80,7 @@ module BudgeaClient
80
80
  # Calculates hash code according to all attributes.
81
81
  # @return [Fixnum] Hash code
82
82
  def hash
83
- [webhooks].hash
83
+ [profiles].hash
84
84
  end
85
85
 
86
86
  # Builds the object from hash
@@ -14,19 +14,19 @@ require 'date'
14
14
 
15
15
  module BudgeaClient
16
16
  class InlineResponse20036
17
- attr_accessor :webhooklogs
17
+ attr_accessor :webhooks
18
18
 
19
19
  # Attribute mapping from ruby-style variable name to JSON key.
20
20
  def self.attribute_map
21
21
  {
22
- :'webhooklogs' => :'webhooklogs'
22
+ :'webhooks' => :'webhooks'
23
23
  }
24
24
  end
25
25
 
26
26
  # Attribute type mapping.
27
27
  def self.swagger_types
28
28
  {
29
- :'webhooklogs' => :'Array<WebhookLog>'
29
+ :'webhooks' => :'Array<Webhook>'
30
30
  }
31
31
  end
32
32
 
@@ -38,9 +38,9 @@ module BudgeaClient
38
38
  # convert string to symbol for hash key
39
39
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
40
40
 
41
- if attributes.has_key?(:'webhooklogs')
42
- if (value = attributes[:'webhooklogs']).is_a?(Array)
43
- self.webhooklogs = value
41
+ if attributes.has_key?(:'webhooks')
42
+ if (value = attributes[:'webhooks']).is_a?(Array)
43
+ self.webhooks = value
44
44
  end
45
45
  end
46
46
  end
@@ -49,8 +49,8 @@ module BudgeaClient
49
49
  # @return Array for valid properties with the reasons
50
50
  def list_invalid_properties
51
51
  invalid_properties = Array.new
52
- if @webhooklogs.nil?
53
- invalid_properties.push('invalid value for "webhooklogs", webhooklogs cannot be nil.')
52
+ if @webhooks.nil?
53
+ invalid_properties.push('invalid value for "webhooks", webhooks cannot be nil.')
54
54
  end
55
55
 
56
56
  invalid_properties
@@ -59,7 +59,7 @@ module BudgeaClient
59
59
  # Check to see if the all the properties in the model are valid
60
60
  # @return true if the model is valid
61
61
  def valid?
62
- return false if @webhooklogs.nil?
62
+ return false if @webhooks.nil?
63
63
  true
64
64
  end
65
65
 
@@ -68,7 +68,7 @@ module BudgeaClient
68
68
  def ==(o)
69
69
  return true if self.equal?(o)
70
70
  self.class == o.class &&
71
- webhooklogs == o.webhooklogs
71
+ webhooks == o.webhooks
72
72
  end
73
73
 
74
74
  # @see the `==` method
@@ -80,7 +80,7 @@ module BudgeaClient
80
80
  # Calculates hash code according to all attributes.
81
81
  # @return [Fixnum] Hash code
82
82
  def hash
83
- [webhooklogs].hash
83
+ [webhooks].hash
84
84
  end
85
85
 
86
86
  # Builds the object from hash
@@ -65,6 +65,9 @@ module BudgeaClient
65
65
  # Value date of the transaction
66
66
  attr_accessor :vdate
67
67
 
68
+ # Date used by the bank for the transaction
69
+ attr_accessor :bdate
70
+
68
71
  # If true, this transaction hasn't been yet debited
69
72
  attr_accessor :coming
70
73
 
@@ -83,9 +86,6 @@ module BudgeaClient
83
86
  # If set, this transaction has been removed from the bank
84
87
  attr_accessor :deleted
85
88
 
86
- # If set to true, this transaction will never be considered as deleted
87
- attr_accessor :nopurge
88
-
89
89
  # Value in the original currency
90
90
  attr_accessor :original_value
91
91
 
@@ -127,13 +127,13 @@ module BudgeaClient
127
127
  :'date_scraped' => :'date_scraped',
128
128
  :'rdate' => :'rdate',
129
129
  :'vdate' => :'vdate',
130
+ :'bdate' => :'bdate',
130
131
  :'coming' => :'coming',
131
132
  :'active' => :'active',
132
133
  :'id_cluster' => :'id_cluster',
133
134
  :'comment' => :'comment',
134
135
  :'last_update' => :'last_update',
135
136
  :'deleted' => :'deleted',
136
- :'nopurge' => :'nopurge',
137
137
  :'original_value' => :'original_value',
138
138
  :'original_currency' => :'original_currency',
139
139
  :'commission' => :'commission',
@@ -164,13 +164,13 @@ module BudgeaClient
164
164
  :'date_scraped' => :'DateTime',
165
165
  :'rdate' => :'Date',
166
166
  :'vdate' => :'Date',
167
+ :'bdate' => :'Date',
167
168
  :'coming' => :'BOOLEAN',
168
169
  :'active' => :'BOOLEAN',
169
170
  :'id_cluster' => :'Integer',
170
171
  :'comment' => :'String',
171
172
  :'last_update' => :'DateTime',
172
173
  :'deleted' => :'DateTime',
173
- :'nopurge' => :'BOOLEAN',
174
174
  :'original_value' => :'Float',
175
175
  :'original_currency' => :'Object',
176
176
  :'commission' => :'Float',
@@ -261,6 +261,10 @@ module BudgeaClient
261
261
  self.vdate = attributes[:'vdate']
262
262
  end
263
263
 
264
+ if attributes.has_key?(:'bdate')
265
+ self.bdate = attributes[:'bdate']
266
+ end
267
+
264
268
  if attributes.has_key?(:'coming')
265
269
  self.coming = attributes[:'coming']
266
270
  end
@@ -287,12 +291,6 @@ module BudgeaClient
287
291
  self.deleted = attributes[:'deleted']
288
292
  end
289
293
 
290
- if attributes.has_key?(:'nopurge')
291
- self.nopurge = attributes[:'nopurge']
292
- else
293
- self.nopurge = false
294
- end
295
-
296
294
  if attributes.has_key?(:'original_value')
297
295
  self.original_value = attributes[:'original_value']
298
296
  end
@@ -374,10 +372,6 @@ module BudgeaClient
374
372
  invalid_properties.push('invalid value for "active", active cannot be nil.')
375
373
  end
376
374
 
377
- if @nopurge.nil?
378
- invalid_properties.push('invalid value for "nopurge", nopurge cannot be nil.')
379
- end
380
-
381
375
  invalid_properties
382
376
  end
383
377
 
@@ -396,7 +390,6 @@ module BudgeaClient
396
390
  return false if @rdate.nil?
397
391
  return false if @coming.nil?
398
392
  return false if @active.nil?
399
- return false if @nopurge.nil?
400
393
  true
401
394
  end
402
395
 
@@ -422,13 +415,13 @@ module BudgeaClient
422
415
  date_scraped == o.date_scraped &&
423
416
  rdate == o.rdate &&
424
417
  vdate == o.vdate &&
418
+ bdate == o.bdate &&
425
419
  coming == o.coming &&
426
420
  active == o.active &&
427
421
  id_cluster == o.id_cluster &&
428
422
  comment == o.comment &&
429
423
  last_update == o.last_update &&
430
424
  deleted == o.deleted &&
431
- nopurge == o.nopurge &&
432
425
  original_value == o.original_value &&
433
426
  original_currency == o.original_currency &&
434
427
  commission == o.commission &&
@@ -447,7 +440,7 @@ module BudgeaClient
447
440
  # Calculates hash code according to all attributes.
448
441
  # @return [Fixnum] Hash code
449
442
  def hash
450
- [id, id_account, webid, application_date, date, value, gross_value, nature, original_wording, simplified_wording, stemmed_wording, wording, id_category, state, date_scraped, rdate, vdate, coming, active, id_cluster, comment, last_update, deleted, nopurge, original_value, original_currency, commission, commission_currency, country, counterparty, card].hash
443
+ [id, id_account, webid, application_date, date, value, gross_value, nature, original_wording, simplified_wording, stemmed_wording, wording, id_category, state, date_scraped, rdate, vdate, bdate, coming, active, id_cluster, comment, last_update, deleted, original_value, original_currency, commission, commission_currency, country, counterparty, card].hash
451
444
  end
452
445
 
453
446
  # Builds the object from hash
@@ -35,9 +35,15 @@ module BudgeaClient
35
35
  # ID of the webhook event
36
36
  attr_accessor :id_event
37
37
 
38
+ # ID of the authentication process
39
+ attr_accessor :id_auth
40
+
38
41
  # URL of the webhook
39
42
  attr_accessor :url
40
43
 
44
+ # json object to describe data to add
45
+ attr_accessor :add_to_data
46
+
41
47
  # Attribute mapping from ruby-style variable name to JSON key.
42
48
  def self.attribute_map
43
49
  {
@@ -48,7 +54,9 @@ module BudgeaClient
48
54
  :'id_service' => :'id_service',
49
55
  :'id_user' => :'id_user',
50
56
  :'id_event' => :'id_event',
51
- :'url' => :'url'
57
+ :'id_auth' => :'id_auth',
58
+ :'url' => :'url',
59
+ :'add_to_data' => :'add_to_data'
52
60
  }
53
61
  end
54
62
 
@@ -62,7 +70,9 @@ module BudgeaClient
62
70
  :'id_service' => :'Integer',
63
71
  :'id_user' => :'Integer',
64
72
  :'id_event' => :'Integer',
65
- :'url' => :'String'
73
+ :'id_auth' => :'Integer',
74
+ :'url' => :'String',
75
+ :'add_to_data' => :'String'
66
76
  }
67
77
  end
68
78
 
@@ -102,9 +112,17 @@ module BudgeaClient
102
112
  self.id_event = attributes[:'id_event']
103
113
  end
104
114
 
115
+ if attributes.has_key?(:'id_auth')
116
+ self.id_auth = attributes[:'id_auth']
117
+ end
118
+
105
119
  if attributes.has_key?(:'url')
106
120
  self.url = attributes[:'url']
107
121
  end
122
+
123
+ if attributes.has_key?(:'add_to_data')
124
+ self.add_to_data = attributes[:'add_to_data']
125
+ end
108
126
  end
109
127
 
110
128
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -147,7 +165,9 @@ module BudgeaClient
147
165
  id_service == o.id_service &&
148
166
  id_user == o.id_user &&
149
167
  id_event == o.id_event &&
150
- url == o.url
168
+ id_auth == o.id_auth &&
169
+ url == o.url &&
170
+ add_to_data == o.add_to_data
151
171
  end
152
172
 
153
173
  # @see the `==` method
@@ -159,7 +179,7 @@ module BudgeaClient
159
179
  # Calculates hash code according to all attributes.
160
180
  # @return [Fixnum] Hash code
161
181
  def hash
162
- [id, created, updated, deleted, id_service, id_user, id_event, url].hash
182
+ [id, created, updated, deleted, id_service, id_user, id_event, id_auth, url, add_to_data].hash
163
183
  end
164
184
 
165
185
  # Builds the object from hash
@@ -11,5 +11,5 @@ Swagger Codegen version: 2.4.1
11
11
  =end
12
12
 
13
13
  module BudgeaClient
14
- VERSION = '2.0.0'
14
+ VERSION = '2.0.1'
15
15
  end
data/lib/budgea_client.rb CHANGED
@@ -22,9 +22,11 @@ require 'budgea_client/models/account'
22
22
  require 'budgea_client/models/account_log'
23
23
  require 'budgea_client/models/account_type'
24
24
  require 'budgea_client/models/alert'
25
+ require 'budgea_client/models/auth_provider'
25
26
  require 'budgea_client/models/category'
26
27
  require 'budgea_client/models/certificate'
27
28
  require 'budgea_client/models/client'
29
+ require 'budgea_client/models/config_log'
28
30
  require 'budgea_client/models/connection'
29
31
  require 'budgea_client/models/connection_log'
30
32
  require 'budgea_client/models/connector'
@@ -70,6 +72,8 @@ require 'budgea_client/models/inline_response_200_33'
70
72
  require 'budgea_client/models/inline_response_200_34'
71
73
  require 'budgea_client/models/inline_response_200_35'
72
74
  require 'budgea_client/models/inline_response_200_36'
75
+ require 'budgea_client/models/inline_response_200_37'
76
+ require 'budgea_client/models/inline_response_200_38'
73
77
  require 'budgea_client/models/inline_response_200_4'
74
78
  require 'budgea_client/models/inline_response_200_5'
75
79
  require 'budgea_client/models/inline_response_200_6'
@@ -79,6 +83,7 @@ require 'budgea_client/models/inline_response_200_9'
79
83
  require 'budgea_client/models/investment'
80
84
  require 'budgea_client/models/investment_value'
81
85
  require 'budgea_client/models/invite'
86
+ require 'budgea_client/models/keyword'
82
87
  require 'budgea_client/models/locked_user'
83
88
  require 'budgea_client/models/oidc_whitelist'
84
89
  require 'budgea_client/models/pocket'
@@ -98,6 +103,7 @@ require 'budgea_client/models/transfer_log'
98
103
  require 'budgea_client/models/user'
99
104
  require 'budgea_client/models/user_alert'
100
105
  require 'budgea_client/models/webhook'
106
+ require 'budgea_client/models/webhook_data'
101
107
  require 'budgea_client/models/webhook_log'
102
108
 
103
109
  # APIs
@@ -106,6 +112,7 @@ require 'budgea_client/api/authentication_api'
106
112
  require 'budgea_client/api/banks_api'
107
113
  require 'budgea_client/api/connections_api'
108
114
  require 'budgea_client/api/documents_api'
115
+ require 'budgea_client/api/hub_api'
109
116
  require 'budgea_client/api/ocr_api'
110
117
  require 'budgea_client/api/oidc_api'
111
118
  require 'budgea_client/api/pfm_api'