budgea_client 3.0.1 → 4.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (115) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/budgea_openapi.json +6 -4
  4. data/docs/Connector.md +1 -0
  5. data/lib/budgea_client/models/connector.rb +15 -4
  6. data/lib/budgea_client/version.rb +1 -1
  7. data/pkg/budgea_client-3.0.1.gem +0 -0
  8. data/spec/api/administration_api_spec.rb +225 -23
  9. data/spec/api/authentication_api_spec.rb +81 -11
  10. data/spec/api/banks_api_spec.rb +379 -236
  11. data/spec/api/connections_api_spec.rb +76 -39
  12. data/spec/api/documents_api_spec.rb +124 -114
  13. data/spec/api/ocr_api_spec.rb +13 -3
  14. data/spec/api/oidc_api_spec.rb +14 -4
  15. data/spec/api/pfm_api_spec.rb +61 -51
  16. data/spec/api/providers_api_spec.rb +260 -238
  17. data/spec/api/recipients_api_spec.rb +23 -9
  18. data/spec/api/terms_api_spec.rb +17 -8
  19. data/spec/api/transfers_api_spec.rb +88 -57
  20. data/spec/api/users_management_api_spec.rb +25 -15
  21. data/spec/api/wealth_api_spec.rb +150 -24
  22. data/spec/api_client_spec.rb +45 -35
  23. data/spec/configuration_spec.rb +19 -9
  24. data/spec/models/access_spec.rb +16 -7
  25. data/spec/models/account_log_spec.rb +21 -12
  26. data/spec/models/account_spec.rb +59 -20
  27. data/spec/models/account_type_spec.rb +19 -10
  28. data/spec/models/alert_spec.rb +19 -10
  29. data/spec/models/category_spec.rb +21 -12
  30. data/spec/models/client_spec.rb +25 -28
  31. data/spec/models/connection_log_spec.rb +38 -17
  32. data/spec/models/connection_spec.rb +33 -12
  33. data/spec/models/connector_logo_spec.rb +16 -7
  34. data/spec/models/connector_spec.rb +18 -0
  35. data/spec/models/currency_spec.rb +38 -5
  36. data/spec/models/device_spec.rb +18 -9
  37. data/spec/models/document_spec.rb +37 -34
  38. data/spec/models/document_type_spec.rb +14 -5
  39. data/spec/models/field_spec.rb +32 -11
  40. data/spec/models/field_value_spec.rb +13 -4
  41. data/spec/models/file_spec.rb +15 -6
  42. data/spec/models/group_spec.rb +19 -10
  43. data/spec/models/hash_table_spec.rb +15 -6
  44. data/spec/models/inline_response_200_10_spec.rb +19 -4
  45. data/spec/models/inline_response_200_11_spec.rb +19 -4
  46. data/spec/models/inline_response_200_12_spec.rb +19 -4
  47. data/spec/models/inline_response_200_13_spec.rb +19 -4
  48. data/spec/models/inline_response_200_14_spec.rb +19 -4
  49. data/spec/models/inline_response_200_15_spec.rb +19 -4
  50. data/spec/models/inline_response_200_16_spec.rb +19 -4
  51. data/spec/models/inline_response_200_17_spec.rb +19 -4
  52. data/spec/models/inline_response_200_18_spec.rb +19 -4
  53. data/spec/models/inline_response_200_19_spec.rb +13 -4
  54. data/spec/models/inline_response_200_1_spec.rb +13 -4
  55. data/spec/models/inline_response_200_20_spec.rb +19 -4
  56. data/spec/models/inline_response_200_21_spec.rb +19 -4
  57. data/spec/models/inline_response_200_22_spec.rb +19 -4
  58. data/spec/models/inline_response_200_23_spec.rb +19 -4
  59. data/spec/models/inline_response_200_24_spec.rb +19 -4
  60. data/spec/models/inline_response_200_25_spec.rb +19 -4
  61. data/spec/models/inline_response_200_26_spec.rb +19 -4
  62. data/spec/models/inline_response_200_27_spec.rb +19 -4
  63. data/spec/models/inline_response_200_28_spec.rb +19 -4
  64. data/spec/models/inline_response_200_29_spec.rb +19 -4
  65. data/spec/models/inline_response_200_2_spec.rb +14 -5
  66. data/spec/models/inline_response_200_30_spec.rb +19 -4
  67. data/spec/models/inline_response_200_31_spec.rb +19 -4
  68. data/spec/models/inline_response_200_32_spec.rb +19 -4
  69. data/spec/models/inline_response_200_33_spec.rb +19 -4
  70. data/spec/models/inline_response_200_34_spec.rb +7 -1
  71. data/spec/models/inline_response_200_35_spec.rb +7 -1
  72. data/spec/models/inline_response_200_36_spec.rb +7 -1
  73. data/spec/models/inline_response_200_37_spec.rb +7 -1
  74. data/spec/models/inline_response_200_38_spec.rb +7 -1
  75. data/spec/models/inline_response_200_3_spec.rb +15 -12
  76. data/spec/models/inline_response_200_4_spec.rb +14 -17
  77. data/spec/models/inline_response_200_5_spec.rb +33 -6
  78. data/spec/models/inline_response_200_6_spec.rb +15 -12
  79. data/spec/models/inline_response_200_7_spec.rb +25 -4
  80. data/spec/models/inline_response_200_8_spec.rb +19 -4
  81. data/spec/models/inline_response_200_9_spec.rb +19 -4
  82. data/spec/models/inline_response_200_spec.rb +18 -3
  83. data/spec/models/investment_spec.rb +36 -27
  84. data/spec/models/investment_value_spec.rb +17 -8
  85. data/spec/models/invite_spec.rb +17 -8
  86. data/spec/models/locked_user_spec.rb +14 -5
  87. data/spec/models/oidc_whitelist_spec.rb +13 -4
  88. data/spec/models/pocket_spec.rb +21 -12
  89. data/spec/models/profile_spec.rb +23 -14
  90. data/spec/models/project_spec.rb +20 -11
  91. data/spec/models/project_type_spec.rb +14 -5
  92. data/spec/models/recipient_log_spec.rb +6 -0
  93. data/spec/models/recipient_spec.rb +44 -17
  94. data/spec/models/security_spec.rb +16 -7
  95. data/spec/models/subscription_spec.rb +28 -13
  96. data/spec/models/terms_of_service_spec.rb +16 -7
  97. data/spec/models/transaction_information_spec.rb +15 -6
  98. data/spec/models/transaction_spec.rb +71 -32
  99. data/spec/models/transactions_cluster_spec.rb +20 -11
  100. data/spec/models/transfer_log_spec.rb +6 -0
  101. data/spec/models/transfer_spec.rb +33 -18
  102. data/spec/models/user_alert_spec.rb +25 -16
  103. data/spec/models/user_spec.rb +18 -9
  104. data/spec/models/webhook_spec.rb +31 -10
  105. data/spec/spec_helper.rb +62 -2
  106. metadata +3 -14
  107. data/docs/Bank.md +0 -20
  108. data/docs/BankCategory.md +0 -9
  109. data/docs/ConnectionContact.md +0 -17
  110. data/lib/budgea_client/models/bank.rb +0 -335
  111. data/lib/budgea_client/models/bank_category.rb +0 -206
  112. data/lib/budgea_client/models/connection_contact.rb +0 -274
  113. data/spec/models/bank_category_spec.rb +0 -38
  114. data/spec/models/bank_spec.rb +0 -92
  115. data/spec/models/connection_contact_spec.rb +0 -86
