Skip to content

Commit fed0418

Browse files
Release 3.3.0
1 parent 2b40234 commit fed0418

File tree

122 files changed

+2472
-24
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

122 files changed

+2472
-24
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
same "printed page" as the copyright notice for easier
187187
identification within third-party archives.
188188

189-
Copyright 2022 wallee AG
189+
Copyright 2023 wallee AG
190190

191191
Licensed under the Apache License, Version 2.0 (the "License");
192192
you may not use this file except in compliance with the License.

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,12 @@ app_user_id = 512
3232
app_user_key = "FKrO76r5VwJtBrqZawBspljbBNOxp5veKQQkOnZxucQ="
3333

3434
# default_headers is an optional param, that represents headers sent to all requests
35+
# timeout is an optional param, that allows to configure custom timeout (default is 25 seconds)
3536
Wallee.configure do |config|
3637
config.user_id = app_user_id
3738
config.authentication_key = app_user_key
3839
config.default_headers = {"x-meta-custom-header": 'value-1', "x-meta-custom-header-2": 'value-2'}
40+
config.timeout = 60
3941
end
4042

4143
# TransactionService
@@ -53,9 +55,11 @@ space_id = 405
5355
app_user_id = 512
5456
app_user_key = "FKrO76r5VwJtBrqZawBspljbBNOxp5veKQQkOnZxucQ="
5557

58+
# timeout is an optional param, that allows to configure custom timeout (default is 25 seconds)
5659
Wallee.configure do |config|
5760
config.user_id = app_user_id
5861
config.authentication_key = app_user_key
62+
config.timeout = 60
5963
end
6064

6165
# TransactionService

lib/wallee-ruby-sdk.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,7 @@
387387
require 'wallee-ruby-sdk/models/user_account_role'
388388
require 'wallee-ruby-sdk/models/user_space_role'
389389
require 'wallee-ruby-sdk/models/user_type'
390+
require 'wallee-ruby-sdk/models/wallet_type'
390391
require 'wallee-ruby-sdk/models/web_app_confirmation_request'
391392
require 'wallee-ruby-sdk/models/web_app_confirmation_response'
392393
require 'wallee-ruby-sdk/models/webhook_identity'

lib/wallee-ruby-sdk/api/account_service_api.rb

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ def count(opts = {})
3737

3838
# Count
3939
# Counts the number of items in the database as restricted by the given filter.
40+
4041
# @param [Hash] opts the optional parameters
4142
# @option opts [EntityQueryFilter] :filter The filter which restricts the entities which are used to calculate the count.
4243
# @return [Array<(Integer, Fixnum, Hash)>] Integer data, response status code and response headers
@@ -63,6 +64,9 @@ def count_with_http_info(opts = {})
6364

6465
# form parameters
6566
form_params = {}
67+
68+
# connection timeout
69+
timeout = @api_client.get_connection_timeout()
6670

6771
# http body (model)
6872
post_body = @api_client.object_to_http_body(opts[:'filter'])
@@ -72,6 +76,7 @@ def count_with_http_info(opts = {})
7276
:query_params => query_params,
7377
:form_params => form_params,
7478
:body => post_body,
79+
:timeout => timeout,
7580
:auth_names => auth_names,
7681
:return_type => 'Integer')
7782
if @api_client.config.debugging
@@ -92,6 +97,7 @@ def create(entity, opts = {})
9297

9398
# Create
9499
# Creates the entity with the given properties.
100+
95101
# @param entity The account object with the properties which should be created.
96102
# @param [Hash] opts the optional parameters
97103
# @return [Array<(Account, Fixnum, Hash)>] Account data, response status code and response headers
@@ -120,6 +126,9 @@ def create_with_http_info(entity, opts = {})
120126

121127
# form parameters
122128
form_params = {}
129+
130+
# connection timeout
131+
timeout = @api_client.get_connection_timeout()
123132

124133
# http body (model)
125134
post_body = @api_client.object_to_http_body(entity)
@@ -129,6 +138,7 @@ def create_with_http_info(entity, opts = {})
129138
:query_params => query_params,
130139
:form_params => form_params,
131140
:body => post_body,
141+
:timeout => timeout,
132142
:auth_names => auth_names,
133143
:return_type => 'Account')
134144
if @api_client.config.debugging
@@ -149,6 +159,7 @@ def delete(id, opts = {})
149159

150160
# Delete
151161
# Deletes the entity with the given id.
162+
152163
# @param id
153164
# @param [Hash] opts the optional parameters
154165
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
@@ -177,6 +188,9 @@ def delete_with_http_info(id, opts = {})
177188

178189
# form parameters
179190
form_params = {}
191+
192+
# connection timeout
193+
timeout = @api_client.get_connection_timeout()
180194

