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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c0e601dacb32ba4abc7f085fca22ef53c347ddbbefe2a3651d017a3b1be23fbd
4
- data.tar.gz: 18e4f8ad05d11f88bff246722502b867b0f8a4fe36fe1e84055a84e793898075
3
+ metadata.gz: a77ac0761e030f960be8995fa08d1637e112c2ab3f663ab9617506bfb9c36920
4
+ data.tar.gz: 8b12d7f911160c73dec9987b37f66cd77bef6df0cb2e782f79d3ddc4b1d258e1
5
5
  SHA512:
6
- metadata.gz: c7765f5be3772112a13bbcefd1581740dc6ecbb46e5547ac8e1a3467968fb7a9058c55af7cda1cb4314303d95a4af63733c7a7c4043640078a875605a4f3c4bf
7
- data.tar.gz: 44bf79ae4a535ac08b61d802b413aab9be762251ee87c7f8110357a895a0730e9d403e5f8f04be8569b39e1d9e1a3021072eb87f7f2d44a9b0042eb703ddd7bd
6
+ metadata.gz: 18a2298de1dfbaaf3e5ea21d680eb25ea406f9f7d79e8a342d7d3564d945bedeedc9f1b2e1e439f50debe3a7b7bb4d905eef1268cca1e862cde2e29592490277
7
+ data.tar.gz: 2771f3015940bc081bd990dafd95051bf2b39634ccb28e6d4fbcd32d96a48ce74eb11afbd079c46b4c1c1b464254141128439ad5d03df20c224af3cb5574fcab
@@ -1,2 +1 @@
1
- 2.5.3
2
-
1
+ 2.6.5
@@ -1,5 +1,5 @@
1
1
  sudo: false
2
2
  language: ruby
3
3
  rvm:
4
- - 2.3.4
5
- before_install: gem install bundler -v 1.16.1
4
+ - 2.5.5
5
+ - 2.6.5
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.me_as_user_company.update(
103
- notification_filters: [{
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
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Bunq
2
- VERSION = "0.4.1"
2
+ VERSION = "0.4.2"
3
3
  end
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.1
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-09-24 00:00:00.000000000 Z
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
- rubyforge_project:
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.