stripe 13.4.0.pre.beta.2 → 13.4.0.pre.beta.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +12 -0
  3. data/CONTRIBUTING.md +25 -0
  4. data/Makefile +2 -0
  5. data/OPENAPI_VERSION +1 -1
  6. data/README.md +11 -6
  7. data/Rakefile +0 -5
  8. data/VERSION +1 -1
  9. data/justfile +43 -0
  10. data/lib/stripe/api_version.rb +1 -1
  11. data/lib/stripe/resources/account.rb +94 -2
  12. data/lib/stripe/resources/account_session.rb +95 -5
  13. data/lib/stripe/resources/billing_portal/configuration.rb +2 -2
  14. data/lib/stripe/resources/charge.rb +4 -0
  15. data/lib/stripe/resources/checkout/session.rb +17 -1
  16. data/lib/stripe/resources/confirmation_token.rb +10 -0
  17. data/lib/stripe/resources/financial_connections/transaction.rb +1 -1
  18. data/lib/stripe/resources/payment_intent.rb +46 -0
  19. data/lib/stripe/resources/payment_method.rb +17 -0
  20. data/lib/stripe/resources/payment_method_configuration.rb +59 -0
  21. data/lib/stripe/resources/setup_intent.rb +21 -0
  22. data/lib/stripe/resources/terminal/configuration.rb +49 -0
  23. data/lib/stripe/resources/token.rb +19 -0
  24. data/lib/stripe/services/account_service.rb +92 -2
  25. data/lib/stripe/services/account_session_service.rb +23 -5
  26. data/lib/stripe/services/billing_portal/configuration_service.rb +2 -2
  27. data/lib/stripe/services/checkout/session_service.rb +7 -0
  28. data/lib/stripe/services/financial_connections/transaction_service.rb +1 -1
  29. data/lib/stripe/services/payment_intent_service.rb +42 -0
  30. data/lib/stripe/services/payment_method_configuration_service.rb +42 -0
  31. data/lib/stripe/services/payment_method_service.rb +14 -0
  32. data/lib/stripe/services/setup_intent_service.rb +21 -0
  33. data/lib/stripe/services/terminal/configuration_service.rb +38 -0
  34. data/lib/stripe/services/test_helpers/confirmation_token_service.rb +7 -0
  35. data/lib/stripe/services/token_service.rb +19 -0
  36. data/lib/stripe/stripe_client.rb +6 -1
  37. data/lib/stripe/stripe_configuration.rb +21 -1
  38. data/lib/stripe/thin_event.rb +22 -2
  39. data/lib/stripe/version.rb +1 -1
  40. data/lib/stripe.rb +22 -0
  41. data/rbi/stripe/resources/account.rbi +93 -8
  42. data/rbi/stripe/resources/account_session.rbi +121 -6
  43. data/rbi/stripe/resources/billing_portal/configuration.rbi +2 -2
  44. data/rbi/stripe/resources/charge.rbi +4 -0
  45. data/rbi/stripe/resources/checkout/session.rbi +22 -2
  46. data/rbi/stripe/resources/confirmation_token.rbi +12 -1
  47. data/rbi/stripe/resources/financial_connections/transaction.rbi +1 -1
  48. data/rbi/stripe/resources/payment_intent.rbi +58 -6
  49. data/rbi/stripe/resources/payment_method.rbi +20 -2
  50. data/rbi/stripe/resources/payment_method_configuration.rbi +68 -2
  51. data/rbi/stripe/resources/setup_intent.rbi +24 -3
  52. data/rbi/stripe/resources/terminal/configuration.rbi +54 -2
  53. data/rbi/stripe/resources/token.rbi +18 -1
  54. data/rbi/stripe/services/account_service.rbi +90 -8
  55. data/rbi/stripe/services/account_session_service.rbi +29 -6
  56. data/rbi/stripe/services/billing_portal/configuration_service.rbi +2 -2
  57. data/rbi/stripe/services/checkout/session_service.rbi +10 -1
  58. data/rbi/stripe/services/financial_connections/transaction_service.rbi +1 -1
  59. data/rbi/stripe/services/payment_intent_service.rbi +54 -6
  60. data/rbi/stripe/services/payment_method_configuration_service.rbi +46 -2
  61. data/rbi/stripe/services/payment_method_service.rbi +16 -2
  62. data/rbi/stripe/services/setup_intent_service.rbi +24 -3
  63. data/rbi/stripe/services/terminal/configuration_service.rbi +40 -2
  64. data/rbi/stripe/services/test_helpers/confirmation_token_service.rbi +10 -1
  65. data/rbi/stripe/services/token_service.rbi +20 -1
  66. metadata +4 -2
@@ -38,6 +38,25 @@ module Stripe
38
38
  end
39
39
  end
40
40
 
41
+ # Set options to the StripeClient configured options, if valid as a client option and provided
42
+ # Otherwise, for user configurable global options, set them to the global configuration
43
+ # For all other options, set them to the StripeConfiguration default value
44
+ def self.client_init(config_opts)
45
+ global_config = Stripe.config
46
+ imported_options = USER_CONFIGURABLE_GLOBAL_OPTIONS - StripeClient::CLIENT_OPTIONS
47
+ client_config = StripeConfiguration.setup do |instance|
48
+ imported_options.each do |key|
49
+ begin
50
+ instance.public_send("#{key}=", global_config.public_send(key)) if global_config.respond_to?(key)
51
+ rescue NotImplementedError => e
52
+ # In Ruby <= 2.5, we can't set write_timeout on Net::HTTP, log an error and continue
53
+ Util.log_error("Failed to set #{key} on client configuration: #{e}")
54
+ end
55
+ end
56
+ end
57
+ client_config.reverse_duplicate_merge(config_opts)
58
+ end
59
+
41
60
  # Create a new config based off an existing one. This is useful when the
42
61
  # caller wants to override the global configuration
43
62
  def reverse_duplicate_merge(hash)
@@ -70,7 +89,8 @@ module Stripe
70
89
  @connect_base = DEFAULT_CONNECT_BASE
71
90
  @uploads_base = DEFAULT_UPLOAD_BASE
72
91
  @meter_events_base = DEFAULT_METER_EVENTS_BASE
73
- @base_addresses = { api: @api_base, connect: @connect_base, files: @uploads_base, events: @meter_events_base }
92
+ @base_addresses = { api: @api_base, connect: @connect_base, files: @uploads_base,
93
+ meter_events: @meter_events_base, }
74
94
  end
75
95
 
76
96
  def log_level=(val)
@@ -1,8 +1,26 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Stripe
4
+ class EventReasonRequest
5
+ attr_reader :id, :idempotency_key
6
+
7
+ def initialize(event_reason_request_payload = {})
8
+ @id = event_reason_request_payload[:id]
9
+ @idempotency_key = event_reason_request_payload[:idempotency_key]
10
+ end
11
+ end
12
+
13
+ class EventReason
14
+ attr_reader :type, :request
15
+
16
+ def initialize(event_reason_payload = {})
17
+ @type = event_reason_payload[:type]
18
+ @request = EventReasonRequest.new(event_reason_payload[:request])
19
+ end
20
+ end
21
+
4
22
  class ThinEvent
5
- attr_reader :id, :type, :created, :context, :related_object
23
+ attr_reader :id, :type, :created, :context, :related_object, :livemode, :reason
6
24
 
7
25
  def initialize(event_payload = {})
8
26
  @id = event_payload[:id]
@@ -11,7 +29,9 @@ module Stripe
11
29
  @context = event_payload[:context]
12
30
  @livemode = event_payload[:livemode]
13
31
  @related_object = event_payload[:related_object]
14
- @reason = event_payload[:reason]
32
+ return if event_payload[:reason].nil?
33
+
34
+ @reason = EventReason.new(event_payload[:reason])
15
35
  end
16
36
  end
17
37
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Stripe
4
- VERSION = "13.4.0-beta.2"
4
+ VERSION = "13.4.0-beta.3"
5
5
  end
data/lib/stripe.rb CHANGED
@@ -77,6 +77,28 @@ module Stripe
77
77
  DEFAULT_UPLOAD_BASE = "https://files.stripe.com"
78
78
  DEFAULT_METER_EVENTS_BASE = "https://meter-events.stripe.com"
79
79
 
80
+ # Options that can be configured globally by users
81
+ USER_CONFIGURABLE_GLOBAL_OPTIONS = Set.new(%i[
82
+ api_key
83
+ api_version
84
+ stripe_account
85
+ api_base
86
+ uploads_base
87
+ connect_base
88
+ meter_events_base
89
+ open_timeout
90
+ read_timeout
91
+ write_timeout
92
+ proxy
93
+ verify_ssl_certs
94
+ ca_bundle_path
95
+ log_level
96
+ logger
97
+ max_network_retries
98
+ enable_telemetry
99
+ client_id
100
+ ])
101
+
80
102
  @app_info = nil