181195
# http body (model)
182196
post_body = @api_client.object_to_http_body(id)
@@ -186,6 +200,7 @@ def delete_with_http_info(id, opts = {})
186200
:query_params => query_params,
187201
:form_params => form_params,
188202
:body => post_body,
203+
:timeout => timeout,
189204
:auth_names => auth_names)
190205
if @api_client.config.debugging
191206
@api_client.config.logger.debug "API called: AccountService#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
@@ -205,6 +220,7 @@ def read(id, opts = {})
205220

206221
# Read
207222
# Reads the entity with the given &#39;id&#39; and returns it.
223+
208224
# @param id The id of the account which should be returned.
209225
# @param [Hash] opts the optional parameters
210226
# @return [Array<(Account, Fixnum, Hash)>] Account data, response status code and response headers
@@ -234,6 +250,9 @@ def read_with_http_info(id, opts = {})
234250

235251
# form parameters
236252
form_params = {}
253+
254+
# connection timeout
255+
timeout = @api_client.get_connection_timeout()
237256

238257
# http body (model)
239258
post_body = nil
@@ -243,6 +262,7 @@ def read_with_http_info(id, opts = {})
243262
:query_params => query_params,
244263
:form_params => form_params,
245264
:body => post_body,
265+
:timeout => timeout,
246266
:auth_names => auth_names,
247267
:return_type => 'Account')
248268
if @api_client.config.debugging
@@ -263,6 +283,7 @@ def search(query, opts = {})
263283

264284
# Search
265285
# Searches for the entities as specified by the given query.
286+
266287
# @param query The query restricts the accounts which are returned by the search.
267288
# @param [Hash] opts the optional parameters
268289
# @return [Array<(Array<Account>, Fixnum, Hash)>] Array<Account> data, response status code and response headers
@@ -291,6 +312,9 @@ def search_with_http_info(query, opts = {})
291312

292313
# form parameters
293314
form_params = {}
315+
316+
# connection timeout
317+
timeout = @api_client.get_connection_timeout()
294318

295319
# http body (model)
296320
post_body = @api_client.object_to_http_body(query)
@@ -300,6 +324,7 @@ def search_with_http_info(query, opts = {})
300324
:query_params => query_params,
301325
:form_params => form_params,
302326
:body => post_body,
327+
:timeout => timeout,
303328
:auth_names => auth_names,
304329
:return_type => 'Array<Account>')
305330
if @api_client.config.debugging
@@ -320,6 +345,7 @@ def update(entity, opts = {})
320345

321346
# Update
322347
# This updates the entity with the given properties. Only those properties which should be updated can be provided. The &#39;id&#39; and &#39;version&#39; are required to identify the entity.
348+
323349
# @param entity The account object with all the properties which should be updated. The id and the version are required properties.
324350
# @param [Hash] opts the optional parameters
325351
# @return [Array<(Account, Fixnum, Hash)>] Account data, response status code and response headers
@@ -348,6 +374,9 @@ def update_with_http_info(entity, opts = {})
348374

349375
# form parameters
350376
form_params = {}
377+
378+
# connection timeout
379+
timeout = @api_client.get_connection_timeout()
351380

352381
# http body (model)
353382
post_body = @api_client.object_to_http_body(entity)
@@ -357,6 +386,7 @@ def update_with_http_info(entity, opts = {})
357386
:query_params => query_params,
358387
:form_params => form_params,
359388
:body => post_body,
389+
:timeout => timeout,
360390
:auth_names => auth_names,
361391
:return_type => 'Account')
362392
if @api_client.config.debugging

lib/wallee-ruby-sdk/api/analytics_query_service_api.rb

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ def cancel_execution(id, opts = {})
3737

3838
# Cancel Execution
3939
# Cancels the specified query execution.
40+
4041
# @param id The ID of the query execution to cancel.
4142
# @param [Hash] opts the optional parameters
4243
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
@@ -66,6 +67,9 @@ def cancel_execution_with_http_info(id, opts = {})
6667

6768
# form parameters
6869
form_params = {}
70+
71+
# connection timeout
72+
timeout = @api_client.get_connection_timeout()
6973

7074
# http body (model)
7175
post_body = nil
@@ -75,6 +79,7 @@ def cancel_execution_with_http_info(id, opts = {})
7579
:query_params => query_params,
7680
:form_params => form_params,
7781
:body => post_body,
82+
:timeout => timeout,
7883
:auth_names => auth_names)
7984
if @api_client.config.debugging
8085
@api_client.config.logger.debug "API called: AnalyticsQueryService#cancel_execution\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
@@ -97,6 +102,7 @@ def fetch_result(id, opts = {})
97102

98103
# Fetch Result
99104
# Fetches one batch of the result of a query execution.
105+
100106
# @param id The ID of the query execution for which to fetch the result.
101107
# @param [Hash] opts the optional parameters
102108
# @option opts [Integer] :timeout The maximal time in seconds to wait for the result if it is not yet available. Use 0 (the default) to return immediately without waiting.
@@ -132,6 +138,9 @@ def fetch_result_with_http_info(id, opts = {})
132138

