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
@@ -47,6 +47,19 @@ module Stripe
|
|
47
47
|
sig { returns(StatusDetails) }
|
48
48
|
attr_reader :status_details
|
49
49
|
end
|
50
|
+
class Klarna < Stripe::StripeObject
|
51
|
+
class StatusDetails < Stripe::StripeObject
|
52
|
+
# The error message associated with the status of the payment method on the domain.
|
53
|
+
sig { returns(String) }
|
54
|
+
attr_reader :error_message
|
55
|
+
end
|
56
|
+
# The status of the payment method on the domain.
|
57
|
+
sig { returns(String) }
|
58
|
+
attr_reader :status
|
59
|
+
# Contains additional details about the status of a payment method for a specific payment method domain.
|
60
|
+
sig { returns(StatusDetails) }
|
61
|
+
attr_reader :status_details
|
62
|
+
end
|
50
63
|
class Link < Stripe::StripeObject
|
51
64
|
class StatusDetails < Stripe::StripeObject
|
52
65
|
# The error message associated with the status of the payment method on the domain.
|
@@ -95,6 +108,9 @@ module Stripe
|
|
95
108
|
sig { returns(String) }
|
96
109
|
attr_reader :id
|
97
110
|
# Indicates the status of a specific payment method on a payment method domain.
|
111
|
+
sig { returns(Klarna) }
|
112
|
+
attr_reader :klarna
|
113
|
+
# Indicates the status of a specific payment method on a payment method domain.
|
98
114
|
sig { returns(Link) }
|
99
115
|
attr_reader :link
|
100
116
|
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
@@ -192,7 +208,7 @@ module Stripe
|
|
192
208
|
#
|
193
209
|
# To activate a payment method on an existing payment method domain, complete the required registration steps specific to the payment method, and then validate the payment method domain with this endpoint.
|
194
210
|
#
|
195
|
-
# Related guides: [Payment method domains](https://stripe.com/docs/payments/payment-methods/pmd-registration).
|
211
|
+
# Related guides: [Payment method domains](https://docs.stripe.com/docs/payments/payment-methods/pmd-registration).
|
196
212
|
sig {
|
197
213
|
params(params: T.any(::Stripe::PaymentMethodDomain::ValidateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentMethodDomain)
|
198
214
|
}
|
@@ -203,7 +219,7 @@ module Stripe
|
|
203
219
|
#
|
204
220
|
# To activate a payment method on an existing payment method domain, complete the required registration steps specific to the payment method, and then validate the payment method domain with this endpoint.
|
205
221
|
#
|
206
|
-
# Related guides: [Payment method domains](https://stripe.com/docs/payments/payment-methods/pmd-registration).
|
222
|
+
# Related guides: [Payment method domains](https://docs.stripe.com/docs/payments/payment-methods/pmd-registration).
|
207
223
|
sig {
|
208
224
|
params(payment_method_domain: String, params: T.any(::Stripe::PaymentMethodDomain::ValidateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentMethodDomain)
|
209
225
|
}
|
@@ -5,9 +5,9 @@
|
|
5
5
|
module Stripe
|
6
6
|
# A `Payout` object is created when you receive funds from Stripe, or when you
|
7
7
|
# initiate a payout to either a bank account or debit card of a [connected
|
8
|
-
# Stripe account](https://stripe.com/docs/connect/bank-debit-card-payouts). You can retrieve individual payouts,
|
8
|
+
# Stripe account](https://docs.stripe.com/docs/connect/bank-debit-card-payouts). You can retrieve individual payouts,
|
9
9
|
# and list all payouts. Payouts are made on [varying
|
10
|
-
# schedules](https://stripe.com/docs/connect/manage-payout-schedule), depending on your country and
|
10
|
+
# schedules](https://docs.stripe.com/docs/connect/manage-payout-schedule), depending on your country and
|
11
11
|
# industry.
|
12
12
|
#
|
13
13
|
# Related guide: [Receiving payouts](https://stripe.com/docs/payouts)
|
@@ -259,11 +259,11 @@ module Stripe
|
|
259
259
|
}
|
260
260
|
def self.cancel(payout, params = {}, opts = {}); end
|
261
261
|
|
262
|
-
# To send funds to your own bank account, create a new payout object. Your [Stripe balance](https://stripe.com/
|
262
|
+
# To send funds to your own bank account, create a new payout object. Your [Stripe balance](https://docs.stripe.com/api#balance) must cover the payout amount. If it doesn't, you receive an “Insufficient Funds” error.
|
263
263
|
#
|
264
264
|
# If your API key is in test mode, money won't actually be sent, though every other action occurs as if you're in live mode.
|
265
265
|
#
|
266
|
-
# If you create a manual payout on a Stripe account that uses multiple payment source types, you need to specify the source type balance that the payout draws from. The [balance object](https://stripe.com/
|
266
|
+
# If you create a manual payout on a Stripe account that uses multiple payment source types, you need to specify the source type balance that the payout draws from. The [balance object](https://docs.stripe.com/api#balance_object) details available and pending amounts by source type.
|
267
267
|
sig {
|
268
268
|
params(params: T.any(::Stripe::Payout::CreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Payout)
|
269
269
|
}
|
@@ -5,9 +5,9 @@
|
|
5
5
|
module Stripe
|
6
6
|
# This is an object representing a person associated with a Stripe account.
|
7
7
|
#
|
8
|
-
# A platform can only access a subset of data in a person for an account where [account.controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `stripe`, which includes Standard and Express accounts, after creating an Account Link or Account Session to start Connect onboarding.
|
8
|
+
# A platform can only access a subset of data in a person for an account where [account.controller.requirement_collection](https://docs.stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `stripe`, which includes Standard and Express accounts, after creating an Account Link or Account Session to start Connect onboarding.
|
9
9
|
#
|
10
|
-
# See the [Standard onboarding](https://stripe.com/connect/standard-accounts) or [Express onboarding](https://stripe.com/connect/express-accounts) documentation for information about prefilling information and account onboarding steps. Learn more about [handling identity verification with the API](https://stripe.com/connect/handling-api-verification#person-information).
|
10
|
+
# See the [Standard onboarding](https://docs.stripe.com/connect/standard-accounts) or [Express onboarding](https://docs.stripe.com/connect/express-accounts) documentation for information about prefilling information and account onboarding steps. Learn more about [handling identity verification with the API](https://docs.stripe.com/connect/handling-api-verification#person-information).
|
11
11
|
class Person < APIResource
|
12
12
|
class AdditionalTosAcceptances < Stripe::StripeObject
|
13
13
|
class Account < Stripe::StripeObject
|
@@ -226,6 +226,33 @@ module Stripe
|
|
226
226
|
sig { returns(T::Array[String]) }
|
227
227
|
attr_reader :pending_verification
|
228
228
|
end
|
229
|
+
class UsCfpbData < Stripe::StripeObject
|
230
|
+
class EthnicityDetails < Stripe::StripeObject
|
231
|
+
# The persons ethnicity
|
232
|
+
sig { returns(T.nilable(T::Array[String])) }
|
233
|
+
attr_reader :ethnicity
|
234
|
+
# Please specify your origin, when other is selected.
|
235
|
+
sig { returns(T.nilable(String)) }
|
236
|
+
attr_reader :ethnicity_other
|
237
|
+
end
|
238
|
+
class RaceDetails < Stripe::StripeObject
|
239
|
+
# The persons race.
|
240
|
+
sig { returns(T.nilable(T::Array[String])) }
|
241
|
+
attr_reader :race
|
242
|
+
# Please specify your race, when other is selected.
|
243
|
+
sig { returns(T.nilable(String)) }
|
244
|
+
attr_reader :race_other
|
245
|
+
end
|
246
|
+
# The persons ethnicity details
|
247
|
+
sig { returns(T.nilable(EthnicityDetails)) }
|
248
|
+
attr_reader :ethnicity_details
|
249
|
+
# The persons race details
|
250
|
+
sig { returns(T.nilable(RaceDetails)) }
|
251
|
+
attr_reader :race_details
|
252
|
+
# The persons self-identified gender
|
253
|
+
sig { returns(T.nilable(String)) }
|
254
|
+
attr_reader :self_identified_gender
|
255
|
+
end
|
229
256
|
class Verification < Stripe::StripeObject
|
230
257
|
class AdditionalDocument < Stripe::StripeObject
|
231
258
|
# The back of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`.
|
@@ -267,7 +294,7 @@ module Stripe
|
|
267
294
|
# Attribute for field document
|
268
295
|
sig { returns(Document) }
|
269
296
|
attr_reader :document
|
270
|
-
# The state of verification for the person. Possible values are `unverified`, `pending`, or `verified`.
|
297
|
+
# The state of verification for the person. Possible values are `unverified`, `pending`, or `verified`. Please refer [guide](https://stripe.com/docs/connect/handling-api-verification) to handle verification updates.
|
271
298
|
sig { returns(String) }
|
272
299
|
attr_reader :status
|
273
300
|
end
|
@@ -361,6 +388,9 @@ module Stripe
|
|
361
388
|
# Whether the last four digits of the person's Social Security number have been provided (U.S. only).
|
362
389
|
sig { returns(T::Boolean) }
|
363
390
|
attr_reader :ssn_last_4_provided
|
391
|
+
# Demographic data related to the person.
|
392
|
+
sig { returns(T.nilable(UsCfpbData)) }
|
393
|
+
attr_reader :us_cfpb_data
|
364
394
|
# Attribute for field verification
|
365
395
|
sig { returns(Verification) }
|
366
396
|
attr_reader :verification
|
@@ -100,9 +100,7 @@ module Stripe
|
|
100
100
|
# Always true for a deleted object
|
101
101
|
sig { returns(T::Boolean) }
|
102
102
|
attr_reader :deleted
|
103
|
-
class DeleteParams < Stripe::RequestParams
|
104
|
-
|
105
|
-
end
|
103
|
+
class DeleteParams < Stripe::RequestParams; end
|
106
104
|
class UpdateParams < Stripe::RequestParams
|
107
105
|
# Whether the plan is currently available for new subscriptions.
|
108
106
|
sig { returns(T.nilable(T::Boolean)) }
|
@@ -340,7 +338,7 @@ module Stripe
|
|
340
338
|
usage_type: nil
|
341
339
|
); end
|
342
340
|
end
|
343
|
-
# You can now model subscriptions more flexibly using the [Prices API](https://stripe.com/
|
341
|
+
# You can now model subscriptions more flexibly using the [Prices API](https://docs.stripe.com/api#prices). It replaces the Plans API and is backwards compatible to simplify your migration.
|
344
342
|
sig {
|
345
343
|
params(params: T.any(::Stripe::Plan::CreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Plan)
|
346
344
|
}
|
@@ -669,7 +669,7 @@ module Stripe
|
|
669
669
|
}
|
670
670
|
def self.create(params = {}, opts = {}); end
|
671
671
|
|
672
|
-
# Returns a list of your active prices, excluding [inline prices](https://stripe.com/docs/products-prices/pricing-models#inline-pricing). For the list of inactive prices, set active to false.
|
672
|
+
# Returns a list of your active prices, excluding [inline prices](https://docs.stripe.com/docs/products-prices/pricing-models#inline-pricing). For the list of inactive prices, set active to false.
|
673
673
|
sig {
|
674
674
|
params(params: T.any(::Stripe::Price::ListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject)
|
675
675
|
}
|
@@ -91,9 +91,7 @@ module Stripe
|
|
91
91
|
# Always true for a deleted object
|
92
92
|
sig { returns(T::Boolean) }
|
93
93
|
attr_reader :deleted
|
94
|
-
class DeleteParams < Stripe::RequestParams
|
95
|
-
|
96
|
-
end
|
94
|
+
class DeleteParams < Stripe::RequestParams; end
|
97
95
|
class UpdateParams < Stripe::RequestParams
|
98
96
|
class MarketingFeature < Stripe::RequestParams
|
99
97
|
# The marketing feature name. Up to 80 characters long.
|
@@ -21,6 +21,9 @@ module Stripe
|
|
21
21
|
# The account that's liable for tax. If set, the business address and tax registrations required to perform the tax calculation are loaded from this account. The tax transaction is returned in the report of the connected account.
|
22
22
|
sig { returns(T.nilable(Liability)) }
|
23
23
|
attr_reader :liability
|
24
|
+
# The tax provider powering automatic tax.
|
25
|
+
sig { returns(T.nilable(String)) }
|
26
|
+
attr_reader :provider
|
24
27
|
# The status of the most recent automated tax calculation for this quote.
|
25
28
|
sig { returns(T.nilable(String)) }
|
26
29
|
attr_reader :status
|
@@ -198,6 +201,14 @@ module Stripe
|
|
198
201
|
attr_reader :finalized_at
|
199
202
|
end
|
200
203
|
class SubscriptionData < Stripe::StripeObject
|
204
|
+
class BillingMode < Stripe::StripeObject
|
205
|
+
# Controls how prorations and invoices for subscriptions are calculated and orchestrated.
|
206
|
+
sig { returns(String) }
|
207
|
+
attr_reader :type
|
208
|
+
end
|
209
|
+
# The billing mode of the quote.
|
210
|
+
sig { returns(BillingMode) }
|
211
|
+
attr_reader :billing_mode
|
201
212
|
# The subscription's description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs.
|
202
213
|
sig { returns(T.nilable(String)) }
|
203
214
|
attr_reader :description
|
@@ -567,10 +578,20 @@ module Stripe
|
|
567
578
|
); end
|
568
579
|
end
|
569
580
|
class SubscriptionData < Stripe::RequestParams
|
581
|
+
class BillingMode < Stripe::RequestParams
|
582
|
+
# Attribute for param field type
|
583
|
+
sig { returns(String) }
|
584
|
+
attr_accessor :type
|
585
|
+
sig { params(type: String).void }
|
586
|
+
def initialize(type: nil); end
|
587
|
+
end
|
588
|
+
# Controls how prorations and invoices for subscriptions are calculated and orchestrated.
|
589
|
+
sig { returns(T.nilable(::Stripe::Quote::CreateParams::SubscriptionData::BillingMode)) }
|
590
|
+
attr_accessor :billing_mode
|
570
591
|
# The subscription's description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs.
|
571
592
|
sig { returns(T.nilable(String)) }
|
572
593
|
attr_accessor :description
|
573
|
-
# When creating a new subscription, the date of which the subscription schedule will start after the quote is accepted.
|
594
|
+
# When creating a new subscription, the date of which the subscription schedule will start after the quote is accepted. The `effective_date` is ignored if it is in the past when the quote is accepted.
|
574
595
|
sig { returns(T.nilable(T.nilable(T.any(String, T.any(String, Integer))))) }
|
575
596
|
attr_accessor :effective_date
|
576
597
|
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that will set metadata on the subscription or subscription schedule when the quote is accepted. If a recurring price is included in `line_items`, this field will be passed to the resulting subscription's `metadata` field. If `subscription_data.effective_date` is used, this field will be passed to the resulting subscription schedule's `phases.metadata` field. Unlike object-level metadata, this field is declarative. Updates will clear prior values.
|
@@ -580,9 +601,10 @@ module Stripe
|
|
580
601
|
sig { returns(T.nilable(T.nilable(T.any(String, Integer)))) }
|
581
602
|
attr_accessor :trial_period_days
|
582
603
|
sig {
|
583
|
-
params(description: T.nilable(String), effective_date: T.nilable(T.nilable(T.any(String, T.any(String, Integer)))), metadata: T.nilable(T::Hash[String, String]), trial_period_days: T.nilable(T.nilable(T.any(String, Integer)))).void
|
604
|
+
params(billing_mode: T.nilable(::Stripe::Quote::CreateParams::SubscriptionData::BillingMode), description: T.nilable(String), effective_date: T.nilable(T.nilable(T.any(String, T.any(String, Integer)))), metadata: T.nilable(T::Hash[String, String]), trial_period_days: T.nilable(T.nilable(T.any(String, Integer)))).void
|
584
605
|
}
|
585
606
|
def initialize(
|
607
|
+
billing_mode: nil,
|
586
608
|
description: nil,
|
587
609
|
effective_date: nil,
|
588
610
|
metadata: nil,
|
@@ -847,7 +869,7 @@ module Stripe
|
|
847
869
|
# The subscription's description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs.
|
848
870
|
sig { returns(T.nilable(T.nilable(String))) }
|
849
871
|
attr_accessor :description
|
850
|
-
# When creating a new subscription, the date of which the subscription schedule will start after the quote is accepted.
|
872
|
+
# When creating a new subscription, the date of which the subscription schedule will start after the quote is accepted. The `effective_date` is ignored if it is in the past when the quote is accepted.
|
851
873
|
sig { returns(T.nilable(T.nilable(T.any(String, T.any(String, Integer))))) }
|
852
874
|
attr_accessor :effective_date
|
853
875
|
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that will set metadata on the subscription or subscription schedule when the quote is accepted. If a recurring price is included in `line_items`, this field will be passed to the resulting subscription's `metadata` field. If `subscription_data.effective_date` is used, this field will be passed to the resulting subscription schedule's `phases.metadata` field. Unlike object-level metadata, this field is declarative. Updates will clear prior values.
|
@@ -41,9 +41,7 @@ module Stripe
|
|
41
41
|
# Always true for a deleted object
|
42
42
|
sig { returns(T::Boolean) }
|
43
43
|
attr_reader :deleted
|
44
|
-
class DeleteParams < Stripe::RequestParams
|
45
|
-
|
46
|
-
end
|
44
|
+
class DeleteParams < Stripe::RequestParams; end
|
47
45
|
class UpdateParams < Stripe::RequestParams
|
48
46
|
# The name of the value list for use in rules.
|
49
47
|
sig { returns(T.nilable(String)) }
|
@@ -32,9 +32,7 @@ module Stripe
|
|
32
32
|
# Always true for a deleted object
|
33
33
|
sig { returns(T::Boolean) }
|
34
34
|
attr_reader :deleted
|
35
|
-
class DeleteParams < Stripe::RequestParams
|
36
|
-
|
37
|
-
end
|
35
|
+
class DeleteParams < Stripe::RequestParams; end
|
38
36
|
class ListParams < Stripe::RequestParams
|
39
37
|
class Created < Stripe::RequestParams
|
40
38
|
# Minimum value to filter by (exclusive)
|
@@ -105,7 +105,11 @@ module Stripe
|
|
105
105
|
attr_reader :reference_status
|
106
106
|
end
|
107
107
|
class Paynow < Stripe::StripeObject; end
|
108
|
-
class Paypal < Stripe::StripeObject
|
108
|
+
class Paypal < Stripe::StripeObject
|
109
|
+
# For refunds declined by the network, a decline code provided by the network which indicates the reason the refund failed.
|
110
|
+
sig { returns(T.nilable(String)) }
|
111
|
+
attr_reader :network_decline_code
|
112
|
+
end
|
109
113
|
class Pix < Stripe::StripeObject; end
|
110
114
|
class Revolut < Stripe::StripeObject; end
|
111
115
|
class Sofort < Stripe::StripeObject; end
|
@@ -315,6 +319,9 @@ module Stripe
|
|
315
319
|
# ID of the PaymentIntent that's refunded.
|
316
320
|
sig { returns(T.nilable(T.any(String, Stripe::PaymentIntent))) }
|
317
321
|
attr_reader :payment_intent
|
322
|
+
# Provides the reason for why the refund is pending. Possible values are: `processing`, `insufficient_funds`, or `charge_pending`.
|
323
|
+
sig { returns(String) }
|
324
|
+
attr_reader :pending_reason
|
318
325
|
# Attribute for field presentment_details
|
319
326
|
sig { returns(PresentmentDetails) }
|
320
327
|
attr_reader :presentment_details
|
@@ -9,7 +9,7 @@ module Stripe
|
|
9
9
|
# platform's balance and subtract from the destination account's balance.
|
10
10
|
#
|
11
11
|
# Reversing a transfer that was made for a [destination
|
12
|
-
# charge](https://stripe.com/docs/connect/destination-charges) is allowed only up to the amount of
|
12
|
+
# charge](https://docs.stripe.com/docs/connect/destination-charges) is allowed only up to the amount of
|
13
13
|
# the charge. It is possible to reverse a
|
14
14
|
# [transfer_group](https://stripe.com/docs/connect/separate-charges-and-transfers#transfer-options)
|
15
15
|
# transfer only if the destination account has enough balance to cover the
|
@@ -5,7 +5,7 @@
|
|
5
5
|
module Stripe
|
6
6
|
# Reviews can be used to supplement automated fraud detection with human expertise.
|
7
7
|
#
|
8
|
-
# Learn more about [Radar](https://stripe.com/radar) and reviewing payments
|
8
|
+
# Learn more about [Radar](https://docs.stripe.com/radar) and reviewing payments
|
9
9
|
# [here](https://stripe.com/docs/radar/reviews).
|
10
10
|
class Review < APIResource
|
11
11
|
class IpAddressLocation < Stripe::StripeObject
|
@@ -154,7 +154,7 @@ module Stripe
|
|
154
154
|
end
|
155
155
|
class Cashapp < Stripe::StripeObject; end
|
156
156
|
class Ideal < Stripe::StripeObject
|
157
|
-
# 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`.
|
157
|
+
# 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`.
|
158
158
|
sig { returns(T.nilable(String)) }
|
159
159
|
attr_reader :bank
|
160
160
|
# The Bank Identifier Code of the customer's bank.
|