81
103
 
82
104
  @config = Stripe::StripeConfiguration.setup
@@ -214,6 +214,9 @@ module Stripe
214
214
  # The status of the P24 payments capability of the account, or whether the account can directly process P24 charges.
215
215
  sig { returns(String) }
216
216
  attr_reader :p24_payments
217
+ # The status of the pay_by_bank payments capability of the account, or whether the account can directly process pay_by_bank charges.
218
+ sig { returns(String) }
219
+ attr_reader :pay_by_bank_payments
217
220
  # The status of the Payco capability of the account, or whether the account can directly process Payco payments.
218
221
  sig { returns(String) }
219
222
  attr_reader :payco_payments
@@ -1359,6 +1362,13 @@ module Stripe
1359
1362
  sig { params(requested: T::Boolean).void }
1360
1363
  def initialize(requested: nil); end
1361
1364
  end
1365
+ class PayByBankPayments < Stripe::RequestParams
1366
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
1367
+ sig { returns(T::Boolean) }
1368
+ attr_accessor :requested
1369
+ sig { params(requested: T::Boolean).void }
1370
+ def initialize(requested: nil); end
1371
+ end
1362
1372
  class PaycoPayments < Stripe::RequestParams
1363
1373
  # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
1364
1374
  sig { returns(T::Boolean) }
@@ -1657,6 +1667,9 @@ module Stripe
1657
1667
  # The p24_payments capability.
1658
1668
  sig { returns(::Stripe::Account::UpdateParams::Capabilities::P24Payments) }
1659
1669
  attr_accessor :p24_payments
1670
+ # The pay_by_bank_payments capability.
1671
+ sig { returns(::Stripe::Account::UpdateParams::Capabilities::PayByBankPayments) }
1672
+ attr_accessor :pay_by_bank_payments
1660
1673
  # The payco_payments capability.
1661
1674
  sig { returns(::Stripe::Account::UpdateParams::Capabilities::PaycoPayments) }
1662
1675
  attr_accessor :payco_payments
@@ -1733,7 +1746,7 @@ module Stripe
1733
1746
  sig { returns(::Stripe::Account::UpdateParams::Capabilities::ZipPayments) }
1734
1747
  attr_accessor :zip_payments