133139
# form parameters
134140
form_params = {}
141+
142+
# connection timeout
143+
timeout = @api_client.get_connection_timeout()
135144

136145
# http body (model)
137146
post_body = nil
@@ -141,6 +150,7 @@ def fetch_result_with_http_info(id, opts = {})
141150
:query_params => query_params,
142151
:form_params => form_params,
143152
:body => post_body,
153+
:timeout => timeout,
144154
:auth_names => auth_names,
145155
:return_type => 'AnalyticsQueryResultBatch')
146156
if @api_client.config.debugging
@@ -162,6 +172,7 @@ def generate_download_url(id, opts = {})
162172

163173
# Generate Download URL
164174
# Generate a URL from which the results of a query execution can be downloaded in CSV format.
175+
165176
# @param id The ID of the query execution for which to generate the download URL.
166177
# @param [Hash] opts the optional parameters
167178
# @option opts [Integer] :timeout The maximal time in seconds to wait for the result if it is not yet available. Use 0 (the default) to return immediately without waiting.
@@ -193,6 +204,9 @@ def generate_download_url_with_http_info(id, opts = {})
193204

194205
# form parameters
195206
form_params = {}
207+
208+
# connection timeout
209+
timeout = @api_client.get_connection_timeout()
196210

197211
# http body (model)
198212
post_body = nil
@@ -202,6 +216,7 @@ def generate_download_url_with_http_info(id, opts = {})
202216
:query_params => query_params,
203217
:form_params => form_params,
204218
:body => post_body,
219+
:timeout => timeout,
205220
:auth_names => auth_names,
206221
:return_type => 'String')
207222
if @api_client.config.debugging
@@ -221,6 +236,7 @@ def schema(opts = {})
221236

222237
# Get Schemas
223238
# Get the schemas describing the available tables and their columns.
239+
224240
# @param [Hash] opts the optional parameters
225241
# @return [Array<(Array<AnalyticsSchemaTable>, Fixnum, Hash)>] Array<AnalyticsSchemaTable> data, response status code and response headers
226242
def schema_with_http_info(opts = {})
@@ -246,6 +262,9 @@ def schema_with_http_info(opts = {})
246262

247263
# form parameters
248264
form_params = {}
265+
266+
# connection timeout
267+
timeout = @api_client.get_connection_timeout()
249268

250269
# http body (model)
251270
post_body = nil
@@ -255,6 +274,7 @@ def schema_with_http_info(opts = {})
255274
:query_params => query_params,
256275
:form_params => form_params,
257276
:body => post_body,
277+
:timeout => timeout,
258278
:auth_names => auth_names,
259279
:return_type => 'Array<AnalyticsSchemaTable>')
260280
if @api_client.config.debugging
@@ -275,6 +295,7 @@ def status(id, opts = {})
275295

276296
# Execution Status
277297
# Returns the current status of a query execution.
298+
278299
# @param id The ID of the query execution for which to get the status.
279300
# @param [Hash] opts the optional parameters
280301
# @return [Array<(AnalyticsQueryExecution, Fixnum, Hash)>] AnalyticsQueryExecution data, response status code and response headers
@@ -304,6 +325,9 @@ def status_with_http_info(id, opts = {})
304325

305326
# form parameters
306327
form_params = {}
328+
329+
# connection timeout
330+
timeout = @api_client.get_connection_timeout()
307331

308332
# http body (model)
309333
post_body = nil
@@ -313,6 +337,7 @@ def status_with_http_info(id, opts = {})
313337
:query_params => query_params,
314338
:form_params => form_params,
315339
:body => post_body,
340+
:timeout => timeout,
316341
:auth_names => auth_names,
317342
:return_type => 'AnalyticsQueryExecution')
318343
if @api_client.config.debugging
@@ -333,6 +358,7 @@ def submit_query(query, opts = {})
333358

334359
# Submit Query
335360
# Submits a query for execution.
361+
336362
# @param query The query to submit.
337363
# @param [Hash] opts the optional parameters
338364
# @return [Array<(AnalyticsQueryExecution, Fixnum, Hash)>] AnalyticsQueryExecution data, response status code and response headers
@@ -361,6 +387,9 @@ def submit_query_with_http_info(query, opts = {})
361387

362388
# form parameters
363389
form_params = {}
390+
391+
# connection timeout
392+
timeout = @api_client.get_connection_timeout()
364393

365394
# http body (model)
366395
post_body = @api_client.object_to_http_body(query)
@@ -370,6 +399,7 @@ def submit_query_with_http_info(query, opts = {})
370399
:query_params => query_params,
371400
:form_params => form_params,
372401
:body => post_body,
402+
:timeout => timeout,
373403
:auth_names => auth_names,
374404
:return_type => 'AnalyticsQueryExecution')
375405
if @api_client.config.debugging

0 commit comments

Comments
 (0)