plaid 11.1.1 → 12.0.0

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: ff4272c5568637ce017b09f9853e64adf63b49ba9fefa576df5e7e07af322c1c
4
- data.tar.gz: d11aa28f669b2ea349312eac235234e3db149c4ff719a391d90b4b68818ffe72
3
+ metadata.gz: ff88844aefb3173ccb877c8764119b67120d08a2f7d3425eef174236be4b6161
4
+ data.tar.gz: 21103e33e95a4a54d984bdd4e30c0ac7c8e750f18eb542660ed8f55fc10a91c2
5
5
  SHA512:
6
- metadata.gz: 972a79b114065e55c1c2771f535d6f429afd36a56adfc3db2e44b2e796268e61d096355a00d64f5d9f615e76888a3788ca4974cb68ede0d5205186e8eb02b69e
7
- data.tar.gz: 4f00ef2b44473d75dda5ce4212448cb1db3065ce0de57217f7762bcca818e9447314785dab45d75a0c2c226ad2bd0efec64ace628a2b4c23c238eee70c3e82df
6
+ metadata.gz: 01dd7019a4fd8ee33dc4ebc5bdd069e5c2188476e835a806d8d1e170e84d0eb00f831cba66c65ab73db7264b54a264732e0c00a811f8be94d6f03c09f1f6c2bb
7
+ data.tar.gz: 363f9143a45caacc0abb0a668f7be9ee019e082814bec7545c00e092770faf2dca0cabe9304aef0624864acdaea8afc60a0baee2fe84209f1074f6bf785e99b2
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
- # 11.1.1
2
- - Add support for Link token parameter `institution_id`
1
+ # 12.0.0
2
+
3
+ - The library has been pinned to the '2020-09-14' API release. Visit the [docs](https://plaid.com/docs/api/versioning/) to see what changed.
4
+ - the `/item/public_token/create` endpoint has been disabled in favor of the /link/token/create
5
+ endpoint
6
+ - The `/item/add_token/create endpoint` has been disabled in favor of the /link/token/create
7
+ - The `/payment_initiation/payment/token/create` endpoint has been disabled in favor of the /link/token/create
8
+ endpoint
9
+ - The `/item/remove` endpoint will no longer return a `removed` boolean.
10
+ - The `/institutions/get`, `/institutions/get_by_id`, and `/institutions/search` now require
11
+ `country_codes` to be passed in.
3
12
 
4
13
  # 11.1.0
5
14
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- plaid (11.1.1)
4
+ plaid (12.0.0)
5
5
  faraday
6
6
  faraday_middleware
7
7
  hashie (>= 3.4.3)
@@ -11,36 +11,15 @@ GEM
11
11
  specs:
12
12
  ast (2.4.0)
13
13
  dotenv (2.4.0)
14
- faraday (1.10.3)
15
- faraday-em_http (~> 1.0)
16
- faraday-em_synchrony (~> 1.0)
17
- faraday-excon (~> 1.1)
18
- faraday-httpclient (~> 1.0)
19
- faraday-multipart (~> 1.0)
20
- faraday-net_http (~> 1.0)
21
- faraday-net_http_persistent (~> 1.0)
22
- faraday-patron (~> 1.0)
23
- faraday-rack (~> 1.0)
24
- faraday-retry (~> 1.0)
25
- ruby2_keywords (>= 0.0.4)
26
- faraday-em_http (1.0.0)
27
- faraday-em_synchrony (1.0.0)
28
- faraday-excon (1.1.0)
29
- faraday-httpclient (1.0.1)
30
- faraday-multipart (1.0.4)
31
- multipart-post (~> 2)
32
- faraday-net_http (1.0.1)
33
- faraday-net_http_persistent (1.2.0)
34
- faraday-patron (1.0.0)
35
- faraday-rack (1.0.0)
36
- faraday-retry (1.0.3)
37
- faraday_middleware (1.2.0)
14
+ faraday (1.0.1)
15
+ multipart-post (>= 1.2, < 3)
16
+ faraday_middleware (1.0.0)
38
17
  faraday (~> 1.0)
39
- hashie (5.0.0)
18
+ hashie (4.1.0)
40
19
  minitest (5.11.3)
41
20
  minitest-around (0.4.1)
42
21
  minitest (~> 5.0)
43
- multipart-post (2.3.0)
22
+ multipart-post (2.1.1)
44
23
  parallel (1.12.1)
45
24
  parser (2.5.1.0)
46
25
  ast (~> 2.4.0)
@@ -56,7 +35,6 @@ GEM
56
35
  ruby-progressbar (~> 1.7)
57
36
  unicode-display_width (~> 1.0, >= 1.0.1)
58
37
  ruby-progressbar (1.9.0)
59
- ruby2_keywords (0.0.5)
60
38
  sdoc (1.0.0)
61
39
  rdoc (>= 5.0)
62
40
  unicode-display_width (1.3.2)
data/README.md CHANGED
@@ -26,7 +26,8 @@ Each major version of `plaid-ruby` targets a specific version of the Plaid API:
26
26
 
27
27
  | API version | plaid-ruby release |
28
28
  | ----------- | ------------------ |
29
- | [`2019-05-29`][api-version-2019-05-29] (**latest**) | `9.x.x`, `8.x.x`, `7.x.x` |
29
+ | [`2020-09-14`][api-version-2020-09-14] (**latest**) | `12.x.x` |
30
+ | [`2019-05-29`][api-version-2019-05-29] (**latest**) | `11.x.x`, `10.x.x`, `9.x.x`, `8.x.x`, `7.x.x` |
30
31
  | [`2018-05-22`][api-version-2018-05-22] | `6.x.x` |
31
32
  | `2017-03-08` | `5.x.x` |
32
33
 
@@ -260,3 +261,4 @@ If you're looking for a Ruby client that works with the legacy Plaid API, use th
260
261
  [version-changelog]: https://plaid.com/docs/api-upgrades
261
262
  [api-version-2018-05-22]: https://plaid.com/docs/api-upgrades#2018-05-22
262
263
  [api-version-2019-05-29]: https://plaid.com/docs/api-upgrades#2019-05-29
264
+ [api-version-2020-09-14]: https://plaid.com/docs/api-upgrades#2020-09-14
@@ -11,9 +11,10 @@ module Plaid
11
11
  # options - Options for filtering institutions.
12
12
  #
13
13
  # Returns a MultipleInstitutionsResponse instance.
14
- def get(count:, offset:, options: nil)
14
+ def get(count:, offset:, country_codes:, options: nil)
15
15
  payload = { count: count,
16
- offset: offset }
16
+ offset: offset,
17
+ country_codes: country_codes }
17
18
  payload[:options] = options unless options.nil?
