stripe 4.24.0 → 5.36.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 +169 -0
- data/CODE_OF_CONDUCT.md +77 -0
- data/Gemfile +10 -16
- data/README.md +111 -44
- data/Rakefile +8 -7
- data/VERSION +1 -1
- data/lib/stripe.rb +39 -130
- data/lib/stripe/api_operations/create.rb +1 -1
- data/lib/stripe/api_operations/delete.rb +7 -3
- data/lib/stripe/api_operations/list.rb +1 -12
- data/lib/stripe/api_operations/nested_resource.rb +29 -26
- data/lib/stripe/api_operations/request.rb +82 -6
- data/lib/stripe/api_operations/save.rb +7 -4
- data/lib/stripe/api_resource.rb +12 -3
- data/lib/stripe/connection_manager.rb +179 -0
- data/lib/stripe/error_object.rb +94 -0
- data/lib/stripe/errors.rb +24 -3
- data/lib/stripe/instrumentation.rb +82 -0
- data/lib/stripe/list_object.rb +34 -5
- data/lib/stripe/multipart_encoder.rb +131 -0
- data/lib/stripe/oauth.rb +8 -6
- data/lib/stripe/object_types.rb +12 -1
- data/lib/stripe/resources.rb +12 -1
- data/lib/stripe/resources/account.rb +6 -14
- data/lib/stripe/resources/account_link.rb +2 -1
- data/lib/stripe/resources/alipay_account.rb +1 -1
- data/lib/stripe/resources/apple_pay_domain.rb +2 -1
- data/lib/stripe/resources/application_fee.rb +2 -12
- data/lib/stripe/resources/application_fee_refund.rb +1 -1
- data/lib/stripe/resources/balance.rb +2 -1
- data/lib/stripe/resources/balance_transaction.rb +2 -1
- data/lib/stripe/resources/bank_account.rb +3 -2
- data/lib/stripe/resources/billing_portal/configuration.rb +14 -0
- data/lib/stripe/resources/billing_portal/session.rb +12 -0
- data/lib/stripe/resources/bitcoin_receiver.rb +2 -1
- data/lib/stripe/resources/bitcoin_transaction.rb +1 -1
- data/lib/stripe/resources/capability.rb +1 -1
- data/lib/stripe/resources/card.rb +2 -1
- data/lib/stripe/resources/charge.rb +8 -69
- data/lib/stripe/resources/checkout/session.rb +6 -1
- data/lib/stripe/resources/country_spec.rb +2 -1
- data/lib/stripe/resources/coupon.rb +2 -1
- data/lib/stripe/resources/credit_note.rb +12 -1
- data/lib/stripe/resources/credit_note_line_item.rb +7 -0
- data/lib/stripe/resources/customer.rb +9 -63
- data/lib/stripe/resources/customer_balance_transaction.rb +1 -1
- data/lib/stripe/resources/discount.rb +1 -1
- data/lib/stripe/resources/dispute.rb +2 -7
- data/lib/stripe/resources/ephemeral_key.rb +2 -1
- data/lib/stripe/resources/event.rb +2 -1
- data/lib/stripe/resources/exchange_rate.rb +2 -1
- data/lib/stripe/resources/file.rb +6 -14
- data/lib/stripe/resources/file_link.rb +2 -1
- data/lib/stripe/resources/identity/verification_report.rb +12 -0
- data/lib/stripe/resources/identity/verification_session.rb +35 -0
- data/lib/stripe/resources/invoice.rb +8 -2
- data/lib/stripe/resources/invoice_item.rb +2 -1
- data/lib/stripe/resources/invoice_line_item.rb +1 -1
- data/lib/stripe/resources/issuing/authorization.rb +2 -1
- data/lib/stripe/resources/issuing/card.rb +2 -1
- data/lib/stripe/resources/issuing/card_details.rb +1 -1
- data/lib/stripe/resources/issuing/cardholder.rb +2 -1
- data/lib/stripe/resources/issuing/dispute.rb +13 -1
- data/lib/stripe/resources/issuing/transaction.rb +2 -1
- data/lib/stripe/resources/line_item.rb +7 -0
- data/lib/stripe/resources/login_link.rb +1 -1
- data/lib/stripe/resources/mandate.rb +8 -0
- data/lib/stripe/resources/order.rb +2 -9
- data/lib/stripe/resources/order_return.rb +2 -1
- data/lib/stripe/resources/payment_intent.rb +2 -1
- data/lib/stripe/resources/payment_method.rb +2 -1
- data/lib/stripe/resources/payout.rb +10 -5
- data/lib/stripe/resources/person.rb +1 -1
- data/lib/stripe/resources/plan.rb +2 -1
- data/lib/stripe/resources/price.rb +12 -0
- data/lib/stripe/resources/product.rb +2 -1
- data/lib/stripe/resources/promotion_code.rb +12 -0
- data/lib/stripe/resources/quote.rb +95 -0
- data/lib/stripe/resources/radar/early_fraud_warning.rb +2 -1
- data/lib/stripe/resources/radar/value_list.rb +2 -1
- data/lib/stripe/resources/radar/value_list_item.rb +2 -1
- data/lib/stripe/resources/recipient.rb +2 -5
- data/lib/stripe/resources/recipient_transfer.rb +1 -1
- data/lib/stripe/resources/refund.rb +2 -1
- data/lib/stripe/resources/reporting/report_run.rb +2 -1
- data/lib/stripe/resources/reporting/report_type.rb +2 -1
- data/lib/stripe/resources/reversal.rb +1 -1
- data/lib/stripe/resources/review.rb +2 -1
- data/lib/stripe/resources/setup_attempt.rb +10 -0
- data/lib/stripe/resources/setup_intent.rb +2 -1
- data/lib/stripe/resources/sigma/scheduled_query_run.rb +2 -1
- data/lib/stripe/resources/sku.rb +2 -1
- data/lib/stripe/resources/source.rb +11 -10
- data/lib/stripe/resources/source_transaction.rb +1 -1
- data/lib/stripe/resources/subscription.rb +10 -9
- data/lib/stripe/resources/subscription_item.rb +8 -2
- data/lib/stripe/resources/subscription_schedule.rb +2 -1
- data/lib/stripe/resources/tax_code.rb +10 -0
- data/lib/stripe/resources/tax_id.rb +1 -1
- data/lib/stripe/resources/tax_rate.rb +2 -1
- data/lib/stripe/resources/terminal/connection_token.rb +2 -1
- data/lib/stripe/resources/terminal/location.rb +2 -1
- data/lib/stripe/resources/terminal/reader.rb +2 -1
- data/lib/stripe/resources/three_d_secure.rb +2 -1
- data/lib/stripe/resources/token.rb +2 -1
- data/lib/stripe/resources/topup.rb +2 -1
- data/lib/stripe/resources/transfer.rb +2 -6
- data/lib/stripe/resources/usage_record.rb +1 -17
- data/lib/stripe/resources/usage_record_summary.rb +1 -1
- data/lib/stripe/resources/webhook_endpoint.rb +2 -1
- data/lib/stripe/stripe_client.rb +608 -242
- data/lib/stripe/stripe_configuration.rb +194 -0
- data/lib/stripe/stripe_object.rb +30 -25
- data/lib/stripe/stripe_response.rb +87 -27
- data/lib/stripe/util.rb +37 -18
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe/webhook.rb +39 -8
- data/stripe.gemspec +15 -11
- metadata +24 -216
- data/.editorconfig +0 -10
- data/.gitattributes +0 -4
- data/.github/ISSUE_TEMPLATE.md +0 -5
- data/.gitignore +0 -8
- data/.rubocop.yml +0 -43
- data/.rubocop_todo.yml +0 -38
- data/.travis.yml +0 -43
- data/.vscode/extensions.json +0 -7
- data/.vscode/settings.json +0 -8
- data/lib/stripe/resources/issuer_fraud_record.rb +0 -9
- data/test/api_stub_helpers.rb +0 -1
- data/test/openapi/README.md +0 -9
- data/test/stripe/account_link_test.rb +0 -18
- data/test/stripe/account_test.rb +0 -428
- data/test/stripe/alipay_account_test.rb +0 -37
- data/test/stripe/api_operations_test.rb +0 -80
- data/test/stripe/api_resource_test.rb +0 -621
- data/test/stripe/apple_pay_domain_test.rb +0 -46
- data/test/stripe/application_fee_refund_test.rb +0 -37
- data/test/stripe/application_fee_test.rb +0 -58
- data/test/stripe/balance_test.rb +0 -13
- data/test/stripe/balance_transaction_test.rb +0 -20
- data/test/stripe/bank_account_test.rb +0 -36
- data/test/stripe/capability_test.rb +0 -45
- data/test/stripe/charge_test.rb +0 -80
- data/test/stripe/checkout/session_test.rb +0 -41
- data/test/stripe/country_spec_test.rb +0 -20
- data/test/stripe/coupon_test.rb +0 -61
- data/test/stripe/credit_note_test.rb +0 -61
- data/test/stripe/customer_balance_transaction_test.rb +0 -37
- data/test/stripe/customer_card_test.rb +0 -42
- data/test/stripe/customer_test.rb +0 -269
- data/test/stripe/dispute_test.rb +0 -51
- data/test/stripe/ephemeral_key_test.rb +0 -93
- data/test/stripe/errors_test.rb +0 -20
- data/test/stripe/exchange_rate_test.rb +0 -20
- data/test/stripe/file_link_test.rb +0 -41
- data/test/stripe/file_test.rb +0 -97
- data/test/stripe/file_upload_test.rb +0 -79
- data/test/stripe/invoice_item_test.rb +0 -66
- data/test/stripe/invoice_line_item_test.rb +0 -8
- data/test/stripe/invoice_test.rb +0 -213
- data/test/stripe/issuer_fraud_record_test.rb +0 -20
- data/test/stripe/issuing/authorization_test.rb +0 -72
- data/test/stripe/issuing/card_test.rb +0 -62
- data/test/stripe/issuing/cardholder_test.rb +0 -53
- data/test/stripe/issuing/dispute_test.rb +0 -45
- data/test/stripe/issuing/transaction_test.rb +0 -48
- data/test/stripe/list_object_test.rb +0 -156
- data/test/stripe/login_link_test.rb +0 -37
- data/test/stripe/oauth_test.rb +0 -88
- data/test/stripe/order_return_test.rb +0 -21
- data/test/stripe/order_test.rb +0 -82
- data/test/stripe/payment_intent_test.rb +0 -107
- data/test/stripe/payment_method_test.rb +0 -84
- data/test/stripe/payout_test.rb +0 -57
- data/test/stripe/person_test.rb +0 -46
- data/test/stripe/plan_test.rb +0 -98
- data/test/stripe/product_test.rb +0 -59
- data/test/stripe/radar/early_fraud_warning_test.rb +0 -22
- data/test/stripe/radar/value_list_item_test.rb +0 -48
- data/test/stripe/radar/value_list_test.rb +0 -61
- data/test/stripe/recipient_test.rb +0 -62
- data/test/stripe/refund_test.rb +0 -39
- data/test/stripe/reporting/report_run_test.rb +0 -33
- data/test/stripe/reporting/report_type_test.rb +0 -22
- data/test/stripe/reversal_test.rb +0 -43
- data/test/stripe/review_test.rb +0 -27
- data/test/stripe/setup_intent_test.rb +0 -84
- data/test/stripe/sigma/scheduled_query_run_test.rb +0 -22
- data/test/stripe/sku_test.rb +0 -60
- data/test/stripe/source_test.rb +0 -99
- data/test/stripe/source_transaction_test.rb +0 -19
- data/test/stripe/stripe_client_test.rb +0 -842
- data/test/stripe/stripe_object_test.rb +0 -525
- data/test/stripe/stripe_response_test.rb +0 -49
- data/test/stripe/subscription_item_test.rb +0 -75
- data/test/stripe/subscription_schedule_test.rb +0 -82
- data/test/stripe/subscription_test.rb +0 -80
- data/test/stripe/tax_id_test.rb +0 -31
- data/test/stripe/tax_rate_test.rb +0 -43
- data/test/stripe/terminal/connection_token_test.rb +0 -16
- data/test/stripe/terminal/location_test.rb +0 -68
- data/test/stripe/terminal/reader_test.rb +0 -62
- data/test/stripe/three_d_secure_test.rb +0 -23
- data/test/stripe/topup_test.rb +0 -62
- data/test/stripe/transfer_test.rb +0 -88
- data/test/stripe/usage_record_summary_test.rb +0 -19
- data/test/stripe/usage_record_test.rb +0 -28
- data/test/stripe/util_test.rb +0 -402
- data/test/stripe/webhook_endpoint_test.rb +0 -59
- data/test/stripe/webhook_test.rb +0 -96
- data/test/stripe_mock.rb +0 -77
- data/test/stripe_test.rb +0 -63
- data/test/test_data.rb +0 -61
- data/test/test_helper.rb +0 -71
data/lib/stripe/version.rb
CHANGED
data/lib/stripe/webhook.rb
CHANGED
@@ -22,12 +22,39 @@ module Stripe
|
|
22
22
|
end
|
23
23
|
|
24
24
|
module Signature
|
25
|
-
EXPECTED_SCHEME = "v1"
|
25
|
+
EXPECTED_SCHEME = "v1"
|
26
26
|
|
27
|
-
|
28
|
-
|
27
|
+
# Computes a webhook signature given a time (probably the current time),
|
28
|
+
# a payload, and a signing secret.
|
29
|
+
def self.compute_signature(timestamp, payload, secret)
|
30
|
+
raise ArgumentError, "timestamp should be an instance of Time" \
|
31
|
+
unless timestamp.is_a?(Time)
|
32
|
+
raise ArgumentError, "payload should be a string" \
|
33
|
+
unless payload.is_a?(String)
|
34
|
+
raise ArgumentError, "secret should be a string" \
|
35
|
+
unless secret.is_a?(String)
|
36
|
+
|
37
|
+
timestamped_payload = "#{timestamp.to_i}.#{payload}"
|
38
|
+
OpenSSL::HMAC.hexdigest(OpenSSL::Digest.new("sha256"), secret,
|
39
|
+
timestamped_payload)
|
40
|
+
end
|
41
|
+
|
42
|
+
# Generates a value that would be added to a `Stripe-Signature` for a
|
43
|
+
# given webhook payload.
|
44
|
+
#
|
45
|
+
# Note that this isn't needed to verify webhooks in any way, and is
|
46
|
+
# mainly here for use in test cases (those that are both within this
|
47
|
+
# project and without).
|
48
|
+
def self.generate_header(timestamp, signature, scheme: EXPECTED_SCHEME)
|
49
|
+
raise ArgumentError, "timestamp should be an instance of Time" \
|
50
|
+
unless timestamp.is_a?(Time)
|
51
|
+
raise ArgumentError, "signature should be a string" \
|
52
|
+
unless signature.is_a?(String)
|
53
|
+
raise ArgumentError, "scheme should be a string" \
|
54
|
+
unless scheme.is_a?(String)
|
55
|
+
|
56
|
+
"t=#{timestamp.to_i},#{scheme}=#{signature}"
|
29
57
|
end
|
30
|
-
private_class_method :compute_signature
|
31
58
|
|
32
59
|
# Extracts the timestamp and the signature(s) with the desired scheme
|
33
60
|
# from the header
|
@@ -35,7 +62,7 @@ module Stripe
|
|
35
62
|
list_items = header.split(/,\s*/).map { |i| i.split("=", 2) }
|
36
63
|
timestamp = Integer(list_items.select { |i| i[0] == "t" }[0][1])
|
37
64
|
signatures = list_items.select { |i| i[0] == scheme }.map { |i| i[1] }
|
38
|
-
[timestamp, signatures]
|
65
|
+
[Time.at(timestamp), signatures]
|
39
66
|
end
|
40
67
|
private_class_method :get_timestamp_and_signatures
|
41
68
|
|
@@ -53,6 +80,11 @@ module Stripe
|
|
53
80
|
begin
|
54
81
|
timestamp, signatures =
|
55
82
|
get_timestamp_and_signatures(header, EXPECTED_SCHEME)
|
83
|
+
|
84
|
+
# TODO: Try to knock over this blanket rescue as it can unintentionally
|
85
|
+
# swallow many valid errors. Instead, try to validate an incoming
|
86
|
+
# header one piece at a time, and error with a known exception class if
|
87
|
+
# any part is found to be invalid. Rescue that class here.
|
56
88
|
rescue StandardError
|
57
89
|
raise SignatureVerificationError.new(
|
58
90
|
"Unable to extract timestamp and signatures from header",
|
@@ -67,8 +99,7 @@ module Stripe
|
|
67
99
|
)
|
68
100
|
end
|
69
101
|
|
70
|
-
|
71
|
-
expected_sig = compute_signature(signed_payload, secret)
|
102
|
+
expected_sig = compute_signature(timestamp, payload, secret)
|
72
103
|
unless signatures.any? { |s| Util.secure_compare(expected_sig, s) }
|
73
104
|
raise SignatureVerificationError.new(
|
74
105
|
"No signatures found matching the expected signature for payload",
|
@@ -76,7 +107,7 @@ module Stripe
|
|
76
107
|
)
|
77
108
|
end
|
78
109
|
|
79
|
-
if tolerance && timestamp < Time.now
|
110
|
+
if tolerance && timestamp < Time.now - tolerance
|
80
111
|
raise SignatureVerificationError.new(
|
81
112
|
"Timestamp outside the tolerance zone (#{Time.at(timestamp)})",
|
82
113
|
header, http_body: payload
|
data/stripe.gemspec
CHANGED
@@ -7,7 +7,7 @@ require "stripe/version"
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "stripe"
|
9
9
|
s.version = Stripe::VERSION
|
10
|
-
s.required_ruby_version = ">= 2.
|
10
|
+
s.required_ruby_version = ">= 2.3.0"
|
11
11
|
s.summary = "Ruby bindings for the Stripe API"
|
12
12
|
s.description = "Stripe is the easiest way to accept payments online. " \
|
13
13
|
"See https://stripe.com for details."
|
@@ -17,20 +17,24 @@ Gem::Specification.new do |s|
|
|
17
17
|
s.license = "MIT"
|
18
18
|
|
19
19
|
s.metadata = {
|
20
|
-
"bug_tracker_uri"
|
21
|
-
"changelog_uri"
|
20
|
+
"bug_tracker_uri" => "https://github.com/stripe/stripe-ruby/issues",
|
21
|
+
"changelog_uri" =>
|
22
22
|
"https://github.com/stripe/stripe-ruby/blob/master/CHANGELOG.md",
|
23
23
|
"documentation_uri" => "https://stripe.com/docs/api/ruby",
|
24
|
-
"github_repo"
|
25
|
-
"homepage_uri"
|
26
|
-
"source_code_uri"
|
24
|
+
"github_repo" => "ssh://github.com/stripe/stripe-ruby",
|
25
|
+
"homepage_uri" => "https://stripe.com/docs/api/ruby",
|
26
|
+
"source_code_uri" => "https://github.com/stripe/stripe-ruby",
|
27
27
|
}
|
28
28
|
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
29
|
+
ignored = Regexp.union(
|
30
|
+
/\A\.editorconfig/,
|
31
|
+
/\A\.git/,
|
32
|
+
/\A\.rubocop/,
|
33
|
+
/\A\.travis.yml/,
|
34
|
+
/\A\.vscode/,
|
35
|
+
/\Atest/
|
36
|
+
)
|
37
|
+
s.files = `git ls-files`.split("\n").reject { |f| ignored.match(f) }
|
34
38
|
s.executables = `git ls-files -- bin/*`.split("\n")
|
35
39
|
.map { |f| ::File.basename(f) }
|
36
40
|
s.require_paths = ["lib"]
|
metadata
CHANGED
@@ -1,43 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stripe
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 5.36.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stripe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
12
|
-
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: faraday
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - "~>"
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '0.13'
|
20
|
-
type: :runtime
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - "~>"
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '0.13'
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: net-http-persistent
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - "~>"
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '3.0'
|
34
|
-
type: :runtime
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - "~>"
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '3.0'
|
11
|
+
date: 2021-07-09 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
41
13
|
description: Stripe is the easiest way to accept payments online. See https://stripe.com
|
42
14
|
for details.
|
43
15
|
email: support@stripe.com
|
@@ -46,16 +18,8 @@ executables:
|
|
46
18
|
extensions: []
|
47
19
|
extra_rdoc_files: []
|
48
20
|
files:
|
49
|
-
- ".editorconfig"
|
50
|
-
- ".gitattributes"
|
51
|
-
- ".github/ISSUE_TEMPLATE.md"
|
52
|
-
- ".gitignore"
|
53
|
-
- ".rubocop.yml"
|
54
|
-
- ".rubocop_todo.yml"
|
55
|
-
- ".travis.yml"
|
56
|
-
- ".vscode/extensions.json"
|
57
|
-
- ".vscode/settings.json"
|
58
21
|
- CHANGELOG.md
|
22
|
+
- CODE_OF_CONDUCT.md
|
59
23
|
- CONTRIBUTORS
|
60
24
|
- Gemfile
|
61
25
|
- History.txt
|
@@ -73,8 +37,12 @@ files:
|
|
73
37
|
- lib/stripe/api_operations/request.rb
|
74
38
|
- lib/stripe/api_operations/save.rb
|
75
39
|
- lib/stripe/api_resource.rb
|
40
|
+
- lib/stripe/connection_manager.rb
|
41
|
+
- lib/stripe/error_object.rb
|
76
42
|
- lib/stripe/errors.rb
|
43
|
+
- lib/stripe/instrumentation.rb
|
77
44
|
- lib/stripe/list_object.rb
|
45
|
+
- lib/stripe/multipart_encoder.rb
|
78
46
|
- lib/stripe/oauth.rb
|
79
47
|
- lib/stripe/object_types.rb
|
80
48
|
- lib/stripe/resources.rb
|
@@ -87,6 +55,8 @@ files:
|
|
87
55
|
- lib/stripe/resources/balance.rb
|
88
56
|
- lib/stripe/resources/balance_transaction.rb
|
89
57
|
- lib/stripe/resources/bank_account.rb
|
58
|
+
- lib/stripe/resources/billing_portal/configuration.rb
|
59
|
+
- lib/stripe/resources/billing_portal/session.rb
|
90
60
|
- lib/stripe/resources/bitcoin_receiver.rb
|
91
61
|
- lib/stripe/resources/bitcoin_transaction.rb
|
92
62
|
- lib/stripe/resources/capability.rb
|
@@ -96,6 +66,7 @@ files:
|
|
96
66
|
- lib/stripe/resources/country_spec.rb
|
97
67
|
- lib/stripe/resources/coupon.rb
|
98
68
|
- lib/stripe/resources/credit_note.rb
|
69
|
+
- lib/stripe/resources/credit_note_line_item.rb
|
99
70
|
- lib/stripe/resources/customer.rb
|
100
71
|
- lib/stripe/resources/customer_balance_transaction.rb
|
101
72
|
- lib/stripe/resources/discount.rb
|
@@ -105,17 +76,20 @@ files:
|
|
105
76
|
- lib/stripe/resources/exchange_rate.rb
|
106
77
|
- lib/stripe/resources/file.rb
|
107
78
|
- lib/stripe/resources/file_link.rb
|
79
|
+
- lib/stripe/resources/identity/verification_report.rb
|
80
|
+
- lib/stripe/resources/identity/verification_session.rb
|
108
81
|
- lib/stripe/resources/invoice.rb
|
109
82
|
- lib/stripe/resources/invoice_item.rb
|
110
83
|
- lib/stripe/resources/invoice_line_item.rb
|
111
|
-
- lib/stripe/resources/issuer_fraud_record.rb
|
112
84
|
- lib/stripe/resources/issuing/authorization.rb
|
113
85
|
- lib/stripe/resources/issuing/card.rb
|
114
86
|
- lib/stripe/resources/issuing/card_details.rb
|
115
87
|
- lib/stripe/resources/issuing/cardholder.rb
|
116
88
|
- lib/stripe/resources/issuing/dispute.rb
|
117
89
|
- lib/stripe/resources/issuing/transaction.rb
|
90
|
+
- lib/stripe/resources/line_item.rb
|
118
91
|
- lib/stripe/resources/login_link.rb
|
92
|
+
- lib/stripe/resources/mandate.rb
|
119
93
|
- lib/stripe/resources/order.rb
|
120
94
|
- lib/stripe/resources/order_return.rb
|
121
95
|
- lib/stripe/resources/payment_intent.rb
|
@@ -123,7 +97,10 @@ files:
|
|
123
97
|
- lib/stripe/resources/payout.rb
|
124
98
|
- lib/stripe/resources/person.rb
|
125
99
|
- lib/stripe/resources/plan.rb
|
100
|
+
- lib/stripe/resources/price.rb
|
126
101
|
- lib/stripe/resources/product.rb
|
102
|
+
- lib/stripe/resources/promotion_code.rb
|
103
|
+
- lib/stripe/resources/quote.rb
|
127
104
|
- lib/stripe/resources/radar/early_fraud_warning.rb
|
128
105
|
- lib/stripe/resources/radar/value_list.rb
|
129
106
|
- lib/stripe/resources/radar/value_list_item.rb
|
@@ -134,6 +111,7 @@ files:
|
|
134
111
|
- lib/stripe/resources/reporting/report_type.rb
|
135
112
|
- lib/stripe/resources/reversal.rb
|
136
113
|
- lib/stripe/resources/review.rb
|
114
|
+
- lib/stripe/resources/setup_attempt.rb
|
137
115
|
- lib/stripe/resources/setup_intent.rb
|
138
116
|
- lib/stripe/resources/sigma/scheduled_query_run.rb
|
139
117
|
- lib/stripe/resources/sku.rb
|
@@ -142,6 +120,7 @@ files:
|
|
142
120
|
- lib/stripe/resources/subscription.rb
|
143
121
|
- lib/stripe/resources/subscription_item.rb
|
144
122
|
- lib/stripe/resources/subscription_schedule.rb
|
123
|
+
- lib/stripe/resources/tax_code.rb
|
145
124
|
- lib/stripe/resources/tax_id.rb
|
146
125
|
- lib/stripe/resources/tax_rate.rb
|
147
126
|
- lib/stripe/resources/terminal/connection_token.rb
|
@@ -156,98 +135,13 @@ files:
|
|
156
135
|
- lib/stripe/resources/webhook_endpoint.rb
|
157
136
|
- lib/stripe/singleton_api_resource.rb
|
158
137
|
- lib/stripe/stripe_client.rb
|
138
|
+
- lib/stripe/stripe_configuration.rb
|
159
139
|
- lib/stripe/stripe_object.rb
|
160
140
|
- lib/stripe/stripe_response.rb
|
161
141
|
- lib/stripe/util.rb
|
162
142
|
- lib/stripe/version.rb
|
163
143
|
- lib/stripe/webhook.rb
|
164
144
|
- stripe.gemspec
|
165
|
-
- test/api_stub_helpers.rb
|
166
|
-
- test/openapi/README.md
|
167
|
-
- test/stripe/account_link_test.rb
|
168
|
-
- test/stripe/account_test.rb
|
169
|
-
- test/stripe/alipay_account_test.rb
|
170
|
-
- test/stripe/api_operations_test.rb
|
171
|
-
- test/stripe/api_resource_test.rb
|
172
|
-
- test/stripe/apple_pay_domain_test.rb
|
173
|
-
- test/stripe/application_fee_refund_test.rb
|
174
|
-
- test/stripe/application_fee_test.rb
|
175
|
-
- test/stripe/balance_test.rb
|
176
|
-
- test/stripe/balance_transaction_test.rb
|
177
|
-
- test/stripe/bank_account_test.rb
|
178
|
-
- test/stripe/capability_test.rb
|
179
|
-
- test/stripe/charge_test.rb
|
180
|
-
- test/stripe/checkout/session_test.rb
|
181
|
-
- test/stripe/country_spec_test.rb
|
182
|
-
- test/stripe/coupon_test.rb
|
183
|
-
- test/stripe/credit_note_test.rb
|
184
|
-
- test/stripe/customer_balance_transaction_test.rb
|
185
|
-
- test/stripe/customer_card_test.rb
|
186
|
-
- test/stripe/customer_test.rb
|
187
|
-
- test/stripe/dispute_test.rb
|
188
|
-
- test/stripe/ephemeral_key_test.rb
|
189
|
-
- test/stripe/errors_test.rb
|
190
|
-
- test/stripe/exchange_rate_test.rb
|
191
|
-
- test/stripe/file_link_test.rb
|
192
|
-
- test/stripe/file_test.rb
|
193
|
-
- test/stripe/file_upload_test.rb
|
194
|
-
- test/stripe/invoice_item_test.rb
|
195
|
-
- test/stripe/invoice_line_item_test.rb
|
196
|
-
- test/stripe/invoice_test.rb
|
197
|
-
- test/stripe/issuer_fraud_record_test.rb
|
198
|
-
- test/stripe/issuing/authorization_test.rb
|
199
|
-
- test/stripe/issuing/card_test.rb
|
200
|
-
- test/stripe/issuing/cardholder_test.rb
|
201
|
-
- test/stripe/issuing/dispute_test.rb
|
202
|
-
- test/stripe/issuing/transaction_test.rb
|
203
|
-
- test/stripe/list_object_test.rb
|
204
|
-
- test/stripe/login_link_test.rb
|
205
|
-
- test/stripe/oauth_test.rb
|
206
|
-
- test/stripe/order_return_test.rb
|
207
|
-
- test/stripe/order_test.rb
|
208
|
-
- test/stripe/payment_intent_test.rb
|
209
|
-
- test/stripe/payment_method_test.rb
|
210
|
-
- test/stripe/payout_test.rb
|
211
|
-
- test/stripe/person_test.rb
|
212
|
-
- test/stripe/plan_test.rb
|
213
|
-
- test/stripe/product_test.rb
|
214
|
-
- test/stripe/radar/early_fraud_warning_test.rb
|
215
|
-
- test/stripe/radar/value_list_item_test.rb
|
216
|
-
- test/stripe/radar/value_list_test.rb
|
217
|
-
- test/stripe/recipient_test.rb
|
218
|
-
- test/stripe/refund_test.rb
|
219
|
-
- test/stripe/reporting/report_run_test.rb
|
220
|
-
- test/stripe/reporting/report_type_test.rb
|
221
|
-
- test/stripe/reversal_test.rb
|
222
|
-
- test/stripe/review_test.rb
|
223
|
-
- test/stripe/setup_intent_test.rb
|
224
|
-
- test/stripe/sigma/scheduled_query_run_test.rb
|
225
|
-
- test/stripe/sku_test.rb
|
226
|
-
- test/stripe/source_test.rb
|
227
|
-
- test/stripe/source_transaction_test.rb
|
228
|
-
- test/stripe/stripe_client_test.rb
|
229
|
-
- test/stripe/stripe_object_test.rb
|
230
|
-
- test/stripe/stripe_response_test.rb
|
231
|
-
- test/stripe/subscription_item_test.rb
|
232
|
-
- test/stripe/subscription_schedule_test.rb
|
233
|
-
- test/stripe/subscription_test.rb
|
234
|
-
- test/stripe/tax_id_test.rb
|
235
|
-
- test/stripe/tax_rate_test.rb
|
236
|
-
- test/stripe/terminal/connection_token_test.rb
|
237
|
-
- test/stripe/terminal/location_test.rb
|
238
|
-
- test/stripe/terminal/reader_test.rb
|
239
|
-
- test/stripe/three_d_secure_test.rb
|
240
|
-
- test/stripe/topup_test.rb
|
241
|
-
- test/stripe/transfer_test.rb
|
242
|
-
- test/stripe/usage_record_summary_test.rb
|
243
|
-
- test/stripe/usage_record_test.rb
|
244
|
-
- test/stripe/util_test.rb
|
245
|
-
- test/stripe/webhook_endpoint_test.rb
|
246
|
-
- test/stripe/webhook_test.rb
|
247
|
-
- test/stripe_mock.rb
|
248
|
-
- test/stripe_test.rb
|
249
|
-
- test/test_data.rb
|
250
|
-
- test/test_helper.rb
|
251
145
|
homepage: https://stripe.com/docs/api/ruby
|
252
146
|
licenses:
|
253
147
|
- MIT
|
@@ -266,101 +160,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
266
160
|
requirements:
|
267
161
|
- - ">="
|
268
162
|
- !ruby/object:Gem::Version
|
269
|
-
version: 2.
|
163
|
+
version: 2.3.0
|
270
164
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
271
165
|
requirements:
|
272
166
|
- - ">="
|
273
167
|
- !ruby/object:Gem::Version
|
274
168
|
version: '0'
|
275
169
|
requirements: []
|
276
|
-
rubygems_version: 3.
|
170
|
+
rubygems_version: 3.1.2
|
277
171
|
signing_key:
|
278
172
|
specification_version: 4
|
279
173
|
summary: Ruby bindings for the Stripe API
|
280
|
-
test_files:
|
281
|
-
- test/api_stub_helpers.rb
|
282
|
-
- test/openapi/README.md
|
283
|
-
- test/stripe/account_link_test.rb
|
284
|
-
- test/stripe/account_test.rb
|
285
|
-
- test/stripe/alipay_account_test.rb
|
286
|
-
- test/stripe/api_operations_test.rb
|
287
|
-
- test/stripe/api_resource_test.rb
|
288
|
-
- test/stripe/apple_pay_domain_test.rb
|
289
|
-
- test/stripe/application_fee_refund_test.rb
|
290
|
-
- test/stripe/application_fee_test.rb
|
291
|
-
- test/stripe/balance_test.rb
|
292
|
-
- test/stripe/balance_transaction_test.rb
|
293
|
-
- test/stripe/bank_account_test.rb
|
294
|
-
- test/stripe/capability_test.rb
|
295
|
-
- test/stripe/charge_test.rb
|
296
|
-
- test/stripe/checkout/session_test.rb
|
297
|
-
- test/stripe/country_spec_test.rb
|
298
|
-
- test/stripe/coupon_test.rb
|
299
|
-
- test/stripe/credit_note_test.rb
|
300
|
-
- test/stripe/customer_balance_transaction_test.rb
|
301
|
-
- test/stripe/customer_card_test.rb
|
302
|
-
- test/stripe/customer_test.rb
|
303
|
-
- test/stripe/dispute_test.rb
|
304
|
-
- test/stripe/ephemeral_key_test.rb
|
305
|
-
- test/stripe/errors_test.rb
|
306
|
-
- test/stripe/exchange_rate_test.rb
|
307
|
-
- test/stripe/file_link_test.rb
|
308
|
-
- test/stripe/file_test.rb
|
309
|
-
- test/stripe/file_upload_test.rb
|
310
|
-
- test/stripe/invoice_item_test.rb
|
311
|
-
- test/stripe/invoice_line_item_test.rb
|
312
|
-
- test/stripe/invoice_test.rb
|
313
|
-
- test/stripe/issuer_fraud_record_test.rb
|
314
|
-
- test/stripe/issuing/authorization_test.rb
|
315
|
-
- test/stripe/issuing/card_test.rb
|
316
|
-
- test/stripe/issuing/cardholder_test.rb
|
317
|
-
- test/stripe/issuing/dispute_test.rb
|
318
|
-
- test/stripe/issuing/transaction_test.rb
|
319
|
-
- test/stripe/list_object_test.rb
|
320
|
-
- test/stripe/login_link_test.rb
|
321
|
-
- test/stripe/oauth_test.rb
|
322
|
-
- test/stripe/order_return_test.rb
|
323
|
-
- test/stripe/order_test.rb
|
324
|
-
- test/stripe/payment_intent_test.rb
|
325
|
-
- test/stripe/payment_method_test.rb
|
326
|
-
- test/stripe/payout_test.rb
|
327
|
-
- test/stripe/person_test.rb
|
328
|
-
- test/stripe/plan_test.rb
|
329
|
-
- test/stripe/product_test.rb
|
330
|
-
- test/stripe/radar/early_fraud_warning_test.rb
|
331
|
-
- test/stripe/radar/value_list_item_test.rb
|
332
|
-
- test/stripe/radar/value_list_test.rb
|
333
|
-
- test/stripe/recipient_test.rb
|
334
|
-
- test/stripe/refund_test.rb
|
335
|
-
- test/stripe/reporting/report_run_test.rb
|
336
|
-
- test/stripe/reporting/report_type_test.rb
|
337
|
-
- test/stripe/reversal_test.rb
|
338
|
-
- test/stripe/review_test.rb
|
339
|
-
- test/stripe/setup_intent_test.rb
|
340
|
-
- test/stripe/sigma/scheduled_query_run_test.rb
|
341
|
-
- test/stripe/sku_test.rb
|
342
|
-
- test/stripe/source_test.rb
|
343
|
-
- test/stripe/source_transaction_test.rb
|
344
|
-
- test/stripe/stripe_client_test.rb
|
345
|
-
- test/stripe/stripe_object_test.rb
|
346
|
-
- test/stripe/stripe_response_test.rb
|
347
|
-
- test/stripe/subscription_item_test.rb
|
348
|
-
- test/stripe/subscription_schedule_test.rb
|
349
|
-
- test/stripe/subscription_test.rb
|
350
|
-
- test/stripe/tax_id_test.rb
|
351
|
-
- test/stripe/tax_rate_test.rb
|
352
|
-
- test/stripe/terminal/connection_token_test.rb
|
353
|
-
- test/stripe/terminal/location_test.rb
|
354
|
-
- test/stripe/terminal/reader_test.rb
|
355
|
-
- test/stripe/three_d_secure_test.rb
|
356
|
-
- test/stripe/topup_test.rb
|
357
|
-
- test/stripe/transfer_test.rb
|
358
|
-
- test/stripe/usage_record_summary_test.rb
|
359
|
-
- test/stripe/usage_record_test.rb
|
360
|
-
- test/stripe/util_test.rb
|
361
|
-
- test/stripe/webhook_endpoint_test.rb
|
362
|
-
- test/stripe/webhook_test.rb
|
363
|
-
- test/stripe_mock.rb
|
364
|
-
- test/stripe_test.rb
|
365
|
-
- test/test_data.rb
|
366
|
-
- test/test_helper.rb
|
174
|
+
test_files: []
|