stripe 4.21.3 → 4.22.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: 9231fd56adca6e557e0e6956a115e7f969096402747e143ff7d433442146f0ac
4
- data.tar.gz: 6f2a3c7a973e5f004518a83ccac1164f7eb354fe26816aa2f39bfa67b4b661e0
3
+ metadata.gz: 9af080098c5b87476257bab5cef1ddfc6ba190e710bfb2aa380f50bd318260a1
4
+ data.tar.gz: d4686caef64a334b68a61218392f06515df3b987d2bf883b3e87b062b094d2aa
5
5
  SHA512:
6
- metadata.gz: 66416730e242f3e1de13937d46143cfd3c2a2f97ac6cbdf908b9a01a1f12b158a3ee983e3f1d888bfccc734b518382889ef57dff9e215e448cd3572268883b99
7
- data.tar.gz: c6ac92bcbe56e3d19cb642677f5cbcaf89afe45f5321e6016931b9fc8a86b5e203efc10f9de5db9b5df4ac443a3f539d8e4374e547f1e1f24f65d3730dbe9e91
6
+ metadata.gz: bf08c3b1573899316f8451ad382d2c5a7f3a7b2445e0334156d288b64309f28c6df96a6b0ce4e7255768f9086778a8e55f82666e22c4b97e471f8e83040fce62
7
+ data.tar.gz: 2b8dc5dc6f47fe3651dfb404e046fbab8efa3b0c5d0e7aad7d2105e4fe58f393734063a58f3c2d166cbf69df152ec28facb515f40c338cf36376f70402d67279
@@ -18,7 +18,7 @@ sudo: false
18
18
  env:
19
19
  global:
20
20
  # If changing this number, please also change it in `test/test_helper.rb`.
21
- - STRIPE_MOCK_VERSION=0.60.0
21
+ - STRIPE_MOCK_VERSION=0.63.0
22
22
 
23
23
  cache:
24
24
  directories:
@@ -1,5 +1,8 @@
1
1
  # Changelog
2
2
 
3
+ ## 4.22.0 - 2019-07-30
4
+ * [#821](https://github.com/stripe/stripe-ruby/pull/821) Listing `BalanceTransaction` objects now uses `/v1/balance_transactions` instead of `/v1/balance/history`
5
+
3
6
  ## 4.21.3 - 2019-07-15
4
7
  * [#810](https://github.com/stripe/stripe-ruby/pull/810) Better error message when passing non-string to custom method
5
8
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 4.21.3
1
+ 4.22.0
@@ -5,9 +5,5 @@ module Stripe
5
5
  extend Stripe::APIOperations::List
6
6
 
7
7
  OBJECT_NAME = "balance_transaction".freeze
8
-
9
- def self.resource_url
10
- "/v1/balance/history"
11
- end
12
8
  end
13
9
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Stripe
4
- VERSION = "4.21.3".freeze
4
+ VERSION = "4.22.0".freeze
5
5
  end
@@ -0,0 +1,20 @@
1
+ # frozen_string_literal: true
2
+
3
+ require ::File.expand_path("../test_helper", __dir__)
4
+
5
+ module Stripe
6
+ class BalanceTransactionTest < Test::Unit::TestCase
7
+ should "be listable" do
8
+ balance_transactions = Stripe::BalanceTransaction.list
9
+ assert_requested :get, "#{Stripe.api_base}/v1/balance_transactions"
10
+ assert balance_transactions.data.is_a?(Array)
11
+ assert balance_transactions.first.is_a?(Stripe::BalanceTransaction)
12
+ end
13
+
14
+ should "be retrievable" do
15
+ balance_transaction = Stripe::BalanceTransaction.retrieve("txn_123")
16
+ assert_requested :get, "#{Stripe.api_base}/v1/balance_transactions/txn_123"
17
+ assert balance_transaction.is_a?(Stripe::BalanceTransaction)
18
+ end
19
+ end
20
+ end
@@ -17,7 +17,7 @@ require ::File.expand_path("test_data", __dir__)
17
17
  require ::File.expand_path("stripe_mock", __dir__)
18
18
 
19
19
  # If changing this number, please also change it in `.travis.yml`.
20
- MOCK_MINIMUM_VERSION = "0.60.0".freeze
20
+ MOCK_MINIMUM_VERSION = "0.63.0".freeze
21
21
  MOCK_PORT = Stripe::StripeMock.start
22
22
 
23
23
  # 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.21.3
4
+ version: 4.22.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stripe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-07-16 00:00:00.000000000 Z
11
+ date: 2019-07-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -174,6 +174,7 @@ files:
174
174
  - test/stripe/application_fee_refund_test.rb
175
175
  - test/stripe/application_fee_test.rb
176
176
  - test/stripe/balance_test.rb
177
+ - test/stripe/balance_transaction_test.rb
177
178
  - test/stripe/bank_account_test.rb
178
179
  - test/stripe/capability_test.rb
179
180
  - test/stripe/charge_test.rb
@@ -290,6 +291,7 @@ test_files:
290
291
  - test/stripe/application_fee_refund_test.rb
291
292
  - test/stripe/application_fee_test.rb
292
293
  - test/stripe/balance_test.rb
294
+ - test/stripe/balance_transaction_test.rb
293
295
  - test/stripe/bank_account_test.rb
294
296
  - test/stripe/capability_test.rb
295
297
  - test/stripe/charge_test.rb