bridge_bankin 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci-analysis.yml +1 -1
- data/.github/workflows/rubocop-analysis.yml +1 -1
- data/.gitignore +1 -0
- data/.rubocop.yml +7 -1
- data/Gemfile.lock +2 -2
- data/bridge_bankin.gemspec +1 -1
- data/lib/bridge_bankin/account.rb +5 -4
- data/lib/bridge_bankin/bank.rb +4 -4
- data/lib/bridge_bankin/bridge_object.rb +2 -2
- data/lib/bridge_bankin/category.rb +4 -4
- data/lib/bridge_bankin/connect.rb +12 -12
- data/lib/bridge_bankin/insight.rb +2 -2
- data/lib/bridge_bankin/item.rb +9 -9
- data/lib/bridge_bankin/stock.rb +6 -6
- data/lib/bridge_bankin/transaction.rb +12 -12
- data/lib/bridge_bankin/transfer.rb +12 -12
- data/lib/bridge_bankin/user.rb +16 -16
- data/lib/bridge_bankin/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ec22341b5297fecb1bb8dc06a69f62e26be5d3c092dc215702a304540a8960f8
|
4
|
+
data.tar.gz: d4a1d8185765bc9ffdecc620f2b7593e64f4ba5eae833d2b3a372a9eb3dc3b3a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1b5e9d70c4a02a67f42ea41b10e470db0d7055f25fd7fd9794680969c16372d0f85adeb63389f0ea6aa18dc7df1657ac0223373a5a2894e2ae6497ca7b740a5c
|
7
|
+
data.tar.gz: 03341fd0cbd98224ee208adf95e3bd928214b768351e02dbc8660f7473b16522e87a09fa9ac128759223513e07620ca03d8c650a3a990b011d7f9186797dc550
|
data/.gitignore
CHANGED
data/.rubocop.yml
CHANGED
@@ -3,7 +3,7 @@ require:
|
|
3
3
|
- rubocop-rspec
|
4
4
|
|
5
5
|
AllCops:
|
6
|
-
TargetRubyVersion:
|
6
|
+
TargetRubyVersion: 3.0.0
|
7
7
|
NewCops: enable
|
8
8
|
|
9
9
|
Style/StringLiterals:
|
@@ -40,3 +40,9 @@ RSpec/SubjectStub:
|
|
40
40
|
|
41
41
|
RSpec/MultipleDescribes:
|
42
42
|
Enabled: false
|
43
|
+
|
44
|
+
RSpec/StubbedMock:
|
45
|
+
Enabled: false
|
46
|
+
|
47
|
+
RSpec/MultipleExpectations:
|
48
|
+
Enabled: false
|
data/Gemfile.lock
CHANGED
data/bridge_bankin.gemspec
CHANGED
@@ -15,7 +15,7 @@ Gem::Specification.new do |spec|
|
|
15
15
|
|
16
16
|
spec.homepage = "https://github.com/neatops/bridge_bankin"
|
17
17
|
spec.license = "MIT"
|
18
|
-
spec.required_ruby_version = Gem::Requirement.new(">=
|
18
|
+
spec.required_ruby_version = Gem::Requirement.new(">= 3.0.0")
|
19
19
|
|
20
20
|
spec.metadata["homepage_uri"] = spec.homepage
|
21
21
|
spec.metadata["source_code_uri"] = spec.homepage
|
@@ -20,8 +20,9 @@ module BridgeBankin
|
|
20
20
|
#
|
21
21
|
def list(access_token:, **params)
|
22
22
|
protected_resource(access_token) do
|
23
|
-
data = api_client.get("/v2/accounts", params)
|
24
|
-
|
23
|
+
data = api_client.get("/v2/accounts", **params)
|
24
|
+
# binding.pry
|
25
|
+
convert_to_bridge_object(**data)
|
25
26
|
end
|
26
27
|
end
|
27
28
|
|
@@ -36,8 +37,8 @@ module BridgeBankin
|
|
36
37
|
#
|
37
38
|
def find(id:, access_token:, **params)
|
38
39
|
protected_resource(access_token) do
|
39
|
-
data = api_client.get("/v2/accounts/#{id}", params)
|
40
|
-
convert_to_bridge_object(data)
|
40
|
+
data = api_client.get("/v2/accounts/#{id}", **params)
|
41
|
+
convert_to_bridge_object(**data)
|
41
42
|
end
|
42
43
|
end
|
43
44
|
end
|
data/lib/bridge_bankin/bank.rb
CHANGED
@@ -18,8 +18,8 @@ module BridgeBankin
|
|
18
18
|
# @return [Array<Bank>] the supported banks list
|
19
19
|
#
|
20
20
|
def list(**params)
|
21
|
-
data = api_client.get("/v2/banks", params)
|
22
|
-
convert_to_bridge_object(data)
|
21
|
+
data = api_client.get("/v2/banks", **params)
|
22
|
+
convert_to_bridge_object(**data)
|
23
23
|
end
|
24
24
|
|
25
25
|
#
|
@@ -31,8 +31,8 @@ module BridgeBankin
|
|
31
31
|
# @return [Bank] the requested bank
|
32
32
|
#
|
33
33
|
def find(id:, **params)
|
34
|
-
data = api_client.get("/v2/banks/#{id}", params)
|
35
|
-
convert_to_bridge_object(data)
|
34
|
+
data = api_client.get("/v2/banks/#{id}", **params)
|
35
|
+
convert_to_bridge_object(**data)
|
36
36
|
end
|
37
37
|
end
|
38
38
|
end
|
@@ -24,7 +24,7 @@ module BridgeBankin
|
|
24
24
|
#
|
25
25
|
# @return [Account, Bank, Category, Item, Stock, Transaction, Transfer, User, BridgeObject] a resource object
|
26
26
|
#
|
27
|
-
def convert_to_bridge_object(
|
27
|
+
def convert_to_bridge_object(data)
|
28
28
|
if data[:resources]
|
29
29
|
data[:resources].map { |resource| convert_to_bridge_object(resource) }
|
30
30
|
elsif data.is_a?(Array)
|
@@ -41,7 +41,7 @@ module BridgeBankin
|
|
41
41
|
end
|
42
42
|
|
43
43
|
def object_from_resource_type(data)
|
44
|
-
object_classes.fetch(data[:resource_type], BridgeObject).new(data)
|
44
|
+
object_classes.fetch(data[:resource_type], BridgeObject).new(**data)
|
45
45
|
end
|
46
46
|
end
|
47
47
|
|
@@ -18,8 +18,8 @@ module BridgeBankin
|
|
18
18
|
# @return [Array<Category>] the supported categories list
|
19
19
|
#
|
20
20
|
def list(**params)
|
21
|
-
data = api_client.get("/v2/categories", params)
|
22
|
-
convert_to_bridge_object(data)
|
21
|
+
data = api_client.get("/v2/categories", **params)
|
22
|
+
convert_to_bridge_object(**data)
|
23
23
|
end
|
24
24
|
|
25
25
|
#
|
@@ -31,8 +31,8 @@ module BridgeBankin
|
|
31
31
|
# @return [Category] the requested category
|
32
32
|
#
|
33
33
|
def find(id:, **params)
|
34
|
-
data = api_client.get("/v2/categories/#{id}", params)
|
35
|
-
convert_to_bridge_object(data)
|
34
|
+
data = api_client.get("/v2/categories/#{id}", **params)
|
35
|
+
convert_to_bridge_object(**data)
|
36
36
|
end
|
37
37
|
end
|
38
38
|
end
|
@@ -18,8 +18,8 @@ module BridgeBankin
|
|
18
18
|
#
|
19
19
|
def connect_item(access_token:, **params)
|
20
20
|
protected_resource(access_token) do
|
21
|
-
data = api_client.get("/v2/connect/items/add/url", params)
|
22
|
-
convert_to_bridge_object(data)
|
21
|
+
data = api_client.get("/v2/connect/items/add/url", **params)
|
22
|
+
convert_to_bridge_object(**data)
|
23
23
|
end
|
24
24
|
end
|
25
25
|
|
@@ -33,8 +33,8 @@ module BridgeBankin
|
|
33
33
|
#
|
34
34
|
def connect_item_with_iban(access_token:, **params)
|
35
35
|
protected_resource(access_token) do
|
36
|
-
data = api_client.post("/v2/connect/items/add/url", params)
|
37
|
-
convert_to_bridge_object(data)
|
36
|
+
data = api_client.post("/v2/connect/items/add/url", **params)
|
37
|
+
convert_to_bridge_object(**data)
|
38
38
|
end
|
39
39
|
end
|
40
40
|
|
@@ -48,8 +48,8 @@ module BridgeBankin
|
|
48
48
|
#
|
49
49
|
def edit_item(access_token:, **params)
|
50
50
|
protected_resource(access_token) do
|
51
|
-
data = api_client.get("/v2/connect/items/edit/url", params)
|
52
|
-
convert_to_bridge_object(data)
|
51
|
+
data = api_client.get("/v2/connect/items/edit/url", **params)
|
52
|
+
convert_to_bridge_object(**data)
|
53
53
|
end
|
54
54
|
end
|
55
55
|
|
@@ -64,8 +64,8 @@ module BridgeBankin
|
|
64
64
|
#
|
65
65
|
def item_sync(access_token:, **params)
|
66
66
|
protected_resource(access_token) do
|
67
|
-
data = api_client.get("/v2/connect/items/sync", params)
|
68
|
-
convert_to_bridge_object(data)
|
67
|
+
data = api_client.get("/v2/connect/items/sync", **params)
|
68
|
+
convert_to_bridge_object(**data)
|
69
69
|
end
|
70
70
|
end
|
71
71
|
|
@@ -79,8 +79,8 @@ module BridgeBankin
|
|
79
79
|
#
|
80
80
|
def validate_email(access_token:, **params)
|
81
81
|
protected_resource(access_token) do
|
82
|
-
data = api_client.get("/v2/connect/users/email/confirmation/url", params)
|
83
|
-
convert_to_bridge_object(data)
|
82
|
+
data = api_client.get("/v2/connect/users/email/confirmation/url", **params)
|
83
|
+
convert_to_bridge_object(**data)
|
84
84
|
end
|
85
85
|
end
|
86
86
|
|
@@ -94,8 +94,8 @@ module BridgeBankin
|
|
94
94
|
#
|
95
95
|
def validate_pro_items(access_token:, **params)
|
96
96
|
protected_resource(access_token) do
|
97
|
-
data = api_client.get("/v2/connect/items/pro/confirmation/url", params)
|
98
|
-
convert_to_bridge_object(data)
|
97
|
+
data = api_client.get("/v2/connect/items/pro/confirmation/url", **params)
|
98
|
+
convert_to_bridge_object(**data)
|
99
99
|
end
|
100
100
|
end
|
101
101
|
end
|
@@ -18,8 +18,8 @@ module BridgeBankin
|
|
18
18
|
#
|
19
19
|
def categories_insights(access_token:, **params)
|
20
20
|
protected_resource(access_token) do
|
21
|
-
data = api_client.get("/v2/insights/category", params)
|
22
|
-
convert_to_bridge_object(data)
|
21
|
+
data = api_client.get("/v2/insights/category", **params)
|
22
|
+
convert_to_bridge_object(**data)
|
23
23
|
end
|
24
24
|
end
|
25
25
|
end
|
data/lib/bridge_bankin/item.rb
CHANGED
@@ -22,8 +22,8 @@ module BridgeBankin
|
|
22
22
|
#
|
23
23
|
def list(access_token:, **params)
|
24
24
|
protected_resource(access_token) do
|
25
|
-
data = api_client.get("/v2/items", params)
|
26
|
-
convert_to_bridge_object(data)
|
25
|
+
data = api_client.get("/v2/items", **params)
|
26
|
+
convert_to_bridge_object(**data)
|
27
27
|
end
|
28
28
|
end
|
29
29
|
|
@@ -38,8 +38,8 @@ module BridgeBankin
|
|
38
38
|
#
|
39
39
|
def find(id:, access_token:, **params)
|
40
40
|
protected_resource(access_token) do
|
41
|
-
data = api_client.get("/v2/items/#{id}", params)
|
42
|
-
convert_to_bridge_object(data)
|
41
|
+
data = api_client.get("/v2/items/#{id}", **params)
|
42
|
+
convert_to_bridge_object(**data)
|
43
43
|
end
|
44
44
|
end
|
45
45
|
|
@@ -54,8 +54,8 @@ module BridgeBankin
|
|
54
54
|
#
|
55
55
|
def refresh(id:, access_token:, **params)
|
56
56
|
protected_resource(access_token) do
|
57
|
-
data = api_client.post("/v2/items/#{id}/refresh", params)
|
58
|
-
convert_to_bridge_object(data)
|
57
|
+
data = api_client.post("/v2/items/#{id}/refresh", **params)
|
58
|
+
convert_to_bridge_object(**data)
|
59
59
|
end
|
60
60
|
end
|
61
61
|
|
@@ -70,8 +70,8 @@ module BridgeBankin
|
|
70
70
|
#
|
71
71
|
def refresh_status(id:, access_token:, **params)
|
72
72
|
protected_resource(access_token) do
|
73
|
-
data = api_client.get("/v2/items/#{id}/refresh/status", params)
|
74
|
-
convert_to_bridge_object(data)
|
73
|
+
data = api_client.get("/v2/items/#{id}/refresh/status", **params)
|
74
|
+
convert_to_bridge_object(**data)
|
75
75
|
end
|
76
76
|
end
|
77
77
|
|
@@ -86,7 +86,7 @@ module BridgeBankin
|
|
86
86
|
#
|
87
87
|
def delete(id:, access_token:, **params)
|
88
88
|
protected_resource(access_token) do
|
89
|
-
api_client.delete("/v2/items/#{id}", params)
|
89
|
+
api_client.delete("/v2/items/#{id}", **params)
|
90
90
|
true
|
91
91
|
end
|
92
92
|
end
|
data/lib/bridge_bankin/stock.rb
CHANGED
@@ -20,8 +20,8 @@ module BridgeBankin
|
|
20
20
|
#
|
21
21
|
def list(access_token:, **params)
|
22
22
|
protected_resource(access_token) do
|
23
|
-
data = api_client.get("/v2/stocks", params)
|
24
|
-
convert_to_bridge_object(data)
|
23
|
+
data = api_client.get("/v2/stocks", **params)
|
24
|
+
convert_to_bridge_object(**data)
|
25
25
|
end
|
26
26
|
end
|
27
27
|
|
@@ -35,8 +35,8 @@ module BridgeBankin
|
|
35
35
|
#
|
36
36
|
def list_updated(access_token:, **params)
|
37
37
|
protected_resource(access_token) do
|
38
|
-
data = api_client.get("/v2/stocks/updated", params)
|
39
|
-
convert_to_bridge_object(data)
|
38
|
+
data = api_client.get("/v2/stocks/updated", **params)
|
39
|
+
convert_to_bridge_object(**data)
|
40
40
|
end
|
41
41
|
end
|
42
42
|
|
@@ -51,8 +51,8 @@ module BridgeBankin
|
|
51
51
|
#
|
52
52
|
def find(id:, access_token:, **params)
|
53
53
|
protected_resource(access_token) do
|
54
|
-
data = api_client.get("/v2/stocks/#{id}", params)
|
55
|
-
convert_to_bridge_object(data)
|
54
|
+
data = api_client.get("/v2/stocks/#{id}", **params)
|
55
|
+
convert_to_bridge_object(**data)
|
56
56
|
end
|
57
57
|
end
|
58
58
|
end
|
@@ -20,8 +20,8 @@ module BridgeBankin
|
|
20
20
|
#
|
21
21
|
def list(access_token:, **params)
|
22
22
|
protected_resource(access_token) do
|
23
|
-
data = api_client.get("/v2/transactions", params)
|
24
|
-
convert_to_bridge_object(data)
|
23
|
+
data = api_client.get("/v2/transactions", **params)
|
24
|
+
convert_to_bridge_object(**data)
|
25
25
|
end
|
26
26
|
end
|
27
27
|
|
@@ -35,8 +35,8 @@ module BridgeBankin
|
|
35
35
|
#
|
36
36
|
def list_updated(access_token:, **params)
|
37
37
|
protected_resource(access_token) do
|
38
|
-
data = api_client.get("/v2/transactions/updated", params)
|
39
|
-
convert_to_bridge_object(data)
|
38
|
+
data = api_client.get("/v2/transactions/updated", **params)
|
39
|
+
convert_to_bridge_object(**data)
|
40
40
|
end
|
41
41
|
end
|
42
42
|
|
@@ -51,8 +51,8 @@ module BridgeBankin
|
|
51
51
|
#
|
52
52
|
def find(id:, access_token:, **params)
|
53
53
|
protected_resource(access_token) do
|
54
|
-
data = api_client.get("/v2/transactions/#{id}", params)
|
55
|
-
convert_to_bridge_object(data)
|
54
|
+
data = api_client.get("/v2/transactions/#{id}", **params)
|
55
|
+
convert_to_bridge_object(**data)
|
56
56
|
end
|
57
57
|
end
|
58
58
|
|
@@ -66,8 +66,8 @@ module BridgeBankin
|
|
66
66
|
#
|
67
67
|
def list_by_account(account_id:, access_token:, **params)
|
68
68
|
protected_resource(access_token) do
|
69
|
-
data = api_client.get("/v2/accounts/#{account_id}/transactions", params)
|
70
|
-
convert_to_bridge_object(data)
|
69
|
+
data = api_client.get("/v2/accounts/#{account_id}/transactions", **params)
|
70
|
+
convert_to_bridge_object(**data)
|
71
71
|
end
|
72
72
|
end
|
73
73
|
|
@@ -81,8 +81,8 @@ module BridgeBankin
|
|
81
81
|
#
|
82
82
|
def list_updated_by_account(account_id:, access_token:, **params)
|
83
83
|
protected_resource(access_token) do
|
84
|
-
data = api_client.get("/v2/accounts/#{account_id}/transactions/updated", params)
|
85
|
-
convert_to_bridge_object(data)
|
84
|
+
data = api_client.get("/v2/accounts/#{account_id}/transactions/updated", **params)
|
85
|
+
convert_to_bridge_object(**data)
|
86
86
|
end
|
87
87
|
end
|
88
88
|
|
@@ -96,8 +96,8 @@ module BridgeBankin
|
|
96
96
|
#
|
97
97
|
def list_by_iban(access_token:, **params)
|
98
98
|
protected_resource(access_token) do
|
99
|
-
data = api_client.post("/v2/transactions/search", params)
|
100
|
-
convert_to_bridge_object(data)
|
99
|
+
data = api_client.post("/v2/transactions/search", **params)
|
100
|
+
convert_to_bridge_object(**data)
|
101
101
|
end
|
102
102
|
end
|
103
103
|
end
|
@@ -20,8 +20,8 @@ module BridgeBankin
|
|
20
20
|
#
|
21
21
|
def send(access_token:, **params)
|
22
22
|
protected_resource(access_token) do
|
23
|
-
data = api_client.post("/v2/pay/transfer/url", params)
|
24
|
-
convert_to_bridge_object(data)
|
23
|
+
data = api_client.post("/v2/pay/transfer/url", **params)
|
24
|
+
convert_to_bridge_object(**data)
|
25
25
|
end
|
26
26
|
end
|
27
27
|
|
@@ -35,8 +35,8 @@ module BridgeBankin
|
|
35
35
|
#
|
36
36
|
def list(access_token:, **params)
|
37
37
|
protected_resource(access_token) do
|
38
|
-
data = api_client.get("/v2/transfers", params)
|
39
|
-
convert_to_bridge_object(data)
|
38
|
+
data = api_client.get("/v2/transfers", **params)
|
39
|
+
convert_to_bridge_object(**data)
|
40
40
|
end
|
41
41
|
end
|
42
42
|
|
@@ -51,8 +51,8 @@ module BridgeBankin
|
|
51
51
|
#
|
52
52
|
def find(uuid:, access_token:, **params)
|
53
53
|
protected_resource(access_token) do
|
54
|
-
data = api_client.get("/v2/transfers/#{uuid}", params)
|
55
|
-
convert_to_bridge_object(data)
|
54
|
+
data = api_client.get("/v2/transfers/#{uuid}", **params)
|
55
|
+
convert_to_bridge_object(**data)
|
56
56
|
end
|
57
57
|
end
|
58
58
|
|
@@ -66,8 +66,8 @@ module BridgeBankin
|
|
66
66
|
#
|
67
67
|
def list_all_sender_accounts(access_token:, **params)
|
68
68
|
protected_resource(access_token) do
|
69
|
-
data = api_client.get("/v2/transfers/accounts/senders", params)
|
70
|
-
convert_to_bridge_object(data)
|
69
|
+
data = api_client.get("/v2/transfers/accounts/senders", **params)
|
70
|
+
convert_to_bridge_object(**data)
|
71
71
|
end
|
72
72
|
end
|
73
73
|
|
@@ -81,8 +81,8 @@ module BridgeBankin
|
|
81
81
|
#
|
82
82
|
def list_all_receiver_accounts(access_token:, **params)
|
83
83
|
protected_resource(access_token) do
|
84
|
-
data = api_client.get("/v2/transfers/accounts/receivers", params)
|
85
|
-
convert_to_bridge_object(data)
|
84
|
+
data = api_client.get("/v2/transfers/accounts/receivers", **params)
|
85
|
+
convert_to_bridge_object(**data)
|
86
86
|
end
|
87
87
|
end
|
88
88
|
|
@@ -97,8 +97,8 @@ module BridgeBankin
|
|
97
97
|
#
|
98
98
|
def list_receiver_accounts_for_sender(sender_account_id:, access_token:, **params)
|
99
99
|
protected_resource(access_token) do
|
100
|
-
data = api_client.get("/v2/transfers/accounts/#{sender_account_id}/receivers", params)
|
101
|
-
convert_to_bridge_object(data)
|
100
|
+
data = api_client.get("/v2/transfers/accounts/#{sender_account_id}/receivers", **params)
|
101
|
+
convert_to_bridge_object(**data)
|
102
102
|
end
|
103
103
|
end
|
104
104
|
end
|
data/lib/bridge_bankin/user.rb
CHANGED
@@ -18,8 +18,8 @@ module BridgeBankin
|
|
18
18
|
# @return [Array<User>] the registered users list
|
19
19
|
#
|
20
20
|
def list(**params)
|
21
|
-
data = api_client.get("/v2/users", params)
|
22
|
-
convert_to_bridge_object(data)
|
21
|
+
data = api_client.get("/v2/users", **params)
|
22
|
+
convert_to_bridge_object(**data)
|
23
23
|
end
|
24
24
|
|
25
25
|
#
|
@@ -31,8 +31,8 @@ module BridgeBankin
|
|
31
31
|
# @return [User] the requested user
|
32
32
|
#
|
33
33
|
def find(uuid:, **params)
|
34
|
-
data = api_client.get("/v2/users/#{uuid}", params)
|
35
|
-
convert_to_bridge_object(data)
|
34
|
+
data = api_client.get("/v2/users/#{uuid}", **params)
|
35
|
+
convert_to_bridge_object(**data)
|
36
36
|
end
|
37
37
|
|
38
38
|
#
|
@@ -43,8 +43,8 @@ module BridgeBankin
|
|
43
43
|
# @return [User] the newly created user
|
44
44
|
#
|
45
45
|
def create(**params)
|
46
|
-
data = api_client.post("/v2/users", params)
|
47
|
-
convert_to_bridge_object(data)
|
46
|
+
data = api_client.post("/v2/users", **params)
|
47
|
+
convert_to_bridge_object(**data)
|
48
48
|
end
|
49
49
|
|
50
50
|
#
|
@@ -56,8 +56,8 @@ module BridgeBankin
|
|
56
56
|
# @return [User] the updated user
|
57
57
|
#
|
58
58
|
def update_email(uuid:, **params)
|
59
|
-
data = api_client.put("/v2/users/#{uuid}/email", params)
|
60
|
-
convert_to_bridge_object(data)
|
59
|
+
data = api_client.put("/v2/users/#{uuid}/email", **params)
|
60
|
+
convert_to_bridge_object(**data)
|
61
61
|
end
|
62
62
|
|
63
63
|
#
|
@@ -69,8 +69,8 @@ module BridgeBankin
|
|
69
69
|
# @return [User] the updated user
|
70
70
|
#
|
71
71
|
def update_password(uuid:, **params)
|
72
|
-
data = api_client.put("/v2/users/#{uuid}/password", params)
|
73
|
-
convert_to_bridge_object(data)
|
72
|
+
data = api_client.put("/v2/users/#{uuid}/password", **params)
|
73
|
+
convert_to_bridge_object(**data)
|
74
74
|
end
|
75
75
|
|
76
76
|
#
|
@@ -82,7 +82,7 @@ module BridgeBankin
|
|
82
82
|
# @return [Boolean] the request success status
|
83
83
|
#
|
84
84
|
def delete_user(uuid:, **params)
|
85
|
-
api_client.delete("/v2/users/#{uuid}", params)
|
85
|
+
api_client.delete("/v2/users/#{uuid}", **params)
|
86
86
|
true
|
87
87
|
end
|
88
88
|
|
@@ -94,7 +94,7 @@ module BridgeBankin
|
|
94
94
|
# @return [Boolean] the request success status
|
95
95
|
#
|
96
96
|
def delete_all_users(**params)
|
97
|
-
api_client.delete("/v2/users", params)
|
97
|
+
api_client.delete("/v2/users", **params)
|
98
98
|
true
|
99
99
|
end
|
100
100
|
|
@@ -108,8 +108,8 @@ module BridgeBankin
|
|
108
108
|
#
|
109
109
|
def check_email_confirmation(access_token:, **params)
|
110
110
|
protected_resource(access_token) do
|
111
|
-
data = api_client.get("/v2/users/me/email/confirmation", params)
|
112
|
-
convert_to_bridge_object(data)
|
111
|
+
data = api_client.get("/v2/users/me/email/confirmation", **params)
|
112
|
+
convert_to_bridge_object(**data)
|
113
113
|
end
|
114
114
|
end
|
115
115
|
|
@@ -123,8 +123,8 @@ module BridgeBankin
|
|
123
123
|
#
|
124
124
|
def manage_accounts(access_token:, **params)
|
125
125
|
protected_resource(access_token) do
|
126
|
-
data = api_client.get("/v2/users/manage/accounts/iban", params)
|
127
|
-
convert_to_bridge_object(data)
|
126
|
+
data = api_client.get("/v2/users/manage/accounts/iban", **params)
|
127
|
+
convert_to_bridge_object(**data)
|
128
128
|
end
|
129
129
|
end
|
130
130
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bridge_bankin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Olivier Buffon
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-07-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: awesome_print
|
@@ -207,7 +207,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
207
207
|
requirements:
|
208
208
|
- - ">="
|
209
209
|
- !ruby/object:Gem::Version
|
210
|
-
version:
|
210
|
+
version: 3.0.0
|
211
211
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
212
212
|
requirements:
|
213
213
|
- - ">="
|