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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2bff9fb79cc55a44a50f4f3bf5ae748d3a23a242e283cee0988a27ad0df2c1b3
4
- data.tar.gz: 668da0eecea17d8fe1714f0cb51639ce8c928be8e21ba0a3ac1ba3c5b0014a62
3
+ metadata.gz: 904e51a8673243fee242bfac79daeeb93aa5f3333ae0a70dbafc7aac55f87d90
4
+ data.tar.gz: e4d11976d87cdae6b9cbf3f62379effa07a719e244b81d4c3cc1914a5be3ccd1
5
5
  SHA512:
6
- metadata.gz: 0c0cd52e780ad6f033ef5fa5c6966f1a8a51c667cf2ef99190dcaa7a501c1ea58bfe6cdeab55d90b4d308cbeb1596bc716d45ac212b2de0b0667c243d55b6195
7
- data.tar.gz: 129ea3f6979acbd37fea34fe1dc739e0664ac327118b8768eee49cec4d4b9ac4e70987d8f739d2b121e8535776ed0e2abdcc474343352788c3dd400f0de4b178
6
+ metadata.gz: 1c130372f29afb9cf4bae86d2608a537aae2302cf342dfc152b018ac71a787053977dcb7e0a5e044e518b7feb1fa67f2932de67cbb24cb82c9d7e946890503de
7
+ data.tar.gz: a91d6654370dc3a187e159cd49f4546ebe11b0f00e96b165b06f010b639d4213681393426a6ea40b4c768db6b6bf337307be5408d4d987f5ac616ff6817a6960
@@ -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.98.0
18
+ - STRIPE_MOCK_VERSION=0.99.0
21
19
 
22
20
  cache:
23
21
  directories:
@@ -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.25.0
1
+ 5.26.0
@@ -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,
@@ -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"
@@ -0,0 +1,10 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ class SetupAttempt < APIResource
6
+ extend Stripe::APIOperations::List
7
+
8
+ OBJECT_NAME = "setup_attempt"
9
+ end
10
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Stripe
4
- VERSION = "5.25.0"
4
+ VERSION = "5.26.0"
5
5
  end
@@ -19,8 +19,7 @@ module Stripe
19
19
 
20
20
  should "be creatable" do
21
21
  product = Stripe::Product.create(
22
- name: "My Product",
23
- type: "good"
22
+ name: "My Product"
24
23
  )
25
24
  assert_requested :post, "#{Stripe.api_base}/v1/products"
26
25
  assert product.is_a?(Stripe::Product)
@@ -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
@@ -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.98.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.25.0
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-02 00:00:00.000000000 Z
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