bunq-client 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -2
- data/.travis.yml +2 -2
- data/README.md +2 -3
- data/lib/bunq/monetary_account.rb +6 -0
- data/lib/bunq/notification_filter_url.rb +16 -0
- data/lib/bunq/user.rb +5 -0
- data/lib/bunq/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a77ac0761e030f960be8995fa08d1637e112c2ab3f663ab9617506bfb9c36920
|
4
|
+
data.tar.gz: 8b12d7f911160c73dec9987b37f66cd77bef6df0cb2e782f79d3ddc4b1d258e1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 18a2298de1dfbaaf3e5ea21d680eb25ea406f9f7d79e8a342d7d3564d945bedeedc9f1b2e1e439f50debe3a7b7bb4d905eef1268cca1e862cde2e29592490277
|
7
|
+
data.tar.gz: 2771f3015940bc081bd990dafd95051bf2b39634ccb28e6d4fbcd32d96a48ce74eb11afbd079c46b4c1c1b464254141128439ad5d03df20c224af3cb5574fcab
|
data/.ruby-version
CHANGED
@@ -1,2 +1 @@
|
|
1
|
-
2.5
|
2
|
-
|
1
|
+
2.6.5
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -99,9 +99,8 @@ Bunq.configure do |config|
|
|
99
99
|
cofig.installation_token = 'THE INSTALLATION TOKEN RETURNED IN STEP 1'
|
100
100
|
end
|
101
101
|
|
102
|
-
Bunq.client.
|
103
|
-
|
104
|
-
"notification_delivery_method": "URL",
|
102
|
+
Bunq.client.me_as_user.notification_filter_url.create(
|
103
|
+
[{
|
105
104
|
"notification_target": 'https://YOUR_CALLBACK_URL',
|
106
105
|
"category": "PAYMENT"
|
107
106
|
}]
|
@@ -1,3 +1,5 @@
|
|
1
|
+
require_relative 'notification_filter_url'
|
2
|
+
|
1
3
|
module Bunq
|
2
4
|
##
|
3
5
|
# https://doc.bunq.com/api/1/call/monetary-account
|
@@ -19,5 +21,9 @@ module Bunq
|
|
19
21
|
def show
|
20
22
|
@resource.with_session { @resource.get }['Response']
|
21
23
|
end
|
24
|
+
|
25
|
+
def notification_filter_url
|
26
|
+
Bunq::NotificationFilterUrl.new(@resource)
|
27
|
+
end
|
22
28
|
end
|
23
29
|
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
module Bunq
|
2
|
+
# https://doc.bunq.com/#/notification-filter-url
|
3
|
+
class NotificationFilterUrl
|
4
|
+
def initialize(parent_resource)
|
5
|
+
@resource = parent_resource.append("/notification-filter-url")
|
6
|
+
end
|
7
|
+
|
8
|
+
def create(notification_filters)
|
9
|
+
@resource.with_session { @resource.post({notification_filters: notification_filters})}['Response']
|
10
|
+
end
|
11
|
+
|
12
|
+
def show
|
13
|
+
@resource.with_session { @resource.get }['Response']
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
data/lib/bunq/user.rb
CHANGED
@@ -6,6 +6,7 @@ require_relative 'draft_share_invite_banks'
|
|
6
6
|
require_relative 'certificate_pinned'
|
7
7
|
require_relative 'card'
|
8
8
|
require_relative 'cards'
|
9
|
+
require_relative 'notification_filter_url'
|
9
10
|
|
10
11
|
module Bunq
|
11
12
|
class User
|
@@ -41,6 +42,10 @@ module Bunq
|
|
41
42
|
Bunq::Cards.new(@resource)
|
42
43
|
end
|
43
44
|
|
45
|
+
def notification_filter_url
|
46
|
+
Bunq::NotificationFilterUrl.new(@resource)
|
47
|
+
end
|
48
|
+
|
44
49
|
def show
|
45
50
|
@resource.with_session { @resource.get }['Response']
|
46
51
|
end
|
data/lib/bunq/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bunq-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lars Vonk
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: exe
|
13
13
|
cert_chain: []
|
14
|
-
date: 2019-
|
14
|
+
date: 2019-12-17 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: rest-client
|
@@ -161,6 +161,7 @@ files:
|
|
161
161
|
- lib/bunq/installations.rb
|
162
162
|
- lib/bunq/monetary_account.rb
|
163
163
|
- lib/bunq/monetary_accounts.rb
|
164
|
+
- lib/bunq/notification_filter_url.rb
|
164
165
|
- lib/bunq/paginated.rb
|
165
166
|
- lib/bunq/payment.rb
|
166
167
|
- lib/bunq/payments.rb
|
@@ -191,8 +192,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
191
192
|
- !ruby/object:Gem::Version
|
192
193
|
version: '0'
|
193
194
|
requirements: []
|
194
|
-
|
195
|
-
rubygems_version: 2.7.6
|
195
|
+
rubygems_version: 3.0.3
|
196
196
|
signing_key:
|
197
197
|
specification_version: 4
|
198
198
|
summary: Ruby client for the bunq public API.
|