moneykit 0.1.3 → 0.1.4
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 +2 -1
- data/README.md +1 -1
- data/lib/moneykit/version.rb +1 -1
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/byebug-11.1.3/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/jaro_winkler-1.5.6/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/psych-5.1.1.1/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/racc-1.7.3/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/stringio-3.1.0/gem_make.out +5 -5
- metadata +1 -9
- data/lib/moneykit/models/response401_get_transactions_links_id_transactions_get.rb +0 -104
- data/lib/moneykit/models/response401_get_user_transactions_users_id_transactions_get.rb +0 -103
- data/spec/models/public_link_error_spec.rb +0 -30
- data/spec/models/response401_get_transactions_links_id_transactions_get_spec.rb +0 -21
- data/spec/models/response401_get_user_transactions_users_id_transactions_get_spec.rb +0 -21
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a44b7a55df7d698f1dbdecba4ae6a4ebfb67169246ace2815f6c1bb850b15336
|
|
4
|
+
data.tar.gz: 439283c5f6f3501b341504555fd5d0961dd5f78ed93b11c4faa90f40fb8a5315
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 52a4ace77390a71738eb7de3ba54e89ef37a35a65601dfca47e07c6e3597c9cf2ce494843f2511060024e50bc45fb3bbf01e0eeac0b1851ff8e73c67dfa8c318
|
|
7
|
+
data.tar.gz: '08d3a1875c915c5dfa642160a3db6ee79092698f44086c76df4b413efd6ced6a53044aa8b8b3fd803db4ee93099e67fe68e4e06c016ca62ed12d6d1948a8ab10'
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
data/lib/moneykit/version.rb
CHANGED
|
@@ -3,10 +3,10 @@ current directory: /home/runner/work/moneykit-ruby/moneykit-ruby/vendor/bundle/r
|
|
|
3
3
|
creating Makefile
|
|
4
4
|
|
|
5
5
|
current directory: /home/runner/work/moneykit-ruby/moneykit-ruby/vendor/bundle/ruby/3.2.0/gems/byebug-11.1.3/ext/byebug
|
|
6
|
-
make DESTDIR\= sitearchdir\=./.gem.20240109-
|
|
6
|
+
make DESTDIR\= sitearchdir\=./.gem.20240109-1740-ywqeqq sitelibdir\=./.gem.20240109-1740-ywqeqq clean
|
|
7
7
|
|
|
8
8
|
current directory: /home/runner/work/moneykit-ruby/moneykit-ruby/vendor/bundle/ruby/3.2.0/gems/byebug-11.1.3/ext/byebug
|
|
9
|
-
make DESTDIR\= sitearchdir\=./.gem.20240109-
|
|
9
|
+
make DESTDIR\= sitearchdir\=./.gem.20240109-1740-ywqeqq sitelibdir\=./.gem.20240109-1740-ywqeqq
|
|
10
10
|
compiling breakpoint.c
|
|
11
11
|
compiling byebug.c
|
|
12
12
|
byebug.c: In function ‘check_started’:
|
|
@@ -35,8 +35,8 @@ compiling threads.c
|
|
|
35
35
|
linking shared-object byebug/byebug.so
|
|
36
36
|
|
|
37
37
|
current directory: /home/runner/work/moneykit-ruby/moneykit-ruby/vendor/bundle/ruby/3.2.0/gems/byebug-11.1.3/ext/byebug
|
|
38
|
-
make DESTDIR\= sitearchdir\=./.gem.20240109-
|
|
39
|
-
/usr/bin/install -c -m 0755 byebug.so ./.gem.20240109-
|
|
38
|
+
make DESTDIR\= sitearchdir\=./.gem.20240109-1740-ywqeqq sitelibdir\=./.gem.20240109-1740-ywqeqq install
|
|
39
|
+
/usr/bin/install -c -m 0755 byebug.so ./.gem.20240109-1740-ywqeqq/byebug
|
|
40
40
|
|
|
41
41
|
current directory: /home/runner/work/moneykit-ruby/moneykit-ruby/vendor/bundle/ruby/3.2.0/gems/byebug-11.1.3/ext/byebug
|
|
42
|
-
make DESTDIR\= sitearchdir\=./.gem.20240109-
|
|
42
|
+
make DESTDIR\= sitearchdir\=./.gem.20240109-1740-ywqeqq sitelibdir\=./.gem.20240109-1740-ywqeqq clean
|
|
@@ -3,10 +3,10 @@ current directory: /home/runner/work/moneykit-ruby/moneykit-ruby/vendor/bundle/r
|
|
|
3
3
|
creating Makefile
|
|
4
4
|
|
|
5
5
|
current directory: /home/runner/work/moneykit-ruby/moneykit-ruby/vendor/bundle/ruby/3.2.0/gems/jaro_winkler-1.5.6/ext/jaro_winkler
|
|
6
|
-
make DESTDIR\= sitearchdir\=./.gem.20240109-
|
|
6
|
+
make DESTDIR\= sitearchdir\=./.gem.20240109-1740-mefpwc sitelibdir\=./.gem.20240109-1740-mefpwc clean
|
|
7
7
|
|
|
8
8
|
current directory: /home/runner/work/moneykit-ruby/moneykit-ruby/vendor/bundle/ruby/3.2.0/gems/jaro_winkler-1.5.6/ext/jaro_winkler
|
|
9
|
-
make DESTDIR\= sitearchdir\=./.gem.20240109-
|
|
9
|
+
make DESTDIR\= sitearchdir\=./.gem.20240109-1740-mefpwc sitelibdir\=./.gem.20240109-1740-mefpwc
|
|
10
10
|
compiling adj_matrix.c
|
|
11
11
|
adj_matrix.c: In function ‘adj_matrix_default’:
|
|
12
12
|
adj_matrix.c:82:12: warning: old-style function definition [-Wold-style-definition]
|
|
@@ -22,8 +22,8 @@ compiling jaro_winkler.c
|
|
|
22
22
|
linking shared-object jaro_winkler/jaro_winkler_ext.so
|
|
23
23
|
|
|
24
24
|
current directory: /home/runner/work/moneykit-ruby/moneykit-ruby/vendor/bundle/ruby/3.2.0/gems/jaro_winkler-1.5.6/ext/jaro_winkler
|
|
25
|
-
make DESTDIR\= sitearchdir\=./.gem.20240109-
|
|
26
|
-
/usr/bin/install -c -m 0755 jaro_winkler_ext.so ./.gem.20240109-
|
|
25
|
+
make DESTDIR\= sitearchdir\=./.gem.20240109-1740-mefpwc sitelibdir\=./.gem.20240109-1740-mefpwc install
|
|
26
|
+
/usr/bin/install -c -m 0755 jaro_winkler_ext.so ./.gem.20240109-1740-mefpwc/jaro_winkler
|
|
27
27
|
|
|
28
28
|
current directory: /home/runner/work/moneykit-ruby/moneykit-ruby/vendor/bundle/ruby/3.2.0/gems/jaro_winkler-1.5.6/ext/jaro_winkler
|
|
29
|
-
make DESTDIR\= sitearchdir\=./.gem.20240109-
|
|
29
|
+
make DESTDIR\= sitearchdir\=./.gem.20240109-1740-mefpwc sitelibdir\=./.gem.20240109-1740-mefpwc clean
|
|
@@ -5,13 +5,13 @@ checking for yaml_get_version() in -lyaml... yes
|
|
|
5
5
|
creating Makefile
|
|
6
6
|
|
|
7
7
|
current directory: /home/runner/work/moneykit-ruby/moneykit-ruby/vendor/bundle/ruby/3.2.0/gems/psych-5.1.1.1/ext/psych
|
|
8
|
-
make DESTDIR\= sitearchdir\=./.gem.20240109-
|
|
8
|
+
make DESTDIR\= sitearchdir\=./.gem.20240109-1740-9dck6q sitelibdir\=./.gem.20240109-1740-9dck6q clean
|
|
9
9
|
cd libyaml && make clean
|
|
10
10
|
/bin/sh: 1: cd: can't cd to libyaml
|
|
11
11
|
make: [Makefile:283: clean-so] Error 2 (ignored)
|
|
12
12
|
|
|
13
13
|
current directory: /home/runner/work/moneykit-ruby/moneykit-ruby/vendor/bundle/ruby/3.2.0/gems/psych-5.1.1.1/ext/psych
|
|
14
|
-
make DESTDIR\= sitearchdir\=./.gem.20240109-
|
|
14
|
+
make DESTDIR\= sitearchdir\=./.gem.20240109-1740-9dck6q sitelibdir\=./.gem.20240109-1740-9dck6q
|
|
15
15
|
compiling psych.c
|
|
16
16
|
compiling psych_emitter.c
|
|
17
17
|
compiling psych_parser.c
|
|
@@ -20,11 +20,11 @@ compiling psych_yaml_tree.c
|
|
|
20
20
|
linking shared-object psych.so
|
|
21
21
|
|
|
22
22
|
current directory: /home/runner/work/moneykit-ruby/moneykit-ruby/vendor/bundle/ruby/3.2.0/gems/psych-5.1.1.1/ext/psych
|
|
23
|
-
make DESTDIR\= sitearchdir\=./.gem.20240109-
|
|
24
|
-
/usr/bin/install -c -m 0755 psych.so ./.gem.20240109-
|
|
23
|
+
make DESTDIR\= sitearchdir\=./.gem.20240109-1740-9dck6q sitelibdir\=./.gem.20240109-1740-9dck6q install
|
|
24
|
+
/usr/bin/install -c -m 0755 psych.so ./.gem.20240109-1740-9dck6q
|
|
25
25
|
|
|
26
26
|
current directory: /home/runner/work/moneykit-ruby/moneykit-ruby/vendor/bundle/ruby/3.2.0/gems/psych-5.1.1.1/ext/psych
|
|
27
|
-
make DESTDIR\= sitearchdir\=./.gem.20240109-
|
|
27
|
+
make DESTDIR\= sitearchdir\=./.gem.20240109-1740-9dck6q sitelibdir\=./.gem.20240109-1740-9dck6q clean
|
|
28
28
|
cd libyaml && make clean
|
|
29
29
|
/bin/sh: 1: cd: can't cd to libyaml
|
|
30
30
|
make: [Makefile:283: clean-so] Error 2 (ignored)
|
|
@@ -3,16 +3,16 @@ current directory: /home/runner/work/moneykit-ruby/moneykit-ruby/vendor/bundle/r
|
|
|
3
3
|
creating Makefile
|
|
4
4
|
|
|
5
5
|
current directory: /home/runner/work/moneykit-ruby/moneykit-ruby/vendor/bundle/ruby/3.2.0/gems/racc-1.7.3/ext/racc/cparse
|
|
6
|
-
make DESTDIR\= sitearchdir\=./.gem.20240109-
|
|
6
|
+
make DESTDIR\= sitearchdir\=./.gem.20240109-1740-idqnig sitelibdir\=./.gem.20240109-1740-idqnig clean
|
|
7
7
|
|
|
8
8
|
current directory: /home/runner/work/moneykit-ruby/moneykit-ruby/vendor/bundle/ruby/3.2.0/gems/racc-1.7.3/ext/racc/cparse
|
|
9
|
-
make DESTDIR\= sitearchdir\=./.gem.20240109-
|
|
9
|
+
make DESTDIR\= sitearchdir\=./.gem.20240109-1740-idqnig sitelibdir\=./.gem.20240109-1740-idqnig
|
|
10
10
|
compiling cparse.c
|
|
11
11
|
linking shared-object racc/cparse.so
|
|
12
12
|
|
|
13
13
|
current directory: /home/runner/work/moneykit-ruby/moneykit-ruby/vendor/bundle/ruby/3.2.0/gems/racc-1.7.3/ext/racc/cparse
|
|
14
|
-
make DESTDIR\= sitearchdir\=./.gem.20240109-
|
|
15
|
-
/usr/bin/install -c -m 0755 cparse.so ./.gem.20240109-
|
|
14
|
+
make DESTDIR\= sitearchdir\=./.gem.20240109-1740-idqnig sitelibdir\=./.gem.20240109-1740-idqnig install
|
|
15
|
+
/usr/bin/install -c -m 0755 cparse.so ./.gem.20240109-1740-idqnig/racc
|
|
16
16
|
|
|
17
17
|
current directory: /home/runner/work/moneykit-ruby/moneykit-ruby/vendor/bundle/ruby/3.2.0/gems/racc-1.7.3/ext/racc/cparse
|
|
18
|
-
make DESTDIR\= sitearchdir\=./.gem.20240109-
|
|
18
|
+
make DESTDIR\= sitearchdir\=./.gem.20240109-1740-idqnig sitelibdir\=./.gem.20240109-1740-idqnig clean
|
|
@@ -3,16 +3,16 @@ current directory: /home/runner/work/moneykit-ruby/moneykit-ruby/vendor/bundle/r
|
|
|
3
3
|
creating Makefile
|
|
4
4
|
|
|
5
5
|
current directory: /home/runner/work/moneykit-ruby/moneykit-ruby/vendor/bundle/ruby/3.2.0/gems/stringio-3.1.0/ext/stringio
|
|
6
|
-
make DESTDIR\= sitearchdir\=./.gem.20240109-
|
|
6
|
+
make DESTDIR\= sitearchdir\=./.gem.20240109-1740-wl6z5n sitelibdir\=./.gem.20240109-1740-wl6z5n clean
|
|
7
7
|
|
|
8
8
|
current directory: /home/runner/work/moneykit-ruby/moneykit-ruby/vendor/bundle/ruby/3.2.0/gems/stringio-3.1.0/ext/stringio
|
|
9
|
-
make DESTDIR\= sitearchdir\=./.gem.20240109-
|
|
9
|
+
make DESTDIR\= sitearchdir\=./.gem.20240109-1740-wl6z5n sitelibdir\=./.gem.20240109-1740-wl6z5n
|
|
10
10
|
compiling stringio.c
|
|
11
11
|
linking shared-object stringio.so
|
|
12
12
|
|
|
13
13
|
current directory: /home/runner/work/moneykit-ruby/moneykit-ruby/vendor/bundle/ruby/3.2.0/gems/stringio-3.1.0/ext/stringio
|
|
14
|
-
make DESTDIR\= sitearchdir\=./.gem.20240109-
|
|
15
|
-
/usr/bin/install -c -m 0755 stringio.so ./.gem.20240109-
|
|
14
|
+
make DESTDIR\= sitearchdir\=./.gem.20240109-1740-wl6z5n sitelibdir\=./.gem.20240109-1740-wl6z5n install
|
|
15
|
+
/usr/bin/install -c -m 0755 stringio.so ./.gem.20240109-1740-wl6z5n
|
|
16
16
|
|
|
17
17
|
current directory: /home/runner/work/moneykit-ruby/moneykit-ruby/vendor/bundle/ruby/3.2.0/gems/stringio-3.1.0/ext/stringio
|
|
18
|
-
make DESTDIR\= sitearchdir\=./.gem.20240109-
|
|
18
|
+
make DESTDIR\= sitearchdir\=./.gem.20240109-1740-wl6z5n sitelibdir\=./.gem.20240109-1740-wl6z5n clean
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: moneykit
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- MoneyKit
|
|
@@ -324,11 +324,9 @@ files:
|
|
|
324
324
|
- lib/moneykit/models/response401_get_link_links_id_get.rb
|
|
325
325
|
- lib/moneykit/models/response401_get_transactions.rb
|
|
326
326
|
- lib/moneykit/models/response401_get_transactions_diff_links_id_transactions_sync_get.rb
|
|
327
|
-
- lib/moneykit/models/response401_get_transactions_links_id_transactions_get.rb
|
|
328
327
|
- lib/moneykit/models/response401_get_user_accounts_users_id_accounts_get.rb
|
|
329
328
|
- lib/moneykit/models/response401_get_user_links_users_id_links_get.rb
|
|
330
329
|
- lib/moneykit/models/response401_get_user_transactions.rb
|
|
331
|
-
- lib/moneykit/models/response401_get_user_transactions_users_id_transactions_get.rb
|
|
332
330
|
- lib/moneykit/models/response401_get_well_known_jwks_well_known_jwks_json_get.rb
|
|
333
331
|
- lib/moneykit/models/response401_instrospect_client_auth_introspect_get.rb
|
|
334
332
|
- lib/moneykit/models/response401_refresh_products_links_id_products_post.rb
|
|
@@ -448,7 +446,6 @@ files:
|
|
|
448
446
|
- spec/models/product_spec.rb
|
|
449
447
|
- spec/models/products_settings_spec.rb
|
|
450
448
|
- spec/models/provider_spec.rb
|
|
451
|
-
- spec/models/public_link_error_spec.rb
|
|
452
449
|
- spec/models/refresh_products_request_spec.rb
|
|
453
450
|
- spec/models/requested_link_permission_spec.rb
|
|
454
451
|
- spec/models/response401_disconnect_links_id_delete_spec.rb
|
|
@@ -463,12 +460,10 @@ files:
|
|
|
463
460
|
- spec/models/response401_get_investment_transactions_links_id_investments_transactions_get_spec.rb
|
|
464
461
|
- spec/models/response401_get_link_links_id_get_spec.rb
|
|
465
462
|
- spec/models/response401_get_transactions_diff_links_id_transactions_sync_get_spec.rb
|
|
466
|
-
- spec/models/response401_get_transactions_links_id_transactions_get_spec.rb
|
|
467
463
|
- spec/models/response401_get_transactions_spec.rb
|
|
468
464
|
- spec/models/response401_get_user_accounts_users_id_accounts_get_spec.rb
|
|
469
465
|
- spec/models/response401_get_user_links_users_id_links_get_spec.rb
|
|
470
466
|
- spec/models/response401_get_user_transactions_spec.rb
|
|
471
|
-
- spec/models/response401_get_user_transactions_users_id_transactions_get_spec.rb
|
|
472
467
|
- spec/models/response401_get_well_known_jwks_well_known_jwks_json_get_spec.rb
|
|
473
468
|
- spec/models/response401_instrospect_client_auth_introspect_get_spec.rb
|
|
474
469
|
- spec/models/response401_refresh_products_links_id_products_post_spec.rb
|
|
@@ -2340,7 +2335,6 @@ test_files:
|
|
|
2340
2335
|
- spec/api/account_numbers_api_spec.rb
|
|
2341
2336
|
- spec/api_client_spec.rb
|
|
2342
2337
|
- spec/configuration_spec.rb
|
|
2343
|
-
- spec/models/response401_get_transactions_links_id_transactions_get_spec.rb
|
|
2344
2338
|
- spec/models/transaction_updates_available_webhook_spec.rb
|
|
2345
2339
|
- spec/models/link_permission_scope_spec.rb
|
|
2346
2340
|
- spec/models/response401_refresh_products_links_id_products_post_spec.rb
|
|
@@ -2358,7 +2352,6 @@ test_files:
|
|
|
2358
2352
|
- spec/models/investments_product_settings_spec.rb
|
|
2359
2353
|
- spec/models/api_error_auth_unauthorized_response_spec.rb
|
|
2360
2354
|
- spec/models/identity_product_settings_spec.rb
|
|
2361
|
-
- spec/models/public_link_error_spec.rb
|
|
2362
2355
|
- spec/models/bacs_number_spec.rb
|
|
2363
2356
|
- spec/models/phone_number_spec.rb
|
|
2364
2357
|
- spec/models/transactions_link_product_spec.rb
|
|
@@ -2370,7 +2363,6 @@ test_files:
|
|
|
2370
2363
|
- spec/models/response401_get_investment_transactions_links_id_investments_transactions_get_spec.rb
|
|
2371
2364
|
- spec/models/introspect_client_response_spec.rb
|
|
2372
2365
|
- spec/models/get_institutions_response_spec.rb
|
|
2373
|
-
- spec/models/response401_get_user_transactions_users_id_transactions_get_spec.rb
|
|
2374
2366
|
- spec/models/owner_spec.rb
|
|
2375
2367
|
- spec/models/international_number_spec.rb
|
|
2376
2368
|
- spec/models/transaction_diff_spec.rb
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
=begin
|
|
2
|
-
#MoneyKit API
|
|
3
|
-
|
|
4
|
-
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
5
|
-
|
|
6
|
-
The version of the OpenAPI document: 0.1.0
|
|
7
|
-
|
|
8
|
-
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version: 7.1.0
|
|
10
|
-
|
|
11
|
-
=end
|
|
12
|
-
|
|
13
|
-
require 'date'
|
|
14
|
-
require 'time'
|
|
15
|
-
|
|
16
|
-
module MoneyKit
|
|
17
|
-
module Response401GetTransactionsLinksIdTransactionsGet
|
|
18
|
-
class << self
|
|
19
|
-
# List of class defined in anyOf (OpenAPI v3)
|
|
20
|
-
def openapi_any_of
|
|
21
|
-
[
|
|
22
|
-
:'APIErrorAuthExpiredAccessTokenResponse',
|
|
23
|
-
:'APIErrorAuthUnauthorizedResponse',
|
|
24
|
-
:'LinkErrorUnauthorizedAccessResponse'
|
|
25
|
-
]
|
|
26
|
-
end
|
|
27
|
-
|
|
28
|
-
# Builds the object
|
|
29
|
-
# @param [Mixed] Data to be matched against the list of anyOf items
|
|
30
|
-
# @return [Object] Returns the model or the data itself
|
|
31
|
-
def build(data)
|
|
32
|
-
# Go through the list of anyOf items and attempt to identify the appropriate one.
|
|
33
|
-
# Note:
|
|
34
|
-
# - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 })
|
|
35
|
-
# due to the way the deserialization is made in the base_object template (it just casts without verifying).
|
|
36
|
-
# - TODO: scalar values are de facto behaving as if they were nullable.
|
|
37
|
-
# - TODO: logging when debugging is set.
|
|
38
|
-
openapi_any_of.each do |klass|
|
|
39
|
-
begin
|
|
40
|
-
next if klass == :AnyType # "nullable: true"
|
|
41
|
-
typed_data = find_and_cast_into_type(klass, data)
|
|
42
|
-
return typed_data if typed_data
|
|
43
|
-
rescue # rescue all errors so we keep iterating even if the current item lookup raises
|
|
44
|
-
end
|
|
45
|
-
end
|
|
46
|
-
|
|
47
|
-
openapi_any_of.include?(:AnyType) ? data : nil
|
|
48
|
-
end
|
|
49
|
-
|
|
50
|
-
private
|
|
51
|
-
|
|
52
|
-
SchemaMismatchError = Class.new(StandardError)
|
|
53
|
-
|
|
54
|
-
# Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse.
|
|
55
|
-
def find_and_cast_into_type(klass, data)
|
|
56
|
-
return if data.nil?
|
|
57
|
-
|
|
58
|
-
case klass.to_s
|
|
59
|
-
when 'Boolean'
|
|
60
|
-
return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass)
|
|
61
|
-
when 'Float'
|
|
62
|
-
return data if data.instance_of?(Float)
|
|
63
|
-
when 'Integer'
|
|
64
|
-
return data if data.instance_of?(Integer)
|
|
65
|
-
when 'Time'
|
|
66
|
-
return Time.parse(data)
|
|
67
|
-
when 'Date'
|
|
68
|
-
return Date.parse(data)
|
|
69
|
-
when 'String'
|
|
70
|
-
return data if data.instance_of?(String)
|
|
71
|
-
when 'Object' # "type: object"
|
|
72
|
-
return data if data.instance_of?(Hash)
|
|
73
|
-
when /\AArray<(?<sub_type>.+)>\z/ # "type: array"
|
|
74
|
-
if data.instance_of?(Array)
|
|
75
|
-
sub_type = Regexp.last_match[:sub_type]
|
|
76
|
-
return data.map { |item| find_and_cast_into_type(sub_type, item) }
|
|
77
|
-
end
|
|
78
|
-
when /\AHash<String, (?<sub_type>.+)>\z/ # "type: object" with "additionalProperties: { ... }"
|
|
79
|
-
if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) }
|
|
80
|
-
sub_type = Regexp.last_match[:sub_type]
|
|
81
|
-
return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) }
|
|
82
|
-
end
|
|
83
|
-
else # model
|
|
84
|
-
const = MoneyKit.const_get(klass)
|
|
85
|
-
if const
|
|
86
|
-
if const.respond_to?(:openapi_any_of) # nested anyOf model
|
|
87
|
-
model = const.build(data)
|
|
88
|
-
return model if model
|
|
89
|
-
else
|
|
90
|
-
# raise if data contains keys that are not known to the model
|
|
91
|
-
raise unless (data.keys - const.acceptable_attributes).empty?
|
|
92
|
-
model = const.build_from_hash(data)
|
|
93
|
-
return model if model
|
|
94
|
-
end
|
|
95
|
-
end
|
|
96
|
-
end
|
|
97
|
-
|
|
98
|
-
raise # if no match by now, raise
|
|
99
|
-
rescue
|
|
100
|
-
raise SchemaMismatchError, "#{data} doesn't match the #{klass} type"
|
|
101
|
-
end
|
|
102
|
-
end
|
|
103
|
-
end
|
|
104
|
-
end
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
=begin
|
|
2
|
-
#MoneyKit API
|
|
3
|
-
|
|
4
|
-
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
5
|
-
|
|
6
|
-
The version of the OpenAPI document: 0.1.0
|
|
7
|
-
|
|
8
|
-
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version: 7.1.0
|
|
10
|
-
|
|
11
|
-
=end
|
|
12
|
-
|
|
13
|
-
require 'date'
|
|
14
|
-
require 'time'
|
|
15
|
-
|
|
16
|
-
module MoneyKit
|
|
17
|
-
module Response401GetUserTransactionsUsersIdTransactionsGet
|
|
18
|
-
class << self
|
|
19
|
-
# List of class defined in anyOf (OpenAPI v3)
|
|
20
|
-
def openapi_any_of
|
|
21
|
-
[
|
|
22
|
-
:'APIErrorAuthExpiredAccessTokenResponse',
|
|
23
|
-
:'APIErrorAuthUnauthorizedResponse'
|
|
24
|
-
]
|
|
25
|
-
end
|
|
26
|
-
|
|
27
|
-
# Builds the object
|
|
28
|
-
# @param [Mixed] Data to be matched against the list of anyOf items
|
|
29
|
-
# @return [Object] Returns the model or the data itself
|
|
30
|
-
def build(data)
|
|
31
|
-
# Go through the list of anyOf items and attempt to identify the appropriate one.
|
|
32
|
-
# Note:
|
|
33
|
-
# - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 })
|
|
34
|
-
# due to the way the deserialization is made in the base_object template (it just casts without verifying).
|
|
35
|
-
# - TODO: scalar values are de facto behaving as if they were nullable.
|
|
36
|
-
# - TODO: logging when debugging is set.
|
|
37
|
-
openapi_any_of.each do |klass|
|
|
38
|
-
begin
|
|
39
|
-
next if klass == :AnyType # "nullable: true"
|
|
40
|
-
typed_data = find_and_cast_into_type(klass, data)
|
|
41
|
-
return typed_data if typed_data
|
|
42
|
-
rescue # rescue all errors so we keep iterating even if the current item lookup raises
|
|
43
|
-
end
|
|
44
|
-
end
|
|
45
|
-
|
|
46
|
-
openapi_any_of.include?(:AnyType) ? data : nil
|
|
47
|
-
end
|
|
48
|
-
|
|
49
|
-
private
|
|
50
|
-
|
|
51
|
-
SchemaMismatchError = Class.new(StandardError)
|
|
52
|
-
|
|
53
|
-
# Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse.
|
|
54
|
-
def find_and_cast_into_type(klass, data)
|
|
55
|
-
return if data.nil?
|
|
56
|
-
|
|
57
|
-
case klass.to_s
|
|
58
|
-
when 'Boolean'
|
|
59
|
-
return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass)
|
|
60
|
-
when 'Float'
|
|
61
|
-
return data if data.instance_of?(Float)
|
|
62
|
-
when 'Integer'
|
|
63
|
-
return data if data.instance_of?(Integer)
|
|
64
|
-
when 'Time'
|
|
65
|
-
return Time.parse(data)
|
|
66
|
-
when 'Date'
|
|
67
|
-
return Date.parse(data)
|
|
68
|
-
when 'String'
|
|
69
|
-
return data if data.instance_of?(String)
|
|
70
|
-
when 'Object' # "type: object"
|
|
71
|
-
return data if data.instance_of?(Hash)
|
|
72
|
-
when /\AArray<(?<sub_type>.+)>\z/ # "type: array"
|
|
73
|
-
if data.instance_of?(Array)
|
|
74
|
-
sub_type = Regexp.last_match[:sub_type]
|
|
75
|
-
return data.map { |item| find_and_cast_into_type(sub_type, item) }
|
|
76
|
-
end
|
|
77
|
-
when /\AHash<String, (?<sub_type>.+)>\z/ # "type: object" with "additionalProperties: { ... }"
|
|
78
|
-
if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) }
|
|
79
|
-
sub_type = Regexp.last_match[:sub_type]
|
|
80
|
-
return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) }
|
|
81
|
-
end
|
|
82
|
-
else # model
|
|
83
|
-
const = MoneyKit.const_get(klass)
|
|
84
|
-
if const
|
|
85
|
-
if const.respond_to?(:openapi_any_of) # nested anyOf model
|
|
86
|
-
model = const.build(data)
|
|
87
|
-
return model if model
|
|
88
|
-
else
|
|
89
|
-
# raise if data contains keys that are not known to the model
|
|
90
|
-
raise unless (data.keys - const.acceptable_attributes).empty?
|
|
91
|
-
model = const.build_from_hash(data)
|
|
92
|
-
return model if model
|
|
93
|
-
end
|
|
94
|
-
end
|
|
95
|
-
end
|
|
96
|
-
|
|
97
|
-
raise # if no match by now, raise
|
|
98
|
-
rescue
|
|
99
|
-
raise SchemaMismatchError, "#{data} doesn't match the #{klass} type"
|
|
100
|
-
end
|
|
101
|
-
end
|
|
102
|
-
end
|
|
103
|
-
end
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
=begin
|
|
2
|
-
#MoneyKit API
|
|
3
|
-
|
|
4
|
-
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
5
|
-
|
|
6
|
-
The version of the OpenAPI document: 0.1.0
|
|
7
|
-
|
|
8
|
-
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version: 7.1.0
|
|
10
|
-
|
|
11
|
-
=end
|
|
12
|
-
|
|
13
|
-
require 'spec_helper'
|
|
14
|
-
require 'json'
|
|
15
|
-
require 'date'
|
|
16
|
-
|
|
17
|
-
# Unit tests for MoneyKit::PublicLinkError
|
|
18
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
-
# Please update as you see appropriate
|
|
20
|
-
describe MoneyKit::PublicLinkError do
|
|
21
|
-
let(:instance) { MoneyKit::PublicLinkError.new }
|
|
22
|
-
|
|
23
|
-
describe 'test an instance of PublicLinkError' do
|
|
24
|
-
it 'should create an instance of PublicLinkError' do
|
|
25
|
-
# uncomment below to test the instance creation
|
|
26
|
-
# expect(instance).to be_instance_of(MoneyKit::PublicLinkError)
|
|
27
|
-
end
|
|
28
|
-
end
|
|
29
|
-
|
|
30
|
-
end
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
=begin
|
|
2
|
-
#MoneyKit API
|
|
3
|
-
|
|
4
|
-
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
5
|
-
|
|
6
|
-
The version of the OpenAPI document: 0.1.0
|
|
7
|
-
|
|
8
|
-
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version: 7.1.0
|
|
10
|
-
|
|
11
|
-
=end
|
|
12
|
-
|
|
13
|
-
require 'spec_helper'
|
|
14
|
-
require 'json'
|
|
15
|
-
require 'date'
|
|
16
|
-
|
|
17
|
-
# Unit tests for MoneyKit::Response401GetTransactionsLinksIdTransactionsGet
|
|
18
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
-
# Please update as you see appropriate
|
|
20
|
-
describe MoneyKit::Response401GetTransactionsLinksIdTransactionsGet do
|
|
21
|
-
end
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
=begin
|
|
2
|
-
#MoneyKit API
|
|
3
|
-
|
|
4
|
-
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
5
|
-
|
|
6
|
-
The version of the OpenAPI document: 0.1.0
|
|
7
|
-
|
|
8
|
-
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version: 7.1.0
|
|
10
|
-
|
|
11
|
-
=end
|
|
12
|
-
|
|
13
|
-
require 'spec_helper'
|
|
14
|
-
require 'json'
|
|
15
|
-
require 'date'
|
|
16
|
-
|
|
17
|
-
# Unit tests for MoneyKit::Response401GetUserTransactionsUsersIdTransactionsGet
|
|
18
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
-
# Please update as you see appropriate
|
|
20
|
-
describe MoneyKit::Response401GetUserTransactionsUsersIdTransactionsGet do
|
|
21
|
-
end
|