stripe 4.21.3 → 4.22.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/resources/balance_transaction.rb +0 -4
- data/lib/stripe/version.rb +1 -1
- data/test/stripe/balance_transaction_test.rb +20 -0
- data/test/test_helper.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9af080098c5b87476257bab5cef1ddfc6ba190e710bfb2aa380f50bd318260a1
|
|
4
|
+
data.tar.gz: d4686caef64a334b68a61218392f06515df3b987d2bf883b3e87b062b094d2aa
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bf08c3b1573899316f8451ad382d2c5a7f3a7b2445e0334156d288b64309f28c6df96a6b0ce4e7255768f9086778a8e55f82666e22c4b97e471f8e83040fce62
|
|
7
|
+
data.tar.gz: 2b8dc5dc6f47fe3651dfb404e046fbab8efa3b0c5d0e7aad7d2105e4fe58f393734063a58f3c2d166cbf69df152ec28facb515f40c338cf36376f70402d67279
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
|
@@ -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.
|
|
1
|
+
4.22.0
|
data/lib/stripe/version.rb
CHANGED
|
@@ -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
|
data/test/test_helper.rb
CHANGED
|
@@ -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.
|
|
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.
|
|
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-
|
|
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
|