stripe 4.2.0 → 4.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 +4 -4
- data/.travis.yml +1 -1
- data/CHANGELOG.md +3 -0
- data/VERSION +1 -1
- data/lib/stripe.rb +1 -0
- data/lib/stripe/account_link.rb +9 -0
- data/lib/stripe/util.rb +1 -0
- data/lib/stripe/version.rb +1 -1
- data/test/stripe/account_link_test.rb +18 -0
- data/test/test_helper.rb +1 -1
- metadata +6 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6b28b9ff50ecbcd73d221d19938f50f2f1e35986acbb5c09c5ae8f0d742e1a33
|
4
|
+
data.tar.gz: 64f3e9a9019521a79a0f23a63f4bfb1fe42c0d7e7288977834153abd363bb246
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f5152f8d58831aaac3376389cc65bbe7b2a25a5c74e4f2399669e90ec55fbed597c63c159bf80282af80aff0f6635f8a99a58fb3c48aa9f4f72292f71c93a264
|
7
|
+
data.tar.gz: 4a8768386763b33ff541d8a6feb4fce4b0c7490bdae5f0337f5a171d641a9cf4cb0982053c906303ae44a32ccc7e47532eb834042d9a10199656b14107996ca7
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
4.
|
1
|
+
4.3.0
|
data/lib/stripe.rb
CHANGED
data/lib/stripe/util.rb
CHANGED
@@ -46,6 +46,7 @@ module Stripe
|
|
46
46
|
|
47
47
|
# business objects
|
48
48
|
Account::OBJECT_NAME => Account,
|
49
|
+
AccountLink::OBJECT_NAME => AccountLink,
|
49
50
|
AlipayAccount::OBJECT_NAME => AlipayAccount,
|
50
51
|
ApplePayDomain::OBJECT_NAME => ApplePayDomain,
|
51
52
|
ApplicationFee::OBJECT_NAME => ApplicationFee,
|
data/lib/stripe/version.rb
CHANGED
@@ -0,0 +1,18 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require ::File.expand_path("../../test_helper", __FILE__)
|
4
|
+
|
5
|
+
module Stripe
|
6
|
+
class AccountLinkTest < Test::Unit::TestCase
|
7
|
+
should "be creatable" do
|
8
|
+
link = Stripe::AccountLink.create(
|
9
|
+
account: "acct_123",
|
10
|
+
failure_url: "https://stripe.com/failure",
|
11
|
+
success_url: "https://stripe.com/success",
|
12
|
+
type: "custom_account_verification"
|
13
|
+
)
|
14
|
+
assert_requested :post, "#{Stripe.api_base}/v1/account_links"
|
15
|
+
assert link.is_a?(Stripe::AccountLink)
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
data/test/test_helper.rb
CHANGED
@@ -16,7 +16,7 @@ PROJECT_ROOT = ::File.expand_path("../../", __FILE__)
|
|
16
16
|
require ::File.expand_path("../test_data", __FILE__)
|
17
17
|
|
18
18
|
# If changing this number, please also change it in `.travis.yml`.
|
19
|
-
MOCK_MINIMUM_VERSION = "0.
|
19
|
+
MOCK_MINIMUM_VERSION = "0.39.0".freeze
|
20
20
|
MOCK_PORT = ENV["STRIPE_MOCK_PORT"] || 12_111
|
21
21
|
|
22
22
|
# Disable all real network connections except those that are outgoing to
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stripe
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stripe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-11
|
11
|
+
date: 2018-12-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -64,6 +64,7 @@ files:
|
|
64
64
|
- lib/data/ca-certificates.crt
|
65
65
|
- lib/stripe.rb
|
66
66
|
- lib/stripe/account.rb
|
67
|
+
- lib/stripe/account_link.rb
|
67
68
|
- lib/stripe/alipay_account.rb
|
68
69
|
- lib/stripe/api_operations/create.rb
|
69
70
|
- lib/stripe/api_operations/delete.rb
|
@@ -147,6 +148,7 @@ files:
|
|
147
148
|
- stripe.gemspec
|
148
149
|
- test/api_stub_helpers.rb
|
149
150
|
- test/stripe/account_external_accounts_operations_test.rb
|
151
|
+
- test/stripe/account_link_test.rb
|
150
152
|
- test/stripe/account_login_links_operations_test.rb
|
151
153
|
- test/stripe/account_persons_operations_test.rb
|
152
154
|
- test/stripe/account_test.rb
|
@@ -243,13 +245,14 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
243
245
|
version: '0'
|
244
246
|
requirements: []
|
245
247
|
rubyforge_project:
|
246
|
-
rubygems_version: 2.7.
|
248
|
+
rubygems_version: 2.7.7
|
247
249
|
signing_key:
|
248
250
|
specification_version: 4
|
249
251
|
summary: Ruby bindings for the Stripe API
|
250
252
|
test_files:
|
251
253
|
- test/api_stub_helpers.rb
|
252
254
|
- test/stripe/account_external_accounts_operations_test.rb
|
255
|
+
- test/stripe/account_link_test.rb
|
253
256
|
- test/stripe/account_login_links_operations_test.rb
|
254
257
|
- test/stripe/account_persons_operations_test.rb
|
255
258
|
- test/stripe/account_test.rb
|