@@ -1,4 +1,14 @@
1
- # frozen_string_literal: true
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 'spec_helper'
4
14
  require 'json'
@@ -28,7 +38,7 @@ describe 'UsersManagementApi' do
28
38
  # @param [Hash] opts the optional parameters
29
39
  # @return [nil]
30
40
  describe 'hash_delete test' do
31
- it "should work" do
41
+ it 'should work' do
32
42
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
33
43
  end
34
44
  end
@@ -39,9 +49,9 @@ describe 'UsersManagementApi' do
39
49
  # @param [Hash] opts the optional parameters
40
50
  # @option opts [String] :search searches a user by mail (if it contains no '@', '@biapi.pro' will be added at the end)
41
51
  # @option opts [String] :expand
42
- # @return [InlineResponse20017]
52
+ # @return [InlineResponse20021]
43
53
  describe 'users_get test' do
44
- it "should work" do
54
+ it 'should work' do
45
55
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
46
56
  end
47
57
  end
@@ -53,7 +63,7 @@ describe 'UsersManagementApi' do
53
63
  # @param [Hash] opts the optional parameters
54
64
  # @return [nil]
55
65
  describe 'users_id_user_config_delete test' do
56
- it "should work" do
66
+ it 'should work' do
57
67
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
58
68
  end
