stripe 10.12.0 → 10.13.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/OPENAPI_VERSION +1 -1
- data/VERSION +1 -1
- data/lib/stripe/object_types.rb +2 -0
- data/lib/stripe/resources/confirmation_token.rb +37 -0
- data/lib/stripe/resources/forwarding/request.rb +50 -0
- data/lib/stripe/resources.rb +2 -0
- data/lib/stripe/version.rb +1 -1
- data/stripe.gemspec +3 -0
- metadata +4 -59
- data/bin/tapioca +0 -27
- data/sorbet/config +0 -4
- data/sorbet/rbi/annotations/.gitattributes +0 -1
- data/sorbet/rbi/annotations/coveralls_reborn.rbi +0 -3
- data/sorbet/rbi/gems/.gitattributes +0 -1
- data/sorbet/rbi/gems/addressable@2.8.6.rbi +0 -1993
- data/sorbet/rbi/gems/ast@2.4.2.rbi +0 -584
- data/sorbet/rbi/gems/byebug@11.1.3.rbi +0 -3606
- data/sorbet/rbi/gems/coderay@1.1.3.rbi +0 -3437
- data/sorbet/rbi/gems/coveralls_reborn@0.25.0.rbi +0 -8
- data/sorbet/rbi/gems/crack@0.4.5.rbi +0 -144
- data/sorbet/rbi/gems/docile@1.4.0.rbi +0 -8
- data/sorbet/rbi/gems/erubi@1.12.0.rbi +0 -146
- data/sorbet/rbi/gems/hashdiff@1.1.0.rbi +0 -352
- data/sorbet/rbi/gems/jaro_winkler@1.5.4.rbi +0 -19
- data/sorbet/rbi/gems/json@2.7.1.rbi +0 -1561
- data/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi +0 -14237
- data/sorbet/rbi/gems/method_source@1.0.0.rbi +0 -272
- data/sorbet/rbi/gems/mocha@1.16.1.rbi +0 -11
- data/sorbet/rbi/gems/netrc@0.11.0.rbi +0 -161
- data/sorbet/rbi/gems/parallel@1.24.0.rbi +0 -280
- data/sorbet/rbi/gems/parser@3.2.2.4.rbi +0 -9454
- data/sorbet/rbi/gems/power_assert@2.0.3.rbi +0 -414
- data/sorbet/rbi/gems/prettier_print@1.2.1.rbi +0 -951
- data/sorbet/rbi/gems/prism@0.19.0.rbi +0 -29883
- data/sorbet/rbi/gems/pry-byebug@3.10.1.rbi +0 -1150
- data/sorbet/rbi/gems/pry@0.14.2.rbi +0 -10085
- data/sorbet/rbi/gems/public_suffix@5.0.4.rbi +0 -931
- data/sorbet/rbi/gems/racc@1.7.3.rbi +0 -161
- data/sorbet/rbi/gems/rack@3.0.8.rbi +0 -5193
- data/sorbet/rbi/gems/rainbow@3.1.1.rbi +0 -402
- data/sorbet/rbi/gems/rake@13.1.0.rbi +0 -2884
- data/sorbet/rbi/gems/rbi@0.1.6.rbi +0 -2922
- data/sorbet/rbi/gems/regexp_parser@2.8.3.rbi +0 -3766
- data/sorbet/rbi/gems/rexml@3.2.6.rbi +0 -4887
- data/sorbet/rbi/gems/rubocop-ast@1.30.0.rbi +0 -7004
- data/sorbet/rbi/gems/rubocop@1.57.2.rbi +0 -56919
- data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +0 -1317
- data/sorbet/rbi/gems/shoulda-context@2.0.0.rbi +0 -555
- data/sorbet/rbi/gems/simplecov-html@0.12.3.rbi +0 -8
- data/sorbet/rbi/gems/simplecov@0.21.2.rbi +0 -8
- data/sorbet/rbi/gems/simplecov_json_formatter@0.1.4.rbi +0 -8
- data/sorbet/rbi/gems/spoom@1.2.4.rbi +0 -3777
- data/sorbet/rbi/gems/sync@0.5.0.rbi +0 -8
- data/sorbet/rbi/gems/syntax_tree@6.2.0.rbi +0 -23136
- data/sorbet/rbi/gems/tapioca@0.11.17.rbi +0 -3503
- data/sorbet/rbi/gems/term-ansicolor@1.7.1.rbi +0 -8
- data/sorbet/rbi/gems/test-unit@3.6.1.rbi +0 -4403
- data/sorbet/rbi/gems/thor@1.3.0.rbi +0 -4345
- data/sorbet/rbi/gems/tins@1.32.1.rbi +0 -8
- data/sorbet/rbi/gems/unicode-display_width@2.5.0.rbi +0 -65
- data/sorbet/rbi/gems/webmock@3.19.1.rbi +0 -1740
- data/sorbet/rbi/gems/yard-sorbet@0.8.1.rbi +0 -428
- data/sorbet/rbi/gems/yard@0.9.34.rbi +0 -18219
- data/sorbet/tapioca/config.yml +0 -13
- data/sorbet/tapioca/require.rb +0 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 97c811b2b459b17181407a3623e59762e40d4673adc0fd73b5be8ebc6b6dc6e0
|
4
|
+
data.tar.gz: a548789eb483613398223cfb9edf9113f8c30fc11bb8e75b16111ea7c6844ced
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 03d491204d0bc879e91771025e8755fdc65b927b3f6d49bdd88831d994d2ae5db7865d8d1b79b64969369cf473fb46df87920d97fe60a239a9e5c2e660d660c6
|
7
|
+
data.tar.gz: 32638e41755069eacce29e7a4a2e2e4847d7b9c890f868eb15eb1ad254c33d4b802724769010df046c50f239b30ff8a72bfe34824c3ee13dfe940b223e3571a3
|
data/CHANGELOG.md
CHANGED
@@ -1,4 +1,11 @@
|
|
1
1
|
# Changelog
|
2
|
+
## 10.13.0 - 2024-03-21
|
3
|
+
* [#1367](https://github.com/stripe/stripe-ruby/pull/1367) Update generated code
|
4
|
+
* Add support for new resources `ConfirmationToken` and `Forwarding.Request`
|
5
|
+
* Add support for `retrieve` method on resource `ConfirmationToken`
|
6
|
+
* Add support for `create`, `list`, and `retrieve` methods on resource `Request`
|
7
|
+
* [#1362](https://github.com/stripe/stripe-ruby/pull/1362) Exclude sorbet directory and tapioca script when packing gem
|
8
|
+
|
2
9
|
## 10.12.0 - 2024-03-14
|
3
10
|
* [#1359](https://github.com/stripe/stripe-ruby/pull/1359) Update generated code
|
4
11
|
* Add support for new resources `Issuing.PersonalizationDesign` and `Issuing.PhysicalBundle`
|
data/OPENAPI_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
v889
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
10.
|
1
|
+
10.13.0
|
data/lib/stripe/object_types.rb
CHANGED
@@ -33,6 +33,7 @@ module Stripe
|
|
33
33
|
Climate::Order.object_name => Climate::Order,
|
34
34
|
Climate::Product.object_name => Climate::Product,
|
35
35
|
Climate::Supplier.object_name => Climate::Supplier,
|
36
|
+
ConfirmationToken.object_name => ConfirmationToken,
|
36
37
|
CountrySpec.object_name => CountrySpec,
|
37
38
|
Coupon.object_name => Coupon,
|
38
39
|
CreditNote.object_name => CreditNote,
|
@@ -53,6 +54,7 @@ module Stripe
|
|
53
54
|
FinancialConnections::AccountOwnership.object_name => FinancialConnections::AccountOwnership,
|
54
55
|
FinancialConnections::Session.object_name => FinancialConnections::Session,
|
55
56
|
FinancialConnections::Transaction.object_name => FinancialConnections::Transaction,
|
57
|
+
Forwarding::Request.object_name => Forwarding::Request,
|
56
58
|
FundingInstructions.object_name => FundingInstructions,
|
57
59
|
Identity::VerificationReport.object_name => Identity::VerificationReport,
|
58
60
|
Identity::VerificationSession.object_name => Identity::VerificationSession,
|
@@ -0,0 +1,37 @@
|
|
1
|
+
# File generated from our OpenAPI spec
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
module Stripe
|
5
|
+
# ConfirmationTokens help transport client side data collected by Stripe JS over
|
6
|
+
# to your server for confirming a PaymentIntent or SetupIntent. If the confirmation
|
7
|
+
# is successful, values present on the ConfirmationToken are written onto the Intent.
|
8
|
+
#
|
9
|
+
# To learn more or request access, visit the related guided: [Finalize payments on the server using Confirmation Tokens](https://stripe.com/docs/payments/finalize-payments-on-the-server-confirmation-tokens).
|
10
|
+
class ConfirmationToken < APIResource
|
11
|
+
OBJECT_NAME = "confirmation_token"
|
12
|
+
def self.object_name
|
13
|
+
"confirmation_token"
|
14
|
+
end
|
15
|
+
|
16
|
+
def test_helpers
|
17
|
+
TestHelpers.new(self)
|
18
|
+
end
|
19
|
+
|
20
|
+
class TestHelpers < APIResourceTestHelpers
|
21
|
+
RESOURCE_CLASS = ConfirmationToken
|
22
|
+
def self.resource_class
|
23
|
+
"ConfirmationToken"
|
24
|
+
end
|
25
|
+
|
26
|
+
# Creates a test mode Confirmation Token server side for your integration tests.
|
27
|
+
def self.create(params = {}, opts = {})
|
28
|
+
request_stripe_object(
|
29
|
+
method: :post,
|
30
|
+
path: "/v1/test_helpers/confirmation_tokens",
|
31
|
+
params: params,
|
32
|
+
opts: opts
|
33
|
+
)
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
@@ -0,0 +1,50 @@
|
|
1
|
+
# File generated from our OpenAPI spec
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
module Stripe
|
5
|
+
module Forwarding
|
6
|
+
# Instructs Stripe to make a request on your behalf using the destination URL and HTTP method in the config.
|
7
|
+
# A config is set up for each destination URL by Stripe at the time of onboarding. Stripe verifies requests with
|
8
|
+
# your credentials in the config, and injects card details from the payment_method into the request.
|
9
|
+
#
|
10
|
+
# Stripe redacts all sensitive fields and headers, including authentication credentials and card numbers,
|
11
|
+
# before storing the request and response data in the forwarding Request object, which are subject to a
|
12
|
+
# 30-day retention period.
|
13
|
+
#
|
14
|
+
# You can provide a Stripe idempotency key to make sure that requests with the same key result in only one
|
15
|
+
# outbound request. The Stripe idempotency key provided should be unique and different from any idempotency
|
16
|
+
# keys provided on the underlying third-party request.
|
17
|
+
#
|
18
|
+
# Forwarding Requests are synchronous requests that return a response or time out according to
|
19
|
+
# Stripe's limits.
|
20
|
+
class Request < APIResource
|
21
|
+
extend Stripe::APIOperations::Create
|
22
|
+
extend Stripe::APIOperations::List
|
23
|
+
|
24
|
+
OBJECT_NAME = "forwarding.request"
|
25
|
+
def self.object_name
|
26
|
+
"forwarding.request"
|
27
|
+
end
|
28
|
+
|
29
|
+
# Creates a ForwardingRequest object.
|
30
|
+
def self.create(params = {}, opts = {})
|
31
|
+
request_stripe_object(
|
32
|
+
method: :post,
|
33
|
+
path: "/v1/forwarding/requests",
|
34
|
+
params: params,
|
35
|
+
opts: opts
|
36
|
+
)
|
37
|
+
end
|
38
|
+
|
39
|
+
# Lists all ForwardingRequest objects.
|
40
|
+
def self.list(filters = {}, opts = {})
|
41
|
+
request_stripe_object(
|
42
|
+
method: :get,
|
43
|
+
path: "/v1/forwarding/requests",
|
44
|
+
params: filters,
|
45
|
+
opts: opts
|
46
|
+
)
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
data/lib/stripe/resources.rb
CHANGED
@@ -21,6 +21,7 @@ require "stripe/resources/checkout/session"
|
|
21
21
|
require "stripe/resources/climate/order"
|
22
22
|
require "stripe/resources/climate/product"
|
23
23
|
require "stripe/resources/climate/supplier"
|
24
|
+
require "stripe/resources/confirmation_token"
|
24
25
|
require "stripe/resources/country_spec"
|
25
26
|
require "stripe/resources/coupon"
|
26
27
|
require "stripe/resources/credit_note"
|
@@ -41,6 +42,7 @@ require "stripe/resources/financial_connections/account_owner"
|
|
41
42
|
require "stripe/resources/financial_connections/account_ownership"
|
42
43
|
require "stripe/resources/financial_connections/session"
|
43
44
|
require "stripe/resources/financial_connections/transaction"
|
45
|
+
require "stripe/resources/forwarding/request"
|
44
46
|
require "stripe/resources/funding_instructions"
|
45
47
|
require "stripe/resources/identity/verification_report"
|
46
48
|
require "stripe/resources/identity/verification_session"
|
data/lib/stripe/version.rb
CHANGED
data/stripe.gemspec
CHANGED
@@ -33,10 +33,13 @@ Gem::Specification.new do |s|
|
|
33
33
|
/\A\.rubocop/,
|
34
34
|
/\A\.travis.yml/,
|
35
35
|
/\A\.vscode/,
|
36
|
+
%r{\A(bin/tapioca)},
|
37
|
+
/\Asorbet/,
|
36
38
|
/\Atest/
|
37
39
|
)
|
38
40
|
s.files = `git ls-files`.split("\n").reject { |f| ignored.match(f) }
|
39
41
|
s.executables = `git ls-files -- bin/*`.split("\n")
|
40
42
|
.map { |f| File.basename(f) }
|
43
|
+
.reject { |f| f == "tapioca" }
|
41
44
|
s.require_paths = ["lib"]
|
42
45
|
end
|
metadata
CHANGED
@@ -1,21 +1,20 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stripe
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 10.
|
4
|
+
version: 10.13.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stripe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-03-
|
11
|
+
date: 2024-03-21 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.
|
15
15
|
email: support@stripe.com
|
16
16
|
executables:
|
17
17
|
- stripe-console
|
18
|
-
- tapioca
|
19
18
|
extensions: []
|
20
19
|
extra_rdoc_files: []
|
21
20
|
files:
|
@@ -31,7 +30,6 @@ files:
|
|
31
30
|
- Rakefile
|
32
31
|
- VERSION
|
33
32
|
- bin/stripe-console
|
34
|
-
- bin/tapioca
|
35
33
|
- lib/data/ca-certificates.crt
|
36
34
|
- lib/stripe.rb
|
37
35
|
- lib/stripe/api_operations/create.rb
|
@@ -75,6 +73,7 @@ files:
|
|
75
73
|
- lib/stripe/resources/climate/order.rb
|
76
74
|
- lib/stripe/resources/climate/product.rb
|
77
75
|
- lib/stripe/resources/climate/supplier.rb
|
76
|
+
- lib/stripe/resources/confirmation_token.rb
|
78
77
|
- lib/stripe/resources/country_spec.rb
|
79
78
|
- lib/stripe/resources/coupon.rb
|
80
79
|
- lib/stripe/resources/credit_note.rb
|
@@ -95,6 +94,7 @@ files:
|
|
95
94
|
- lib/stripe/resources/financial_connections/account_ownership.rb
|
96
95
|
- lib/stripe/resources/financial_connections/session.rb
|
97
96
|
- lib/stripe/resources/financial_connections/transaction.rb
|
97
|
+
- lib/stripe/resources/forwarding/request.rb
|
98
98
|
- lib/stripe/resources/funding_instructions.rb
|
99
99
|
- lib/stripe/resources/identity/verification_report.rb
|
100
100
|
- lib/stripe/resources/identity/verification_session.rb
|
@@ -182,61 +182,6 @@ files:
|
|
182
182
|
- lib/stripe/util.rb
|
183
183
|
- lib/stripe/version.rb
|
184
184
|
- lib/stripe/webhook.rb
|
185
|
-
- sorbet/config
|
186
|
-
- sorbet/rbi/annotations/.gitattributes
|
187
|
-
- sorbet/rbi/annotations/coveralls_reborn.rbi
|
188
|
-
- sorbet/rbi/gems/.gitattributes
|
189
|
-
- sorbet/rbi/gems/addressable@2.8.6.rbi
|
190
|
-
- sorbet/rbi/gems/ast@2.4.2.rbi
|
191
|
-
- sorbet/rbi/gems/byebug@11.1.3.rbi
|
192
|
-
- sorbet/rbi/gems/coderay@1.1.3.rbi
|
193
|
-
- sorbet/rbi/gems/coveralls_reborn@0.25.0.rbi
|
194
|
-
- sorbet/rbi/gems/crack@0.4.5.rbi
|
195
|
-
- sorbet/rbi/gems/docile@1.4.0.rbi
|
196
|
-
- sorbet/rbi/gems/erubi@1.12.0.rbi
|
197
|
-
- sorbet/rbi/gems/hashdiff@1.1.0.rbi
|
198
|
-
- sorbet/rbi/gems/jaro_winkler@1.5.4.rbi
|
199
|
-
- sorbet/rbi/gems/json@2.7.1.rbi
|
200
|
-
- sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi
|
201
|
-
- sorbet/rbi/gems/method_source@1.0.0.rbi
|
202
|
-
- sorbet/rbi/gems/mocha@1.16.1.rbi
|
203
|
-
- sorbet/rbi/gems/netrc@0.11.0.rbi
|
204
|
-
- sorbet/rbi/gems/parallel@1.24.0.rbi
|
205
|
-
- sorbet/rbi/gems/parser@3.2.2.4.rbi
|
206
|
-
- sorbet/rbi/gems/power_assert@2.0.3.rbi
|
207
|
-
- sorbet/rbi/gems/prettier_print@1.2.1.rbi
|
208
|
-
- sorbet/rbi/gems/prism@0.19.0.rbi
|
209
|
-
- sorbet/rbi/gems/pry-byebug@3.10.1.rbi
|
210
|
-
- sorbet/rbi/gems/pry@0.14.2.rbi
|
211
|
-
- sorbet/rbi/gems/public_suffix@5.0.4.rbi
|
212
|
-
- sorbet/rbi/gems/racc@1.7.3.rbi
|
213
|
-
- sorbet/rbi/gems/rack@3.0.8.rbi
|
214
|
-
- sorbet/rbi/gems/rainbow@3.1.1.rbi
|
215
|
-
- sorbet/rbi/gems/rake@13.1.0.rbi
|
216
|
-
- sorbet/rbi/gems/rbi@0.1.6.rbi
|
217
|
-
- sorbet/rbi/gems/regexp_parser@2.8.3.rbi
|
218
|
-
- sorbet/rbi/gems/rexml@3.2.6.rbi
|
219
|
-
- sorbet/rbi/gems/rubocop-ast@1.30.0.rbi
|
220
|
-
- sorbet/rbi/gems/rubocop@1.57.2.rbi
|
221
|
-
- sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi
|
222
|
-
- sorbet/rbi/gems/shoulda-context@2.0.0.rbi
|
223
|
-
- sorbet/rbi/gems/simplecov-html@0.12.3.rbi
|
224
|
-
- sorbet/rbi/gems/simplecov@0.21.2.rbi
|
225
|
-
- sorbet/rbi/gems/simplecov_json_formatter@0.1.4.rbi
|
226
|
-
- sorbet/rbi/gems/spoom@1.2.4.rbi
|
227
|
-
- sorbet/rbi/gems/sync@0.5.0.rbi
|
228
|
-
- sorbet/rbi/gems/syntax_tree@6.2.0.rbi
|
229
|
-
- sorbet/rbi/gems/tapioca@0.11.17.rbi
|
230
|
-
- sorbet/rbi/gems/term-ansicolor@1.7.1.rbi
|
231
|
-
- sorbet/rbi/gems/test-unit@3.6.1.rbi
|
232
|
-
- sorbet/rbi/gems/thor@1.3.0.rbi
|
233
|
-
- sorbet/rbi/gems/tins@1.32.1.rbi
|
234
|
-
- sorbet/rbi/gems/unicode-display_width@2.5.0.rbi
|
235
|
-
- sorbet/rbi/gems/webmock@3.19.1.rbi
|
236
|
-
- sorbet/rbi/gems/yard-sorbet@0.8.1.rbi
|
237
|
-
- sorbet/rbi/gems/yard@0.9.34.rbi
|
238
|
-
- sorbet/tapioca/config.yml
|
239
|
-
- sorbet/tapioca/require.rb
|
240
185
|
- stripe.gemspec
|
241
186
|
homepage: https://stripe.com/docs/api?lang=ruby
|
242
187
|
licenses:
|
data/bin/tapioca
DELETED
@@ -1,27 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
#
|
5
|
-
# This file was generated by Bundler.
|
6
|
-
#
|
7
|
-
# The application 'tapioca' is installed as part of a gem, and
|
8
|
-
# this file is here to facilitate running it.
|
9
|
-
#
|
10
|
-
|
11
|
-
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
|
12
|
-
|
13
|
-
bundle_binstub = File.expand_path("bundle", __dir__)
|
14
|
-
|
15
|
-
if File.file?(bundle_binstub)
|
16
|
-
if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
|
17
|
-
load(bundle_binstub)
|
18
|
-
else
|
19
|
-
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
|
20
|
-
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
|
21
|
-
end
|
22
|
-
end
|
23
|
-
|
24
|
-
require "rubygems"
|
25
|
-
require "bundler/setup"
|
26
|
-
|
27
|
-
load Gem.bin_path("tapioca", "tapioca")
|
data/sorbet/config
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
**/*.rbi linguist-vendored=true
|
@@ -1 +0,0 @@
|
|
1
|
-
**/*.rbi linguist-generated=true
|