plaid 6.2.1 → 6.3.0

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
  SHA1:
3
- metadata.gz: bf111d6a9bdfbb9046065f0541a52897ccb710ab
4
- data.tar.gz: e51044231578014f04400ecfeec3843042470387
3
+ metadata.gz: 8b0f8b50b24fdcd21ab06a839522cf320389dced
4
+ data.tar.gz: 56fdad481084b5163928a13de8ccaeb653c0df82
5
5
  SHA512:
6
- metadata.gz: 540027ce7519c803a8d73471e25af009aa2a1a4c7ac28d91376f71ba2736fe8003b374d73b22e94b4ae59337396bec6e65fcaf8551c87d682ccd661a23878bc9
7
- data.tar.gz: 1bb721aa10c25de7d0935e7f770a058cf6c698e225dcab88de5246045fcdc5611da359c913c0643d5a63086d8c432a20953b1a052f532df48f2fd72d2ea7e120
6
+ metadata.gz: 77e142b8f3ac3c1ab131ffe98262c68e25187252f81633be9f7a4cceb1dbf0008590200e75515d939c120766c1e4cfad8e457a00325706dca23cf22008fef908
7
+ data.tar.gz: 9d2af9eb3985fe5ed9d7c5b8024950653c0b5e690c6275af329f54ecca681ee1d4cdd3ec205b755536b5bdbbc729cc6981135c137b7a54e562d83ead366e3a5a
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ # 6.3.0 5-Mar-2019
2
+
3
+ * Add support for include_institution_data to /institutions/search endpoint.
4
+ * Add support for include_institution_data to /institutions/get endpoint.
5
+ * Add support for include_institution data to /institutions/get_by_id endpoint.
6
+
1
7
  # 6.2.1 14-Feb-2019
2
8
 
3
9
  * Fix error models to support assets-related errors.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- plaid (6.2.1)
4
+ plaid (6.3.0)
5
5
  faraday
6
6
  faraday_middleware
7
7
  hashie (>= 3.4.3)
data/lib/plaid/models.rb CHANGED
@@ -581,6 +581,22 @@ module Plaid
581
581
  # Public: The Array of String product names supported by this institution.
582
582
  # E.g. ["auth", "balance", "identity", "transactions"].
583
583
  property :products
584
+
585
+ ##
586
+ # :attr_reader:
587
+ # Public: The String primary color for this institution (e.g. "#095aa6").
588
+ property :primary_color
589
+
590
+ ##
591
+ # :attr_reader:
592
+ # Public: The String base 64 encoded logo for this institution.
593
+ property :logo
594
+
595
+ ##
596
+ # :attr_reader:
597
+ # Public: The String base 64 encoded url for this institution
598
+ # E.g. "https://www.plaid.com").
599
+ property :url
584
600
  end
585
601
 
586
602
  module MFA
@@ -27,12 +27,18 @@ module Plaid
27
27
  # information for an institution by ID.
28
28
  #
29
29
  # institution_id - Specific institution id to fetch information for.
30
+ # options - Options for filtering institutions.
30
31
  #
31
32
  # Returns a SingleInstitutionResponse instance.
32
- def get_by_id(institution_id)
33
+ def get_by_id(institution_id, options: nil)
34
+ payload = {
35
+ institution_id: institution_id
36
+ }
37
+ payload[:options] = options unless options.nil?
38
+ puts "payload #{payload}"
33
39
  post_with_public_key 'institutions/get_by_id',
34
40
  SingleInstitutionResponse,
35
- institution_id: institution_id
41
+ payload
36
42
  end
37
43
 
38
44
  # Public: Get information about all available institutions matching your
@@ -43,13 +49,20 @@ module Plaid
43
49
  #
44
50
  # query - Search query to attempt to match institutions to.
45
51
  # products - Product supported filter (optional).
52
+ # options - Options for filtering institutions.
46
53
  #
47
54
  # Returns a MultipleInstitutionsResponse instance.
48
- def search(query, products = nil)
55
+ def search(query, products = nil, options: nil)
56
+ payload = {
57
+ query: query,
58
+ products: products
59
+ }
60
+
61
+ payload[:options] = options unless options.nil?
62
+
49
63
  post_with_public_key 'institutions/search',
50
64
  MultipleInstitutionsResponse,
51
- query: query,
52
- products: products
65
+ payload
53
66
  end
54
67
  end
55
68
 
data/lib/plaid/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Plaid
2
- VERSION = '6.2.1'.freeze
2
+ VERSION = '6.3.0'.freeze
3
3
  API_VERSION = '2018-05-22'.freeze
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: plaid
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.2.1
4
+ version: 6.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Edmund Loo
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-02-14 00:00:00.000000000 Z
11
+ date: 2019-03-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -227,7 +227,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
227
227
  version: '0'
228
228
  requirements: []
229
229
  rubyforge_project:
230
- rubygems_version: 2.6.14
230
+ rubygems_version: 2.5.2.3
231
231
  signing_key:
232
232
  specification_version: 4
233
233
  summary: Ruby bindings for Plaid