59
69
  end
@@ -65,7 +75,7 @@ describe 'UsersManagementApi' do
65
75
  # @param [Hash] opts the optional parameters
66
76
  # @return [Object]
67
77
  describe 'users_id_user_config_get test' do
68
- it "should work" do
78
+ it 'should work' do
69
79
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
70
80
  end
71
81
  end
@@ -77,7 +87,7 @@ describe 'UsersManagementApi' do
77
87
  # @param [Hash] opts the optional parameters
78
88
  # @return [nil]
79
89
  describe 'users_id_user_config_post test' do
80
- it "should work" do
90
+ it 'should work' do
81
91
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
82
92
  end
83
93
  end
@@ -90,7 +100,7 @@ describe 'UsersManagementApi' do
90
100
  # @option opts [String] :expand
91
101
  # @return [User]
92
102
  describe 'users_id_user_delete test' do
93
- it "should work" do
103
+ it 'should work' do
94
104
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
95
105
  end
96
106
  end
@@ -103,7 +113,7 @@ describe 'UsersManagementApi' do
103
113
  # @option opts [String] :expand
104
114
  # @return [User]
105
115
  describe 'users_id_user_get test' do
106
- it "should work" do
116
+ it 'should work' do
107
117
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
108
118
  end
109
119
  end
@@ -114,9 +124,9 @@ describe 'UsersManagementApi' do
114
124
  # @param id_user Hint: you can use 'me' or 'all'
115
125
  # @param [Hash] opts the optional parameters
116
126
  # @option opts [String] :expand
117
- # @return [InlineResponse20032]
127
+ # @return [InlineResponse20037]
118
128
  describe 'users_id_user_profiles_get test' do
119
- it "should work" do
129
+ it 'should work' do
120
130
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
121
131
  end
122
132
  end
@@ -130,7 +140,7 @@ describe 'UsersManagementApi' do
130
140
  # @option opts [String] :expand
131
141
  # @return [Profile]
132
142
  describe 'users_id_user_profiles_id_profile_get test' do
133
- it "should work" do
143
+ it 'should work' do
134
144
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
135
145
  end
136
146
  end
@@ -143,7 +153,7 @@ describe 'UsersManagementApi' do
143
153
  # @option opts [String] :expand
144
154
  # @return [Profile]
145
155
  describe 'users_id_user_profiles_main_get test' do
146
- it "should work" do
156
+ it 'should work' do
147
157
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
148
158
  end
149
159
  end
@@ -156,7 +166,7 @@ describe 'UsersManagementApi' do
156
166
  # @option opts [String] :expand
157
167
  # @return [Profile]
158
168
  describe 'users_id_user_profiles_me_get test' do
159
- it "should work" do
169
+ it 'should work' do
160
170
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
161
171
  end
162
172
  end
