stripe 4.2.0 → 4.3.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: de00531ac569359b14ce994f975d62ff6ed9663d97e3bf857522ddae08841191
4
- data.tar.gz: 93e8b0165e743413933cc1c1d97cf3bcd56e3168986aa8de67beb4b50f2682dd
3
+ metadata.gz: 6b28b9ff50ecbcd73d221d19938f50f2f1e35986acbb5c09c5ae8f0d742e1a33
4
+ data.tar.gz: 64f3e9a9019521a79a0f23a63f4bfb1fe42c0d7e7288977834153abd363bb246
5
5
  SHA512:
6
- metadata.gz: e1422aeea2f2593ce2b3f96d5611eff442272fd1595b7db78465a23a656729d1db94d36b9dd12fbfcb4546081512696271c88aef31a7e78c24902413e2e32664
7
- data.tar.gz: 154f852137b9765d3e67b16d66a5e880432bd2e1ded720dbea431b5ac7f6138697c8392b95c9c6667ae0c4b6f5c9babc716186bd29984c2785e94bbafaac1fd8
6
+ metadata.gz: f5152f8d58831aaac3376389cc65bbe7b2a25a5c74e4f2399669e90ec55fbed597c63c159bf80282af80aff0f6635f8a99a58fb3c48aa9f4f72292f71c93a264
7
+ data.tar.gz: 4a8768386763b33ff541d8a6feb4fce4b0c7490bdae5f0337f5a171d641a9cf4cb0982053c906303ae44a32ccc7e47532eb834042d9a10199656b14107996ca7
data/.travis.yml CHANGED
@@ -17,7 +17,7 @@ sudo: false
17
17
  env:
18
18
  global:
19
19
  # If changing this number, please also change it in `test/test_helper.rb`.
20
- - STRIPE_MOCK_VERSION=0.38.0
20
+ - STRIPE_MOCK_VERSION=0.39.0
21
21
 
22
22
  cache:
23
23
  directories:
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Changelog
2
2
 
3
+ ## 4.3.0 - 2018-12-10
4
+ * [#711](https://github.com/stripe/stripe-ruby/pull/711) Add support for account links
5
+
3
6
  ## 4.2.0 - 2018-11-28
4
7
  * [#705](https://github.com/stripe/stripe-ruby/pull/705) Add support for the `Review` APIs
5
8
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 4.2.0
1
+ 4.3.0
data/lib/stripe.rb CHANGED
@@ -37,6 +37,7 @@ require "stripe/webhook"
37
37
 
38
38
  # Named API resources
39
39
  require "stripe/account"
40
+ require "stripe/account_link"
40
41
  require "stripe/alipay_account"
41
42
  require "stripe/apple_pay_domain"
42
43
  require "stripe/application_fee"
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Stripe
4
+ class AccountLink < APIResource
5
+ extend Stripe::APIOperations::Create
6
+
7
+ OBJECT_NAME = "account_link".freeze
8
+ end
9
+ end
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,
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Stripe
4
- VERSION = "4.2.0".freeze
4
+ VERSION = "4.3.0".freeze
5
5
  end
@@ -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.38.0".freeze
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.2.0
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-28 00:00:00.000000000 Z
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.8
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