stripe 5.42.0 → 5.45.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 59ec737c599289ebecd1ba030eadd9a2ae4ab262f1495d1de5a5ed4757cc542a
4
- data.tar.gz: dbc4cbf84351eec5c7fb641db3b00cf8b92b2605aedb8efc266733238cad4f6a
3
+ metadata.gz: 2971f0ad2ef29349e932246a9bc9065d5d1ce53f21c14f7bcdb205b443779a42
4
+ data.tar.gz: a9a980c5cbdc14d79d60f5873f267db10153bd556c81378ec3c3ca270d87252d
5
5
  SHA512:
6
- metadata.gz: '08f077d4f908041fea497c83eb105713e3d324d39ff037067de53a4bc3f0d8bb9ba84f0c13d873c4b0a86d1d04345974ef67bb1a3051c53616368bd74f86c385'
7
- data.tar.gz: 8cd83d8c0568b831e3aa17d74aa7ae81396215c98e0978f0c4ec930cd437f7d3784a9be4cce33f82454f6801607a38be9792aef0ec0242770094f059e368343f
6
+ metadata.gz: 47c89bc9c732bafeae007d6663ca82cbf5e32938d392bb130209d389f7fa59fa54ecb26b0f7b93658b8cd18eab82127c2bfedd6b8c6e3887bb92c99bcc41f11b
7
+ data.tar.gz: a73469bc20fbf0fae44c6409efbe53ce8d90c54dca56fe2f99dfc8a8fd045e9ac295b9df86f13be555648ead094746cb385cb2731cdbb40edbae858f2083f292
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ## 5.45.0 - 2022-03-01
4
+ * [#1035](https://github.com/stripe/stripe-ruby/pull/1035) API Updates
5
+ * Add support for new resource `TestHelpers.TestClock`
6
+
7
+ ## 5.44.0 - 2022-02-16
8
+ * [#1032](https://github.com/stripe/stripe-ruby/pull/1032) API Updates
9
+ * Add support for `verify_microdeposits` method on resources `PaymentIntent` and `SetupIntent`
10
+
11
+ ## 5.43.0 - 2022-01-20
12
+ * [#1031](https://github.com/stripe/stripe-ruby/pull/1031) API Updates
13
+ * Add support for new resource `PaymentLink`
14
+
3
15
  ## 5.42.0 - 2021-12-13
4
16
  * [#1022](https://github.com/stripe/stripe-ruby/pull/1022) Add connection manager logging and include object IDs in logging.
5
17
 
data/README.md CHANGED
@@ -18,7 +18,7 @@ The library also provides other features. For example:
18
18
 
19
19
  ## Documentation
20
20
 
21
- See the [Ruby API docs](https://stripe.com/docs/api/ruby#intro).
21
+ See the [Ruby API docs](https://stripe.com/docs/api?lang=ruby).
22
22
 
23
23
  See [video demonstrations][youtube-playlist] covering how to use the library.
24
24
 
@@ -340,9 +340,9 @@ Update the bundled [stripe-mock] by editing the version number found in
340
340
  [api-keys]: https://dashboard.stripe.com/account/apikeys
341
341
  [connect]: https://stripe.com/connect
342
342
  [curl]: http://curl.haxx.se/docs/caextract.html
343
- [idempotency-keys]: https://stripe.com/docs/api/ruby#idempotent_requests
343
+ [idempotency-keys]: https://stripe.com/docs/api/idempotent_requests?lang=ruby
344
344
  [stripe-mock]: https://github.com/stripe/stripe-mock
345
- [versioning]: https://stripe.com/docs/api/ruby#versioning
345
+ [versioning]: https://stripe.com/docs/api/versioning?lang=ruby
346
346
  [youtube-playlist]: https://www.youtube.com/playlist?list=PLy1nL-pvL2M50RmP6ie-gdcSnfOuQCRYk
347
347
 
348
348
  <!--
data/VERSION CHANGED
@@ -1 +1 @@
1
- 5.42.0
1
+ 5.45.0
@@ -59,6 +59,7 @@ module Stripe
59
59
  Order::OBJECT_NAME => Order,
60
60
  OrderReturn::OBJECT_NAME => OrderReturn,
61
61
  PaymentIntent::OBJECT_NAME => PaymentIntent,
62
+ PaymentLink::OBJECT_NAME => PaymentLink,
62
63
  PaymentMethod::OBJECT_NAME => PaymentMethod,
63
64
  Payout::OBJECT_NAME => Payout,
64
65
  Person::OBJECT_NAME => Person,
@@ -93,6 +94,7 @@ module Stripe
93
94
  Terminal::ConnectionToken::OBJECT_NAME => Terminal::ConnectionToken,
94
95
  Terminal::Location::OBJECT_NAME => Terminal::Location,
95
96
  Terminal::Reader::OBJECT_NAME => Terminal::Reader,
97
+ TestHelpers::TestClock::OBJECT_NAME => TestHelpers::TestClock,
96
98
  ThreeDSecure::OBJECT_NAME => ThreeDSecure,
97
99
  Token::OBJECT_NAME => Token,
98
100
  Topup::OBJECT_NAME => Topup,
@@ -12,6 +12,7 @@ module Stripe
12
12
  custom_method :cancel, http_verb: :post
13
13
  custom_method :capture, http_verb: :post
14
14
  custom_method :confirm, http_verb: :post
15
+ custom_method :verify_microdeposits, http_verb: :post
15
16
 
16
17
  def cancel(params = {}, opts = {})
17
18
  request_stripe_object(
@@ -39,5 +40,14 @@ module Stripe
39
40
  opts: opts
40
41
  )
41
42
  end
43
+
44
+ def verify_microdeposits(params = {}, opts = {})
45
+ request_stripe_object(
46
+ method: :post,
47
+ path: resource_url + "/verify_microdeposits",
48
+ params: params,
49
+ opts: opts
50
+ )
51
+ end
42
52
  end
43
53
  end
@@ -0,0 +1,23 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ class PaymentLink < APIResource
6
+ extend Stripe::APIOperations::Create
7
+ extend Stripe::APIOperations::List
8
+ include Stripe::APIOperations::Save
9
+
10
+ OBJECT_NAME = "payment_link"
11
+
12
+ custom_method :list_line_items, http_verb: :get, http_path: "line_items"
13
+
14
+ def list_line_items(params = {}, opts = {})
15
+ request_stripe_object(
16
+ method: :get,
17
+ path: resource_url + "/line_items",
18
+ params: params,
19
+ opts: opts
20
+ )
21
+ end
22
+ end
23
+ end
@@ -11,6 +11,7 @@ module Stripe
11
11
 
12
12
  custom_method :cancel, http_verb: :post
13
13
  custom_method :confirm, http_verb: :post
14
+ custom_method :verify_microdeposits, http_verb: :post
14
15
 
15
16
  def cancel(params = {}, opts = {})
16
17
  request_stripe_object(
@@ -29,5 +30,14 @@ module Stripe
29
30
  opts: opts
30
31
  )
31
32
  end
33
+
34
+ def verify_microdeposits(params = {}, opts = {})
35
+ request_stripe_object(
36
+ method: :post,
37
+ path: resource_url + "/verify_microdeposits",
38
+ params: params,
39
+ opts: opts
40
+ )
41
+ end
32
42
  end
33
43
  end
@@ -0,0 +1,25 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module TestHelpers
6
+ class TestClock < APIResource
7
+ extend Stripe::APIOperations::Create
8
+ include Stripe::APIOperations::Delete
9
+ extend Stripe::APIOperations::List
10
+
11
+ OBJECT_NAME = "test_helpers.test_clock"
12
+
13
+ custom_method :advance, http_verb: :post
14
+
15
+ def advance(params = {}, opts = {})
16
+ request_stripe_object(
17
+ method: :post,
18
+ path: resource_url + "/advance",
19
+ params: params,
20
+ opts: opts
21
+ )
22
+ end
23
+ end
24
+ end
25
+ end
@@ -48,6 +48,7 @@ require "stripe/resources/mandate"
48
48
  require "stripe/resources/order"
49
49
  require "stripe/resources/order_return"
50
50
  require "stripe/resources/payment_intent"
51
+ require "stripe/resources/payment_link"
51
52
  require "stripe/resources/payment_method"
52
53
  require "stripe/resources/payout"
53
54
  require "stripe/resources/person"
@@ -82,6 +83,7 @@ require "stripe/resources/tax_rate"
82
83
  require "stripe/resources/terminal/connection_token"
83
84
  require "stripe/resources/terminal/location"
84
85
  require "stripe/resources/terminal/reader"
86
+ require "stripe/resources/test_helpers/test_clock"
85
87
  require "stripe/resources/three_d_secure"
86
88
  require "stripe/resources/token"
87
89
  require "stripe/resources/topup"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Stripe
4
- VERSION = "5.42.0"
4
+ VERSION = "5.45.0"
5
5
  end
data/stripe.gemspec CHANGED
@@ -13,16 +13,16 @@ Gem::Specification.new do |s|
13
13
  "See https://stripe.com for details."
14
14
  s.author = "Stripe"
15
15
  s.email = "support@stripe.com"
16
- s.homepage = "https://stripe.com/docs/api/ruby"
16
+ s.homepage = "https://stripe.com/docs/api?lang=ruby"
17
17
  s.license = "MIT"
18
18
 
19
19
  s.metadata = {
20
20
  "bug_tracker_uri" => "https://github.com/stripe/stripe-ruby/issues",
21
21
  "changelog_uri" =>
22
22
  "https://github.com/stripe/stripe-ruby/blob/master/CHANGELOG.md",
23
- "documentation_uri" => "https://stripe.com/docs/api/ruby",
23
+ "documentation_uri" => "https://stripe.com/docs/api?lang=ruby",
24
24
  "github_repo" => "ssh://github.com/stripe/stripe-ruby",
25
- "homepage_uri" => "https://stripe.com/docs/api/ruby",
25
+ "homepage_uri" => "https://stripe.com/docs/api?lang=ruby",
26
26
  "source_code_uri" => "https://github.com/stripe/stripe-ruby",
27
27
  }
28
28
 
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.42.0
4
+ version: 5.45.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stripe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-12-13 00:00:00.000000000 Z
11
+ date: 2022-03-01 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.
@@ -93,6 +93,7 @@ files:
93
93
  - lib/stripe/resources/order.rb
94
94
  - lib/stripe/resources/order_return.rb
95
95
  - lib/stripe/resources/payment_intent.rb
96
+ - lib/stripe/resources/payment_link.rb
96
97
  - lib/stripe/resources/payment_method.rb
97
98
  - lib/stripe/resources/payout.rb
98
99
  - lib/stripe/resources/person.rb
@@ -127,6 +128,7 @@ files:
127
128
  - lib/stripe/resources/terminal/connection_token.rb
128
129
  - lib/stripe/resources/terminal/location.rb
129
130
  - lib/stripe/resources/terminal/reader.rb
131
+ - lib/stripe/resources/test_helpers/test_clock.rb
130
132
  - lib/stripe/resources/three_d_secure.rb
131
133
  - lib/stripe/resources/token.rb
132
134
  - lib/stripe/resources/topup.rb
@@ -143,15 +145,15 @@ files:
143
145
  - lib/stripe/version.rb
144
146
  - lib/stripe/webhook.rb
145
147
  - stripe.gemspec
146
- homepage: https://stripe.com/docs/api/ruby
148
+ homepage: https://stripe.com/docs/api?lang=ruby
147
149
  licenses:
148
150
  - MIT
149
151
  metadata:
150
152
  bug_tracker_uri: https://github.com/stripe/stripe-ruby/issues
151
153
  changelog_uri: https://github.com/stripe/stripe-ruby/blob/master/CHANGELOG.md
152
- documentation_uri: https://stripe.com/docs/api/ruby
154
+ documentation_uri: https://stripe.com/docs/api?lang=ruby
153
155
  github_repo: ssh://github.com/stripe/stripe-ruby
154
- homepage_uri: https://stripe.com/docs/api/ruby
156
+ homepage_uri: https://stripe.com/docs/api?lang=ruby
155
157
  source_code_uri: https://github.com/stripe/stripe-ruby
156
158
  post_install_message:
157
159
  rdoc_options: []