stripe 10.9.0.pre.beta.1 → 10.9.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 +51 -275
- data/Gemfile +3 -0
- data/Makefile +7 -0
- data/OPENAPI_VERSION +1 -1
- data/README.md +0 -11
- data/VERSION +1 -1
- data/bin/tapioca +27 -0
- data/lib/stripe/api_operations/request.rb +1 -2
- data/lib/stripe/api_resource.rb +10 -1
- data/lib/stripe/api_resource_test_helpers.rb +6 -2
- data/lib/stripe/api_version.rb +0 -1
- data/lib/stripe/list_object.rb +3 -0
- data/lib/stripe/object_types.rb +120 -141
- data/lib/stripe/resources/account.rb +6 -4
- data/lib/stripe/resources/account_link.rb +3 -0
- data/lib/stripe/resources/account_session.rb +3 -0
- data/lib/stripe/resources/apple_pay_domain.rb +3 -0
- data/lib/stripe/resources/application_fee.rb +3 -0
- data/lib/stripe/resources/application_fee_refund.rb +3 -0
- data/lib/stripe/resources/apps/secret.rb +3 -0
- data/lib/stripe/resources/balance.rb +3 -0
- data/lib/stripe/resources/balance_transaction.rb +3 -0
- data/lib/stripe/resources/bank_account.rb +3 -0
- data/lib/stripe/resources/billing_portal/configuration.rb +3 -0
- data/lib/stripe/resources/billing_portal/session.rb +3 -0
- data/lib/stripe/resources/capability.rb +3 -0
- data/lib/stripe/resources/card.rb +3 -0
- data/lib/stripe/resources/cash_balance.rb +3 -0
- data/lib/stripe/resources/charge.rb +3 -0
- data/lib/stripe/resources/checkout/session.rb +3 -0
- data/lib/stripe/resources/climate/order.rb +3 -0
- data/lib/stripe/resources/climate/product.rb +3 -0
- data/lib/stripe/resources/climate/supplier.rb +3 -0
- data/lib/stripe/resources/country_spec.rb +3 -0
- data/lib/stripe/resources/coupon.rb +3 -0
- data/lib/stripe/resources/credit_note.rb +3 -0
- data/lib/stripe/resources/credit_note_line_item.rb +3 -0
- data/lib/stripe/resources/customer.rb +7 -13
- data/lib/stripe/resources/customer_balance_transaction.rb +3 -0
- data/lib/stripe/resources/customer_cash_balance_transaction.rb +3 -0
- data/lib/stripe/resources/customer_session.rb +3 -0
- data/lib/stripe/resources/discount.rb +3 -0
- data/lib/stripe/resources/dispute.rb +3 -0
- data/lib/stripe/resources/ephemeral_key.rb +3 -0
- data/lib/stripe/resources/event.rb +3 -0
- data/lib/stripe/resources/exchange_rate.rb +3 -0
- data/lib/stripe/resources/file.rb +6 -0
- data/lib/stripe/resources/file_link.rb +3 -0
- data/lib/stripe/resources/financial_connections/account.rb +3 -3
- data/lib/stripe/resources/financial_connections/account_owner.rb +3 -0
- data/lib/stripe/resources/financial_connections/account_ownership.rb +3 -0
- data/lib/stripe/resources/financial_connections/session.rb +3 -0
- data/lib/stripe/resources/financial_connections/transaction.rb +3 -0
- data/lib/stripe/resources/funding_instructions.rb +3 -0
- data/lib/stripe/resources/identity/verification_report.rb +3 -0
- data/lib/stripe/resources/identity/verification_session.rb +3 -0
- data/lib/stripe/resources/invoice.rb +2 -52
- data/lib/stripe/resources/invoice_item.rb +3 -0
- data/lib/stripe/resources/invoice_line_item.rb +3 -0
- data/lib/stripe/resources/issuing/authorization.rb +6 -0
- data/lib/stripe/resources/issuing/card.rb +6 -0
- data/lib/stripe/resources/issuing/cardholder.rb +3 -0
- data/lib/stripe/resources/issuing/dispute.rb +3 -0
- data/lib/stripe/resources/issuing/token.rb +3 -0
- data/lib/stripe/resources/issuing/transaction.rb +6 -0
- data/lib/stripe/resources/line_item.rb +3 -0
- data/lib/stripe/resources/login_link.rb +3 -0
- data/lib/stripe/resources/mandate.rb +3 -0
- data/lib/stripe/resources/payment_intent.rb +5 -4
- data/lib/stripe/resources/payment_link.rb +3 -0
- data/lib/stripe/resources/payment_method.rb +3 -0
- data/lib/stripe/resources/payment_method_configuration.rb +3 -0
- data/lib/stripe/resources/payment_method_domain.rb +3 -0
- data/lib/stripe/resources/payout.rb +3 -0
- data/lib/stripe/resources/person.rb +3 -0
- data/lib/stripe/resources/plan.rb +3 -0
- data/lib/stripe/resources/price.rb +3 -0
- data/lib/stripe/resources/product.rb +3 -0
- data/lib/stripe/resources/promotion_code.rb +3 -0
- data/lib/stripe/resources/quote.rb +3 -104
- data/lib/stripe/resources/radar/early_fraud_warning.rb +3 -0
- data/lib/stripe/resources/radar/value_list.rb +3 -0
- data/lib/stripe/resources/radar/value_list_item.rb +3 -0
- data/lib/stripe/resources/refund.rb +6 -0
- data/lib/stripe/resources/reporting/report_run.rb +3 -0
- data/lib/stripe/resources/reporting/report_type.rb +3 -0
- data/lib/stripe/resources/reversal.rb +3 -0
- data/lib/stripe/resources/review.rb +3 -0
- data/lib/stripe/resources/setup_attempt.rb +3 -0
- data/lib/stripe/resources/setup_intent.rb +3 -0
- data/lib/stripe/resources/shipping_rate.rb +3 -0
- data/lib/stripe/resources/sigma/scheduled_query_run.rb +3 -0
- data/lib/stripe/resources/source.rb +3 -0
- data/lib/stripe/resources/source_transaction.rb +3 -0
- data/lib/stripe/resources/subscription.rb +3 -0
- data/lib/stripe/resources/subscription_item.rb +3 -0
- data/lib/stripe/resources/subscription_schedule.rb +2 -19
- data/lib/stripe/resources/tax/calculation.rb +3 -0
- data/lib/stripe/resources/tax/calculation_line_item.rb +3 -0
- data/lib/stripe/resources/tax/registration.rb +3 -0
- data/lib/stripe/resources/tax/settings.rb +3 -0
- data/lib/stripe/resources/tax/transaction.rb +3 -0
- data/lib/stripe/resources/tax/transaction_line_item.rb +3 -0
- data/lib/stripe/resources/tax_code.rb +3 -0
- data/lib/stripe/resources/tax_id.rb +5 -4
- data/lib/stripe/resources/tax_rate.rb +3 -0
- data/lib/stripe/resources/terminal/configuration.rb +3 -0
- data/lib/stripe/resources/terminal/connection_token.rb +3 -0
- data/lib/stripe/resources/terminal/location.rb +3 -0
- data/lib/stripe/resources/terminal/reader.rb +6 -60
- data/lib/stripe/resources/test_helpers/test_clock.rb +3 -0
- data/lib/stripe/resources/token.rb +3 -0
- data/lib/stripe/resources/topup.rb +3 -0
- data/lib/stripe/resources/transfer.rb +3 -0
- data/lib/stripe/resources/treasury/credit_reversal.rb +3 -0
- data/lib/stripe/resources/treasury/debit_reversal.rb +3 -0
- data/lib/stripe/resources/treasury/financial_account.rb +3 -0
- data/lib/stripe/resources/treasury/financial_account_features.rb +3 -0
- data/lib/stripe/resources/treasury/inbound_transfer.rb +6 -0
- data/lib/stripe/resources/treasury/outbound_payment.rb +6 -0
- data/lib/stripe/resources/treasury/outbound_transfer.rb +6 -0
- data/lib/stripe/resources/treasury/received_credit.rb +6 -0
- data/lib/stripe/resources/treasury/received_debit.rb +6 -0
- data/lib/stripe/resources/treasury/transaction.rb +3 -0
- data/lib/stripe/resources/treasury/transaction_entry.rb +3 -0
- data/lib/stripe/resources/usage_record.rb +3 -0
- data/lib/stripe/resources/usage_record_summary.rb +3 -0
- data/lib/stripe/resources/webhook_endpoint.rb +3 -0
- data/lib/stripe/resources.rb +0 -22
- data/lib/stripe/search_result_object.rb +3 -0
- data/lib/stripe/singleton_api_resource.rb +1 -1
- data/lib/stripe/stripe_client.rb +28 -62
- data/lib/stripe/stripe_configuration.rb +1 -2
- data/lib/stripe/util.rb +1 -8
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe.rb +0 -46
- data/sorbet/config +4 -0
- data/sorbet/rbi/annotations/.gitattributes +1 -0
- data/sorbet/rbi/annotations/coveralls_reborn.rbi +3 -0
- data/sorbet/rbi/gems/.gitattributes +1 -0
- data/sorbet/rbi/gems/addressable@2.8.6.rbi +1993 -0
- data/sorbet/rbi/gems/ast@2.4.2.rbi +584 -0
- data/sorbet/rbi/gems/byebug@11.1.3.rbi +3606 -0
- data/sorbet/rbi/gems/coderay@1.1.3.rbi +3437 -0
- data/sorbet/rbi/gems/coveralls_reborn@0.25.0.rbi +8 -0
- data/sorbet/rbi/gems/crack@0.4.5.rbi +144 -0
- data/sorbet/rbi/gems/docile@1.4.0.rbi +8 -0
- data/sorbet/rbi/gems/erubi@1.12.0.rbi +146 -0
- data/sorbet/rbi/gems/hashdiff@1.1.0.rbi +352 -0
- data/sorbet/rbi/gems/jaro_winkler@1.5.4.rbi +19 -0
- data/sorbet/rbi/gems/json@2.7.1.rbi +1561 -0
- data/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi +14237 -0
- data/sorbet/rbi/gems/method_source@1.0.0.rbi +272 -0
- data/sorbet/rbi/gems/mocha@1.16.1.rbi +11 -0
- data/sorbet/rbi/gems/netrc@0.11.0.rbi +161 -0
- data/sorbet/rbi/gems/parallel@1.24.0.rbi +280 -0
- data/sorbet/rbi/gems/parser@3.2.2.4.rbi +9454 -0
- data/sorbet/rbi/gems/power_assert@2.0.3.rbi +414 -0
- data/sorbet/rbi/gems/prettier_print@1.2.1.rbi +951 -0
- data/sorbet/rbi/gems/prism@0.19.0.rbi +29883 -0
- data/sorbet/rbi/gems/pry-byebug@3.10.1.rbi +1150 -0
- data/sorbet/rbi/gems/pry@0.14.2.rbi +10085 -0
- data/sorbet/rbi/gems/public_suffix@5.0.4.rbi +931 -0
- data/sorbet/rbi/gems/racc@1.7.3.rbi +161 -0
- data/sorbet/rbi/gems/rack@3.0.8.rbi +5193 -0
- data/sorbet/rbi/gems/rainbow@3.1.1.rbi +402 -0
- data/sorbet/rbi/gems/rake@13.1.0.rbi +2884 -0
- data/sorbet/rbi/gems/rbi@0.1.6.rbi +2922 -0
- data/sorbet/rbi/gems/regexp_parser@2.8.3.rbi +3766 -0
- data/sorbet/rbi/gems/rexml@3.2.6.rbi +4887 -0
- data/sorbet/rbi/gems/rubocop-ast@1.30.0.rbi +7004 -0
- data/sorbet/rbi/gems/rubocop@1.57.2.rbi +56919 -0
- data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +1317 -0
- data/sorbet/rbi/gems/shoulda-context@2.0.0.rbi +555 -0
- data/sorbet/rbi/gems/simplecov-html@0.12.3.rbi +8 -0
- data/sorbet/rbi/gems/simplecov@0.21.2.rbi +8 -0
- data/sorbet/rbi/gems/simplecov_json_formatter@0.1.4.rbi +8 -0
- data/sorbet/rbi/gems/spoom@1.2.4.rbi +3777 -0
- data/sorbet/rbi/gems/sync@0.5.0.rbi +8 -0
- data/sorbet/rbi/gems/syntax_tree@6.2.0.rbi +23136 -0
- data/sorbet/rbi/gems/tapioca@0.11.17.rbi +3503 -0
- data/sorbet/rbi/gems/term-ansicolor@1.7.1.rbi +8 -0
- data/sorbet/rbi/gems/test-unit@3.6.1.rbi +4403 -0
- data/sorbet/rbi/gems/thor@1.3.0.rbi +4345 -0
- data/sorbet/rbi/gems/tins@1.32.1.rbi +8 -0
- data/sorbet/rbi/gems/unicode-display_width@2.5.0.rbi +65 -0
- data/sorbet/rbi/gems/webmock@3.19.1.rbi +1740 -0
- data/sorbet/rbi/gems/yard-sorbet@0.8.1.rbi +428 -0
- data/sorbet/rbi/gems/yard@0.9.34.rbi +18219 -0
- data/sorbet/tapioca/config.yml +13 -0
- data/sorbet/tapioca/require.rb +4 -0
- metadata +61 -27
- data/lib/stripe/request_signing_authenticator.rb +0 -79
- data/lib/stripe/resources/account_notice.rb +0 -29
- data/lib/stripe/resources/capital/financing_offer.rb +0 -46
- data/lib/stripe/resources/capital/financing_summary.rb +0 -12
- data/lib/stripe/resources/capital/financing_transaction.rb +0 -24
- data/lib/stripe/resources/confirmation_token.rb +0 -13
- data/lib/stripe/resources/customer_entitlement.rb +0 -9
- data/lib/stripe/resources/customer_entitlement_summary.rb +0 -9
- data/lib/stripe/resources/entitlements/event.rb +0 -23
- data/lib/stripe/resources/entitlements/feature.rb +0 -35
- data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +0 -11
- data/lib/stripe/resources/gift_cards/card.rb +0 -56
- data/lib/stripe/resources/gift_cards/transaction.rb +0 -90
- data/lib/stripe/resources/invoice_payment.rb +0 -9
- data/lib/stripe/resources/issuing/credit_underwriting_record.rb +0 -85
- data/lib/stripe/resources/issuing/personalization_design.rb +0 -113
- data/lib/stripe/resources/issuing/physical_bundle.rb +0 -23
- data/lib/stripe/resources/margin.rb +0 -34
- data/lib/stripe/resources/order.rb +0 -117
- data/lib/stripe/resources/quote_phase.rb +0 -36
- data/lib/stripe/resources/quote_preview_invoice.rb +0 -40
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +0 -8
- data/lib/stripe/resources/tax/form.rb +0 -46
metadata
CHANGED
@@ -1,20 +1,21 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stripe
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 10.9.0
|
4
|
+
version: 10.9.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-02-
|
11
|
+
date: 2024-02-16 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
|
18
19
|
extensions: []
|
19
20
|
extra_rdoc_files: []
|
20
21
|
files:
|
@@ -30,6 +31,7 @@ files:
|
|
30
31
|
- Rakefile
|
31
32
|
- VERSION
|
32
33
|
- bin/stripe-console
|
34
|
+
- bin/tapioca
|
33
35
|
- lib/data/ca-certificates.crt
|
34
36
|
- lib/stripe.rb
|
35
37
|
- lib/stripe/api_operations/create.rb
|
@@ -51,11 +53,9 @@ files:
|
|
51
53
|
- lib/stripe/multipart_encoder.rb
|
52
54
|
- lib/stripe/oauth.rb
|
53
55
|
- lib/stripe/object_types.rb
|
54
|
-
- lib/stripe/request_signing_authenticator.rb
|
55
56
|
- lib/stripe/resources.rb
|
56
57
|
- lib/stripe/resources/account.rb
|
57
58
|
- lib/stripe/resources/account_link.rb
|
58
|
-
- lib/stripe/resources/account_notice.rb
|
59
59
|
- lib/stripe/resources/account_session.rb
|
60
60
|
- lib/stripe/resources/alipay_account.rb
|
61
61
|
- lib/stripe/resources/apple_pay_domain.rb
|
@@ -68,9 +68,6 @@ files:
|
|
68
68
|
- lib/stripe/resources/billing_portal/configuration.rb
|
69
69
|
- lib/stripe/resources/billing_portal/session.rb
|
70
70
|
- lib/stripe/resources/capability.rb
|
71
|
-
- lib/stripe/resources/capital/financing_offer.rb
|
72
|
-
- lib/stripe/resources/capital/financing_summary.rb
|
73
|
-
- lib/stripe/resources/capital/financing_transaction.rb
|
74
71
|
- lib/stripe/resources/card.rb
|
75
72
|
- lib/stripe/resources/cash_balance.rb
|
76
73
|
- lib/stripe/resources/charge.rb
|
@@ -78,7 +75,6 @@ files:
|
|
78
75
|
- lib/stripe/resources/climate/order.rb
|
79
76
|
- lib/stripe/resources/climate/product.rb
|
80
77
|
- lib/stripe/resources/climate/supplier.rb
|
81
|
-
- lib/stripe/resources/confirmation_token.rb
|
82
78
|
- lib/stripe/resources/country_spec.rb
|
83
79
|
- lib/stripe/resources/coupon.rb
|
84
80
|
- lib/stripe/resources/credit_note.rb
|
@@ -86,47 +82,34 @@ files:
|
|
86
82
|
- lib/stripe/resources/customer.rb
|
87
83
|
- lib/stripe/resources/customer_balance_transaction.rb
|
88
84
|
- lib/stripe/resources/customer_cash_balance_transaction.rb
|
89
|
-
- lib/stripe/resources/customer_entitlement.rb
|
90
|
-
- lib/stripe/resources/customer_entitlement_summary.rb
|
91
85
|
- lib/stripe/resources/customer_session.rb
|
92
86
|
- lib/stripe/resources/discount.rb
|
93
87
|
- lib/stripe/resources/dispute.rb
|
94
|
-
- lib/stripe/resources/entitlements/event.rb
|
95
|
-
- lib/stripe/resources/entitlements/feature.rb
|
96
88
|
- lib/stripe/resources/ephemeral_key.rb
|
97
89
|
- lib/stripe/resources/event.rb
|
98
90
|
- lib/stripe/resources/exchange_rate.rb
|
99
91
|
- lib/stripe/resources/file.rb
|
100
92
|
- lib/stripe/resources/file_link.rb
|
101
93
|
- lib/stripe/resources/financial_connections/account.rb
|
102
|
-
- lib/stripe/resources/financial_connections/account_inferred_balance.rb
|
103
94
|
- lib/stripe/resources/financial_connections/account_owner.rb
|
104
95
|
- lib/stripe/resources/financial_connections/account_ownership.rb
|
105
96
|
- lib/stripe/resources/financial_connections/session.rb
|
106
97
|
- lib/stripe/resources/financial_connections/transaction.rb
|
107
98
|
- lib/stripe/resources/funding_instructions.rb
|
108
|
-
- lib/stripe/resources/gift_cards/card.rb
|
109
|
-
- lib/stripe/resources/gift_cards/transaction.rb
|
110
99
|
- lib/stripe/resources/identity/verification_report.rb
|
111
100
|
- lib/stripe/resources/identity/verification_session.rb
|
112
101
|
- lib/stripe/resources/invoice.rb
|
113
102
|
- lib/stripe/resources/invoice_item.rb
|
114
103
|
- lib/stripe/resources/invoice_line_item.rb
|
115
|
-
- lib/stripe/resources/invoice_payment.rb
|
116
104
|
- lib/stripe/resources/issuing/authorization.rb
|
117
105
|
- lib/stripe/resources/issuing/card.rb
|
118
106
|
- lib/stripe/resources/issuing/cardholder.rb
|
119
|
-
- lib/stripe/resources/issuing/credit_underwriting_record.rb
|
120
107
|
- lib/stripe/resources/issuing/dispute.rb
|
121
|
-
- lib/stripe/resources/issuing/personalization_design.rb
|
122
|
-
- lib/stripe/resources/issuing/physical_bundle.rb
|
123
108
|
- lib/stripe/resources/issuing/token.rb
|
124
109
|
- lib/stripe/resources/issuing/transaction.rb
|
125
110
|
- lib/stripe/resources/line_item.rb
|
126
111
|
- lib/stripe/resources/login_link.rb
|
127
112
|
- lib/stripe/resources/mandate.rb
|
128
|
-
- lib/stripe/resources/margin.rb
|
129
|
-
- lib/stripe/resources/order.rb
|
130
113
|
- lib/stripe/resources/payment_intent.rb
|
131
114
|
- lib/stripe/resources/payment_link.rb
|
132
115
|
- lib/stripe/resources/payment_method.rb
|
@@ -139,9 +122,6 @@ files:
|
|
139
122
|
- lib/stripe/resources/product.rb
|
140
123
|
- lib/stripe/resources/promotion_code.rb
|
141
124
|
- lib/stripe/resources/quote.rb
|
142
|
-
- lib/stripe/resources/quote_phase.rb
|
143
|
-
- lib/stripe/resources/quote_preview_invoice.rb
|
144
|
-
- lib/stripe/resources/quote_preview_subscription_schedule.rb
|
145
125
|
- lib/stripe/resources/radar/early_fraud_warning.rb
|
146
126
|
- lib/stripe/resources/radar/value_list.rb
|
147
127
|
- lib/stripe/resources/radar/value_list_item.rb
|
@@ -162,7 +142,6 @@ files:
|
|
162
142
|
- lib/stripe/resources/subscription_schedule.rb
|
163
143
|
- lib/stripe/resources/tax/calculation.rb
|
164
144
|
- lib/stripe/resources/tax/calculation_line_item.rb
|
165
|
-
- lib/stripe/resources/tax/form.rb
|
166
145
|
- lib/stripe/resources/tax/registration.rb
|
167
146
|
- lib/stripe/resources/tax/settings.rb
|
168
147
|
- lib/stripe/resources/tax/transaction.rb
|
@@ -201,6 +180,61 @@ files:
|
|
201
180
|
- lib/stripe/util.rb
|
202
181
|
- lib/stripe/version.rb
|
203
182
|
- lib/stripe/webhook.rb
|
183
|
+
- sorbet/config
|
184
|
+
- sorbet/rbi/annotations/.gitattributes
|
185
|
+
- sorbet/rbi/annotations/coveralls_reborn.rbi
|
186
|
+
- sorbet/rbi/gems/.gitattributes
|
187
|
+
- sorbet/rbi/gems/addressable@2.8.6.rbi
|
188
|
+
- sorbet/rbi/gems/ast@2.4.2.rbi
|
189
|
+
- sorbet/rbi/gems/byebug@11.1.3.rbi
|
190
|
+
- sorbet/rbi/gems/coderay@1.1.3.rbi
|
191
|
+
- sorbet/rbi/gems/coveralls_reborn@0.25.0.rbi
|
192
|
+
- sorbet/rbi/gems/crack@0.4.5.rbi
|
193
|
+
- sorbet/rbi/gems/docile@1.4.0.rbi
|
194
|
+
- sorbet/rbi/gems/erubi@1.12.0.rbi
|
195
|
+
- sorbet/rbi/gems/hashdiff@1.1.0.rbi
|
196
|
+
- sorbet/rbi/gems/jaro_winkler@1.5.4.rbi
|
197
|
+
- sorbet/rbi/gems/json@2.7.1.rbi
|
198
|
+
- sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi
|
199
|
+
- sorbet/rbi/gems/method_source@1.0.0.rbi
|
200
|
+
- sorbet/rbi/gems/mocha@1.16.1.rbi
|
201
|
+
- sorbet/rbi/gems/netrc@0.11.0.rbi
|
202
|
+
- sorbet/rbi/gems/parallel@1.24.0.rbi
|
203
|
+
- sorbet/rbi/gems/parser@3.2.2.4.rbi
|
204
|
+
- sorbet/rbi/gems/power_assert@2.0.3.rbi
|
205
|
+
- sorbet/rbi/gems/prettier_print@1.2.1.rbi
|
206
|
+
- sorbet/rbi/gems/prism@0.19.0.rbi
|
207
|
+
- sorbet/rbi/gems/pry-byebug@3.10.1.rbi
|
208
|
+
- sorbet/rbi/gems/pry@0.14.2.rbi
|
209
|
+
- sorbet/rbi/gems/public_suffix@5.0.4.rbi
|
210
|
+
- sorbet/rbi/gems/racc@1.7.3.rbi
|
211
|
+
- sorbet/rbi/gems/rack@3.0.8.rbi
|
212
|
+
- sorbet/rbi/gems/rainbow@3.1.1.rbi
|
213
|
+
- sorbet/rbi/gems/rake@13.1.0.rbi
|
214
|
+
- sorbet/rbi/gems/rbi@0.1.6.rbi
|
215
|
+
- sorbet/rbi/gems/regexp_parser@2.8.3.rbi
|
216
|
+
- sorbet/rbi/gems/rexml@3.2.6.rbi
|
217
|
+
- sorbet/rbi/gems/rubocop-ast@1.30.0.rbi
|
218
|
+
- sorbet/rbi/gems/rubocop@1.57.2.rbi
|
219
|
+
- sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi
|
220
|
+
- sorbet/rbi/gems/shoulda-context@2.0.0.rbi
|
221
|
+
- sorbet/rbi/gems/simplecov-html@0.12.3.rbi
|
222
|
+
- sorbet/rbi/gems/simplecov@0.21.2.rbi
|
223
|
+
- sorbet/rbi/gems/simplecov_json_formatter@0.1.4.rbi
|
224
|
+
- sorbet/rbi/gems/spoom@1.2.4.rbi
|
225
|
+
- sorbet/rbi/gems/sync@0.5.0.rbi
|
226
|
+
- sorbet/rbi/gems/syntax_tree@6.2.0.rbi
|
227
|
+
- sorbet/rbi/gems/tapioca@0.11.17.rbi
|
228
|
+
- sorbet/rbi/gems/term-ansicolor@1.7.1.rbi
|
229
|
+
- sorbet/rbi/gems/test-unit@3.6.1.rbi
|
230
|
+
- sorbet/rbi/gems/thor@1.3.0.rbi
|
231
|
+
- sorbet/rbi/gems/tins@1.32.1.rbi
|
232
|
+
- sorbet/rbi/gems/unicode-display_width@2.5.0.rbi
|
233
|
+
- sorbet/rbi/gems/webmock@3.19.1.rbi
|
234
|
+
- sorbet/rbi/gems/yard-sorbet@0.8.1.rbi
|
235
|
+
- sorbet/rbi/gems/yard@0.9.34.rbi
|
236
|
+
- sorbet/tapioca/config.yml
|
237
|
+
- sorbet/tapioca/require.rb
|
204
238
|
- stripe.gemspec
|
205
239
|
homepage: https://stripe.com/docs/api?lang=ruby
|
206
240
|
licenses:
|
@@ -224,9 +258,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
224
258
|
version: 2.3.0
|
225
259
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
226
260
|
requirements:
|
227
|
-
- - "
|
261
|
+
- - ">="
|
228
262
|
- !ruby/object:Gem::Version
|
229
|
-
version:
|
263
|
+
version: '0'
|
230
264
|
requirements: []
|
231
265
|
rubygems_version: 3.3.26
|
232
266
|
signing_key:
|
@@ -1,79 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Stripe
|
4
|
-
class RequestSigningAuthenticator
|
5
|
-
AUTHORIZATION_HEADER_NAME = "Authorization"
|
6
|
-
CONTENT_TYPE_HEADER_NAME = "Content-Type"
|
7
|
-
STRIPE_CONTEXT_HEADER_NAME = "Stripe-Context"
|
8
|
-
STRIPE_ACCOUNT_HEADER_NAME = "Stripe-Account"
|
9
|
-
CONTENT_DIGEST_HEADER_NAME = "Content-Digest"
|
10
|
-
SIGNATURE_INPUT_HEADER_NAME = "Signature-Input"
|
11
|
-
SIGNATURE_HEADER_NAME = "Signature"
|
12
|
-
|
13
|
-
attr_reader :auth_token, :sign_lambda
|
14
|
-
|
15
|
-
def initialize(auth_token, sign_lambda)
|
16
|
-
raise ArgumentError, "auth_token must be a string" unless auth_token.is_a?(String)
|
17
|
-
raise ArgumentError, "sign_lambda must be a lambda" unless sign_lambda.is_a?(Proc)
|
18
|
-
|
19
|
-
@auth_token = auth_token
|
20
|
-
@sign_lambda = sign_lambda
|
21
|
-
end
|
22
|
-
|
23
|
-
def authenticate(method, headers, body)
|
24
|
-
covered_headers = [CONTENT_TYPE_HEADER_NAME,
|
25
|
-
CONTENT_DIGEST_HEADER_NAME,
|
26
|
-
STRIPE_CONTEXT_HEADER_NAME,
|
27
|
-
STRIPE_ACCOUNT_HEADER_NAME,
|
28
|
-
AUTHORIZATION_HEADER_NAME,]
|
29
|
-
|
30
|
-
headers[AUTHORIZATION_HEADER_NAME] = "STRIPE-V2-SIG #{auth_token}"
|
31
|
-
|
32
|
-
if method == :get
|
33
|
-
covered_headers -= [CONTENT_TYPE_HEADER_NAME,
|
34
|
-
CONTENT_DIGEST_HEADER_NAME,]
|
35
|
-
else
|
36
|
-
content = body || ""
|
37
|
-
headers[CONTENT_DIGEST_HEADER_NAME] =
|
38
|
-
%(sha-256=:#{content_digest(content)}:)
|
39
|
-
end
|
40
|
-
|
41
|
-
covered_headers_formatted = covered_headers
|
42
|
-
.map { |string| %("#{string.downcase}") }
|
43
|
-
.join(" ")
|
44
|
-
|
45
|
-
signature_input = "(#{covered_headers_formatted});created=#{created_time}"
|
46
|
-
|
47
|
-
inputs = covered_headers
|
48
|
-
.map { |header| %("#{header.downcase}": #{headers[header]}) }
|
49
|
-
.join("\n")
|
50
|
-
|
51
|
-
signature_base = %(#{inputs}\n"@signature-params": #{signature_input})
|
52
|
-
.encode(Encoding::UTF_8)
|
53
|
-
|
54
|
-
headers[SIGNATURE_INPUT_HEADER_NAME] = "sig1=#{signature_input}"
|
55
|
-
|
56
|
-
headers[SIGNATURE_HEADER_NAME] =
|
57
|
-
"sig1=:#{encoded_signature(signature_base)}:"
|
58
|
-
end
|
59
|
-
|
60
|
-
private def sign(signature_base)
|
61
|
-
@sign_lambda.call(signature_base)
|
62
|
-
end
|
63
|
-
|
64
|
-
private def encoded_signature(signature_base)
|
65
|
-
Base64.strict_encode64(sign(signature_base))
|
66
|
-
rescue StandardError
|
67
|
-
raise AuthenticationError, "Encountered '#{e.message} (#{e.class})' " \
|
68
|
-
"when calculating request signature."
|
69
|
-
end
|
70
|
-
|
71
|
-
private def content_digest(content)
|
72
|
-
Base64.strict_encode64(OpenSSL::Digest.new("SHA256").digest(content))
|
73
|
-
end
|
74
|
-
|
75
|
-
private def created_time
|
76
|
-
Time.now.to_i
|
77
|
-
end
|
78
|
-
end
|
79
|
-
end
|
@@ -1,29 +0,0 @@
|
|
1
|
-
# File generated from our OpenAPI spec
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
module Stripe
|
5
|
-
# A notice to a Connected account. Notice can be sent by Stripe on your behalf or you can opt to send the notices yourself.
|
6
|
-
#
|
7
|
-
# See the [guide to send notices](https://stripe.com/docs/issuing/compliance-us/issuing-regulated-customer-notices) to your connected accounts.
|
8
|
-
class AccountNotice < APIResource
|
9
|
-
extend Stripe::APIOperations::List
|
10
|
-
include Stripe::APIOperations::Save
|
11
|
-
|
12
|
-
OBJECT_NAME = "account_notice"
|
13
|
-
|
14
|
-
# Retrieves a list of AccountNotice objects. The objects are sorted in descending order by creation date, with the most-recently-created object appearing first.
|
15
|
-
def self.list(filters = {}, opts = {})
|
16
|
-
request_stripe_object(method: :get, path: "/v1/account_notices", params: filters, opts: opts)
|
17
|
-
end
|
18
|
-
|
19
|
-
# Updates an AccountNotice object.
|
20
|
-
def self.update(id, params = {}, opts = {})
|
21
|
-
request_stripe_object(
|
22
|
-
method: :post,
|
23
|
-
path: format("/v1/account_notices/%<id>s", { id: CGI.escape(id) }),
|
24
|
-
params: params,
|
25
|
-
opts: opts
|
26
|
-
)
|
27
|
-
end
|
28
|
-
end
|
29
|
-
end
|
@@ -1,46 +0,0 @@
|
|
1
|
-
# File generated from our OpenAPI spec
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
module Stripe
|
5
|
-
module Capital
|
6
|
-
# This is an object representing an offer of financing from
|
7
|
-
# Stripe Capital to a Connect subaccount.
|
8
|
-
class FinancingOffer < APIResource
|
9
|
-
extend Stripe::APIOperations::List
|
10
|
-
|
11
|
-
OBJECT_NAME = "capital.financing_offer"
|
12
|
-
|
13
|
-
# Acknowledges that platform has received and delivered the financing_offer to
|
14
|
-
# the intended merchant recipient.
|
15
|
-
def mark_delivered(params = {}, opts = {})
|
16
|
-
request_stripe_object(
|
17
|
-
method: :post,
|
18
|
-
path: format("/v1/capital/financing_offers/%<financing_offer>s/mark_delivered", { financing_offer: CGI.escape(self["id"]) }),
|
19
|
-
params: params,
|
20
|
-
opts: opts
|
21
|
-
)
|
22
|
-
end
|
23
|
-
|
24
|
-
# Acknowledges that platform has received and delivered the financing_offer to
|
25
|
-
# the intended merchant recipient.
|
26
|
-
def self.mark_delivered(financing_offer, params = {}, opts = {})
|
27
|
-
request_stripe_object(
|
28
|
-
method: :post,
|
29
|
-
path: format("/v1/capital/financing_offers/%<financing_offer>s/mark_delivered", { financing_offer: CGI.escape(financing_offer) }),
|
30
|
-
params: params,
|
31
|
-
opts: opts
|
32
|
-
)
|
33
|
-
end
|
34
|
-
|
35
|
-
# Retrieves the financing offers available for Connected accounts that belong to your platform.
|
36
|
-
def self.list(filters = {}, opts = {})
|
37
|
-
request_stripe_object(
|
38
|
-
method: :get,
|
39
|
-
path: "/v1/capital/financing_offers",
|
40
|
-
params: filters,
|
41
|
-
opts: opts
|
42
|
-
)
|
43
|
-
end
|
44
|
-
end
|
45
|
-
end
|
46
|
-
end
|
@@ -1,12 +0,0 @@
|
|
1
|
-
# File generated from our OpenAPI spec
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
module Stripe
|
5
|
-
module Capital
|
6
|
-
# A financing object describes an account's current financing state. Used by Connect
|
7
|
-
# platforms to read the state of Capital offered to their connected accounts.
|
8
|
-
class FinancingSummary < SingletonAPIResource
|
9
|
-
OBJECT_NAME = "capital.financing_summary"
|
10
|
-
end
|
11
|
-
end
|
12
|
-
end
|
@@ -1,24 +0,0 @@
|
|
1
|
-
# File generated from our OpenAPI spec
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
module Stripe
|
5
|
-
module Capital
|
6
|
-
# This is an object representing the details of a transaction on a Capital financing object.
|
7
|
-
class FinancingTransaction < APIResource
|
8
|
-
extend Stripe::APIOperations::List
|
9
|
-
|
10
|
-
OBJECT_NAME = "capital.financing_transaction"
|
11
|
-
|
12
|
-
# Returns a list of financing transactions. The transactions are returned in sorted order,
|
13
|
-
# with the most recent transactions appearing first.
|
14
|
-
def self.list(filters = {}, opts = {})
|
15
|
-
request_stripe_object(
|
16
|
-
method: :get,
|
17
|
-
path: "/v1/capital/financing_transactions",
|
18
|
-
params: filters,
|
19
|
-
opts: opts
|
20
|
-
)
|
21
|
-
end
|
22
|
-
end
|
23
|
-
end
|
24
|
-
end
|
@@ -1,13 +0,0 @@
|
|
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
|
-
end
|
13
|
-
end
|
@@ -1,23 +0,0 @@
|
|
1
|
-
# File generated from our OpenAPI spec
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
module Stripe
|
5
|
-
module Entitlements
|
6
|
-
# An entitlement event either grants or revokes an entitlement to a feature for a customer.
|
7
|
-
class Event < APIResource
|
8
|
-
extend Stripe::APIOperations::Create
|
9
|
-
|
10
|
-
OBJECT_NAME = "entitlements.event"
|
11
|
-
|
12
|
-
# Create an entitlement event manually, outside of the entitlement events automatically created by Stripe lifecycle events.
|
13
|
-
def self.create(params = {}, opts = {})
|
14
|
-
request_stripe_object(
|
15
|
-
method: :post,
|
16
|
-
path: "/v1/entitlements/events",
|
17
|
-
params: params,
|
18
|
-
opts: opts
|
19
|
-
)
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|
23
|
-
end
|
@@ -1,35 +0,0 @@
|
|
1
|
-
# File generated from our OpenAPI spec
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
module Stripe
|
5
|
-
module Entitlements
|
6
|
-
# A feature represents a monetizable ability or functionality in your system.
|
7
|
-
# Features can be assigned to products, and when those products are purchased, Stripe will create an entitlement to the feature for the purchasing customer.
|
8
|
-
class Feature < APIResource
|
9
|
-
extend Stripe::APIOperations::Create
|
10
|
-
extend Stripe::APIOperations::List
|
11
|
-
|
12
|
-
OBJECT_NAME = "entitlements.feature"
|
13
|
-
|
14
|
-
# Creates a feature
|
15
|
-
def self.create(params = {}, opts = {})
|
16
|
-
request_stripe_object(
|
17
|
-
method: :post,
|
18
|
-
path: "/v1/entitlements/features",
|
19
|
-
params: params,
|
20
|
-
opts: opts
|
21
|
-
)
|
22
|
-
end
|
23
|
-
|
24
|
-
# Retrieve a list of features
|
25
|
-
def self.list(filters = {}, opts = {})
|
26
|
-
request_stripe_object(
|
27
|
-
method: :get,
|
28
|
-
path: "/v1/entitlements/features",
|
29
|
-
params: filters,
|
30
|
-
opts: opts
|
31
|
-
)
|
32
|
-
end
|
33
|
-
end
|
34
|
-
end
|
35
|
-
end
|
@@ -1,11 +0,0 @@
|
|
1
|
-
# File generated from our OpenAPI spec
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
module Stripe
|
5
|
-
module FinancialConnections
|
6
|
-
# A historical balance for the account on a particular day. It may be sourced from a balance snapshot provided by a financial institution, or inferred using transactions data.
|
7
|
-
class AccountInferredBalance < APIResource
|
8
|
-
OBJECT_NAME = "financial_connections.account_inferred_balance"
|
9
|
-
end
|
10
|
-
end
|
11
|
-
end
|
@@ -1,56 +0,0 @@
|
|
1
|
-
# File generated from our OpenAPI spec
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
module Stripe
|
5
|
-
module GiftCards
|
6
|
-
# A gift card represents a single gift card owned by a customer, including the
|
7
|
-
# remaining balance, gift card code, and whether or not it is active.
|
8
|
-
class Card < APIResource
|
9
|
-
extend Stripe::APIOperations::Create
|
10
|
-
extend Stripe::APIOperations::List
|
11
|
-
include Stripe::APIOperations::Save
|
12
|
-
|
13
|
-
OBJECT_NAME = "gift_cards.card"
|
14
|
-
|
15
|
-
# Validates a gift card code, returning the matching gift card object if it exists.
|
16
|
-
def self.validate(params = {}, opts = {})
|
17
|
-
request_stripe_object(
|
18
|
-
method: :post,
|
19
|
-
path: "/v1/gift_cards/cards/validate",
|
20
|
-
params: params,
|
21
|
-
opts: opts
|
22
|
-
)
|
23
|
-
end
|
24
|
-
|
25
|
-
# Creates a new gift card object.
|
26
|
-
def self.create(params = {}, opts = {})
|
27
|
-
request_stripe_object(
|
28
|
-
method: :post,
|
29
|
-
path: "/v1/gift_cards/cards",
|
30
|
-
params: params,
|
31
|
-
opts: opts
|
32
|
-
)
|
33
|
-
end
|
34
|
-
|
35
|
-
# List gift cards for an account
|
36
|
-
def self.list(filters = {}, opts = {})
|
37
|
-
request_stripe_object(
|
38
|
-
method: :get,
|
39
|
-
path: "/v1/gift_cards/cards",
|
40
|
-
params: filters,
|
41
|
-
opts: opts
|
42
|
-
)
|
43
|
-
end
|
44
|
-
|
45
|
-
# Update a gift card
|
46
|
-
def self.update(id, params = {}, opts = {})
|
47
|
-
request_stripe_object(
|
48
|
-
method: :post,
|
49
|
-
path: format("/v1/gift_cards/cards/%<id>s", { id: CGI.escape(id) }),
|
50
|
-
params: params,
|
51
|
-
opts: opts
|
52
|
-
)
|
53
|
-
end
|
54
|
-
end
|
55
|
-
end
|
56
|
-
end
|
@@ -1,90 +0,0 @@
|
|
1
|
-
# File generated from our OpenAPI spec
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
module Stripe
|
5
|
-
module GiftCards
|
6
|
-
# A gift card transaction represents a single transaction on a referenced gift card.
|
7
|
-
# A transaction is in one of three states, `confirmed`, `held` or `canceled`. A `confirmed`
|
8
|
-
# transaction is one that has added/deducted funds. A `held` transaction has created a
|
9
|
-
# temporary hold on funds, which can then be cancelled or confirmed. A `held` transaction
|
10
|
-
# can be confirmed into a `confirmed` transaction, or canceled into a `canceled` transaction.
|
11
|
-
# A `canceled` transaction has no effect on a gift card's balance.
|
12
|
-
class Transaction < APIResource
|
13
|
-
extend Stripe::APIOperations::Create
|
14
|
-
extend Stripe::APIOperations::List
|
15
|
-
include Stripe::APIOperations::Save
|
16
|
-
|
17
|
-
OBJECT_NAME = "gift_cards.transaction"
|
18
|
-
|
19
|
-
# Cancel a gift card transaction
|
20
|
-
def cancel(params = {}, opts = {})
|
21
|
-
request_stripe_object(
|
22
|
-
method: :post,
|
23
|
-
path: format("/v1/gift_cards/transactions/%<id>s/cancel", { id: CGI.escape(self["id"]) }),
|
24
|
-
params: params,
|
25
|
-
opts: opts
|
26
|
-
)
|
27
|
-
end
|
28
|
-
|
29
|
-
# Confirm a gift card transaction
|
30
|
-
def confirm(params = {}, opts = {})
|
31
|
-
request_stripe_object(
|
32
|
-
method: :post,
|
33
|
-
path: format("/v1/gift_cards/transactions/%<id>s/confirm", { id: CGI.escape(self["id"]) }),
|
34
|
-
params: params,
|
35
|
-
opts: opts
|
36
|
-
)
|
37
|
-
end
|
38
|
-
|
39
|
-
# Cancel a gift card transaction
|
40
|
-
def self.cancel(id, params = {}, opts = {})
|
41
|
-
request_stripe_object(
|
42
|
-
method: :post,
|
43
|
-
path: format("/v1/gift_cards/transactions/%<id>s/cancel", { id: CGI.escape(id) }),
|
44
|
-
params: params,
|
45
|
-
opts: opts
|
46
|
-
)
|
47
|
-
end
|
48
|
-
|
49
|
-
# Confirm a gift card transaction
|
50
|
-
def self.confirm(id, params = {}, opts = {})
|
51
|
-
request_stripe_object(
|
52
|
-
method: :post,
|
53
|
-
path: format("/v1/gift_cards/transactions/%<id>s/confirm", { id: CGI.escape(id) }),
|
54
|
-
params: params,
|
55
|
-
opts: opts
|
56
|
-
)
|
57
|
-
end
|
58
|
-
|
59
|
-
# Create a gift card transaction
|
60
|
-
def self.create(params = {}, opts = {})
|
61
|
-
request_stripe_object(
|
62
|
-
method: :post,
|
63
|
-
path: "/v1/gift_cards/transactions",
|
64
|
-
params: params,
|
65
|
-
opts: opts
|
66
|
-
)
|
67
|
-
end
|
68
|
-
|
69
|
-
# List gift card transactions for a gift card
|
70
|
-
def self.list(filters = {}, opts = {})
|
71
|
-
request_stripe_object(
|
72
|
-
method: :get,
|
73
|
-
path: "/v1/gift_cards/transactions",
|
74
|
-
params: filters,
|
75
|
-
opts: opts
|
76
|
-
)
|
77
|
-
end
|
78
|
-
|
79
|
-
# Update a gift card transaction
|
80
|
-
def self.update(id, params = {}, opts = {})
|
81
|
-
request_stripe_object(
|
82
|
-
method: :post,
|
83
|
-
path: format("/v1/gift_cards/transactions/%<id>s", { id: CGI.escape(id) }),
|
84
|
-
params: params,
|
85
|
-
opts: opts
|
86
|
-
)
|
87
|
-
end
|
88
|
-
end
|
89
|
-
end
|
90
|
-
end
|