18
19
 
19
20
  post_with_auth 'institutions/get',
@@ -30,9 +31,10 @@ module Plaid
30
31
  # options - Options for filtering institutions.
31
32
  #
32
33
  # Returns a SingleInstitutionResponse instance.
33
- def get_by_id(institution_id, options: nil)
34
+ def get_by_id(institution_id, country_codes, options: nil)
34
35
  payload = {
35
- institution_id: institution_id
36
+ institution_id: institution_id,
37
+ country_codes: country_codes
36
38
  }
37
39
  payload[:options] = options unless options.nil?
38
40
  post_with_auth 'institutions/get_by_id',
@@ -51,10 +53,11 @@ module Plaid
51
53
  # options - Options for filtering institutions.
52
54
  #
53
55
  # Returns a MultipleInstitutionsResponse instance.
54
- def search(query, products = nil, options: nil)
56
+ def search(query, country_codes, products = nil, options: nil)
55
57
  payload = {
56
58
  query: query,
57
- products: products
59
+ products: products,
60
+ country_codes: country_codes
58
61
  }
59
62
 
60
63
  payload[:options] = options unless options.nil?
@@ -25,57 +25,8 @@ module Plaid
25
25
  end
26
26
  end
27
27
 
28
- # Public: Class used to call the AddToken sub-product.
29
- class AddToken < BaseProduct
30
- def create(user)
31
- post_with_auth 'item/add_token/create',
32
- CreateResponse,
33
- user: user
34
- end
35
-
36
- # Public: Response for /item/add_token/create.
37
- class CreateResponse < Models::BaseResponse
38
- ##
39
- # :attr_reader:
40
- # Public: The String token.
41
- property :add_token
42
-
43
- ##
44
- # :attr_reader:
45
- # Public: The String token expiration time.
46
- property :expiration
47
- end
48
- end
49
-
50
28
  # Public: Class used to call the PublicToken sub-product