@@ -169,7 +179,7 @@ describe 'UsersManagementApi' do
169
179
  # @param [Hash] opts the optional parameters
170
180
  # @return [Object]
171
181
  describe 'users_id_user_token_post test' do
172
- it "should work" do
182
+ it 'should work' do
173
183
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
174
184
  end
175
185
  end
@@ -1,4 +1,14 @@
1
- # frozen_string_literal: true
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 'spec_helper'
4
14
  require 'json'
@@ -27,9 +37,9 @@ describe 'WealthApi' do
27
37
  #
28
38
  # @param [Hash] opts the optional parameters
29
39
  # @option opts [String] :expand
30
- # @return [InlineResponse20014]
40
+ # @return [InlineResponse20016]
31
41
  describe 'finance_securities_get test' do
32
- it "should work" do
42
+ it 'should work' do
33
43
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
34
44
  end
35
45
  end
@@ -46,7 +56,7 @@ describe 'WealthApi' do
46
56
  # @option opts [String] :period period to group logs
47
57
  # @return [nil]
48
58
  describe 'finance_securities_id_security_history_get test' do
49
- it "should work" do
59
+ it 'should work' do
50
60
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
51
61
  end
52
62
  end
@@ -58,9 +68,9 @@ describe 'WealthApi' do
58
68
  # @param id_account
59
69
  # @param [Hash] opts the optional parameters
60
70
  # @option opts [String] :expand
61
- # @return [InlineResponse20019]
71
+ # @return [InlineResponse20023]
62
72
  describe 'users_id_user_accounts_id_account_investments_get test' do
63
- it "should work" do
73
+ it 'should work' do
64
74
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
65
75
  end
66
76
  end
@@ -73,9 +83,24 @@ describe 'WealthApi' do
73
83
  # @param id_investment
74
84
  # @param [Hash] opts the optional parameters
75
85
  # @option opts [String] :expand
76
- # @return [InlineResponse20020]
86
+ # @return [InlineResponse20024]
77
87
  describe 'users_id_user_accounts_id_account_investments_id_investment_history_get test' do
78
- it "should work" do
88
+ it 'should work' do
89
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
90
+ end
91
+ end
92
+
93
+ # unit tests for users_id_user_accounts_id_account_investments_id_investment_pockets_get
94
+ # Get pockets
95
+ #
96
+ # @param id_user Hint: you can use 'me' or 'all'
97
+ # @param id_account
98
+ # @param id_investment
99
+ # @param [Hash] opts the optional parameters
100
+ # @option opts [String] :expand
101
+ # @return [InlineResponse20025]
102
+ describe 'users_id_user_accounts_id_account_investments_id_investment_pockets_get test' do
103
+ it 'should work' do
79
104
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
80
105
  end
81
106
  end
@@ -94,7 +119,21 @@ describe 'WealthApi' do
94
119
  # @option opts [String] :period period to group logs
95
120
  # @return [nil]
96
121
  describe 'users_id_user_accounts_id_account_investments_id_investment_security_history_get test' do
97
- it "should work" do
122
+ it 'should work' do
123
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
124
+ end
125
+ end
126
+
127
+ # unit tests for users_id_user_accounts_id_account_pockets_get
128
+ # Get pockets
129
+ #
130
+ # @param id_user Hint: you can use 'me' or 'all'
131
+ # @param id_account
132
+ # @param [Hash] opts the optional parameters
133
+ # @option opts [String] :expand
134
+ # @return [InlineResponse20025]
135
+ describe 'users_id_user_accounts_id_account_pockets_get test' do
136
+ it 'should work' do
98
137
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
99
138
  end
100
139
  end
@@ -107,9 +146,9 @@ describe 'WealthApi' do
107
146
  # @param id_account
108
147
  # @param [Hash] opts the optional parameters
109
148
  # @option opts [String] :expand