1735
1748
  sig {
1736
- params(acss_debit_payments: ::Stripe::Account::UpdateParams::Capabilities::AcssDebitPayments, affirm_payments: ::Stripe::Account::UpdateParams::Capabilities::AffirmPayments, afterpay_clearpay_payments: ::Stripe::Account::UpdateParams::Capabilities::AfterpayClearpayPayments, alma_payments: ::Stripe::Account::UpdateParams::Capabilities::AlmaPayments, amazon_pay_payments: ::Stripe::Account::UpdateParams::Capabilities::AmazonPayPayments, au_becs_debit_payments: ::Stripe::Account::UpdateParams::Capabilities::AuBecsDebitPayments, automatic_indirect_tax: ::Stripe::Account::UpdateParams::Capabilities::AutomaticIndirectTax, bacs_debit_payments: ::Stripe::Account::UpdateParams::Capabilities::BacsDebitPayments, bancontact_payments: ::Stripe::Account::UpdateParams::Capabilities::BancontactPayments, bank_transfer_payments: ::Stripe::Account::UpdateParams::Capabilities::BankTransferPayments, blik_payments: ::Stripe::Account::UpdateParams::Capabilities::BlikPayments, boleto_payments: ::Stripe::Account::UpdateParams::Capabilities::BoletoPayments, card_issuing: ::Stripe::Account::UpdateParams::Capabilities::CardIssuing, card_payments: ::Stripe::Account::UpdateParams::Capabilities::CardPayments, cartes_bancaires_payments: ::Stripe::Account::UpdateParams::Capabilities::CartesBancairesPayments, cashapp_payments: ::Stripe::Account::UpdateParams::Capabilities::CashappPayments, eps_payments: ::Stripe::Account::UpdateParams::Capabilities::EpsPayments, fpx_payments: ::Stripe::Account::UpdateParams::Capabilities::FpxPayments, gb_bank_transfer_payments: ::Stripe::Account::UpdateParams::Capabilities::GbBankTransferPayments, giropay_payments: ::Stripe::Account::UpdateParams::Capabilities::GiropayPayments, gopay_payments: ::Stripe::Account::UpdateParams::Capabilities::GopayPayments, grabpay_payments: ::Stripe::Account::UpdateParams::Capabilities::GrabpayPayments, id_bank_transfer_payments: ::Stripe::Account::UpdateParams::Capabilities::IdBankTransferPayments, id_bank_transfer_payments_bca: ::Stripe::Account::UpdateParams::Capabilities::IdBankTransferPaymentsBca, ideal_payments: ::Stripe::Account::UpdateParams::Capabilities::IdealPayments, india_international_payments: ::Stripe::Account::UpdateParams::Capabilities::IndiaInternationalPayments, jcb_payments: ::Stripe::Account::UpdateParams::Capabilities::JcbPayments, jp_bank_transfer_payments: ::Stripe::Account::UpdateParams::Capabilities::JpBankTransferPayments, kakao_pay_payments: ::Stripe::Account::UpdateParams::Capabilities::KakaoPayPayments, klarna_payments: ::Stripe::Account::UpdateParams::Capabilities::KlarnaPayments, konbini_payments: ::Stripe::Account::UpdateParams::Capabilities::KonbiniPayments, kr_card_payments: ::Stripe::Account::UpdateParams::Capabilities::KrCardPayments, legacy_payments: ::Stripe::Account::UpdateParams::Capabilities::LegacyPayments, link_payments: ::Stripe::Account::UpdateParams::Capabilities::LinkPayments, mb_way_payments: ::Stripe::Account::UpdateParams::Capabilities::MbWayPayments, mobilepay_payments: ::Stripe::Account::UpdateParams::Capabilities::MobilepayPayments, multibanco_payments: ::Stripe::Account::UpdateParams::Capabilities::MultibancoPayments, mx_bank_transfer_payments: ::Stripe::Account::UpdateParams::Capabilities::MxBankTransferPayments, naver_pay_payments: ::Stripe::Account::UpdateParams::Capabilities::NaverPayPayments, oxxo_payments: ::Stripe::Account::UpdateParams::Capabilities::OxxoPayments, p24_payments: ::Stripe::Account::UpdateParams::Capabilities::P24Payments, payco_payments: ::Stripe::Account::UpdateParams::Capabilities::PaycoPayments, paynow_payments: ::Stripe::Account::UpdateParams::Capabilities::PaynowPayments, paypal_payments: ::Stripe::Account::UpdateParams::Capabilities::PaypalPayments, payto_payments: ::Stripe::Account::UpdateParams::Capabilities::PaytoPayments, promptpay_payments: ::Stripe::Account::UpdateParams::Capabilities::PromptpayPayments, qris_payments: ::Stripe::Account::UpdateParams::Capabilities::QrisPayments, rechnung_payments: ::Stripe::Account::UpdateParams::Capabilities::RechnungPayments, revolut_pay_payments: ::Stripe::Account::UpdateParams::Capabilities::RevolutPayPayments, samsung_pay_payments: ::Stripe::Account::UpdateParams::Capabilities::SamsungPayPayments, sepa_bank_transfer_payments: ::Stripe::Account::UpdateParams::Capabilities::SepaBankTransferPayments, sepa_debit_payments: ::Stripe::Account::UpdateParams::Capabilities::SepaDebitPayments, shopeepay_payments: ::Stripe::Account::UpdateParams::Capabilities::ShopeepayPayments, sofort_payments: ::Stripe::Account::UpdateParams::Capabilities::SofortPayments, swish_payments: ::Stripe::Account::UpdateParams::Capabilities::SwishPayments, tax_reporting_us_1099_k: ::Stripe::Account::UpdateParams::Capabilities::TaxReportingUs1099K, tax_reporting_us_1099_misc: ::Stripe::Account::UpdateParams::Capabilities::TaxReportingUs1099Misc, transfers: ::Stripe::Account::UpdateParams::Capabilities::Transfers, treasury: ::Stripe::Account::UpdateParams::Capabilities::Treasury, treasury_evolve: ::Stripe::Account::UpdateParams::Capabilities::TreasuryEvolve, treasury_fifth_third: ::Stripe::Account::UpdateParams::Capabilities::TreasuryFifthThird, treasury_goldman_sachs: ::Stripe::Account::UpdateParams::Capabilities::TreasuryGoldmanSachs, twint_payments: ::Stripe::Account::UpdateParams::Capabilities::TwintPayments, us_bank_account_ach_payments: ::Stripe::Account::UpdateParams::Capabilities::UsBankAccountAchPayments, us_bank_transfer_payments: ::Stripe::Account::UpdateParams::Capabilities::UsBankTransferPayments, zip_payments: ::Stripe::Account::UpdateParams::Capabilities::ZipPayments).void
1749
+ params(acss_debit_payments: ::Stripe::Account::UpdateParams::Capabilities::AcssDebitPayments, affirm_payments: ::Stripe::Account::UpdateParams::Capabilities::AffirmPayments, afterpay_clearpay_payments: ::Stripe::Account::UpdateParams::Capabilities::AfterpayClearpayPayments, alma_payments: ::Stripe::Account::UpdateParams::Capabilities::AlmaPayments, amazon_pay_payments: ::Stripe::Account::UpdateParams::Capabilities::AmazonPayPayments, au_becs_debit_payments: ::Stripe::Account::UpdateParams::Capabilities::AuBecsDebitPayments, automatic_indirect_tax: ::Stripe::Account::UpdateParams::Capabilities::AutomaticIndirectTax, bacs_debit_payments: ::Stripe::Account::UpdateParams::Capabilities::BacsDebitPayments, bancontact_payments: ::Stripe::Account::UpdateParams::Capabilities::BancontactPayments, bank_transfer_payments: ::Stripe::Account::UpdateParams::Capabilities::BankTransferPayments, blik_payments: ::Stripe::Account::UpdateParams::Capabilities::BlikPayments, boleto_payments: ::Stripe::Account::UpdateParams::Capabilities::BoletoPayments, card_issuing: ::Stripe::Account::UpdateParams::Capabilities::CardIssuing, card_payments: ::Stripe::Account::UpdateParams::Capabilities::CardPayments, cartes_bancaires_payments: ::Stripe::Account::UpdateParams::Capabilities::CartesBancairesPayments, cashapp_payments: ::Stripe::Account::UpdateParams::Capabilities::CashappPayments, eps_payments: ::Stripe::Account::UpdateParams::Capabilities::EpsPayments, fpx_payments: ::Stripe::Account::UpdateParams::Capabilities::FpxPayments, gb_bank_transfer_payments: ::Stripe::Account::UpdateParams::Capabilities::GbBankTransferPayments, giropay_payments: ::Stripe::Account::UpdateParams::Capabilities::GiropayPayments, gopay_payments: ::Stripe::Account::UpdateParams::Capabilities::GopayPayments, grabpay_payments: ::Stripe::Account::UpdateParams::Capabilities::GrabpayPayments, id_bank_transfer_payments: ::Stripe::Account::UpdateParams::Capabilities::IdBankTransferPayments, id_bank_transfer_payments_bca: ::Stripe::Account::UpdateParams::Capabilities::IdBankTransferPaymentsBca, ideal_payments: ::Stripe::Account::UpdateParams::Capabilities::IdealPayments, india_international_payments: ::Stripe::Account::UpdateParams::Capabilities::IndiaInternationalPayments, jcb_payments: ::Stripe::Account::UpdateParams::Capabilities::JcbPayments, jp_bank_transfer_payments: ::Stripe::Account::UpdateParams::Capabilities::JpBankTransferPayments, kakao_pay_payments: ::Stripe::Account::UpdateParams::Capabilities::KakaoPayPayments, klarna_payments: ::Stripe::Account::UpdateParams::Capabilities::KlarnaPayments, konbini_payments: ::Stripe::Account::UpdateParams::Capabilities::KonbiniPayments, kr_card_payments: ::Stripe::Account::UpdateParams::Capabilities::KrCardPayments, legacy_payments: ::Stripe::Account::UpdateParams::Capabilities::LegacyPayments, link_payments: ::Stripe::Account::UpdateParams::Capabilities::LinkPayments, mb_way_payments: ::Stripe::Account::UpdateParams::Capabilities::MbWayPayments, mobilepay_payments: ::Stripe::Account::UpdateParams::Capabilities::MobilepayPayments, multibanco_payments: ::Stripe::Account::UpdateParams::Capabilities::MultibancoPayments, mx_bank_transfer_payments: ::Stripe::Account::UpdateParams::Capabilities::MxBankTransferPayments, naver_pay_payments: ::Stripe::Account::UpdateParams::Capabilities::NaverPayPayments, oxxo_payments: ::Stripe::Account::UpdateParams::Capabilities::OxxoPayments, p24_payments: ::Stripe::Account::UpdateParams::Capabilities::P24Payments, pay_by_bank_payments: ::Stripe::Account::UpdateParams::Capabilities::PayByBankPayments, payco_payments: ::Stripe::Account::UpdateParams::Capabilities::PaycoPayments, paynow_payments: ::Stripe::Account::UpdateParams::Capabilities::PaynowPayments, paypal_payments: ::Stripe::Account::UpdateParams::Capabilities::PaypalPayments, payto_payments: ::Stripe::Account::UpdateParams::Capabilities::PaytoPayments, promptpay_payments: ::Stripe::Account::UpdateParams::Capabilities::PromptpayPayments, qris_payments: ::Stripe::Account::UpdateParams::Capabilities::QrisPayments, rechnung_payments: ::Stripe::Account::UpdateParams::Capabilities::RechnungPayments, revolut_pay_payments: ::Stripe::Account::UpdateParams::Capabilities::RevolutPayPayments, samsung_pay_payments: ::Stripe::Account::UpdateParams::Capabilities::SamsungPayPayments, sepa_bank_transfer_payments: ::Stripe::Account::UpdateParams::Capabilities::SepaBankTransferPayments, sepa_debit_payments: ::Stripe::Account::UpdateParams::Capabilities::SepaDebitPayments, shopeepay_payments: ::Stripe::Account::UpdateParams::Capabilities::ShopeepayPayments, sofort_payments: ::Stripe::Account::UpdateParams::Capabilities::SofortPayments, swish_payments: ::Stripe::Account::UpdateParams::Capabilities::SwishPayments, tax_reporting_us_1099_k: ::Stripe::Account::UpdateParams::Capabilities::TaxReportingUs1099K, tax_reporting_us_1099_misc: ::Stripe::Account::UpdateParams::Capabilities::TaxReportingUs1099Misc, transfers: ::Stripe::Account::UpdateParams::Capabilities::Transfers, treasury: ::Stripe::Account::UpdateParams::Capabilities::Treasury, treasury_evolve: ::Stripe::Account::UpdateParams::Capabilities::TreasuryEvolve, treasury_fifth_third: ::Stripe::Account::UpdateParams::Capabilities::TreasuryFifthThird, treasury_goldman_sachs: ::Stripe::Account::UpdateParams::Capabilities::TreasuryGoldmanSachs, twint_payments: ::Stripe::Account::UpdateParams::Capabilities::TwintPayments, us_bank_account_ach_payments: ::Stripe::Account::UpdateParams::Capabilities::UsBankAccountAchPayments, us_bank_transfer_payments: ::Stripe::Account::UpdateParams::Capabilities::UsBankTransferPayments, zip_payments: ::Stripe::Account::UpdateParams::Capabilities::ZipPayments).void
1737
1750
  }
1738
1751
  def initialize(
1739
1752
  acss_debit_payments: nil,
@@ -1777,6 +1790,7 @@ module Stripe
1777
1790
  naver_pay_payments: nil,
1778
1791
  oxxo_payments: nil,
1779
1792
  p24_payments: nil,
1793
+ pay_by_bank_payments: nil,
1780
1794
  payco_payments: nil,
1781
1795
  paynow_payments: nil,
1782
1796
  paypal_payments: nil,
@@ -1986,6 +2000,19 @@ module Stripe
1986
2000
  town: nil
1987
2001
  ); end
1988
2002
  end
2003
+ class DirectorshipDeclaration < Stripe::RequestParams
2004
+ # The Unix timestamp marking when the directorship declaration attestation was made.
2005
+ sig { returns(Integer) }
2006
+ attr_accessor :date
2007
+ # The IP address from which the directorship declaration attestation was made.
2008
+ sig { returns(String) }
2009
+ attr_accessor :ip
2010
+ # The user agent of the browser from which the directorship declaration attestation was made.
2011
+ sig { returns(String) }
2012
+ attr_accessor :user_agent
2013
+ sig { params(date: Integer, ip: String, user_agent: String).void }
2014
+ def initialize(date: nil, ip: nil, user_agent: nil); end
2015
+ end
1989
2016
  class OwnershipDeclaration < Stripe::RequestParams
1990
2017
  # The Unix timestamp marking when the beneficial owner attestation was made.
1991
2018
  sig { returns(Integer) }
@@ -2030,6 +2057,9 @@ module Stripe
2030
2057
  # Whether the company's directors have been provided. Set this Boolean to `true` after creating all the company's directors with [the Persons API](/api/persons) for accounts with a `relationship.director` requirement. This value is not automatically set to `true` after creating directors, so it needs to be updated to indicate all directors have been provided.
2031
2058
  sig { returns(T::Boolean) }
2032
2059
  attr_accessor :directors_provided
