plaid 13.1.0 → 13.2.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
  SHA256:
3
- metadata.gz: faabd7aeb11ab3291ac2880c309e6d2a92a454b6b61b3baa71f2dd9533eaeb87
4
- data.tar.gz: aee18f2be7d98362bd75f67a55635320ce8f263a22d85773444c3d060961892d
3
+ metadata.gz: d4032f5d56f2e441caf24526b827c17248114fdcc986fe9595134b180e3b7386
4
+ data.tar.gz: 1584b89290e96f0ef895e1f3401c51b8914e4391d2c4d9862c76f7b390fe065b
5
5
  SHA512:
6
- metadata.gz: a9e6ed86ba538c82b45728e1fc3c98c5251f1a1ae2940b1e581ee256719bf6bb2b2aaf83627d872957470da844f91bb69112cf6393c3555994a31d8d94646ef9
7
- data.tar.gz: 6a21a96833e9c34ffaeec35db943cfb03c14c92b851a7684605c579291238a6584525052b5c034d8ad58b78273b9e41c329b206cca44cce1cb4cbb1f43530972
6
+ metadata.gz: a24eef51a825719aa30edb6a3165272f8d38db81d23b3130e5b09a8c33571bfda06e661e030c8c8a1bde0efa60f33fa7a60f22b22a8d5686c691b718c71adb01
7
+ data.tar.gz: 4ae990701822770f0098b5e48bac694427a3b6a11ffb626a120cdb281db6caf36daee34fe39aaee4866cca0c30e52ab50c2508630ce929f30368f45ab2bca55a
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 13.2.0
2
+ - Add support for `options` to `/payment_initiation/payment/create`
3
+
1
4
  # 13.1.0
2
5
  - Add Standing Orders support to Payment Initiation
3
6
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- plaid (13.1.0)
4
+ plaid (13.2.0)
5
5
  faraday
6
6
  faraday_middleware
7
7
  hashie (>= 3.4.3)
data/lib/plaid/models.rb CHANGED
@@ -2119,6 +2119,17 @@ module Plaid
2119
2119
  # :attr_reader:
2120
2120
  # Public: The recipient ID for payment.
2121
2121
  property :recipient_id
2122
+
2123
+ ##
2124
+ # :attr_reader:
2125
+ # Public: An object containing a BACS account number and sort code
2126
+ # for the payer's account.
2127
+ property :bacs
2128
+
2129
+ ##
2130
+ # :attr_reader:
2131
+ # Public: A string containing the IBAN for the payer's account.
2132
+ property :iban
2122
2133
  end
2123
2134
 
2124
2135
  # Public: Metadata associated with a link token.
@@ -46,23 +46,24 @@ module Plaid
46
46
  # reference - Payment reference.
47
47
  # amount - Payment amount.
48
48
  # schedule - Payment schedule.
49
+ # options - Payment options.
49
50
  #
50
51
  # Returns a PaymentCreateResponse object.
51
- def create_payment(recipient_id, reference, amount, schedule: nil)
52
- if schedule.nil?
53
- post_with_auth 'payment_initiation/payment/create',
54
- PaymentCreateResponse,
55
- recipient_id: recipient_id,
56
- reference: reference,
57
- amount: amount
58
- else
59
- post_with_auth 'payment_initiation/payment/create',
60
- PaymentCreateResponse,
61
- recipient_id: recipient_id,
62
- reference: reference,
63
- amount: amount,
64
- schedule: schedule
65
- end
52
+ def create_payment(
53
+ recipient_id, reference, amount, schedule: nil, options: nil
54
+ )
55
+ create_payment = {
56
+ 'recipient_id': recipient_id,
57
+ 'reference': reference,
58
+ 'amount': amount
59
+ }
60
+
61
+ create_payment['schedule'] = schedule unless schedule.nil?
62
+ create_payment['options'] = options unless options.nil?
63
+
64
+ post_with_auth('payment_initiation/payment/create',
65
+ PaymentCreateResponse,
66
+ create_payment)
66
67
  end
67
68
 
68
69
  # Public: Create a payment token.
@@ -221,6 +222,17 @@ module Plaid
221
222
  # :attr_reader:
222
223
  # Public: The recipient ID for payment.
223
224
  property :recipient_id
225
+
226
+ ##
227
+ # :attr_reader:
228
+ # Public: An object containing a BACS account number and sort code
229
+ # for the payer's account.
230
+ property :bacs
231
+
232
+ ##
233
+ # :attr_reader:
234
+ # Public: A string containing the IBAN for the payer's account.
235
+ property :iban
224
236
  end
225
237
 
226
238
  # Public: The response wrapper for /payment_initiation/payment/list.
data/lib/plaid/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Plaid
2
- VERSION = '13.1.0'.freeze
2
+ VERSION = '13.2.0'.freeze
3
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: 13.1.0
4
+ version: 13.2.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: 2021-05-04 00:00:00.000000000 Z
11
+ date: 2021-05-14 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: []