110
- # @return [InlineResponse20019]
149
+ # @return [InlineResponse20023]
111
150
  describe 'users_id_user_connections_id_connection_accounts_id_account_investments_get test' do
112
- it "should work" do
151
+ it 'should work' do
113
152
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
114
153
  end
115
154
  end
@@ -123,9 +162,25 @@ describe 'WealthApi' do
123
162
  # @param id_investment
124
163
  # @param [Hash] opts the optional parameters
125
164
  # @option opts [String] :expand
126
- # @return [InlineResponse20020]
165
+ # @return [InlineResponse20024]
127
166
  describe 'users_id_user_connections_id_connection_accounts_id_account_investments_id_investment_history_get test' do
128
- it "should work" do
167
+ it 'should work' do
168
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
169
+ end
170
+ end
171
+
172
+ # unit tests for users_id_user_connections_id_connection_accounts_id_account_investments_id_investment_pockets_get
173
+ # Get pockets
174
+ #
175
+ # @param id_user Hint: you can use 'me' or 'all'
176
+ # @param id_connection
177
+ # @param id_account
178
+ # @param id_investment
179
+ # @param [Hash] opts the optional parameters
180
+ # @option opts [String] :expand
181
+ # @return [InlineResponse20025]
182
+ describe 'users_id_user_connections_id_connection_accounts_id_account_investments_id_investment_pockets_get test' do
183
+ it 'should work' do
129
184
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
130
185
  end
131
186
  end
@@ -145,7 +200,22 @@ describe 'WealthApi' do
145
200
  # @option opts [String] :period period to group logs
146
201
  # @return [nil]
147
202
  describe 'users_id_user_connections_id_connection_accounts_id_account_investments_id_investment_security_history_get test' do
148
- it "should work" do
203
+ it 'should work' do
204
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
205
+ end
206
+ end
207
+
208
+ # unit tests for users_id_user_connections_id_connection_accounts_id_account_pockets_get
209
+ # Get pockets
210
+ #
211
+ # @param id_user Hint: you can use 'me' or 'all'
212
+ # @param id_connection
213
+ # @param id_account
214
+ # @param [Hash] opts the optional parameters
215
+ # @option opts [String] :expand
216
+ # @return [InlineResponse20025]
217
+ describe 'users_id_user_connections_id_connection_accounts_id_account_pockets_get test' do
218
+ it 'should work' do
149
219
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
150
220
  end
151
221
  end
@@ -157,9 +227,9 @@ describe 'WealthApi' do
157
227
  # @param id_connection
158
228
  # @param [Hash] opts the optional parameters
159
229
  # @option opts [String] :expand
160
- # @return [InlineResponse20019]
230
+ # @return [InlineResponse20023]
161
231
  describe 'users_id_user_connections_id_connection_investments_get test' do
162
- it "should work" do
232
+ it 'should work' do
163
233
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
164
234
  end
165
235
  end
@@ -172,9 +242,24 @@ describe 'WealthApi' do
172
242
  # @param id_investment
173
243
  # @param [Hash] opts the optional parameters
174
244
  # @option opts [String] :expand
175
- # @return [InlineResponse20020]
245
+ # @return [InlineResponse20024]
176
246
  describe 'users_id_user_connections_id_connection_investments_id_investment_history_get test' do
177
- it "should work" do
247
+ it 'should work' do
248
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
249
+ end
250
+ end
251
+
252
+ # unit tests for users_id_user_connections_id_connection_investments_id_investment_pockets_get
253
+ # Get pockets
254
+ #
255
+ # @param id_user Hint: you can use 'me' or 'all'
256
+ # @param id_connection
257
+ # @param id_investment
258
+ # @param [Hash] opts the optional parameters
259
+ # @option opts [String] :expand
260
+ # @return [InlineResponse20025]
261
+ describe 'users_id_user_connections_id_connection_investments_id_investment_pockets_get test' do
262
+ it 'should work' do
178
263
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
179
264
  end
180
265
  end
