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 +4 -4
- data/CHANGELOG.md +3 -0
- data/Gemfile.lock +1 -1
- data/lib/plaid/models.rb +11 -0
- data/lib/plaid/products/payment_initiation.rb +27 -15
- data/lib/plaid/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d4032f5d56f2e441caf24526b827c17248114fdcc986fe9595134b180e3b7386
|
4
|
+
data.tar.gz: 1584b89290e96f0ef895e1f3401c51b8914e4391d2c4d9862c76f7b390fe065b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a24eef51a825719aa30edb6a3165272f8d38db81d23b3130e5b09a8c33571bfda06e661e030c8c8a1bde0efa60f33fa7a60f22b22a8d5686c691b718c71adb01
|
7
|
+
data.tar.gz: 4ae990701822770f0098b5e48bac694427a3b6a11ffb626a120cdb281db6caf36daee34fe39aaee4866cca0c30e52ab50c2508630ce929f30368f45ab2bca55a
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
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(
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
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
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.
|
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-
|
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: []
|