51
29
  class PublicToken < BaseProduct
52
- # Public: Creates a public token from an access_token.
53
- #
54
- # Does a POST /item/public_token/create call which can be used to
55
- # initialize Link in update mode.
56
- #
57
- # access_token - access_token to create a public token for
58
- #
59
- # Returns a CreateResponse object with a public token and expiration info.
60
- def create(access_token)
61
- post_with_auth 'item/public_token/create',
62
- CreateResponse,
63
- access_token: access_token
64
- end
65
-
66
- # Public: Response for /item/public_token/create.
67
- class CreateResponse < Models::BaseResponse
68
- ##
69
- # :attr_reader:
70
- # Public: The String token.
71
- property :public_token
72
-
73
- ##
74
- # :attr_reader:
75
- # Public: The String token expiration time.
76
- property :expiration
77
- end
78
-
79
30
  # Public: Exchange a public token for an access_token
80
31
  #
81
32
  # Does a POST /item/public_token/exchange call helps you exchange a public
@@ -146,11 +97,6 @@ module Plaid
146
97
  # Public: The Plaid::PublicToken product accessor.
147
98
  subproduct :public_token
148
99
 
149
- ##
150
- # :attr_reader:
151
- # Public: The Plaid::AddToken product accessor.
152
- subproduct :add_token
153
-
154
100
  ##
155
101
  # :attr_reader:
156
102
  # Public: The Plaid::Webhook product accessor.
@@ -12,7 +12,6 @@ LINK_TOKEN_FIELD_NAMES = %i[
12
12
  account_filters
13
13
  cross_app_item_add
14
14
  payment_initiation
15
- institution_id
16
15
  ].freeze
17
16
 
18
17
  module Plaid
@@ -53,17 +53,6 @@ module Plaid
53
53
  amount: amount
54
54
  end
55
55
 
56
- # Public: Create a payment token.
57
- #
58
- # payment_id - Payment ID that the token will be created for.
59
- #
60
- # Returns a PaymentTokenCreateResponse object.
61
- def create_payment_token(payment_id)
62
- post_with_auth 'payment_initiation/payment/token/create',
63
- PaymentTokenCreateResponse,
64
- payment_id: payment_id
65
- end
66
-
67
56
  # Public: Retrieve a payment.
68
57
  #
69
58
  # payment_id - The payment ID from the `create_payment` response.
@@ -146,19 +135,6 @@ module Plaid
146
135
  property :status
147
136
  end
148
137
 
149
- # Public: The response wrapper for /payment_initiation/payment/token/create.
150
- class PaymentTokenCreateResponse < Models::BaseResponse
151
- ##
152
- # :attr_reader:
153
- # Public: The payment token.
154
- property :payment_token
155
-
156
- ##
157
- # :attr_reader:
158
- # Public: The payment token's expiration time.
159
- property :payment_token_expiration_time
160
- end
161
-
162
138
  # Public: The response wrapper for /payment_initiation/payment/get.
163
139
  class PaymentGetResponse < Models::BaseResponse
164
140
  ##
data/lib/plaid/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Plaid
2
- VERSION = '11.1.1'.freeze
3
- API_VERSION = '2019-05-29'.freeze
2
+ VERSION = '12.0.0'.freeze
3
+ API_VERSION = '2020-09-14'.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: 11.1.1
4
+ version: 12.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Edmund Loo
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-05-17 00:00:00.000000000 Z
11
+ date: 2020-10-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -218,7 +218,7 @@ licenses:
218
218
  - MIT
219
219
  metadata:
220
220
  allowed_push_host: https://rubygems.org
221
- post_install_message:
221
+ post_install_message:
222
222
  rdoc_options: []
223
223
  require_paths:
224
224
  - lib
@@ -233,8 +233,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
233
233
  - !ruby/object:Gem::Version
234
234
  version: '0'
235
235
  requirements: []
236
- rubygems_version: 3.0.3.1
237
- signing_key:
236
+ rubygems_version: 3.0.3
237
+ signing_key:
238
238
  specification_version: 4
239
239
  summary: Ruby bindings for Plaid
240
240
  test_files: []