@@ -193,7 +278,21 @@ describe 'WealthApi' do
193
278
  # @option opts [String] :period period to group logs
194
279
  # @return [nil]
195
280
  describe 'users_id_user_connections_id_connection_investments_id_investment_security_history_get test' do
196
- it "should work" do
281
+ it 'should work' do
282
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
283
+ end
284
+ end
285
+
286
+ # unit tests for users_id_user_connections_id_connection_pockets_get
287
+ # Get pockets
288
+ #
289
+ # @param id_user Hint: you can use 'me' or 'all'
290
+ # @param id_connection
291
+ # @param [Hash] opts the optional parameters
292
+ # @option opts [String] :expand
293
+ # @return [InlineResponse20025]
294
+ describe 'users_id_user_connections_id_connection_pockets_get test' do
295
+ it 'should work' do
197
296
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
198
297
  end
199
298
  end
@@ -204,9 +303,9 @@ describe 'WealthApi' do
204
303
  # @param id_user Hint: you can use 'me' or 'all'
205
304
  # @param [Hash] opts the optional parameters
206
305
  # @option opts [String] :expand
207
- # @return [InlineResponse20019]
306
+ # @return [InlineResponse20023]
208
307
  describe 'users_id_user_investments_get test' do
209
- it "should work" do
308
+ it 'should work' do
210
309
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
211
310
  end
212
311
  end
@@ -218,9 +317,23 @@ describe 'WealthApi' do
218
317
  # @param id_investment
219
318
  # @param [Hash] opts the optional parameters
220
319
  # @option opts [String] :expand
221
- # @return [InlineResponse20020]
320
+ # @return [InlineResponse20024]
222
321
  describe 'users_id_user_investments_id_investment_history_get test' do
223
- it "should work" do
322
+ it 'should work' do
323
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
324
+ end
325
+ end
326
+
327
+ # unit tests for users_id_user_investments_id_investment_pockets_get
328
+ # Get pockets
329
+ #
330
+ # @param id_user Hint: you can use 'me' or 'all'
331
+ # @param id_investment
332
+ # @param [Hash] opts the optional parameters
333
+ # @option opts [String] :expand
334
+ # @return [InlineResponse20025]
335
+ describe 'users_id_user_investments_id_investment_pockets_get test' do
336
+ it 'should work' do
224
337
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
225
338
  end
226
339
  end
@@ -238,7 +351,20 @@ describe 'WealthApi' do
238
351
  # @option opts [String] :period period to group logs
239
352
  # @return [nil]
240
353
  describe 'users_id_user_investments_id_investment_security_history_get test' do
241
- it "should work" do
354
+ it 'should work' do
355
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
356
+ end
357
+ end
358
+
359
+ # unit tests for users_id_user_pockets_get
360
+ # Get pockets
361
+ #
362
+ # @param id_user Hint: you can use 'me' or 'all'
363
+ # @param [Hash] opts the optional parameters
364
+ # @option opts [String] :expand
365
+ # @return [InlineResponse20025]
366
+ describe 'users_id_user_pockets_get test' do
367
+ it 'should work' do
242
368
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
243
369
  end
244
370
  end
@@ -1,4 +1,14 @@
1
- # frozen_string_literal: true
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 'spec_helper'
4
14
 
@@ -41,11 +51,11 @@ describe BudgeaClient::ApiClient do
41
51
  end
42
52
  end
43
53
 
44
- describe "params_encoding in #build_request" do
54
+ describe 'params_encoding in #build_request' do
45
55
  let(:config) { BudgeaClient::Configuration.new }
46
56
  let(:api_client) { BudgeaClient::ApiClient.new(config) }
47
57
 
48
- it "defaults to nil" do
58
+ it 'defaults to nil' do
49
59
  expect(BudgeaClient::Configuration.default.params_encoding).to eq(nil)
50
60
  expect(config.params_encoding).to eq(nil)
51
61
 
