finapps 5.0.12 → 5.0.13

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3f4a66ab17136460a75d19c0cd0871e6ee4dc57f5150e33c85ed9c7e5f4707d9
4
- data.tar.gz: 2c99db87678614f5a0796912eecb00d3bf8e9b5cea69b714224db12faaabe7b7
3
+ metadata.gz: e76401d8f5d3d2c4850fb765e007d70808dcb8a7886bb238f6d7ef2f7cb1be24
4
+ data.tar.gz: e0030ef2a516c409b9f2afa21f1971275a6fc25a45dd724bb3c81e1b3f6b6d81
5
5
  SHA512:
6
- metadata.gz: cc600f3dfa1031045b2d7a3d5b61e17fc7bafe1bba6e300c2e741ac9fce0f01578bd4a9cebdeb9650c378c90c72d64e26db25b5002e77038e172f59361a325d6
7
- data.tar.gz: 677f765fbc3e843932ea54335b5b552c1d6bd63e96a6545b9d3f2060efdeebd1627c503088d2c40d3edc9cbb467ecff8ecb54367060522fd7071f09435e3b4e1
6
+ metadata.gz: 82635ddd557d64752c0778067b80405001bd1a11b123fc7805221422cb51f5e0587dd1dad266882e6d108d973406ab9493da23cdc9064ebc66a2eb22c0934d05
7
+ data.tar.gz: 81ef62a5c19146479a42afaac2c51ca6f6f2aabef48b81c77eecd44421568d8df7575f969f1fc58c424a8ae9b6323d26c7a761d3325f4db05fc00582c9640a4a
@@ -4,11 +4,11 @@ module FinApps
4
4
  module REST
5
5
  class PlaidAccountPermissions < PlaidResources # :nodoc:
6
6
  def create(id)
7
- send_request 'p/accounts/permissions', :put, [id]
7
+ send_request 'p/accounts/permissions', :put, ids: [id]
8
8
  end
9
9
 
10
10
  def destroy(id)
11
- send_request 'p/accounts/permissions', :delete, [id]
11
+ send_request 'p/accounts/permissions', :delete, ids: [id]
12
12
  end
13
13
  end
14
14
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FinApps
4
- VERSION = '5.0.12'
4
+ VERSION = '5.0.13'
5
5
  end
@@ -57,10 +57,22 @@ class FakeApi < Sinatra::Base
57
57
  json_response 200, 'plaid/account/show.json'
58
58
  end
59
59
  put("/#{version}/p/accounts/permissions") do
60
- status 204
60
+ request.body.rewind
61
+ request_payload = JSON.parse request.body.read
62
+ if request_payload.respond_to?(:key?) && request_payload.key?('ids')
63
+ status 204
64
+ else
65
+ json_response 400, 'invalid_request_body.json'
66
+ end
61
67
  end
62
68
  delete("/#{version}/p/accounts/permissions") do
63
- status 204
69
+ request.body.rewind
70
+ request_payload = JSON.parse request.body.read
71
+ if request_payload.respond_to?(:key?) && request_payload.key?('ids')
72
+ status 204
73
+ else
74
+ json_response 400, 'invalid_request_body.json'
75
+ end
64
76
  end
65
77
 
66
78
  # version
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: finapps
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.12
4
+ version: 5.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Erich Quintero