stripe 5.25.0 → 5.26.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -3
- data/CHANGELOG.md +3 -0
- data/VERSION +1 -1
- data/lib/stripe/object_types.rb +1 -0
- data/lib/stripe/resources.rb +1 -0
- data/lib/stripe/resources/setup_attempt.rb +10 -0
- data/lib/stripe/version.rb +1 -1
- data/test/stripe/product_test.rb +1 -2
- data/test/stripe/setup_attempt_test.rb +16 -0
- data/test/test_helper.rb +1 -1
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 904e51a8673243fee242bfac79daeeb93aa5f3333ae0a70dbafc7aac55f87d90
|
4
|
+
data.tar.gz: e4d11976d87cdae6b9cbf3f62379effa07a719e244b81d4c3cc1914a5be3ccd1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1c130372f29afb9cf4bae86d2608a537aae2302cf342dfc152b018ac71a787053977dcb7e0a5e044e518b7feb1fa67f2932de67cbb24cb82c9d7e946890503de
|
7
|
+
data.tar.gz: a91d6654370dc3a187e159cd49f4546ebe11b0f00e96b165b06f010b639d4213681393426a6ea40b4c768db6b6bf337307be5408d4d987f5ac616ff6817a6960
|
data/.travis.yml
CHANGED
@@ -12,12 +12,10 @@ notifications:
|
|
12
12
|
email:
|
13
13
|
on_success: never
|
14
14
|
|
15
|
-
sudo: false
|
16
|
-
|
17
15
|
env:
|
18
16
|
global:
|
19
17
|
# If changing this number, please also change it in `test/test_helper.rb`.
|
20
|
-
- STRIPE_MOCK_VERSION=0.
|
18
|
+
- STRIPE_MOCK_VERSION=0.99.0
|
21
19
|
|
22
20
|
cache:
|
23
21
|
directories:
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 5.26.0 - 2020-09-29
|
4
|
+
* [#949](https://github.com/stripe/stripe-ruby/pull/949) Add support for the `SetupAttempt` resource and List API
|
5
|
+
|
3
6
|
## 5.25.0 - 2020-09-02
|
4
7
|
* [#944](https://github.com/stripe/stripe-ruby/pull/944) Add support for the Issuing Dispute Submit API
|
5
8
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
5.
|
1
|
+
5.26.0
|
data/lib/stripe/object_types.rb
CHANGED
@@ -73,6 +73,7 @@ module Stripe
|
|
73
73
|
Reversal::OBJECT_NAME => Reversal,
|
74
74
|
Review::OBJECT_NAME => Review,
|
75
75
|
SKU::OBJECT_NAME => SKU,
|
76
|
+
SetupAttempt::OBJECT_NAME => SetupAttempt,
|
76
77
|
SetupIntent::OBJECT_NAME => SetupIntent,
|
77
78
|
Sigma::ScheduledQueryRun::OBJECT_NAME => Sigma::ScheduledQueryRun,
|
78
79
|
Source::OBJECT_NAME => Source,
|
data/lib/stripe/resources.rb
CHANGED
@@ -61,6 +61,7 @@ require "stripe/resources/reporting/report_run"
|
|
61
61
|
require "stripe/resources/reporting/report_type"
|
62
62
|
require "stripe/resources/reversal"
|
63
63
|
require "stripe/resources/review"
|
64
|
+
require "stripe/resources/setup_attempt"
|
64
65
|
require "stripe/resources/setup_intent"
|
65
66
|
require "stripe/resources/sigma/scheduled_query_run"
|
66
67
|
require "stripe/resources/sku"
|
data/lib/stripe/version.rb
CHANGED
data/test/stripe/product_test.rb
CHANGED
@@ -0,0 +1,16 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require ::File.expand_path("../test_helper", __dir__)
|
4
|
+
|
5
|
+
module Stripe
|
6
|
+
class SetupAttemptTest < Test::Unit::TestCase
|
7
|
+
should "be listable" do
|
8
|
+
setup_attempts = Stripe::SetupAttempt.list({
|
9
|
+
setup_intent: "seti_123",
|
10
|
+
})
|
11
|
+
assert_requested :get, "#{Stripe.api_base}/v1/setup_attempts?setup_intent=seti_123"
|
12
|
+
assert setup_attempts.data.is_a?(Array)
|
13
|
+
assert setup_attempts.data[0].is_a?(Stripe::SetupAttempt)
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
data/test/test_helper.rb
CHANGED
@@ -16,7 +16,7 @@ require ::File.expand_path("test_data", __dir__)
|
|
16
16
|
require ::File.expand_path("stripe_mock", __dir__)
|
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.99.0"
|
20
20
|
MOCK_PORT = Stripe::StripeMock.start
|
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: 5.
|
4
|
+
version: 5.26.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stripe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-09-
|
11
|
+
date: 2020-09-30 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Stripe is the easiest way to accept payments online. See https://stripe.com
|
14
14
|
for details.
|
@@ -116,6 +116,7 @@ files:
|
|
116
116
|
- lib/stripe/resources/reporting/report_type.rb
|
117
117
|
- lib/stripe/resources/reversal.rb
|
118
118
|
- lib/stripe/resources/review.rb
|
119
|
+
- lib/stripe/resources/setup_attempt.rb
|
119
120
|
- lib/stripe/resources/setup_intent.rb
|
120
121
|
- lib/stripe/resources/sigma/scheduled_query_run.rb
|
121
122
|
- lib/stripe/resources/sku.rb
|
@@ -207,6 +208,7 @@ files:
|
|
207
208
|
- test/stripe/reporting/report_type_test.rb
|
208
209
|
- test/stripe/reversal_test.rb
|
209
210
|
- test/stripe/review_test.rb
|
211
|
+
- test/stripe/setup_attempt_test.rb
|
210
212
|
- test/stripe/setup_intent_test.rb
|
211
213
|
- test/stripe/sigma/scheduled_query_run_test.rb
|
212
214
|
- test/stripe/sku_test.rb
|
@@ -326,6 +328,7 @@ test_files:
|
|
326
328
|
- test/stripe/reporting/report_type_test.rb
|
327
329
|
- test/stripe/reversal_test.rb
|
328
330
|
- test/stripe/review_test.rb
|
331
|
+
- test/stripe/setup_attempt_test.rb
|
329
332
|
- test/stripe/setup_intent_test.rb
|
330
333
|
- test/stripe/sigma/scheduled_query_run_test.rb
|
331
334
|
- test/stripe/sku_test.rb
|