@@ -53,18 +63,18 @@ describe BudgeaClient::ApiClient do
53
63
  expect(request.options[:params_encoding]).to eq(nil)
54
64
  end
55
65
 
56
- it "can be customized" do
66
+ it 'can be customized' do
57
67
  config.params_encoding = :multi
58
68
  request = api_client.build_request(:get, '/test')
59
69
  expect(request.options[:params_encoding]).to eq(:multi)
60
70
  end
61
71
  end
62
72
 
63
- describe "timeout in #build_request" do
73
+ describe 'timeout in #build_request' do
64
74
  let(:config) { BudgeaClient::Configuration.new }
65
75
  let(:api_client) { BudgeaClient::ApiClient.new(config) }
66
76
 
67
- it "defaults to 0" do
77
+ it 'defaults to 0' do
68
78
  expect(BudgeaClient::Configuration.default.timeout).to eq(0)
69
79
  expect(config.timeout).to eq(0)
70
80
 
@@ -72,88 +82,88 @@ describe BudgeaClient::ApiClient do
72
82
  expect(request.options[:timeout]).to eq(0)
73
83
  end
74
84
 
75
- it "can be customized" do
85
+ it 'can be customized' do
76
86
  config.timeout = 100
77
87
  request = api_client.build_request(:get, '/test')
78
88
  expect(request.options[:timeout]).to eq(100)
79
89
  end
80
90
  end
81
91
 
82
- describe "#deserialize" do
92
+ describe '#deserialize' do
83
93
  it "handles Array<Integer>" do
84
94
  api_client = BudgeaClient::ApiClient.new
85
- headers = {'Content-Type' => 'application/json'}
95
+ headers = { 'Content-Type' => 'application/json' }
86
96
  response = double('response', headers: headers, body: '[12, 34]')
87
97
  data = api_client.deserialize(response, 'Array<Integer>')
88
98
  expect(data).to be_instance_of(Array)
89
99
  expect(data).to eq([12, 34])
90
100
  end
91
101
 
92
- it "handles Array<Array<Integer>>" do
102
+ it 'handles Array<Array<Integer>>' do
93
103
  api_client = BudgeaClient::ApiClient.new
94
- headers = {'Content-Type' => 'application/json'}
104
+ headers = { 'Content-Type' => 'application/json' }
95
105
  response = double('response', headers: headers, body: '[[12, 34], [56]]')
96
106
  data = api_client.deserialize(response, 'Array<Array<Integer>>')
97
107
  expect(data).to be_instance_of(Array)
98
108
  expect(data).to eq([[12, 34], [56]])
99
109
  end
100
110
 
101
- it "handles Hash<String, String>" do
111
+ it 'handles Hash<String, String>' do
102
112
  api_client = BudgeaClient::ApiClient.new
103
- headers = {'Content-Type' => 'application/json'}
113
+ headers = { 'Content-Type' => 'application/json' }
104
114
  response = double('response', headers: headers, body: '{"message": "Hello"}')
105
115
  data = api_client.deserialize(response, 'Hash<String, String>')
106
116
  expect(data).to be_instance_of(Hash)
107
- expect(data).to eq({:message => 'Hello'})
117
+ expect(data).to eq(:message => 'Hello')
108
118
  end
109
119
  end
110
120
 
111
121
  describe "#object_to_hash" do
112
- it "ignores nils and includes empty arrays" do
122
+ it 'ignores nils and includes empty arrays' do
113
123
  # uncomment below to test object_to_hash for model
114
- #api_client = BudgeaClient::ApiClient.new
115
- #_model = BudgeaClient::ModelName.new
124
+ # api_client = BudgeaClient::ApiClient.new
125
+ # _model = BudgeaClient::ModelName.new
116
126
  # update the model attribute below
117
- #_model.id = 1
127
+ # _model.id = 1
118
128
  # update the expected value (hash) below