2060
+ # This hash is used to attest that the directors information provided to Stripe is both current and correct.
2061
+ sig { returns(::Stripe::Account::UpdateParams::Company::DirectorshipDeclaration) }
2062
+ attr_accessor :directorship_declaration
2033
2063
  # Whether the company's executives have been provided. Set this Boolean to `true` after creating all the company's executives with [the Persons API](/api/persons) for accounts with a `relationship.executive` requirement.
2034
2064
  sig { returns(T::Boolean) }
2035
2065
  attr_accessor :executives_provided
@@ -2079,13 +2109,14 @@ module Stripe
2079
2109
  sig { returns(::Stripe::Account::UpdateParams::Company::Verification) }
2080
2110
  attr_accessor :verification
2081
2111
  sig {
2082
- params(address: ::Stripe::Account::UpdateParams::Company::Address, address_kana: ::Stripe::Account::UpdateParams::Company::AddressKana, address_kanji: ::Stripe::Account::UpdateParams::Company::AddressKanji, directors_provided: T::Boolean, executives_provided: T::Boolean, export_license_id: String, export_purpose_code: String, name: String, name_kana: String, name_kanji: String, owners_provided: T::Boolean, ownership_declaration: ::Stripe::Account::UpdateParams::Company::OwnershipDeclaration, ownership_exemption_reason: T.nilable(String), phone: String, registration_number: String, structure: T.nilable(String), tax_id: String, tax_id_registrar: String, vat_id: String, verification: ::Stripe::Account::UpdateParams::Company::Verification).void
2112
+ params(address: ::Stripe::Account::UpdateParams::Company::Address, address_kana: ::Stripe::Account::UpdateParams::Company::AddressKana, address_kanji: ::Stripe::Account::UpdateParams::Company::AddressKanji, directors_provided: T::Boolean, directorship_declaration: ::Stripe::Account::UpdateParams::Company::DirectorshipDeclaration, executives_provided: T::Boolean, export_license_id: String, export_purpose_code: String, name: String, name_kana: String, name_kanji: String, owners_provided: T::Boolean, ownership_declaration: ::Stripe::Account::UpdateParams::Company::OwnershipDeclaration, ownership_exemption_reason: T.nilable(String), phone: String, registration_number: String, structure: T.nilable(String), tax_id: String, tax_id_registrar: String, vat_id: String, verification: ::Stripe::Account::UpdateParams::Company::Verification).void
2083
2113
  }
