stripe 15.0.0 → 15.3.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 +4 -4
- data/API_VERSION +1 -0
- data/CHANGELOG.md +129 -44
- data/CONTRIBUTING.md +25 -0
- data/Gemfile +1 -1
- data/OPENAPI_VERSION +1 -1
- data/README.md +28 -55
- data/VERSION +1 -1
- data/lib/stripe/api_operations/nested_resource.rb +35 -35
- data/lib/stripe/api_requestor.rb +1 -1
- data/lib/stripe/api_version.rb +2 -1
- data/lib/stripe/connection_manager.rb +1 -3
- data/lib/stripe/event_types.rb +1 -0
- data/lib/stripe/events/v1_billing_meter_error_report_triggered_event.rb +1 -1
- data/lib/stripe/events/v1_billing_meter_no_meter_found_event.rb +1 -1
- data/lib/stripe/events/v2_core_event_destination_ping_event.rb +21 -0
- data/lib/stripe/oauth.rb +1 -1
- data/lib/stripe/resources/account.rb +198 -28
- data/lib/stripe/resources/account_session.rb +176 -72
- data/lib/stripe/resources/apple_pay_domain.rb +1 -2
- data/lib/stripe/resources/balance.rb +42 -0
- data/lib/stripe/resources/balance_transaction.rb +2 -0
- data/lib/stripe/resources/bank_account.rb +2 -2
- data/lib/stripe/resources/billing_portal/session.rb +3 -3
- data/lib/stripe/resources/capability.rb +1 -1
- data/lib/stripe/resources/charge.rb +43 -20
- data/lib/stripe/resources/checkout/session.rb +120 -19
- data/lib/stripe/resources/confirmation_token.rb +119 -100
- data/lib/stripe/resources/country_spec.rb +1 -1
- data/lib/stripe/resources/coupon.rb +2 -3
- data/lib/stripe/resources/credit_note.rb +21 -18
- data/lib/stripe/resources/customer.rb +4 -6
- data/lib/stripe/resources/customer_session.rb +5 -5
- data/lib/stripe/resources/dispute.rb +2 -2
- data/lib/stripe/resources/event.rb +3 -1
- data/lib/stripe/resources/file.rb +1 -1
- data/lib/stripe/resources/funding_instructions.rb +1 -1
- data/lib/stripe/resources/identity/verification_report.rb +6 -0
- data/lib/stripe/resources/identity/verification_session.rb +51 -11
- data/lib/stripe/resources/invoice.rb +146 -32
- data/lib/stripe/resources/invoice_item.rb +3 -7
- data/lib/stripe/resources/invoice_line_item.rb +1 -1
- data/lib/stripe/resources/invoice_payment.rb +9 -2
- data/lib/stripe/resources/issuing/authorization.rb +8 -8
- data/lib/stripe/resources/issuing/card.rb +1 -1
- data/lib/stripe/resources/issuing/dispute.rb +3 -3
- data/lib/stripe/resources/login_link.rb +2 -1
- data/lib/stripe/resources/mandate.rb +3 -0
- data/lib/stripe/resources/payment_intent.rb +602 -325
- data/lib/stripe/resources/payment_method.rb +76 -117
- data/lib/stripe/resources/payment_method_configuration.rb +356 -2
- data/lib/stripe/resources/payment_method_domain.rb +15 -2
- data/lib/stripe/resources/payout.rb +4 -4
- data/lib/stripe/resources/person.rb +27 -3
- data/lib/stripe/resources/plan.rb +2 -3
- data/lib/stripe/resources/price.rb +1 -1
- data/lib/stripe/resources/product.rb +1 -2
- data/lib/stripe/resources/quote.rb +28 -3
- data/lib/stripe/resources/radar/value_list.rb +1 -2
- data/lib/stripe/resources/radar/value_list_item.rb +1 -2
- data/lib/stripe/resources/refund.rb +8 -1
- data/lib/stripe/resources/reversal.rb +1 -1
- data/lib/stripe/resources/review.rb +1 -1
- data/lib/stripe/resources/setup_attempt.rb +1 -1
- data/lib/stripe/resources/setup_intent.rb +414 -293
- data/lib/stripe/resources/source.rb +1 -1
- data/lib/stripe/resources/subscription.rb +149 -27
- data/lib/stripe/resources/subscription_item.rb +33 -0
- data/lib/stripe/resources/subscription_schedule.rb +141 -4
- data/lib/stripe/resources/tax/calculation.rb +6 -2
- data/lib/stripe/resources/tax/calculation_line_item.rb +2 -0
- data/lib/stripe/resources/tax/registration.rb +261 -1
- data/lib/stripe/resources/tax/transaction.rb +1 -1
- data/lib/stripe/resources/tax_id.rb +3 -4
- data/lib/stripe/resources/tax_rate.rb +2 -2
- data/lib/stripe/resources/terminal/configuration.rb +2 -2
- data/lib/stripe/resources/terminal/location.rb +2 -3
- data/lib/stripe/resources/terminal/reader.rb +426 -6
- data/lib/stripe/resources/test_helpers/test_clock.rb +1 -2
- data/lib/stripe/resources/token.rb +63 -2
- data/lib/stripe/resources/transfer.rb +1 -1
- data/lib/stripe/resources/treasury/financial_account.rb +5 -1
- data/lib/stripe/resources/v2/billing/meter_event.rb +2 -2
- data/lib/stripe/resources/v2/billing/meter_event_adjustment.rb +2 -2
- data/lib/stripe/resources/v2/billing/meter_event_session.rb +2 -2
- data/lib/stripe/resources/v2/event.rb +2 -2
- data/lib/stripe/resources/v2/event_destination.rb +2 -2
- data/lib/stripe/resources/webhook_endpoint.rb +1 -2
- data/lib/stripe/resources.rb +1 -0
- data/lib/stripe/services/account_external_account_service.rb +3 -4
- data/lib/stripe/services/account_login_link_service.rb +1 -1
- data/lib/stripe/services/account_person_service.rb +85 -2
- data/lib/stripe/services/account_service.rb +169 -20
- data/lib/stripe/services/account_session_service.rb +115 -47
- data/lib/stripe/services/apple_pay_domain_service.rb +1 -2
- data/lib/stripe/services/application_fee_service.rb +1 -1
- data/lib/stripe/services/apps_service.rb +1 -1
- data/lib/stripe/services/balance_service.rb +1 -1
- data/lib/stripe/services/billing/meter_service.rb +1 -1
- data/lib/stripe/services/billing_portal/session_service.rb +1 -1
- data/lib/stripe/services/billing_portal_service.rb +1 -1
- data/lib/stripe/services/billing_service.rb +1 -1
- data/lib/stripe/services/charge_service.rb +4 -4
- data/lib/stripe/services/checkout/session_service.rb +94 -15
- data/lib/stripe/services/checkout_service.rb +1 -1
- data/lib/stripe/services/climate_service.rb +1 -1
- data/lib/stripe/services/coupon_service.rb +1 -2
- data/lib/stripe/services/credit_note_preview_lines_service.rb +3 -3
- data/lib/stripe/services/credit_note_service.rb +14 -15
- data/lib/stripe/services/customer_balance_transaction_service.rb +3 -3
- data/lib/stripe/services/customer_cash_balance_transaction_service.rb +2 -2
- data/lib/stripe/services/customer_payment_method_service.rb +1 -1
- data/lib/stripe/services/customer_payment_source_service.rb +1 -1
- data/lib/stripe/services/customer_service.rb +5 -7
- data/lib/stripe/services/customer_session_service.rb +1 -1
- data/lib/stripe/services/customer_tax_id_service.rb +2 -3
- data/lib/stripe/services/dispute_service.rb +1 -1
- data/lib/stripe/services/entitlements_service.rb +1 -1
- data/lib/stripe/services/file_service.rb +1 -1
- data/lib/stripe/services/financial_connections/account_service.rb +1 -1
- data/lib/stripe/services/financial_connections_service.rb +1 -1
- data/lib/stripe/services/forwarding_service.rb +1 -1
- data/lib/stripe/services/identity/verification_session_service.rb +21 -5
- data/lib/stripe/services/identity_service.rb +1 -1
- data/lib/stripe/services/invoice_item_service.rb +1 -2
- data/lib/stripe/services/invoice_service.rb +122 -28
- data/lib/stripe/services/issuing/authorization_service.rb +4 -4
- data/lib/stripe/services/issuing/card_service.rb +1 -1
- data/lib/stripe/services/issuing/dispute_service.rb +2 -2
- data/lib/stripe/services/issuing_service.rb +1 -1
- data/lib/stripe/services/payment_intent_service.rb +563 -313
- data/lib/stripe/services/payment_link_service.rb +1 -1
- data/lib/stripe/services/payment_method_configuration_service.rb +254 -2
- data/lib/stripe/services/payment_method_domain_service.rb +1 -1
- data/lib/stripe/services/payment_method_service.rb +59 -105
- data/lib/stripe/services/payout_service.rb +2 -2
- data/lib/stripe/services/plan_service.rb +2 -3
- data/lib/stripe/services/price_service.rb +2 -2
- data/lib/stripe/services/product_feature_service.rb +1 -2
- data/lib/stripe/services/product_service.rb +3 -4
- data/lib/stripe/services/promotion_code_service.rb +1 -1
- data/lib/stripe/services/quote_service.rb +21 -4
- data/lib/stripe/services/radar/early_fraud_warning_service.rb +1 -1
- data/lib/stripe/services/radar/value_list_item_service.rb +1 -2
- data/lib/stripe/services/radar/value_list_service.rb +1 -2
- data/lib/stripe/services/radar_service.rb +1 -1
- data/lib/stripe/services/reporting_service.rb +1 -1
- data/lib/stripe/services/setup_intent_service.rb +403 -291
- data/lib/stripe/services/sigma_service.rb +1 -1
- data/lib/stripe/services/source_service.rb +2 -2
- data/lib/stripe/services/subscription_item_service.rb +26 -0
- data/lib/stripe/services/subscription_schedule_service.rb +106 -3
- data/lib/stripe/services/subscription_service.rb +121 -26
- data/lib/stripe/services/tax/calculation_service.rb +6 -2
- data/lib/stripe/services/tax/registration_service.rb +170 -1
- data/lib/stripe/services/tax/transaction_service.rb +1 -1
- data/lib/stripe/services/tax_id_service.rb +2 -3
- data/lib/stripe/services/tax_service.rb +1 -1
- data/lib/stripe/services/terminal/configuration_service.rb +1 -2
- data/lib/stripe/services/terminal/location_service.rb +2 -3
- data/lib/stripe/services/terminal/reader_service.rb +196 -2
- data/lib/stripe/services/terminal_service.rb +1 -1
- data/lib/stripe/services/test_helpers/confirmation_token_service.rb +90 -91
- data/lib/stripe/services/test_helpers/issuing_service.rb +1 -1
- data/lib/stripe/services/test_helpers/terminal/reader_service.rb +43 -0
- data/lib/stripe/services/test_helpers/terminal_service.rb +1 -1
- data/lib/stripe/services/test_helpers/test_clock_service.rb +1 -2
- data/lib/stripe/services/test_helpers/treasury_service.rb +1 -1
- data/lib/stripe/services/test_helpers_service.rb +1 -1
- data/lib/stripe/services/token_service.rb +62 -1
- data/lib/stripe/services/transfer_service.rb +2 -2
- data/lib/stripe/services/treasury/financial_account_service.rb +6 -2
- data/lib/stripe/services/treasury_service.rb +1 -1
- data/lib/stripe/services/v1_services.rb +1 -1
- data/lib/stripe/services/v2/billing/meter_event_session_service.rb +1 -2
- data/lib/stripe/services/v2/billing_service.rb +3 -3
- data/lib/stripe/services/v2/core/event_destination_service.rb +17 -23
- data/lib/stripe/services/v2/core/event_service.rb +1 -2
- data/lib/stripe/services/v2/core_service.rb +1 -1
- data/lib/stripe/services/v2_services.rb +1 -1
- data/lib/stripe/services/webhook_endpoint_service.rb +1 -2
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe/webhook.rb +1 -1
- data/rbi/stripe/resources/account.rbi +190 -35
- data/rbi/stripe/resources/account_session.rbi +196 -77
- data/rbi/stripe/resources/apple_pay_domain.rbi +1 -3
- data/rbi/stripe/resources/balance.rbi +55 -0
- data/rbi/stripe/resources/balance_transaction.rbi +3 -0
- data/rbi/stripe/resources/bank_account.rbi +2 -2
- data/rbi/stripe/resources/billing/alert.rbi +2 -2
- data/rbi/stripe/resources/billing_portal/session.rbi +3 -3
- data/rbi/stripe/resources/capability.rbi +1 -1
- data/rbi/stripe/resources/charge.rbi +52 -20
- data/rbi/stripe/resources/checkout/session.rbi +133 -24
- data/rbi/stripe/resources/confirmation_token.rbi +140 -115
- data/rbi/stripe/resources/country_spec.rbi +1 -1
- data/rbi/stripe/resources/coupon.rbi +2 -4
- data/rbi/stripe/resources/credit_note.rbi +23 -18
- data/rbi/stripe/resources/customer.rbi +4 -8
- data/rbi/stripe/resources/customer_session.rbi +5 -5
- data/rbi/stripe/resources/dispute.rbi +2 -2
- data/rbi/stripe/resources/event.rbi +4 -1
- data/rbi/stripe/resources/file.rbi +1 -1
- data/rbi/stripe/resources/identity/verification_report.rbi +9 -0
- data/rbi/stripe/resources/identity/verification_session.rbi +59 -12
- data/rbi/stripe/resources/invoice.rbi +149 -40
- data/rbi/stripe/resources/invoice_item.rbi +3 -8
- data/rbi/stripe/resources/invoice_line_item.rbi +2 -2
- data/rbi/stripe/resources/invoice_payment.rbi +9 -2
- data/rbi/stripe/resources/issuing/authorization.rbi +8 -8
- data/rbi/stripe/resources/issuing/card.rbi +1 -1
- data/rbi/stripe/resources/issuing/dispute.rbi +3 -3
- data/rbi/stripe/resources/login_link.rbi +2 -1
- data/rbi/stripe/resources/mandate.rbi +4 -0
- data/rbi/stripe/resources/payment_intent.rbi +637 -381
- data/rbi/stripe/resources/payment_method.rbi +81 -133
- data/rbi/stripe/resources/payment_method_configuration.rbi +400 -4
- data/rbi/stripe/resources/payment_method_domain.rbi +18 -2
- data/rbi/stripe/resources/payout.rbi +4 -4
- data/rbi/stripe/resources/person.rbi +33 -3
- data/rbi/stripe/resources/plan.rbi +2 -4
- data/rbi/stripe/resources/price.rbi +1 -1
- data/rbi/stripe/resources/product.rbi +1 -3
- data/rbi/stripe/resources/quote.rbi +25 -3
- data/rbi/stripe/resources/radar/value_list.rbi +1 -3
- data/rbi/stripe/resources/radar/value_list_item.rbi +1 -3
- data/rbi/stripe/resources/refund.rbi +8 -1
- data/rbi/stripe/resources/reversal.rbi +1 -1
- data/rbi/stripe/resources/review.rbi +1 -1
- data/rbi/stripe/resources/setup_attempt.rbi +1 -1
- data/rbi/stripe/resources/setup_intent.rbi +464 -346
- data/rbi/stripe/resources/source.rbi +1 -1
- data/rbi/stripe/resources/subscription.rbi +150 -34
- data/rbi/stripe/resources/subscription_item.rbi +36 -2
- data/rbi/stripe/resources/subscription_schedule.rbi +161 -11
- data/rbi/stripe/resources/tax/calculation.rbi +7 -3
- data/rbi/stripe/resources/tax/calculation_line_item.rbi +4 -1
- data/rbi/stripe/resources/tax/registration.rbi +249 -2
- data/rbi/stripe/resources/tax/transaction.rbi +1 -1
- data/rbi/stripe/resources/tax_id.rbi +3 -5
- data/rbi/stripe/resources/tax_rate.rbi +2 -2
- data/rbi/stripe/resources/terminal/configuration.rbi +2 -3
- data/rbi/stripe/resources/terminal/location.rbi +4 -6
- data/rbi/stripe/resources/terminal/reader.rbi +415 -8
- data/rbi/stripe/resources/test_helpers/test_clock.rbi +1 -3
- data/rbi/stripe/resources/token.rbi +70 -4
- data/rbi/stripe/resources/transfer.rbi +1 -1
- data/rbi/stripe/resources/treasury/financial_account.rbi +6 -2
- data/rbi/stripe/resources/v2/billing/meter_event.rbi +3 -3
- data/rbi/stripe/resources/v2/billing/meter_event_adjustment.rbi +3 -3
- data/rbi/stripe/resources/v2/billing/meter_event_session.rbi +3 -3
- data/rbi/stripe/resources/v2/event.rbi +3 -3
- data/rbi/stripe/resources/v2/event_destination.rbi +3 -3
- data/rbi/stripe/resources/webhook_endpoint.rbi +1 -3
- data/rbi/stripe/services/account_external_account_service.rbi +3 -5
- data/rbi/stripe/services/account_login_link_service.rbi +1 -1
- data/rbi/stripe/services/account_person_service.rbi +93 -5
- data/rbi/stripe/services/account_service.rbi +166 -28
- data/rbi/stripe/services/account_session_service.rbi +126 -52
- data/rbi/stripe/services/apple_pay_domain_service.rbi +1 -3
- data/rbi/stripe/services/balance_service.rbi +1 -1
- data/rbi/stripe/services/billing/alert_service.rbi +2 -2
- data/rbi/stripe/services/billing_portal/session_service.rbi +1 -1
- data/rbi/stripe/services/charge_service.rbi +4 -4
- data/rbi/stripe/services/checkout/session_service.rbi +104 -19
- data/rbi/stripe/services/coupon_service.rbi +1 -3
- data/rbi/stripe/services/credit_note_preview_lines_service.rbi +3 -3
- data/rbi/stripe/services/credit_note_service.rbi +13 -14
- data/rbi/stripe/services/customer_balance_transaction_service.rbi +3 -3
- data/rbi/stripe/services/customer_cash_balance_transaction_service.rbi +2 -2
- data/rbi/stripe/services/customer_payment_method_service.rbi +1 -1
- data/rbi/stripe/services/customer_payment_source_service.rbi +1 -1
- data/rbi/stripe/services/customer_service.rbi +4 -8
- data/rbi/stripe/services/customer_session_service.rbi +1 -1
- data/rbi/stripe/services/customer_tax_id_service.rbi +2 -4
- data/rbi/stripe/services/dispute_service.rbi +1 -1
- data/rbi/stripe/services/file_service.rbi +1 -1
- data/rbi/stripe/services/identity/verification_session_service.rbi +22 -6
- data/rbi/stripe/services/invoice_item_service.rbi +1 -3
- data/rbi/stripe/services/invoice_service.rbi +126 -35
- data/rbi/stripe/services/issuing/authorization_service.rbi +4 -4
- data/rbi/stripe/services/issuing/card_service.rbi +1 -1
- data/rbi/stripe/services/issuing/dispute_service.rbi +2 -2
- data/rbi/stripe/services/payment_intent_service.rbi +599 -369
- data/rbi/stripe/services/payment_method_configuration_service.rbi +280 -4
- data/rbi/stripe/services/payment_method_domain_service.rbi +1 -1
- data/rbi/stripe/services/payment_method_service.rbi +62 -121
- data/rbi/stripe/services/payout_service.rbi +2 -2
- data/rbi/stripe/services/plan_service.rbi +2 -4
- data/rbi/stripe/services/price_service.rbi +2 -2
- data/rbi/stripe/services/product_feature_service.rbi +1 -3
- data/rbi/stripe/services/product_service.rbi +2 -4
- data/rbi/stripe/services/promotion_code_service.rbi +1 -1
- data/rbi/stripe/services/quote_service.rbi +16 -3
- data/rbi/stripe/services/radar/early_fraud_warning_service.rbi +1 -1
- data/rbi/stripe/services/radar/value_list_item_service.rbi +1 -3
- data/rbi/stripe/services/radar/value_list_service.rbi +1 -3
- data/rbi/stripe/services/setup_intent_service.rbi +457 -344
- data/rbi/stripe/services/source_service.rbi +1 -1
- data/rbi/stripe/services/subscription_item_service.rbi +28 -2
- data/rbi/stripe/services/subscription_schedule_service.rbi +119 -10
- data/rbi/stripe/services/subscription_service.rbi +121 -33
- data/rbi/stripe/services/tax/calculation_service.rbi +6 -2
- data/rbi/stripe/services/tax/registration_service.rbi +171 -2
- data/rbi/stripe/services/tax_id_service.rbi +2 -4
- data/rbi/stripe/services/terminal/configuration_service.rbi +1 -3
- data/rbi/stripe/services/terminal/location_service.rbi +4 -6
- data/rbi/stripe/services/terminal/reader_service.rbi +200 -4
- data/rbi/stripe/services/test_helpers/confirmation_token_service.rbi +106 -106
- data/rbi/stripe/services/test_helpers/terminal/reader_service.rbi +31 -0
- data/rbi/stripe/services/test_helpers/test_clock_service.rbi +1 -3
- data/rbi/stripe/services/token_service.rbi +71 -3
- data/rbi/stripe/services/transfer_service.rbi +1 -1
- data/rbi/stripe/services/treasury/financial_account_service.rbi +6 -2
- data/rbi/stripe/services/v2/billing/meter_event_session_service.rbi +1 -3
- data/rbi/stripe/services/v2/billing_service.rbi +1 -1
- data/rbi/stripe/services/v2/core/event_destination_service.rbi +14 -22
- data/rbi/stripe/services/v2/core/event_service.rbi +1 -3
- data/rbi/stripe/services/webhook_endpoint_service.rbi +1 -3
- metadata +5 -2
@@ -155,6 +155,58 @@ module Stripe
|
|
155
155
|
sig { returns(SourceTypes) }
|
156
156
|
attr_reader :source_types
|
157
157
|
end
|
158
|
+
class RefundAndDisputePrefunding < Stripe::StripeObject
|
159
|
+
class Available < Stripe::StripeObject
|
160
|
+
class SourceTypes < Stripe::StripeObject
|
161
|
+
# Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated).
|
162
|
+
sig { returns(Integer) }
|
163
|
+
attr_reader :bank_account
|
164
|
+
# Amount coming from most payment methods, including cards as well as [non-legacy bank debits](https://docs.stripe.com/payments/bank-debits).
|
165
|
+
sig { returns(Integer) }
|
166
|
+
attr_reader :card
|
167
|
+
# Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method.
|
168
|
+
sig { returns(Integer) }
|
169
|
+
attr_reader :fpx
|
170
|
+
end
|
171
|
+
# Balance amount.
|
172
|
+
sig { returns(Integer) }
|
173
|
+
attr_reader :amount
|
174
|
+
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
175
|
+
sig { returns(String) }
|
176
|
+
attr_reader :currency
|
177
|
+
# Attribute for field source_types
|
178
|
+
sig { returns(SourceTypes) }
|
179
|
+
attr_reader :source_types
|
180
|
+
end
|
181
|
+
class Pending < Stripe::StripeObject
|
182
|
+
class SourceTypes < Stripe::StripeObject
|
183
|
+
# Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated).
|
184
|
+
sig { returns(Integer) }
|
185
|
+
attr_reader :bank_account
|
186
|
+
# Amount coming from most payment methods, including cards as well as [non-legacy bank debits](https://docs.stripe.com/payments/bank-debits).
|
187
|
+
sig { returns(Integer) }
|
188
|
+
attr_reader :card
|
189
|
+
# Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method.
|
190
|
+
sig { returns(Integer) }
|
191
|
+
attr_reader :fpx
|
192
|
+
end
|
193
|
+
# Balance amount.
|
194
|
+
sig { returns(Integer) }
|
195
|
+
attr_reader :amount
|
196
|
+
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
197
|
+
sig { returns(String) }
|
198
|
+
attr_reader :currency
|
199
|
+
# Attribute for field source_types
|
200
|
+
sig { returns(SourceTypes) }
|
201
|
+
attr_reader :source_types
|
202
|
+
end
|
203
|
+
# Funds that are available for use.
|
204
|
+
sig { returns(T::Array[Available]) }
|
205
|
+
attr_reader :available
|
206
|
+
# Funds that are pending
|
207
|
+
sig { returns(T::Array[Pending]) }
|
208
|
+
attr_reader :pending
|
209
|
+
end
|
158
210
|
# Available funds that you can transfer or pay out automatically by Stripe or explicitly through the [Transfers API](https://stripe.com/docs/api#transfers) or [Payouts API](https://stripe.com/docs/api#payouts). You can find the available balance for each currency and payment type in the `source_types` property.
|
159
211
|
sig { returns(T::Array[Available]) }
|
160
212
|
attr_reader :available
|
@@ -176,5 +228,8 @@ module Stripe
|
|
176
228
|
# Funds that aren't available in the balance yet. You can find the pending balance for each currency and each payment type in the `source_types` property.
|
177
229
|
sig { returns(T::Array[Pending]) }
|
178
230
|
attr_reader :pending
|
231
|
+
# Attribute for field refund_and_dispute_prefunding
|
232
|
+
sig { returns(RefundAndDisputePrefunding) }
|
233
|
+
attr_reader :refund_and_dispute_prefunding
|
179
234
|
end
|
180
235
|
end
|
@@ -31,6 +31,9 @@ module Stripe
|
|
31
31
|
# The date that the transaction's net funds become available in the Stripe balance.
|
32
32
|
sig { returns(Integer) }
|
33
33
|
attr_reader :available_on
|
34
|
+
# The balance that this transaction impacts.
|
35
|
+
sig { returns(String) }
|
36
|
+
attr_reader :balance_type
|
34
37
|
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
35
38
|
sig { returns(Integer) }
|
36
39
|
attr_reader :created
|
@@ -5,11 +5,11 @@
|
|
5
5
|
module Stripe
|
6
6
|
# These bank accounts are payment methods on `Customer` objects.
|
7
7
|
#
|
8
|
-
# On the other hand [External Accounts](https://stripe.com/api#external_accounts) are transfer
|
8
|
+
# On the other hand [External Accounts](https://docs.stripe.com/api#external_accounts) are transfer
|
9
9
|
# destinations on `Account` objects for connected accounts.
|
10
10
|
# They can be bank accounts or debit cards as well, and are documented in the links above.
|
11
11
|
#
|
12
|
-
# Related guide: [Bank debits and transfers](https://stripe.com/payments/bank-debits-transfers)
|
12
|
+
# Related guide: [Bank debits and transfers](https://docs.stripe.com/payments/bank-debits-transfers)
|
13
13
|
class BankAccount < APIResource
|
14
14
|
class FutureRequirements < Stripe::StripeObject
|
15
15
|
class Error < Stripe::StripeObject
|
@@ -101,13 +101,13 @@ module Stripe
|
|
101
101
|
sig { returns(Integer) }
|
102
102
|
attr_accessor :gte
|
103
103
|
# The [Billing Meter](/api/billing/meter) ID whose usage is monitored.
|
104
|
-
sig { returns(
|
104
|
+
sig { returns(String) }
|
105
105
|
attr_accessor :meter
|
106
106
|
# Whether the alert should only fire only once, or once per billing cycle.
|
107
107
|
sig { returns(String) }
|
108
108
|
attr_accessor :recurrence
|
109
109
|
sig {
|
110
|
-
params(filters: T.nilable(T::Array[::Stripe::Billing::Alert::CreateParams::UsageThreshold::Filter]), gte: Integer, meter:
|
110
|
+
params(filters: T.nilable(T::Array[::Stripe::Billing::Alert::CreateParams::UsageThreshold::Filter]), gte: Integer, meter: String, recurrence: String).void
|
111
111
|
}
|
112
112
|
def initialize(filters: nil, gte: nil, meter: nil, recurrence: nil); end
|
113
113
|
end
|
@@ -17,7 +17,7 @@ module Stripe
|
|
17
17
|
# Create sessions on-demand when customers intend to manage their subscriptions
|
18
18
|
# and billing details.
|
19
19
|
#
|
20
|
-
# Related guide: [Customer management](https://stripe.com/customer-management)
|
20
|
+
# Related guide: [Customer management](https://docs.stripe.com/customer-management)
|
21
21
|
class Session < APIResource
|
22
22
|
class Flow < Stripe::StripeObject
|
23
23
|
class AfterCompletion < Stripe::StripeObject
|
@@ -87,7 +87,7 @@ module Stripe
|
|
87
87
|
sig { returns(Integer) }
|
88
88
|
attr_reader :quantity
|
89
89
|
end
|
90
|
-
# The coupon or promotion code to apply to this subscription update.
|
90
|
+
# The coupon or promotion code to apply to this subscription update.
|
91
91
|
sig { returns(T.nilable(T::Array[Discount])) }
|
92
92
|
attr_reader :discounts
|
93
93
|
# The [subscription item](https://stripe.com/docs/api/subscription_items) to be updated through this flow. Currently, only up to one may be specified and subscriptions with multiple items are not updatable.
|
@@ -249,7 +249,7 @@ module Stripe
|
|
249
249
|
}
|
250
250
|
def initialize(id: nil, price: nil, quantity: nil); end
|
251
251
|
end
|
252
|
-
# The coupon or promotion code to apply to this subscription update.
|
252
|
+
# The coupon or promotion code to apply to this subscription update.
|
253
253
|
sig {
|
254
254
|
returns(T.nilable(T::Array[::Stripe::BillingPortal::Session::CreateParams::FlowData::SubscriptionUpdateConfirm::Discount]))
|
255
255
|
}
|
@@ -75,7 +75,7 @@ module Stripe
|
|
75
75
|
# Fields that are due and can be satisfied by providing the corresponding alternative fields instead.
|
76
76
|
sig { returns(T.nilable(T::Array[Alternative])) }
|
77
77
|
attr_reader :alternatives
|
78
|
-
#
|
78
|
+
# The date by which all required account information must be both submitted and verified. This includes fields listed in `currently_due` as well as those in `pending_verification`. If any required information is missing or unverified by this date, the account may be disabled. Note that `current_deadline` may change if additional `currently_due` requirements are requested.
|
79
79
|
sig { returns(T.nilable(Integer)) }
|
80
80
|
attr_reader :current_deadline
|
81
81
|
# Fields that need to be collected to keep the capability enabled. If not collected by `current_deadline`, these fields appear in `past_due` as well, and the capability is disabled.
|
@@ -41,6 +41,9 @@ module Stripe
|
|
41
41
|
# Billing phone number (including extension).
|
42
42
|
sig { returns(T.nilable(String)) }
|
43
43
|
attr_reader :phone
|
44
|
+
# Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.
|
45
|
+
sig { returns(T.nilable(String)) }
|
46
|
+
attr_reader :tax_id
|
44
47
|
end
|
45
48
|
class FraudDetails < Stripe::StripeObject
|
46
49
|
# Assessments from Stripe. If set, the value is `fraudulent`.
|
@@ -189,6 +192,12 @@ module Stripe
|
|
189
192
|
attr_reader :transit_number
|
190
193
|
end
|
191
194
|
class Affirm < Stripe::StripeObject
|
195
|
+
# ID of the [location](https://stripe.com/docs/api/terminal/locations) that this transaction's reader is assigned to.
|
196
|
+
sig { returns(String) }
|
197
|
+
attr_reader :location
|
198
|
+
# ID of the [reader](https://stripe.com/docs/api/terminal/readers) this transaction was made on.
|
199
|
+
sig { returns(String) }
|
200
|
+
attr_reader :reader
|
192
201
|
# The Affirm transaction ID associated with this payment.
|
193
202
|
sig { returns(T.nilable(String)) }
|
194
203
|
attr_reader :transaction_id
|
@@ -344,7 +353,7 @@ module Stripe
|
|
344
353
|
# One of `month`.
|
345
354
|
sig { returns(T.nilable(String)) }
|
346
355
|
attr_reader :interval
|
347
|
-
# Type of installment plan, one of `fixed_count`.
|
356
|
+
# Type of installment plan, one of `fixed_count`, `bonus`, or `revolving`.
|
348
357
|
sig { returns(String) }
|
349
358
|
attr_reader :type
|
350
359
|
end
|
@@ -587,7 +596,7 @@ module Stripe
|
|
587
596
|
# Attribute for field incremental_authorization
|
588
597
|
sig { returns(IncrementalAuthorization) }
|
589
598
|
attr_reader :incremental_authorization
|
590
|
-
# Installment details for this payment
|
599
|
+
# Installment details for this payment.
|
591
600
|
#
|
592
601
|
# For more information, see the [installments integration guide](https://stripe.com/docs/payments/installments).
|
593
602
|
sig { returns(T.nilable(Installments)) }
|
@@ -642,10 +651,10 @@ module Stripe
|
|
642
651
|
# The type of account being debited or credited
|
643
652
|
sig { returns(String) }
|
644
653
|
attr_reader :account_type
|
645
|
-
#
|
654
|
+
# The Application Cryptogram, a unique value generated by the card to authenticate the transaction with issuers.
|
646
655
|
sig { returns(T.nilable(String)) }
|
647
656
|
attr_reader :application_cryptogram
|
648
|
-
#
|
657
|
+
# The Application Identifier (AID) on the card used to determine which networks are eligible to process the transaction. Referenced from EMV tag 9F12, data encoded on the card's chip.
|
649
658
|
sig { returns(T.nilable(String)) }
|
650
659
|
attr_reader :application_preferred_name
|
651
660
|
# Identifier for this transaction.
|
@@ -657,13 +666,13 @@ module Stripe
|
|
657
666
|
# Describes the method used by the cardholder to verify ownership of the card. One of the following: `approval`, `failure`, `none`, `offline_pin`, `offline_pin_and_signature`, `online_pin`, or `signature`.
|
658
667
|
sig { returns(T.nilable(String)) }
|
659
668
|
attr_reader :cardholder_verification_method
|
660
|
-
#
|
669
|
+
# Similar to the application_preferred_name, identifying the applications (AIDs) available on the card. Referenced from EMV tag 84.
|
661
670
|
sig { returns(T.nilable(String)) }
|
662
671
|
attr_reader :dedicated_file_name
|
663
|
-
#
|
672
|
+
# A 5-byte string that records the checks and validations that occur between the card and the terminal. These checks determine how the terminal processes the transaction and what risk tolerance is acceptable. Referenced from EMV Tag 95.
|
664
673
|
sig { returns(T.nilable(String)) }
|
665
674
|
attr_reader :terminal_verification_results
|
666
|
-
# An indication of
|
675
|
+
# An indication of which steps were completed during the card read process. Referenced from EMV Tag 9B.
|
667
676
|
sig { returns(T.nilable(String)) }
|
668
677
|
attr_reader :transaction_status_information
|
669
678
|
end
|
@@ -737,7 +746,7 @@ module Stripe
|
|
737
746
|
# Defines whether the authorized amount can be over-captured or not
|
738
747
|
sig { returns(T::Boolean) }
|
739
748
|
attr_reader :overcapture_supported
|
740
|
-
# EMV tag 5F2D
|
749
|
+
# The languages that the issuing bank recommends using for localizing any customer-facing text, as read from the card. Referenced from EMV tag 5F2D, data encoded on the card's chip.
|
741
750
|
sig { returns(T.nilable(T::Array[String])) }
|
742
751
|
attr_reader :preferred_locales
|
743
752
|
# How card details were read in this transaction.
|
@@ -758,6 +767,20 @@ module Stripe
|
|
758
767
|
sig { returns(T.nilable(String)) }
|
759
768
|
attr_reader :cashtag
|
760
769
|
end
|
770
|
+
class Crypto < Stripe::StripeObject
|
771
|
+
# The wallet address of the customer.
|
772
|
+
sig { returns(String) }
|
773
|
+
attr_reader :buyer_address
|
774
|
+
# The blockchain network that the transaction was sent on.
|
775
|
+
sig { returns(String) }
|
776
|
+
attr_reader :network
|
777
|
+
# The token currency that the transaction was sent with.
|
778
|
+
sig { returns(String) }
|
779
|
+
attr_reader :token_currency
|
780
|
+
# The blockchain transaction hash of the crypto payment.
|
781
|
+
sig { returns(String) }
|
782
|
+
attr_reader :transaction_hash
|
783
|
+
end
|
761
784
|
class CustomerBalance < Stripe::StripeObject; end
|
762
785
|
class Eps < Stripe::StripeObject
|
763
786
|
# The customer's bank. Should be one of `arzte_und_apotheker_bank`, `austrian_anadi_bank_ag`, `bank_austria`, `bankhaus_carl_spangler`, `bankhaus_schelhammer_und_schattera_ag`, `bawag_psk_ag`, `bks_bank_ag`, `brull_kallmus_bank_ag`, `btv_vier_lander_bank`, `capital_bank_grawe_gruppe_ag`, `deutsche_bank_ag`, `dolomitenbank`, `easybank_ag`, `erste_bank_und_sparkassen`, `hypo_alpeadriabank_international_ag`, `hypo_noe_lb_fur_niederosterreich_u_wien`, `hypo_oberosterreich_salzburg_steiermark`, `hypo_tirol_bank_ag`, `hypo_vorarlberg_bank_ag`, `hypo_bank_burgenland_aktiengesellschaft`, `marchfelder_bank`, `oberbank_ag`, `raiffeisen_bankengruppe_osterreich`, `schoellerbank_ag`, `sparda_bank_wien`, `volksbank_gruppe`, `volkskreditbank_ag`, or `vr_bank_braunau`.
|
@@ -802,7 +825,7 @@ module Stripe
|
|
802
825
|
attr_reader :transaction_id
|
803
826
|
end
|
804
827
|
class Ideal < Stripe::StripeObject
|
805
|
-
# The customer's bank. Can be one of `abn_amro`, `asn_bank`, `bunq`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`.
|
828
|
+
# The customer's bank. Can be one of `abn_amro`, `asn_bank`, `bunq`, `buut`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`.
|
806
829
|
sig { returns(T.nilable(String)) }
|
807
830
|
attr_reader :bank
|
808
831
|
# The Bank Identifier Code of the customer's bank.
|
@@ -827,10 +850,10 @@ module Stripe
|
|
827
850
|
# The type of account being debited or credited
|
828
851
|
sig { returns(String) }
|
829
852
|
attr_reader :account_type
|
830
|
-
#
|
853
|
+
# The Application Cryptogram, a unique value generated by the card to authenticate the transaction with issuers.
|
831
854
|
sig { returns(T.nilable(String)) }
|
832
855
|
attr_reader :application_cryptogram
|
833
|
-
#
|
856
|
+
# The Application Identifier (AID) on the card used to determine which networks are eligible to process the transaction. Referenced from EMV tag 9F12, data encoded on the card's chip.
|
834
857
|
sig { returns(T.nilable(String)) }
|
835
858
|
attr_reader :application_preferred_name
|
836
859
|
# Identifier for this transaction.
|
@@ -842,13 +865,13 @@ module Stripe
|
|
842
865
|
# Describes the method used by the cardholder to verify ownership of the card. One of the following: `approval`, `failure`, `none`, `offline_pin`, `offline_pin_and_signature`, `online_pin`, or `signature`.
|
843
866
|
sig { returns(T.nilable(String)) }
|
844
867
|
attr_reader :cardholder_verification_method
|
845
|
-
#
|
868
|
+
# Similar to the application_preferred_name, identifying the applications (AIDs) available on the card. Referenced from EMV tag 84.
|
846
869
|
sig { returns(T.nilable(String)) }
|
847
870
|
attr_reader :dedicated_file_name
|
848
|
-
#
|
871
|
+
# A 5-byte string that records the checks and validations that occur between the card and the terminal. These checks determine how the terminal processes the transaction and what risk tolerance is acceptable. Referenced from EMV Tag 95.
|
849
872
|
sig { returns(T.nilable(String)) }
|
850
873
|
attr_reader :terminal_verification_results
|
851
|
-
# An indication of
|
874
|
+
# An indication of which steps were completed during the card read process. Referenced from EMV Tag 9B.
|
852
875
|
sig { returns(T.nilable(String)) }
|
853
876
|
attr_reader :transaction_status_information
|
854
877
|
end
|
@@ -899,7 +922,7 @@ module Stripe
|
|
899
922
|
# This is used by the financial networks to identify a transaction. Visa calls this the Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the Acquirer Reference Data. This value will be present if it is returned by the financial network in the authorization response, and null otherwise.
|
900
923
|
sig { returns(T.nilable(String)) }
|
901
924
|
attr_reader :network_transaction_id
|
902
|
-
# EMV tag 5F2D
|
925
|
+
# The languages that the issuing bank recommends using for localizing any customer-facing text, as read from the card. Referenced from EMV tag 5F2D, data encoded on the card's chip.
|
903
926
|
sig { returns(T.nilable(T::Array[String])) }
|
904
927
|
attr_reader :preferred_locales
|
905
928
|
# How card details were read in this transaction.
|
@@ -1233,6 +1256,12 @@ module Stripe
|
|
1233
1256
|
# Uniquely identifies this particular WeChat Pay account. You can use this attribute to check whether two WeChat accounts are the same.
|
1234
1257
|
sig { returns(T.nilable(String)) }
|
1235
1258
|
attr_reader :fingerprint
|
1259
|
+
# ID of the [location](https://stripe.com/docs/api/terminal/locations) that this transaction's reader is assigned to.
|
1260
|
+
sig { returns(String) }
|
1261
|
+
attr_reader :location
|
1262
|
+
# ID of the [reader](https://stripe.com/docs/api/terminal/readers) this transaction was made on.
|
1263
|
+
sig { returns(String) }
|
1264
|
+
attr_reader :reader
|
1236
1265
|
# Transaction ID of this particular WeChat Pay transaction.
|
1237
1266
|
sig { returns(T.nilable(String)) }
|
1238
1267
|
attr_reader :transaction_id
|
@@ -1289,6 +1318,9 @@ module Stripe
|
|
1289
1318
|
# Attribute for field cashapp
|
1290
1319
|
sig { returns(Cashapp) }
|
1291
1320
|
attr_reader :cashapp
|
1321
|
+
# Attribute for field crypto
|
1322
|
+
sig { returns(Crypto) }
|
1323
|
+
attr_reader :crypto
|
1292
1324
|
# Attribute for field customer_balance
|
1293
1325
|
sig { returns(CustomerBalance) }
|
1294
1326
|
attr_reader :customer_balance
|
@@ -2003,9 +2035,9 @@ module Stripe
|
|
2003
2035
|
end
|
2004
2036
|
# Capture the payment of an existing, uncaptured charge that was created with the capture option set to false.
|
2005
2037
|
#
|
2006
|
-
# Uncaptured payments expire a set number of days after they are created ([7 by default](https://stripe.com/docs/charges/placing-a-hold)), after which they are marked as refunded and capture attempts will fail.
|
2038
|
+
# Uncaptured payments expire a set number of days after they are created ([7 by default](https://docs.stripe.com/docs/charges/placing-a-hold)), after which they are marked as refunded and capture attempts will fail.
|
2007
2039
|
#
|
2008
|
-
# Don't use this method to capture a PaymentIntent-initiated charge. Use [Capture a PaymentIntent](https://stripe.com/docs/api/payment_intents/capture).
|
2040
|
+
# Don't use this method to capture a PaymentIntent-initiated charge. Use [Capture a PaymentIntent](https://docs.stripe.com/docs/api/payment_intents/capture).
|
2009
2041
|
sig {
|
2010
2042
|
params(params: T.any(::Stripe::Charge::CaptureParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Charge)
|
2011
2043
|
}
|
@@ -2013,15 +2045,15 @@ module Stripe
|
|
2013
2045
|
|
2014
2046
|
# Capture the payment of an existing, uncaptured charge that was created with the capture option set to false.
|
2015
2047
|
#
|
2016
|
-
# Uncaptured payments expire a set number of days after they are created ([7 by default](https://stripe.com/docs/charges/placing-a-hold)), after which they are marked as refunded and capture attempts will fail.
|
2048
|
+
# Uncaptured payments expire a set number of days after they are created ([7 by default](https://docs.stripe.com/docs/charges/placing-a-hold)), after which they are marked as refunded and capture attempts will fail.
|
2017
2049
|
#
|
2018
|
-
# Don't use this method to capture a PaymentIntent-initiated charge. Use [Capture a PaymentIntent](https://stripe.com/docs/api/payment_intents/capture).
|
2050
|
+
# Don't use this method to capture a PaymentIntent-initiated charge. Use [Capture a PaymentIntent](https://docs.stripe.com/docs/api/payment_intents/capture).
|
2019
2051
|
sig {
|
2020
2052
|
params(charge: String, params: T.any(::Stripe::Charge::CaptureParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Charge)
|
2021
2053
|
}
|
2022
2054
|
def self.capture(charge, params = {}, opts = {}); end
|
2023
2055
|
|
2024
|
-
# This method is no longer recommended—use the [Payment Intents API](https://stripe.com/docs/api/payment_intents)
|
2056
|
+
# This method is no longer recommended—use the [Payment Intents API](https://docs.stripe.com/docs/api/payment_intents)
|
2025
2057
|
# to initiate a new payment instead. Confirmation of the PaymentIntent creates the Charge
|
2026
2058
|
# object used to request payment.
|
2027
2059
|
sig {
|