plaid 11.1.0 → 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: 686ab2ca00fca888acdb2df51c73e8c7d69e8392729177b8ffa6fe153b4f12ec
4
- data.tar.gz: bf6dcb19a57c770fbe22fe9371236d4e080f1cd536d7a0c433e4dfcfc27f991f
3
+ metadata.gz: ff88844aefb3173ccb877c8764119b67120d08a2f7d3425eef174236be4b6161
4
+ data.tar.gz: 21103e33e95a4a54d984bdd4e30c0ac7c8e750f18eb542660ed8f55fc10a91c2
5
5
  SHA512:
6
- metadata.gz: b9da4ab04bf3b21192eb8b102d11deff836dc26e3ffdcb8e786de03763a701d466b3a53afb22b262ac17fad5ee8e60aa37e1b0ce2d88e4183b4519dbc1ec3a94
7
- data.tar.gz: cd282ef9020162621f103c02c82091b37b79265480284523c04bccee2ffef995127bc94da91b6a3d4468b302ebdffb85c7ba88aeaaac9908ba7ba4c9aead339a
6
+ metadata.gz: 01dd7019a4fd8ee33dc4ebc5bdd069e5c2188476e835a806d8d1e170e84d0eb00f831cba66c65ab73db7264b54a264732e0c00a811f8be94d6f03c09f1f6c2bb
7
+ data.tar.gz: 363f9143a45caacc0abb0a668f7be9ee019e082814bec7545c00e092770faf2dca0cabe9304aef0624864acdaea8afc60a0baee2fe84209f1074f6bf785e99b2
@@ -1,3 +1,15 @@
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.
12
+
1
13
  # 11.1.0
2
14
 
3
15
  - Add support for Link Token get endpoint ([#301](https://github.com/plaid/plaid-ruby/pull/301))
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- plaid (11.1.0)
4
+ plaid (12.0.0)
5
5
  faraday
6
6
  faraday_middleware
7
7
  hashie (>= 3.4.3)
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.
@@ -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
  ##
@@ -1,4 +1,4 @@
1
1
  module Plaid
2
- VERSION = '11.1.0'.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.0
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: 2020-09-15 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
@@ -234,7 +234,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
234
234
  version: '0'
235
235
  requirements: []
236
236
  rubygems_version: 3.0.3
237
- signing_key:
237
+ signing_key:
238
238
  specification_version: 4
239
239
  summary: Ruby bindings for Plaid
240
240
  test_files: []