2084
2114
  def initialize(
2085
2115
  address: nil,
2086
2116
  address_kana: nil,
2087
2117
  address_kanji: nil,
2088
2118
  directors_provided: nil,
2119
+ directorship_declaration: nil,
2089
2120
  executives_provided: nil,
2090
2121
  export_license_id: nil,
2091
2122
  export_purpose_code: nil,
@@ -2154,6 +2185,13 @@ module Stripe
2154
2185
  sig { params(files: T::Array[String]).void }
2155
2186
  def initialize(files: nil); end
2156
2187
  end
2188
+ class ProofOfUltimateBeneficialOwnership < Stripe::RequestParams
2189
+ # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
2190
+ sig { returns(T::Array[String]) }
2191
+ attr_accessor :files
2192
+ sig { params(files: T::Array[String]).void }
2193
+ def initialize(files: nil); end
2194
+ end
2157
2195
  # One or more documents that support the [Bank account ownership verification](https://support.stripe.com/questions/bank-account-ownership-verification) requirement. Must be a document associated with the account’s primary active bank account that displays the last 4 digits of the account number, either a statement or a check.
2158
2196
  sig {
2159
2197
  returns(::Stripe::Account::UpdateParams::Documents::BankAccountOwnershipVerification)
@@ -2177,8 +2215,13 @@ module Stripe
2177
2215
  # One or more documents showing the company’s proof of registration with the national business registry.
2178
2216
  sig { returns(::Stripe::Account::UpdateParams::Documents::ProofOfRegistration) }
2179
2217
  attr_accessor :proof_of_registration
2218
+ # One or more documents that demonstrate proof of ultimate beneficial ownership.
2219
+ sig {
2220
+ returns(::Stripe::Account::UpdateParams::Documents::ProofOfUltimateBeneficialOwnership)
2221
+ }
2222
+ attr_accessor :proof_of_ultimate_beneficial_ownership
2180
2223
  sig {
2181
- params(bank_account_ownership_verification: ::Stripe::Account::UpdateParams::Documents::BankAccountOwnershipVerification, company_license: ::Stripe::Account::UpdateParams::Documents::CompanyLicense, company_memorandum_of_association: ::Stripe::Account::UpdateParams::Documents::CompanyMemorandumOfAssociation, company_ministerial_decree: ::Stripe::Account::UpdateParams::Documents::CompanyMinisterialDecree, company_registration_verification: ::Stripe::Account::UpdateParams::Documents::CompanyRegistrationVerification, company_tax_id_verification: ::Stripe::Account::UpdateParams::Documents::CompanyTaxIdVerification, proof_of_registration: ::Stripe::Account::UpdateParams::Documents::ProofOfRegistration).void
2224
+ params(bank_account_ownership_verification: ::Stripe::Account::UpdateParams::Documents::BankAccountOwnershipVerification, company_license: ::Stripe::Account::UpdateParams::Documents::CompanyLicense, company_memorandum_of_association: ::Stripe::Account::UpdateParams::Documents::CompanyMemorandumOfAssociation, company_ministerial_decree: ::Stripe::Account::UpdateParams::Documents::CompanyMinisterialDecree, company_registration_verification: ::Stripe::Account::UpdateParams::Documents::CompanyRegistrationVerification, company_tax_id_verification: ::Stripe::Account::UpdateParams::Documents::CompanyTaxIdVerification, proof_of_registration: ::Stripe::Account::UpdateParams::Documents::ProofOfRegistration, proof_of_ultimate_beneficial_ownership: ::Stripe::Account::UpdateParams::Documents::ProofOfUltimateBeneficialOwnership).void
2182
2225
  }
2183
2226
  def initialize(
2184
2227
  bank_account_ownership_verification: nil,
@@ -2187,7 +2230,8 @@ module Stripe
2187
2230
  company_ministerial_decree: nil,
2188
2231
  company_registration_verification: nil,
2189
2232
  company_tax_id_verification: nil,
2190
- proof_of_registration: nil
2233
+ proof_of_registration: nil,
2234
+ proof_of_ultimate_beneficial_ownership: nil
2191
2235
  ); end
2192
2236
  end
2193
2237
  class Groups < Stripe::RequestParams
@@ -3349,6 +3393,13 @@ module Stripe
3349
3393
  sig { params(requested: T::Boolean).void }
3350
3394
  def initialize(requested: nil); end
3351
3395
  end
3396
+ class PayByBankPayments < Stripe::RequestParams
3397
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
3398
+ sig { returns(T::Boolean) }
3399
+ attr_accessor :requested
3400
+ sig { params(requested: T::Boolean).void }
3401
+ def initialize(requested: nil); end
3402
+ end
3352
3403
  class PaycoPayments < Stripe::RequestParams
3353
3404
  # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
3354
3405
  sig { returns(T::Boolean) }
@@ -3647,6 +3698,9 @@ module Stripe
3647
3698
  # The p24_payments capability.
3648
3699
  sig { returns(::Stripe::Account::CreateParams::Capabilities::P24Payments) }
3649
3700
  attr_accessor :p24_payments
3701
+ # The pay_by_bank_payments capability.
3702
+ sig { returns(::Stripe::Account::CreateParams::Capabilities::PayByBankPayments) }
3703
+ attr_accessor :pay_by_bank_payments
3650
3704
  # The payco_payments capability.
3651
3705
  sig { returns(::Stripe::Account::CreateParams::Capabilities::PaycoPayments) }
3652
3706
  attr_accessor :payco_payments
@@ -3723,7 +3777,7 @@ module Stripe
3723
3777
  sig { returns(::Stripe::Account::CreateParams::Capabilities::ZipPayments) }
3724
3778
  attr_accessor :zip_payments
3725
3779
  sig {
3726
- params(acss_debit_payments: ::Stripe::Account::CreateParams::Capabilities::AcssDebitPayments, affirm_payments: ::Stripe::Account::CreateParams::Capabilities::AffirmPayments, afterpay_clearpay_payments: ::Stripe::Account::CreateParams::Capabilities::AfterpayClearpayPayments, alma_payments: ::Stripe::Account::CreateParams::Capabilities::AlmaPayments, amazon_pay_payments: ::Stripe::Account::CreateParams::Capabilities::AmazonPayPayments, au_becs_debit_payments: ::Stripe::Account::CreateParams::Capabilities::AuBecsDebitPayments, automatic_indirect_tax: ::Stripe::Account::CreateParams::Capabilities::AutomaticIndirectTax, bacs_debit_payments: ::Stripe::Account::CreateParams::Capabilities::BacsDebitPayments, bancontact_payments: ::Stripe::Account::CreateParams::Capabilities::BancontactPayments, bank_transfer_payments: ::Stripe::Account::CreateParams::Capabilities::BankTransferPayments, blik_payments: ::Stripe::Account::CreateParams::Capabilities::BlikPayments, boleto_payments: ::Stripe::Account::CreateParams::Capabilities::BoletoPayments, card_issuing: ::Stripe::Account::CreateParams::Capabilities::CardIssuing, card_payments: ::Stripe::Account::CreateParams::Capabilities::CardPayments, cartes_bancaires_payments: ::Stripe::Account::CreateParams::Capabilities::CartesBancairesPayments, cashapp_payments: ::Stripe::Account::CreateParams::Capabilities::CashappPayments, eps_payments: ::Stripe::Account::CreateParams::Capabilities::EpsPayments, fpx_payments: ::Stripe::Account::CreateParams::Capabilities::FpxPayments, gb_bank_transfer_payments: ::Stripe::Account::CreateParams::Capabilities::GbBankTransferPayments, giropay_payments: ::Stripe::Account::CreateParams::Capabilities::GiropayPayments, gopay_payments: ::Stripe::Account::CreateParams::Capabilities::GopayPayments, grabpay_payments: ::Stripe::Account::CreateParams::Capabilities::GrabpayPayments, id_bank_transfer_payments: ::Stripe::Account::CreateParams::Capabilities::IdBankTransferPayments, id_bank_transfer_payments_bca: ::Stripe::Account::CreateParams::Capabilities::IdBankTransferPaymentsBca, ideal_payments: ::Stripe::Account::CreateParams::Capabilities::IdealPayments, india_international_payments: ::Stripe::Account::CreateParams::Capabilities::IndiaInternationalPayments, jcb_payments: ::Stripe::Account::CreateParams::Capabilities::JcbPayments, jp_bank_transfer_payments: ::Stripe::Account::CreateParams::Capabilities::JpBankTransferPayments, kakao_pay_payments: ::Stripe::Account::CreateParams::Capabilities::KakaoPayPayments, klarna_payments: ::Stripe::Account::CreateParams::Capabilities::KlarnaPayments, konbini_payments: ::Stripe::Account::CreateParams::Capabilities::KonbiniPayments, kr_card_payments: ::Stripe::Account::CreateParams::Capabilities::KrCardPayments, legacy_payments: ::Stripe::Account::CreateParams::Capabilities::LegacyPayments, link_payments: ::Stripe::Account::CreateParams::Capabilities::LinkPayments, mb_way_payments: ::Stripe::Account::CreateParams::Capabilities::MbWayPayments, mobilepay_payments: ::Stripe::Account::CreateParams::Capabilities::MobilepayPayments, multibanco_payments: ::Stripe::Account::CreateParams::Capabilities::MultibancoPayments, mx_bank_transfer_payments: ::Stripe::Account::CreateParams::Capabilities::MxBankTransferPayments, naver_pay_payments: ::Stripe::Account::CreateParams::Capabilities::NaverPayPayments, oxxo_payments: ::Stripe::Account::CreateParams::Capabilities::OxxoPayments, p24_payments: ::Stripe::Account::CreateParams::Capabilities::P24Payments, payco_payments: ::Stripe::Account::CreateParams::Capabilities::PaycoPayments, paynow_payments: ::Stripe::Account::CreateParams::Capabilities::PaynowPayments, paypal_payments: ::Stripe::Account::CreateParams::Capabilities::PaypalPayments, payto_payments: ::Stripe::Account::CreateParams::Capabilities::PaytoPayments, promptpay_payments: ::Stripe::Account::CreateParams::Capabilities::PromptpayPayments, qris_payments: ::Stripe::Account::CreateParams::Capabilities::QrisPayments, rechnung_payments: ::Stripe::Account::CreateParams::Capabilities::RechnungPayments, revolut_pay_payments: ::Stripe::Account::CreateParams::Capabilities::RevolutPayPayments, samsung_pay_payments: ::Stripe::Account::CreateParams::Capabilities::SamsungPayPayments, sepa_bank_transfer_payments: ::Stripe::Account::CreateParams::Capabilities::SepaBankTransferPayments, sepa_debit_payments: ::Stripe::Account::CreateParams::Capabilities::SepaDebitPayments, shopeepay_payments: ::Stripe::Account::CreateParams::Capabilities::ShopeepayPayments, sofort_payments: ::Stripe::Account::CreateParams::Capabilities::SofortPayments, swish_payments: ::Stripe::Account::CreateParams::Capabilities::SwishPayments, tax_reporting_us_1099_k: ::Stripe::Account::CreateParams::Capabilities::TaxReportingUs1099K, tax_reporting_us_1099_misc: ::Stripe::Account::CreateParams::Capabilities::TaxReportingUs1099Misc, transfers: ::Stripe::Account::CreateParams::Capabilities::Transfers, treasury: ::Stripe::Account::CreateParams::Capabilities::Treasury, treasury_evolve: ::Stripe::Account::CreateParams::Capabilities::TreasuryEvolve, treasury_fifth_third: ::Stripe::Account::CreateParams::Capabilities::TreasuryFifthThird, treasury_goldman_sachs: ::Stripe::Account::CreateParams::Capabilities::TreasuryGoldmanSachs, twint_payments: ::Stripe::Account::CreateParams::Capabilities::TwintPayments, us_bank_account_ach_payments: ::Stripe::Account::CreateParams::Capabilities::UsBankAccountAchPayments, us_bank_transfer_payments: ::Stripe::Account::CreateParams::Capabilities::UsBankTransferPayments, zip_payments: ::Stripe::Account::CreateParams::Capabilities::ZipPayments).void
3780
+ params(acss_debit_payments: ::Stripe::Account::CreateParams::Capabilities::AcssDebitPayments, affirm_payments: ::Stripe::Account::CreateParams::Capabilities::AffirmPayments, afterpay_clearpay_payments: ::Stripe::Account::CreateParams::Capabilities::AfterpayClearpayPayments, alma_payments: ::Stripe::Account::CreateParams::Capabilities::AlmaPayments, amazon_pay_payments: ::Stripe::Account::CreateParams::Capabilities::AmazonPayPayments, au_becs_debit_payments: ::Stripe::Account::CreateParams::Capabilities::AuBecsDebitPayments, automatic_indirect_tax: ::Stripe::Account::CreateParams::Capabilities::AutomaticIndirectTax, bacs_debit_payments: ::Stripe::Account::CreateParams::Capabilities::BacsDebitPayments, bancontact_payments: ::Stripe::Account::CreateParams::Capabilities::BancontactPayments, bank_transfer_payments: ::Stripe::Account::CreateParams::Capabilities::BankTransferPayments, blik_payments: ::Stripe::Account::CreateParams::Capabilities::BlikPayments, boleto_payments: ::Stripe::Account::CreateParams::Capabilities::BoletoPayments, card_issuing: ::Stripe::Account::CreateParams::Capabilities::CardIssuing, card_payments: ::Stripe::Account::CreateParams::Capabilities::CardPayments, cartes_bancaires_payments: ::Stripe::Account::CreateParams::Capabilities::CartesBancairesPayments, cashapp_payments: ::Stripe::Account::CreateParams::Capabilities::CashappPayments, eps_payments: ::Stripe::Account::CreateParams::Capabilities::EpsPayments, fpx_payments: ::Stripe::Account::CreateParams::Capabilities::FpxPayments, gb_bank_transfer_payments: ::Stripe::Account::CreateParams::Capabilities::GbBankTransferPayments, giropay_payments: ::Stripe::Account::CreateParams::Capabilities::GiropayPayments, gopay_payments: ::Stripe::Account::CreateParams::Capabilities::GopayPayments, grabpay_payments: ::Stripe::Account::CreateParams::Capabilities::GrabpayPayments, id_bank_transfer_payments: ::Stripe::Account::CreateParams::Capabilities::IdBankTransferPayments, id_bank_transfer_payments_bca: ::Stripe::Account::CreateParams::Capabilities::IdBankTransferPaymentsBca, ideal_payments: ::Stripe::Account::CreateParams::Capabilities::IdealPayments, india_international_payments: ::Stripe::Account::CreateParams::Capabilities::IndiaInternationalPayments, jcb_payments: ::Stripe::Account::CreateParams::Capabilities::JcbPayments, jp_bank_transfer_payments: ::Stripe::Account::CreateParams::Capabilities::JpBankTransferPayments, kakao_pay_payments: ::Stripe::Account::CreateParams::Capabilities::KakaoPayPayments, klarna_payments: ::Stripe::Account::CreateParams::Capabilities::KlarnaPayments, konbini_payments: ::Stripe::Account::CreateParams::Capabilities::KonbiniPayments, kr_card_payments: ::Stripe::Account::CreateParams::Capabilities::KrCardPayments, legacy_payments: ::Stripe::Account::CreateParams::Capabilities::LegacyPayments, link_payments: ::Stripe::Account::CreateParams::Capabilities::LinkPayments, mb_way_payments: ::Stripe::Account::CreateParams::Capabilities::MbWayPayments, mobilepay_payments: ::Stripe::Account::CreateParams::Capabilities::MobilepayPayments, multibanco_payments: ::Stripe::Account::CreateParams::Capabilities::MultibancoPayments, mx_bank_transfer_payments: ::Stripe::Account::CreateParams::Capabilities::MxBankTransferPayments, naver_pay_payments: ::Stripe::Account::CreateParams::Capabilities::NaverPayPayments, oxxo_payments: ::Stripe::Account::CreateParams::Capabilities::OxxoPayments, p24_payments: ::Stripe::Account::CreateParams::Capabilities::P24Payments, pay_by_bank_payments: ::Stripe::Account::CreateParams::Capabilities::PayByBankPayments, payco_payments: ::Stripe::Account::CreateParams::Capabilities::PaycoPayments, paynow_payments: ::Stripe::Account::CreateParams::Capabilities::PaynowPayments, paypal_payments: ::Stripe::Account::CreateParams::Capabilities::PaypalPayments, payto_payments: ::Stripe::Account::CreateParams::Capabilities::PaytoPayments, promptpay_payments: ::Stripe::Account::CreateParams::Capabilities::PromptpayPayments, qris_payments: ::Stripe::Account::CreateParams::Capabilities::QrisPayments, rechnung_payments: ::Stripe::Account::CreateParams::Capabilities::RechnungPayments, revolut_pay_payments: ::Stripe::Account::CreateParams::Capabilities::RevolutPayPayments, samsung_pay_payments: ::Stripe::Account::CreateParams::Capabilities::SamsungPayPayments, sepa_bank_transfer_payments: ::Stripe::Account::CreateParams::Capabilities::SepaBankTransferPayments, sepa_debit_payments: ::Stripe::Account::CreateParams::Capabilities::SepaDebitPayments, shopeepay_payments: ::Stripe::Account::CreateParams::Capabilities::ShopeepayPayments, sofort_payments: ::Stripe::Account::CreateParams::Capabilities::SofortPayments, swish_payments: ::Stripe::Account::CreateParams::Capabilities::SwishPayments, tax_reporting_us_1099_k: ::Stripe::Account::CreateParams::Capabilities::TaxReportingUs1099K, tax_reporting_us_1099_misc: ::Stripe::Account::CreateParams::Capabilities::TaxReportingUs1099Misc, transfers: ::Stripe::Account::CreateParams::Capabilities::Transfers, treasury: ::Stripe::Account::CreateParams::Capabilities::Treasury, treasury_evolve: ::Stripe::Account::CreateParams::Capabilities::TreasuryEvolve, treasury_fifth_third: ::Stripe::Account::CreateParams::Capabilities::TreasuryFifthThird, treasury_goldman_sachs: ::Stripe::Account::CreateParams::Capabilities::TreasuryGoldmanSachs, twint_payments: ::Stripe::Account::CreateParams::Capabilities::TwintPayments, us_bank_account_ach_payments: ::Stripe::Account::CreateParams::Capabilities::UsBankAccountAchPayments, us_bank_transfer_payments: ::Stripe::Account::CreateParams::Capabilities::UsBankTransferPayments, zip_payments: ::Stripe::Account::CreateParams::Capabilities::ZipPayments).void
3727
3781
  }
3728
3782
  def initialize(
3729
3783
  acss_debit_payments: nil,
@@ -3767,6 +3821,7 @@ module Stripe
3767
3821
  naver_pay_payments: nil,
3768
3822
  oxxo_payments: nil,
3769
3823
  p24_payments: nil,
3824
+ pay_by_bank_payments: nil,
3770
3825
  payco_payments: nil,
3771
3826
  paynow_payments: nil,
3772
3827
  paypal_payments: nil,
@@ -3976,6 +4031,19 @@ module Stripe
3976
4031
  town: nil
3977
4032
  ); end
3978
4033
  end
4034
+ class DirectorshipDeclaration < Stripe::RequestParams
4035
+ # The Unix timestamp marking when the directorship declaration attestation was made.
4036
+ sig { returns(Integer) }
4037
+ attr_accessor :date
4038
+ # The IP address from which the directorship declaration attestation was made.
4039
+ sig { returns(String) }
4040
+ attr_accessor :ip
4041
+ # The user agent of the browser from which the directorship declaration attestation was made.
4042
+ sig { returns(String) }
4043
+ attr_accessor :user_agent
4044
+ sig { params(date: Integer, ip: String, user_agent: String).void }
4045
+ def initialize(date: nil, ip: nil, user_agent: nil); end
4046
+ end
3979
4047
  class OwnershipDeclaration < Stripe::RequestParams
3980
4048
  # The Unix timestamp marking when the beneficial owner attestation was made.
3981
4049
  sig { returns(Integer) }
@@ -4020,6 +4088,9 @@ module Stripe
4020
4088
  # Whether the company's directors have been provided. Set this Boolean to `true` after creating all the company's directors with [the Persons API](/api/persons) for accounts with a `relationship.director` requirement. This value is not automatically set to `true` after creating directors, so it needs to be updated to indicate all directors have been provided.
4021
4089
  sig { returns(T::Boolean) }
4022
4090
  attr_accessor :directors_provided
4091
+ # This hash is used to attest that the directors information provided to Stripe is both current and correct.
4092
+ sig { returns(::Stripe::Account::CreateParams::Company::DirectorshipDeclaration) }
4093
+ attr_accessor :directorship_declaration
4023
4094
  # Whether the company's executives have been provided. Set this Boolean to `true` after creating all the company's executives with [the Persons API](/api/persons) for accounts with a `relationship.executive` requirement.
4024
4095
  sig { returns(T::Boolean) }
4025
4096
  attr_accessor :executives_provided
@@ -4069,13 +4140,14 @@ module Stripe
4069
4140
  sig { returns(::Stripe::Account::CreateParams::Company::Verification) }
4070
4141
  attr_accessor :verification
4071
4142
  sig {
4072
- params(address: ::Stripe::Account::CreateParams::Company::Address, address_kana: ::Stripe::Account::CreateParams::Company::AddressKana, address_kanji: ::Stripe::Account::CreateParams::Company::AddressKanji, directors_provided: T::Boolean, executives_provided: T::Boolean, export_license_id: String, export_purpose_code: String, name: String, name_kana: String, name_kanji: String, owners_provided: T::Boolean, ownership_declaration: ::Stripe::Account::CreateParams::Company::OwnershipDeclaration, ownership_exemption_reason: T.nilable(String), phone: String, registration_number: String, structure: T.nilable(String), tax_id: String, tax_id_registrar: String, vat_id: String, verification: ::Stripe::Account::CreateParams::Company::Verification).void
4143
+ params(address: ::Stripe::Account::CreateParams::Company::Address, address_kana: ::Stripe::Account::CreateParams::Company::AddressKana, address_kanji: ::Stripe::Account::CreateParams::Company::AddressKanji, directors_provided: T::Boolean, directorship_declaration: ::Stripe::Account::CreateParams::Company::DirectorshipDeclaration, executives_provided: T::Boolean, export_license_id: String, export_purpose_code: String, name: String, name_kana: String, name_kanji: String, owners_provided: T::Boolean, ownership_declaration: ::Stripe::Account::CreateParams::Company::OwnershipDeclaration, ownership_exemption_reason: T.nilable(String), phone: String, registration_number: String, structure: T.nilable(String), tax_id: String, tax_id_registrar: String, vat_id: String, verification: ::Stripe::Account::CreateParams::Company::Verification).void
4073
4144
  }
4074
4145
  def initialize(
4075
4146
  address: nil,
4076
4147
  address_kana: nil,
4077
4148
  address_kanji: nil,
4078
4149
  directors_provided: nil,
4150
+ directorship_declaration: nil,
4079
4151
  executives_provided: nil,
4080
4152
  export_license_id: nil,
4081
4153
  export_purpose_code: nil,
@@ -4218,6 +4290,13 @@ module Stripe
4218
4290
  sig { params(files: T::Array[String]).void }
4219
4291
  def initialize(files: nil); end
4220
4292
  end
4293
+ class ProofOfUltimateBeneficialOwnership < Stripe::RequestParams
4294
+ # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
4295
+ sig { returns(T::Array[String]) }
4296
+ attr_accessor :files
4297
+ sig { params(files: T::Array[String]).void }
4298
+ def initialize(files: nil); end
4299
+ end
4221
4300
  # One or more documents that support the [Bank account ownership verification](https://support.stripe.com/questions/bank-account-ownership-verification) requirement. Must be a document associated with the account’s primary active bank account that displays the last 4 digits of the account number, either a statement or a check.
4222
4301
  sig {
4223
4302
  returns(::Stripe::Account::CreateParams::Documents::BankAccountOwnershipVerification)
@@ -4241,8 +4320,13 @@ module Stripe
4241
4320
  # One or more documents showing the company’s proof of registration with the national business registry.
4242
4321
  sig { returns(::Stripe::Account::CreateParams::Documents::ProofOfRegistration) }
4243
4322
  attr_accessor :proof_of_registration
4323
+ # One or more documents that demonstrate proof of ultimate beneficial ownership.
4324
+ sig {
4325
+ returns(::Stripe::Account::CreateParams::Documents::ProofOfUltimateBeneficialOwnership)
4326
+ }
4327
+ attr_accessor :proof_of_ultimate_beneficial_ownership
4244
4328
  sig {
4245
- params(bank_account_ownership_verification: ::Stripe::Account::CreateParams::Documents::BankAccountOwnershipVerification, company_license: ::Stripe::Account::CreateParams::Documents::CompanyLicense, company_memorandum_of_association: ::Stripe::Account::CreateParams::Documents::CompanyMemorandumOfAssociation, company_ministerial_decree: ::Stripe::Account::CreateParams::Documents::CompanyMinisterialDecree, company_registration_verification: ::Stripe::Account::CreateParams::Documents::CompanyRegistrationVerification, company_tax_id_verification: ::Stripe::Account::CreateParams::Documents::CompanyTaxIdVerification, proof_of_registration: ::Stripe::Account::CreateParams::Documents::ProofOfRegistration).void
4329
+ params(bank_account_ownership_verification: ::Stripe::Account::CreateParams::Documents::BankAccountOwnershipVerification, company_license: ::Stripe::Account::CreateParams::Documents::CompanyLicense, company_memorandum_of_association: ::Stripe::Account::CreateParams::Documents::CompanyMemorandumOfAssociation, company_ministerial_decree: ::Stripe::Account::CreateParams::Documents::CompanyMinisterialDecree, company_registration_verification: ::Stripe::Account::CreateParams::Documents::CompanyRegistrationVerification, company_tax_id_verification: ::Stripe::Account::CreateParams::Documents::CompanyTaxIdVerification, proof_of_registration: ::Stripe::Account::CreateParams::Documents::ProofOfRegistration, proof_of_ultimate_beneficial_ownership: ::Stripe::Account::CreateParams::Documents::ProofOfUltimateBeneficialOwnership).void
4246
4330
  }
4247
4331
  def initialize(
4248
4332
  bank_account_ownership_verification: nil,
@@ -4251,7 +4335,8 @@ module Stripe
4251
4335
  company_ministerial_decree: nil,
4252
4336
  company_registration_verification: nil,
4253
4337
  company_tax_id_verification: nil,
4254
- proof_of_registration: nil
4338
+ proof_of_registration: nil,
4339
+ proof_of_ultimate_beneficial_ownership: nil
4255
4340
  ); end
4256
4341
  end
4257
4342
  class Groups < Stripe::RequestParams
@@ -105,6 +105,88 @@ module Stripe
105
105
  sig { returns(Features) }
106
106
  attr_reader :features
107
107
  end
108
+ class FinancialAccount < Stripe::StripeObject
109
+ class Features < Stripe::StripeObject
110
+ # Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don’t set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false.
111
+ sig { returns(T::Boolean) }
112
+ attr_reader :disable_stripe_user_authentication
113
+ # Whether to allow external accounts to be linked for money transfer.
114
+ sig { returns(T::Boolean) }
115
+ attr_reader :external_account_collection
116
+ # Whether to allow sending money.
117
+ sig { returns(T::Boolean) }
118
+ attr_reader :send_money
119
+ # Whether to allow transferring balance.
120
+ sig { returns(T::Boolean) }
121
+ attr_reader :transfer_balance
122
+ end
123
+ # Whether the embedded component is enabled.
124
+ sig { returns(T::Boolean) }
125
+ attr_reader :enabled
126
+ # Attribute for field features
127
+ sig { returns(Features) }
128
+ attr_reader :features
129
+ end
130
+ class FinancialAccountTransactions < Stripe::StripeObject
131
+ class Features < Stripe::StripeObject
132
+ # Whether to allow card spend dispute management features.
133
+ sig { returns(T::Boolean) }
134
+ attr_reader :card_spend_dispute_management
135
+ end
136
+ # Whether the embedded component is enabled.
137
+ sig { returns(T::Boolean) }
138
+ attr_reader :enabled
139
+ # Attribute for field features
140
+ sig { returns(Features) }
141
+ attr_reader :features
142
+ end
143
+ class IssuingCard < Stripe::StripeObject
144
+ class Features < Stripe::StripeObject
145
+ # Whether to allow card management features.
146
+ sig { returns(T::Boolean) }
147
+ attr_reader :card_management
148
+ # Whether to allow card spend dispute management features.
149
+ sig { returns(T::Boolean) }
150
+ attr_reader :card_spend_dispute_management
151
+ # Whether to allow cardholder management features.
152
+ sig { returns(T::Boolean) }
153
+ attr_reader :cardholder_management
154
+ # Whether to allow spend control management features.
155
+ sig { returns(T::Boolean) }
156
+ attr_reader :spend_control_management
157
+ end
158
+ # Whether the embedded component is enabled.
159
+ sig { returns(T::Boolean) }
160
+ attr_reader :enabled
161
+ # Attribute for field features
162
+ sig { returns(Features) }
163
+ attr_reader :features
164
+ end
165
+ class IssuingCardsList < Stripe::StripeObject
166
+ class Features < Stripe::StripeObject
167
+ # Whether to allow card management features.
168
+ sig { returns(T::Boolean) }
169
+ attr_reader :card_management
170
+ # Whether to allow card spend dispute management features.
171
+ sig { returns(T::Boolean) }
172
+ attr_reader :card_spend_dispute_management
173
+ # Whether to allow cardholder management features.
174
+ sig { returns(T::Boolean) }
175
+ attr_reader :cardholder_management
176
+ # Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you’re responsible for collecting updated information when requirements are due or change, like custom accounts.
177
+ sig { returns(T::Boolean) }
178
+ attr_reader :disable_stripe_user_authentication
179
+ # Whether to allow spend control management features.
180
+ sig { returns(T::Boolean) }
181
+ attr_reader :spend_control_management
182
+ end
183
+ # Whether the embedded component is enabled.
184
+ sig { returns(T::Boolean) }
185
+ attr_reader :enabled
186
+ # Attribute for field features
187
+ sig { returns(Features) }
188
+ attr_reader :features
189
+ end
108
190
  class NotificationBanner < Stripe::StripeObject
109
191
  class Features < Stripe::StripeObject
110
192
  # Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don’t set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false.
@@ -238,6 +320,18 @@ module Stripe
238
320
  # Attribute for field documents
239
321
  sig { returns(Documents) }
240
322
  attr_reader :documents
323
+ # Attribute for field financial_account
324
+ sig { returns(FinancialAccount) }
325
+ attr_reader :financial_account
326
+ # Attribute for field financial_account_transactions
327
+ sig { returns(FinancialAccountTransactions) }
328
+ attr_reader :financial_account_transactions
329
+ # Attribute for field issuing_card
330
+ sig { returns(IssuingCard) }
331
+ attr_reader :issuing_card
332
+ # Attribute for field issuing_cards_list
333
+ sig { returns(IssuingCardsList) }
334
+ attr_reader :issuing_cards_list
241
335
  # Attribute for field notification_banner
242
336
  sig { returns(NotificationBanner) }
243
337
  attr_reader :notification_banner
@@ -876,6 +970,23 @@ module Stripe
876
970
  }
877
971
  def initialize(enabled: nil, features: nil); end
878
972
  end
973
+ class TaxThresholdMonitoring < Stripe::RequestParams
974
+ class Features < Stripe::RequestParams
975
+
976
+ end
977
+ # Whether the embedded component is enabled.
978
+ sig { returns(T::Boolean) }
979
+ attr_accessor :enabled
980
+ # The list of features enabled in the embedded component.
981
+ sig {
982
+ returns(::Stripe::AccountSession::CreateParams::Components::TaxThresholdMonitoring::Features)
983
+ }
984
+ attr_accessor :features
985
+ sig {
986
+ params(enabled: T::Boolean, features: ::Stripe::AccountSession::CreateParams::Components::TaxThresholdMonitoring::Features).void
987
+ }
988
+ def initialize(enabled: nil, features: nil); end
989
+ end
879
990
  # Configuration for the account management embedded component.
880
991
  sig { returns(::Stripe::AccountSession::CreateParams::Components::AccountManagement) }
881
992
  attr_accessor :account_management
@@ -910,18 +1021,18 @@ module Stripe
910
1021
  # Configuration for the documents embedded component.
911
1022
  sig { returns(::Stripe::AccountSession::CreateParams::Components::Documents) }
912
1023
  attr_accessor :documents
913
- # Configuration for the financial account component.
1024
+ # Configuration for the financial account embedded component.
914
1025
  sig { returns(::Stripe::AccountSession::CreateParams::Components::FinancialAccount) }
915
1026
  attr_accessor :financial_account
916
- # Configuration for the financial account transactions component.
1027
+ # Configuration for the financial account transactions embedded component.
917
1028
  sig {
918
1029
  returns(::Stripe::AccountSession::CreateParams::Components::FinancialAccountTransactions)
919
1030
  }
920
1031
  attr_accessor :financial_account_transactions
921
- # Configuration for the issuing card component.
1032
+ # Configuration for the issuing card embedded component.
922
1033
  sig { returns(::Stripe::AccountSession::CreateParams::Components::IssuingCard) }
923
1034
  attr_accessor :issuing_card
924
- # Configuration for the issuing cards list component.
1035
+ # Configuration for the issuing cards list embedded component.
925
1036
  sig { returns(::Stripe::AccountSession::CreateParams::Components::IssuingCardsList) }
926
1037
  attr_accessor :issuing_cards_list
927
1038
  # Configuration for the notification banner embedded component.
@@ -954,8 +1065,11 @@ module Stripe
954
1065
  # Configuration for the tax settings embedded component.
955
1066
  sig { returns(::Stripe::AccountSession::CreateParams::Components::TaxSettings) }
956
1067
  attr_accessor :tax_settings
1068
+ # Configuration for the tax threshold monitoring embedded component.
1069
+ sig { returns(::Stripe::AccountSession::CreateParams::Components::TaxThresholdMonitoring) }
1070
+ attr_accessor :tax_threshold_monitoring
957
1071
  sig {
958
- params(account_management: ::Stripe::AccountSession::CreateParams::Components::AccountManagement, account_onboarding: ::Stripe::AccountSession::CreateParams::Components::AccountOnboarding, app_install: ::Stripe::AccountSession::CreateParams::Components::AppInstall, app_viewport: ::Stripe::AccountSession::CreateParams::Components::AppViewport, balances: ::Stripe::AccountSession::CreateParams::Components::Balances, capital_financing: ::Stripe::AccountSession::CreateParams::Components::CapitalFinancing, capital_financing_application: ::Stripe::AccountSession::CreateParams::Components::CapitalFinancingApplication, capital_financing_promotion: ::Stripe::AccountSession::CreateParams::Components::CapitalFinancingPromotion, capital_overview: ::Stripe::AccountSession::CreateParams::Components::CapitalOverview, documents: ::Stripe::AccountSession::CreateParams::Components::Documents, financial_account: ::Stripe::AccountSession::CreateParams::Components::FinancialAccount, financial_account_transactions: ::Stripe::AccountSession::CreateParams::Components::FinancialAccountTransactions, issuing_card: ::Stripe::AccountSession::CreateParams::Components::IssuingCard, issuing_cards_list: ::Stripe::AccountSession::CreateParams::Components::IssuingCardsList, notification_banner: ::Stripe::AccountSession::CreateParams::Components::NotificationBanner, payment_details: ::Stripe::AccountSession::CreateParams::Components::PaymentDetails, payment_method_settings: ::Stripe::AccountSession::CreateParams::Components::PaymentMethodSettings, payments: ::Stripe::AccountSession::CreateParams::Components::Payments, payouts: ::Stripe::AccountSession::CreateParams::Components::Payouts, payouts_list: ::Stripe::AccountSession::CreateParams::Components::PayoutsList, recipients: ::Stripe::AccountSession::CreateParams::Components::Recipients, reporting_chart: ::Stripe::AccountSession::CreateParams::Components::ReportingChart, tax_registrations: ::Stripe::AccountSession::CreateParams::Components::TaxRegistrations, tax_settings: ::Stripe::AccountSession::CreateParams::Components::TaxSettings).void
1072
+ params(account_management: ::Stripe::AccountSession::CreateParams::Components::AccountManagement, account_onboarding: ::Stripe::AccountSession::CreateParams::Components::AccountOnboarding, app_install: ::Stripe::AccountSession::CreateParams::Components::AppInstall, app_viewport: ::Stripe::AccountSession::CreateParams::Components::AppViewport, balances: ::Stripe::AccountSession::CreateParams::Components::Balances, capital_financing: ::Stripe::AccountSession::CreateParams::Components::CapitalFinancing, capital_financing_application: ::Stripe::AccountSession::CreateParams::Components::CapitalFinancingApplication, capital_financing_promotion: ::Stripe::AccountSession::CreateParams::Components::CapitalFinancingPromotion, capital_overview: ::Stripe::AccountSession::CreateParams::Components::CapitalOverview, documents: ::Stripe::AccountSession::CreateParams::Components::Documents, financial_account: ::Stripe::AccountSession::CreateParams::Components::FinancialAccount, financial_account_transactions: ::Stripe::AccountSession::CreateParams::Components::FinancialAccountTransactions, issuing_card: ::Stripe::AccountSession::CreateParams::Components::IssuingCard, issuing_cards_list: ::Stripe::AccountSession::CreateParams::Components::IssuingCardsList, notification_banner: ::Stripe::AccountSession::CreateParams::Components::NotificationBanner, payment_details: ::Stripe::AccountSession::CreateParams::Components::PaymentDetails, payment_method_settings: ::Stripe::AccountSession::CreateParams::Components::PaymentMethodSettings, payments: ::Stripe::AccountSession::CreateParams::Components::Payments, payouts: ::Stripe::AccountSession::CreateParams::Components::Payouts, payouts_list: ::Stripe::AccountSession::CreateParams::Components::PayoutsList, recipients: ::Stripe::AccountSession::CreateParams::Components::Recipients, reporting_chart: ::Stripe::AccountSession::CreateParams::Components::ReportingChart, tax_registrations: ::Stripe::AccountSession::CreateParams::Components::TaxRegistrations, tax_settings: ::Stripe::AccountSession::CreateParams::Components::TaxSettings, tax_threshold_monitoring: ::Stripe::AccountSession::CreateParams::Components::TaxThresholdMonitoring).void
959
1073
  }
960
1074
  def initialize(
961
1075
  account_management: nil,
@@ -981,7 +1095,8 @@ module Stripe
981
1095
  recipients: nil,
982
1096
  reporting_chart: nil,
983
1097
  tax_registrations: nil,
984
- tax_settings: nil
1098
+ tax_settings: nil,
1099
+ tax_threshold_monitoring: nil
985
1100
  ); end
986
1101
  end
987
1102
  # The identifier of the account to create an Account Session for.
@@ -252,7 +252,7 @@ module Stripe
252
252
  # Whether to cancel subscriptions immediately or at the end of the billing period.
253
253
  sig { returns(String) }
254
254
  attr_accessor :mode
255
- # Whether to create prorations when canceling subscriptions. Possible values are `none` and `create_prorations`, which is only compatible with `mode=immediately`. No prorations are generated when canceling a subscription at the end of its natural billing period.
255
+ # Whether to create prorations when canceling subscriptions. Possible values are `none` and `create_prorations`, which is only compatible with `mode=immediately`. Passing `always_invoice` will result in an error. No prorations are generated when canceling a subscription at the end of its natural billing period.
256
256
  sig { returns(String) }
257
257
  attr_accessor :proration_behavior
258
258
  sig {
@@ -467,7 +467,7 @@ module Stripe
467
467
  # Whether to cancel subscriptions immediately or at the end of the billing period.
468
468
  sig { returns(String) }
469
469
  attr_accessor :mode
470
- # Whether to create prorations when canceling subscriptions. Possible values are `none` and `create_prorations`, which is only compatible with `mode=immediately`. No prorations are generated when canceling a subscription at the end of its natural billing period.
470
+ # Whether to create prorations when canceling subscriptions. Possible values are `none` and `create_prorations`, which is only compatible with `mode=immediately`. Passing `always_invoice` will result in an error. No prorations are generated when canceling a subscription at the end of its natural billing period.
471
471
  sig { returns(String) }
472
472
  attr_accessor :proration_behavior
473
473
  sig {
@@ -1054,6 +1054,7 @@ module Stripe
1054
1054
  sig { returns(T.nilable(String)) }
1055
1055
  attr_reader :verified_name
1056
1056
  end
1057
+ class PayByBank < Stripe::StripeObject; end
1057
1058
  class Payco < Stripe::StripeObject
1058
1059
  # A unique identifier for the buyer as determined by the local payment processor.
1059
1060
  sig { returns(T.nilable(String)) }
@@ -1436,6 +1437,9 @@ module Stripe
1436
1437
  # Attribute for field p24
1437
1438
  sig { returns(P24) }
1438
1439
  attr_reader :p24
1440
+ # Attribute for field pay_by_bank
1441
+ sig { returns(PayByBank) }
1442
+ attr_reader :pay_by_bank
1439
1443
  # Attribute for field payco
1440
1444
  sig { returns(Payco) }
1441
1445
  attr_reader :payco