119
- #expected = {id: 1, name: '', tags: []}
120
- #expect(api_client.object_to_hash(_model)).to eq(expected)
129
+ # expected = {id: 1, name: '', tags: []}
130
+ # expect(api_client.object_to_hash(_model)).to eq(expected)
121
131
  end
122
132
  end
123
133
 
124
- describe "#build_collection_param" do
134
+ describe '#build_collection_param' do
125
135
  let(:param) { ['aa', 'bb', 'cc'] }
126
136
  let(:api_client) { BudgeaClient::ApiClient.new }
127
137
 
128
- it "works for csv" do
138
+ it 'works for csv' do
129
139
  expect(api_client.build_collection_param(param, :csv)).to eq('aa,bb,cc')
130
140
  end
131
141
 
132
- it "works for ssv" do
142
+ it 'works for ssv' do
133
143
  expect(api_client.build_collection_param(param, :ssv)).to eq('aa bb cc')
134
144
  end
135
145
 
136
- it "works for tsv" do
146
+ it 'works for tsv' do
137
147
  expect(api_client.build_collection_param(param, :tsv)).to eq("aa\tbb\tcc")
138
148
  end
139
149
 
140
- it "works for pipes" do
150
+ it 'works for pipes' do
141
151
  expect(api_client.build_collection_param(param, :pipes)).to eq('aa|bb|cc')
142
152
  end
143
153
 
144
- it "works for multi" do
154
+ it 'works for multi' do
145
155
  expect(api_client.build_collection_param(param, :multi)).to eq(['aa', 'bb', 'cc'])
146
156
  end
147
157
 
148
- it "fails for invalid collection format" do
158
+ it 'fails for invalid collection format' do
149
159
  expect(proc { api_client.build_collection_param(param, :INVALID) }).to raise_error(RuntimeError, 'unknown collection format: :INVALID')
150
160
  end
151
161
  end
152
162
 
153
- describe "#json_mime?" do
163
+ describe '#json_mime?' do
154
164
  let(:api_client) { BudgeaClient::ApiClient.new }
155
165
 
156
- it "works" do
166
+ it 'works' do
157
167
  expect(api_client.json_mime?(nil)).to eq false
158
168
  expect(api_client.json_mime?('')).to eq false
159
169
 
@@ -167,10 +177,10 @@ describe BudgeaClient::ApiClient do
167
177
  end
168
178
  end
169
179
 
170
- describe "#select_header_accept" do
180
+ describe '#select_header_accept' do
171
181
  let(:api_client) { BudgeaClient::ApiClient.new }
172
182
 
173
- it "works" do
183
+ it 'works' do
174
184
  expect(api_client.select_header_accept(nil)).to be_nil
175
185
  expect(api_client.select_header_accept([])).to be_nil
176
186
 
@@ -183,10 +193,10 @@ describe BudgeaClient::ApiClient do
183
193
  end
184
194
  end
185
195
 
186
- describe "#select_header_content_type" do
196
+ describe '#select_header_content_type' do
187
197
  let(:api_client) { BudgeaClient::ApiClient.new }
188
198
 
189
- it "works" do
199
+ it 'works' do
190
200
  expect(api_client.select_header_content_type(nil)).to eq('application/json')
191
201
  expect(api_client.select_header_content_type([])).to eq('application/json')
192
202
 
@@ -198,10 +208,10 @@ describe BudgeaClient::ApiClient do
198
208
  end
199
209
  end
200
210
 
201
- describe "#sanitize_filename" do
211
+ describe '#sanitize_filename' do
202
212
  let(:api_client) { BudgeaClient::ApiClient.new }
203
213
 
204
- it "works" do
214
+ it 'works' do
205
215
  expect(api_client.sanitize_filename('sun')).to eq('sun')
206
216
  expect(api_client.sanitize_filename('sun.gif')).to eq('sun.gif')
207
217
  expect(api_client.sanitize_filename('../sun.gif')).to eq('sun.gif')