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
@@ -449,6 +449,13 @@ module Stripe
449
449
  sig { params(requested: T::Boolean).void }
450
450
  def initialize(requested: nil); end
451
451
  end
452
+ class PayByBankPayments < Stripe::RequestParams
453
+ # 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.
454
+ sig { returns(T::Boolean) }
455
+ attr_accessor :requested
456
+ sig { params(requested: T::Boolean).void }
457
+ def initialize(requested: nil); end
458
+ end
452
459
  class PaycoPayments < Stripe::RequestParams
453
460
  # 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.
454
461
  sig { returns(T::Boolean) }
@@ -763,6 +770,9 @@ module Stripe
763
770
  # The p24_payments capability.
764
771
  sig { returns(::Stripe::AccountService::UpdateParams::Capabilities::P24Payments) }
765
772
  attr_accessor :p24_payments
773
+ # The pay_by_bank_payments capability.
774
+ sig { returns(::Stripe::AccountService::UpdateParams::Capabilities::PayByBankPayments) }
775
+ attr_accessor :pay_by_bank_payments
766
776
  # The payco_payments capability.
767
777
  sig { returns(::Stripe::AccountService::UpdateParams::Capabilities::PaycoPayments) }
768
778
  attr_accessor :payco_payments
@@ -847,7 +857,7 @@ module Stripe
847
857
  sig { returns(::Stripe::AccountService::UpdateParams::Capabilities::ZipPayments) }
848
858
  attr_accessor :zip_payments
849
859
  sig {
850
- params(acss_debit_payments: ::Stripe::AccountService::UpdateParams::Capabilities::AcssDebitPayments, affirm_payments: ::Stripe::AccountService::UpdateParams::Capabilities::AffirmPayments, afterpay_clearpay_payments: ::Stripe::AccountService::UpdateParams::Capabilities::AfterpayClearpayPayments, alma_payments: ::Stripe::AccountService::UpdateParams::Capabilities::AlmaPayments, amazon_pay_payments: ::Stripe::AccountService::UpdateParams::Capabilities::AmazonPayPayments, au_becs_debit_payments: ::Stripe::AccountService::UpdateParams::Capabilities::AuBecsDebitPayments, automatic_indirect_tax: ::Stripe::AccountService::UpdateParams::Capabilities::AutomaticIndirectTax, bacs_debit_payments: ::Stripe::AccountService::UpdateParams::Capabilities::BacsDebitPayments, bancontact_payments: ::Stripe::AccountService::UpdateParams::Capabilities::BancontactPayments, bank_transfer_payments: ::Stripe::AccountService::UpdateParams::Capabilities::BankTransferPayments, blik_payments: ::Stripe::AccountService::UpdateParams::Capabilities::BlikPayments, boleto_payments: ::Stripe::AccountService::UpdateParams::Capabilities::BoletoPayments, card_issuing: ::Stripe::AccountService::UpdateParams::Capabilities::CardIssuing, card_payments: ::Stripe::AccountService::UpdateParams::Capabilities::CardPayments, cartes_bancaires_payments: ::Stripe::AccountService::UpdateParams::Capabilities::CartesBancairesPayments, cashapp_payments: ::Stripe::AccountService::UpdateParams::Capabilities::CashappPayments, eps_payments: ::Stripe::AccountService::UpdateParams::Capabilities::EpsPayments, fpx_payments: ::Stripe::AccountService::UpdateParams::Capabilities::FpxPayments, gb_bank_transfer_payments: ::Stripe::AccountService::UpdateParams::Capabilities::GbBankTransferPayments, giropay_payments: ::Stripe::AccountService::UpdateParams::Capabilities::GiropayPayments, gopay_payments: ::Stripe::AccountService::UpdateParams::Capabilities::GopayPayments, grabpay_payments: ::Stripe::AccountService::UpdateParams::Capabilities::GrabpayPayments, id_bank_transfer_payments: ::Stripe::AccountService::UpdateParams::Capabilities::IdBankTransferPayments, id_bank_transfer_payments_bca: ::Stripe::AccountService::UpdateParams::Capabilities::IdBankTransferPaymentsBca, ideal_payments: ::Stripe::AccountService::UpdateParams::Capabilities::IdealPayments, india_international_payments: ::Stripe::AccountService::UpdateParams::Capabilities::IndiaInternationalPayments, jcb_payments: ::Stripe::AccountService::UpdateParams::Capabilities::JcbPayments, jp_bank_transfer_payments: ::Stripe::AccountService::UpdateParams::Capabilities::JpBankTransferPayments, kakao_pay_payments: ::Stripe::AccountService::UpdateParams::Capabilities::KakaoPayPayments, klarna_payments: ::Stripe::AccountService::UpdateParams::Capabilities::KlarnaPayments, konbini_payments: ::Stripe::AccountService::UpdateParams::Capabilities::KonbiniPayments, kr_card_payments: ::Stripe::AccountService::UpdateParams::Capabilities::KrCardPayments, legacy_payments: ::Stripe::AccountService::UpdateParams::Capabilities::LegacyPayments, link_payments: ::Stripe::AccountService::UpdateParams::Capabilities::LinkPayments, mb_way_payments: ::Stripe::AccountService::UpdateParams::Capabilities::MbWayPayments, mobilepay_payments: ::Stripe::AccountService::UpdateParams::Capabilities::MobilepayPayments, multibanco_payments: ::Stripe::AccountService::UpdateParams::Capabilities::MultibancoPayments, mx_bank_transfer_payments: ::Stripe::AccountService::UpdateParams::Capabilities::MxBankTransferPayments, naver_pay_payments: ::Stripe::AccountService::UpdateParams::Capabilities::NaverPayPayments, oxxo_payments: ::Stripe::AccountService::UpdateParams::Capabilities::OxxoPayments, p24_payments: ::Stripe::AccountService::UpdateParams::Capabilities::P24Payments, payco_payments: ::Stripe::AccountService::UpdateParams::Capabilities::PaycoPayments, paynow_payments: ::Stripe::AccountService::UpdateParams::Capabilities::PaynowPayments, paypal_payments: ::Stripe::AccountService::UpdateParams::Capabilities::PaypalPayments, payto_payments: ::Stripe::AccountService::UpdateParams::Capabilities::PaytoPayments, promptpay_payments: ::Stripe::AccountService::UpdateParams::Capabilities::PromptpayPayments, qris_payments: ::Stripe::AccountService::UpdateParams::Capabilities::QrisPayments, rechnung_payments: ::Stripe::AccountService::UpdateParams::Capabilities::RechnungPayments, revolut_pay_payments: ::Stripe::AccountService::UpdateParams::Capabilities::RevolutPayPayments, samsung_pay_payments: ::Stripe::AccountService::UpdateParams::Capabilities::SamsungPayPayments, sepa_bank_transfer_payments: ::Stripe::AccountService::UpdateParams::Capabilities::SepaBankTransferPayments, sepa_debit_payments: ::Stripe::AccountService::UpdateParams::Capabilities::SepaDebitPayments, shopeepay_payments: ::Stripe::AccountService::UpdateParams::Capabilities::ShopeepayPayments, sofort_payments: ::Stripe::AccountService::UpdateParams::Capabilities::SofortPayments, swish_payments: ::Stripe::AccountService::UpdateParams::Capabilities::SwishPayments, tax_reporting_us_1099_k: ::Stripe::AccountService::UpdateParams::Capabilities::TaxReportingUs1099K, tax_reporting_us_1099_misc: ::Stripe::AccountService::UpdateParams::Capabilities::TaxReportingUs1099Misc, transfers: ::Stripe::AccountService::UpdateParams::Capabilities::Transfers, treasury: ::Stripe::AccountService::UpdateParams::Capabilities::Treasury, treasury_evolve: ::Stripe::AccountService::UpdateParams::Capabilities::TreasuryEvolve, treasury_fifth_third: ::Stripe::AccountService::UpdateParams::Capabilities::TreasuryFifthThird, treasury_goldman_sachs: ::Stripe::AccountService::UpdateParams::Capabilities::TreasuryGoldmanSachs, twint_payments: ::Stripe::AccountService::UpdateParams::Capabilities::TwintPayments, us_bank_account_ach_payments: ::Stripe::AccountService::UpdateParams::Capabilities::UsBankAccountAchPayments, us_bank_transfer_payments: ::Stripe::AccountService::UpdateParams::Capabilities::UsBankTransferPayments, zip_payments: ::Stripe::AccountService::UpdateParams::Capabilities::ZipPayments).void
860
+ params(acss_debit_payments: ::Stripe::AccountService::UpdateParams::Capabilities::AcssDebitPayments, affirm_payments: ::Stripe::AccountService::UpdateParams::Capabilities::AffirmPayments, afterpay_clearpay_payments: ::Stripe::AccountService::UpdateParams::Capabilities::AfterpayClearpayPayments, alma_payments: ::Stripe::AccountService::UpdateParams::Capabilities::AlmaPayments, amazon_pay_payments: ::Stripe::AccountService::UpdateParams::Capabilities::AmazonPayPayments, au_becs_debit_payments: ::Stripe::AccountService::UpdateParams::Capabilities::AuBecsDebitPayments, automatic_indirect_tax: ::Stripe::AccountService::UpdateParams::Capabilities::AutomaticIndirectTax, bacs_debit_payments: ::Stripe::AccountService::UpdateParams::Capabilities::BacsDebitPayments, bancontact_payments: ::Stripe::AccountService::UpdateParams::Capabilities::BancontactPayments, bank_transfer_payments: ::Stripe::AccountService::UpdateParams::Capabilities::BankTransferPayments, blik_payments: ::Stripe::AccountService::UpdateParams::Capabilities::BlikPayments, boleto_payments: ::Stripe::AccountService::UpdateParams::Capabilities::BoletoPayments, card_issuing: ::Stripe::AccountService::UpdateParams::Capabilities::CardIssuing, card_payments: ::Stripe::AccountService::UpdateParams::Capabilities::CardPayments, cartes_bancaires_payments: ::Stripe::AccountService::UpdateParams::Capabilities::CartesBancairesPayments, cashapp_payments: ::Stripe::AccountService::UpdateParams::Capabilities::CashappPayments, eps_payments: ::Stripe::AccountService::UpdateParams::Capabilities::EpsPayments, fpx_payments: ::Stripe::AccountService::UpdateParams::Capabilities::FpxPayments, gb_bank_transfer_payments: ::Stripe::AccountService::UpdateParams::Capabilities::GbBankTransferPayments, giropay_payments: ::Stripe::AccountService::UpdateParams::Capabilities::GiropayPayments, gopay_payments: ::Stripe::AccountService::UpdateParams::Capabilities::GopayPayments, grabpay_payments: ::Stripe::AccountService::UpdateParams::Capabilities::GrabpayPayments, id_bank_transfer_payments: ::Stripe::AccountService::UpdateParams::Capabilities::IdBankTransferPayments, id_bank_transfer_payments_bca: ::Stripe::AccountService::UpdateParams::Capabilities::IdBankTransferPaymentsBca, ideal_payments: ::Stripe::AccountService::UpdateParams::Capabilities::IdealPayments, india_international_payments: ::Stripe::AccountService::UpdateParams::Capabilities::IndiaInternationalPayments, jcb_payments: ::Stripe::AccountService::UpdateParams::Capabilities::JcbPayments, jp_bank_transfer_payments: ::Stripe::AccountService::UpdateParams::Capabilities::JpBankTransferPayments, kakao_pay_payments: ::Stripe::AccountService::UpdateParams::Capabilities::KakaoPayPayments, klarna_payments: ::Stripe::AccountService::UpdateParams::Capabilities::KlarnaPayments, konbini_payments: ::Stripe::AccountService::UpdateParams::Capabilities::KonbiniPayments, kr_card_payments: ::Stripe::AccountService::UpdateParams::Capabilities::KrCardPayments, legacy_payments: ::Stripe::AccountService::UpdateParams::Capabilities::LegacyPayments, link_payments: ::Stripe::AccountService::UpdateParams::Capabilities::LinkPayments, mb_way_payments: ::Stripe::AccountService::UpdateParams::Capabilities::MbWayPayments, mobilepay_payments: ::Stripe::AccountService::UpdateParams::Capabilities::MobilepayPayments, multibanco_payments: ::Stripe::AccountService::UpdateParams::Capabilities::MultibancoPayments, mx_bank_transfer_payments: ::Stripe::AccountService::UpdateParams::Capabilities::MxBankTransferPayments, naver_pay_payments: ::Stripe::AccountService::UpdateParams::Capabilities::NaverPayPayments, oxxo_payments: ::Stripe::AccountService::UpdateParams::Capabilities::OxxoPayments, p24_payments: ::Stripe::AccountService::UpdateParams::Capabilities::P24Payments, pay_by_bank_payments: ::Stripe::AccountService::UpdateParams::Capabilities::PayByBankPayments, payco_payments: ::Stripe::AccountService::UpdateParams::Capabilities::PaycoPayments, paynow_payments: ::Stripe::AccountService::UpdateParams::Capabilities::PaynowPayments, paypal_payments: ::Stripe::AccountService::UpdateParams::Capabilities::PaypalPayments, payto_payments: ::Stripe::AccountService::UpdateParams::Capabilities::PaytoPayments, promptpay_payments: ::Stripe::AccountService::UpdateParams::Capabilities::PromptpayPayments, qris_payments: ::Stripe::AccountService::UpdateParams::Capabilities::QrisPayments, rechnung_payments: ::Stripe::AccountService::UpdateParams::Capabilities::RechnungPayments, revolut_pay_payments: ::Stripe::AccountService::UpdateParams::Capabilities::RevolutPayPayments, samsung_pay_payments: ::Stripe::AccountService::UpdateParams::Capabilities::SamsungPayPayments, sepa_bank_transfer_payments: ::Stripe::AccountService::UpdateParams::Capabilities::SepaBankTransferPayments, sepa_debit_payments: ::Stripe::AccountService::UpdateParams::Capabilities::SepaDebitPayments, shopeepay_payments: ::Stripe::AccountService::UpdateParams::Capabilities::ShopeepayPayments, sofort_payments: ::Stripe::AccountService::UpdateParams::Capabilities::SofortPayments, swish_payments: ::Stripe::AccountService::UpdateParams::Capabilities::SwishPayments, tax_reporting_us_1099_k: ::Stripe::AccountService::UpdateParams::Capabilities::TaxReportingUs1099K, tax_reporting_us_1099_misc: ::Stripe::AccountService::UpdateParams::Capabilities::TaxReportingUs1099Misc, transfers: ::Stripe::AccountService::UpdateParams::Capabilities::Transfers, treasury: ::Stripe::AccountService::UpdateParams::Capabilities::Treasury, treasury_evolve: ::Stripe::AccountService::UpdateParams::Capabilities::TreasuryEvolve, treasury_fifth_third: ::Stripe::AccountService::UpdateParams::Capabilities::TreasuryFifthThird, treasury_goldman_sachs: ::Stripe::AccountService::UpdateParams::Capabilities::TreasuryGoldmanSachs, twint_payments: ::Stripe::AccountService::UpdateParams::Capabilities::TwintPayments, us_bank_account_ach_payments: ::Stripe::AccountService::UpdateParams::Capabilities::UsBankAccountAchPayments, us_bank_transfer_payments: ::Stripe::AccountService::UpdateParams::Capabilities::UsBankTransferPayments, zip_payments: ::Stripe::AccountService::UpdateParams::Capabilities::ZipPayments).void
851
861
  }
852
862
  def initialize(
853
863
  acss_debit_payments: nil,
@@ -891,6 +901,7 @@ module Stripe
891
901
  naver_pay_payments: nil,
892
902
  oxxo_payments: nil,
893
903
  p24_payments: nil,
904
+ pay_by_bank_payments: nil,
894
905
  payco_payments: nil,
895
906
  paynow_payments: nil,
896
907
  paypal_payments: nil,
@@ -1100,6 +1111,19 @@ module Stripe
1100
1111
  town: nil
1101
1112
  ); end
1102
1113
  end
1114
+ class DirectorshipDeclaration < Stripe::RequestParams
1115
+ # The Unix timestamp marking when the directorship declaration attestation was made.
1116
+ sig { returns(Integer) }
1117
+ attr_accessor :date
1118
+ # The IP address from which the directorship declaration attestation was made.
1119
+ sig { returns(String) }
1120
+ attr_accessor :ip
1121
+ # The user agent of the browser from which the directorship declaration attestation was made.
1122
+ sig { returns(String) }
1123
+ attr_accessor :user_agent
1124
+ sig { params(date: Integer, ip: String, user_agent: String).void }
1125
+ def initialize(date: nil, ip: nil, user_agent: nil); end
1126
+ end
1103
1127
  class OwnershipDeclaration < Stripe::RequestParams
1104
1128
  # The Unix timestamp marking when the beneficial owner attestation was made.
1105
1129
  sig { returns(Integer) }
@@ -1144,6 +1168,9 @@ module Stripe
1144
1168
  # 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.
1145
1169
  sig { returns(T::Boolean) }
1146
1170
  attr_accessor :directors_provided
1171
+ # This hash is used to attest that the directors information provided to Stripe is both current and correct.
1172
+ sig { returns(::Stripe::AccountService::UpdateParams::Company::DirectorshipDeclaration) }
1173
+ attr_accessor :directorship_declaration
1147
1174
  # 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.
1148
1175
  sig { returns(T::Boolean) }
1149
1176
  attr_accessor :executives_provided
@@ -1193,13 +1220,14 @@ module Stripe
1193
1220
  sig { returns(::Stripe::AccountService::UpdateParams::Company::Verification) }
1194
1221
  attr_accessor :verification
1195
1222
  sig {
1196
- params(address: ::Stripe::AccountService::UpdateParams::Company::Address, address_kana: ::Stripe::AccountService::UpdateParams::Company::AddressKana, address_kanji: ::Stripe::AccountService::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::AccountService::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::AccountService::UpdateParams::Company::Verification).void
1223
+ params(address: ::Stripe::AccountService::UpdateParams::Company::Address, address_kana: ::Stripe::AccountService::UpdateParams::Company::AddressKana, address_kanji: ::Stripe::AccountService::UpdateParams::Company::AddressKanji, directors_provided: T::Boolean, directorship_declaration: ::Stripe::AccountService::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::AccountService::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::AccountService::UpdateParams::Company::Verification).void
1197
1224
  }
1198
1225
  def initialize(
1199
1226
  address: nil,
1200
1227
  address_kana: nil,
1201
1228
  address_kanji: nil,
1202
1229
  directors_provided: nil,
1230
+ directorship_declaration: nil,
1203
1231
  executives_provided: nil,
1204
1232
  export_license_id: nil,
1205
1233
  export_purpose_code: nil,
@@ -1268,6 +1296,13 @@ module Stripe
1268
1296
  sig { params(files: T::Array[String]).void }
1269
1297
  def initialize(files: nil); end
1270
1298
  end
1299
+ class ProofOfUltimateBeneficialOwnership < Stripe::RequestParams
1300
+ # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
1301
+ sig { returns(T::Array[String]) }
1302
+ attr_accessor :files
1303
+ sig { params(files: T::Array[String]).void }
1304
+ def initialize(files: nil); end
1305
+ end
1271
1306
  # 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.
1272
1307
  sig {
1273
1308
  returns(::Stripe::AccountService::UpdateParams::Documents::BankAccountOwnershipVerification)
@@ -1295,8 +1330,13 @@ module Stripe
1295
1330
  # One or more documents showing the company’s proof of registration with the national business registry.
1296
1331
  sig { returns(::Stripe::AccountService::UpdateParams::Documents::ProofOfRegistration) }
1297
1332
  attr_accessor :proof_of_registration
1333
+ # One or more documents that demonstrate proof of ultimate beneficial ownership.
1334
+ sig {
1335
+ returns(::Stripe::AccountService::UpdateParams::Documents::ProofOfUltimateBeneficialOwnership)
1336
+ }
1337
+ attr_accessor :proof_of_ultimate_beneficial_ownership
1298
1338
  sig {
1299
- params(bank_account_ownership_verification: ::Stripe::AccountService::UpdateParams::Documents::BankAccountOwnershipVerification, company_license: ::Stripe::AccountService::UpdateParams::Documents::CompanyLicense, company_memorandum_of_association: ::Stripe::AccountService::UpdateParams::Documents::CompanyMemorandumOfAssociation, company_ministerial_decree: ::Stripe::AccountService::UpdateParams::Documents::CompanyMinisterialDecree, company_registration_verification: ::Stripe::AccountService::UpdateParams::Documents::CompanyRegistrationVerification, company_tax_id_verification: ::Stripe::AccountService::UpdateParams::Documents::CompanyTaxIdVerification, proof_of_registration: ::Stripe::AccountService::UpdateParams::Documents::ProofOfRegistration).void
1339
+ params(bank_account_ownership_verification: ::Stripe::AccountService::UpdateParams::Documents::BankAccountOwnershipVerification, company_license: ::Stripe::AccountService::UpdateParams::Documents::CompanyLicense, company_memorandum_of_association: ::Stripe::AccountService::UpdateParams::Documents::CompanyMemorandumOfAssociation, company_ministerial_decree: ::Stripe::AccountService::UpdateParams::Documents::CompanyMinisterialDecree, company_registration_verification: ::Stripe::AccountService::UpdateParams::Documents::CompanyRegistrationVerification, company_tax_id_verification: ::Stripe::AccountService::UpdateParams::Documents::CompanyTaxIdVerification, proof_of_registration: ::Stripe::AccountService::UpdateParams::Documents::ProofOfRegistration, proof_of_ultimate_beneficial_ownership: ::Stripe::AccountService::UpdateParams::Documents::ProofOfUltimateBeneficialOwnership).void
1300
1340
  }
1301
1341
  def initialize(
1302
1342
  bank_account_ownership_verification: nil,
@@ -1305,7 +1345,8 @@ module Stripe
1305
1345
  company_ministerial_decree: nil,
1306
1346
  company_registration_verification: nil,
1307
1347
  company_tax_id_verification: nil,
1308
- proof_of_registration: nil
1348
+ proof_of_registration: nil,
1349
+ proof_of_ultimate_beneficial_ownership: nil
1309
1350
  ); end
1310
1351
  end
1311
1352
  class Groups < Stripe::RequestParams
@@ -2480,6 +2521,13 @@ module Stripe
2480
2521
  sig { params(requested: T::Boolean).void }
2481
2522
  def initialize(requested: nil); end
2482
2523
  end
2524
+ class PayByBankPayments < Stripe::RequestParams
2525
+ # 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.
2526
+ sig { returns(T::Boolean) }
2527
+ attr_accessor :requested
2528
+ sig { params(requested: T::Boolean).void }
2529
+ def initialize(requested: nil); end
2530
+ end
2483
2531
  class PaycoPayments < Stripe::RequestParams
2484
2532
  # 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.
2485
2533
  sig { returns(T::Boolean) }
@@ -2794,6 +2842,9 @@ module Stripe
2794
2842
  # The p24_payments capability.
2795
2843
  sig { returns(::Stripe::AccountService::CreateParams::Capabilities::P24Payments) }
2796
2844
  attr_accessor :p24_payments
2845
+ # The pay_by_bank_payments capability.
2846
+ sig { returns(::Stripe::AccountService::CreateParams::Capabilities::PayByBankPayments) }
2847
+ attr_accessor :pay_by_bank_payments
2797
2848
  # The payco_payments capability.
2798
2849
  sig { returns(::Stripe::AccountService::CreateParams::Capabilities::PaycoPayments) }
2799
2850
  attr_accessor :payco_payments
@@ -2878,7 +2929,7 @@ module Stripe
2878
2929
  sig { returns(::Stripe::AccountService::CreateParams::Capabilities::ZipPayments) }
2879
2930
  attr_accessor :zip_payments
2880
2931
  sig {
2881
- params(acss_debit_payments: ::Stripe::AccountService::CreateParams::Capabilities::AcssDebitPayments, affirm_payments: ::Stripe::AccountService::CreateParams::Capabilities::AffirmPayments, afterpay_clearpay_payments: ::Stripe::AccountService::CreateParams::Capabilities::AfterpayClearpayPayments, alma_payments: ::Stripe::AccountService::CreateParams::Capabilities::AlmaPayments, amazon_pay_payments: ::Stripe::AccountService::CreateParams::Capabilities::AmazonPayPayments, au_becs_debit_payments: ::Stripe::AccountService::CreateParams::Capabilities::AuBecsDebitPayments, automatic_indirect_tax: ::Stripe::AccountService::CreateParams::Capabilities::AutomaticIndirectTax, bacs_debit_payments: ::Stripe::AccountService::CreateParams::Capabilities::BacsDebitPayments, bancontact_payments: ::Stripe::AccountService::CreateParams::Capabilities::BancontactPayments, bank_transfer_payments: ::Stripe::AccountService::CreateParams::Capabilities::BankTransferPayments, blik_payments: ::Stripe::AccountService::CreateParams::Capabilities::BlikPayments, boleto_payments: ::Stripe::AccountService::CreateParams::Capabilities::BoletoPayments, card_issuing: ::Stripe::AccountService::CreateParams::Capabilities::CardIssuing, card_payments: ::Stripe::AccountService::CreateParams::Capabilities::CardPayments, cartes_bancaires_payments: ::Stripe::AccountService::CreateParams::Capabilities::CartesBancairesPayments, cashapp_payments: ::Stripe::AccountService::CreateParams::Capabilities::CashappPayments, eps_payments: ::Stripe::AccountService::CreateParams::Capabilities::EpsPayments, fpx_payments: ::Stripe::AccountService::CreateParams::Capabilities::FpxPayments, gb_bank_transfer_payments: ::Stripe::AccountService::CreateParams::Capabilities::GbBankTransferPayments, giropay_payments: ::Stripe::AccountService::CreateParams::Capabilities::GiropayPayments, gopay_payments: ::Stripe::AccountService::CreateParams::Capabilities::GopayPayments, grabpay_payments: ::Stripe::AccountService::CreateParams::Capabilities::GrabpayPayments, id_bank_transfer_payments: ::Stripe::AccountService::CreateParams::Capabilities::IdBankTransferPayments, id_bank_transfer_payments_bca: ::Stripe::AccountService::CreateParams::Capabilities::IdBankTransferPaymentsBca, ideal_payments: ::Stripe::AccountService::CreateParams::Capabilities::IdealPayments, india_international_payments: ::Stripe::AccountService::CreateParams::Capabilities::IndiaInternationalPayments, jcb_payments: ::Stripe::AccountService::CreateParams::Capabilities::JcbPayments, jp_bank_transfer_payments: ::Stripe::AccountService::CreateParams::Capabilities::JpBankTransferPayments, kakao_pay_payments: ::Stripe::AccountService::CreateParams::Capabilities::KakaoPayPayments, klarna_payments: ::Stripe::AccountService::CreateParams::Capabilities::KlarnaPayments, konbini_payments: ::Stripe::AccountService::CreateParams::Capabilities::KonbiniPayments, kr_card_payments: ::Stripe::AccountService::CreateParams::Capabilities::KrCardPayments, legacy_payments: ::Stripe::AccountService::CreateParams::Capabilities::LegacyPayments, link_payments: ::Stripe::AccountService::CreateParams::Capabilities::LinkPayments, mb_way_payments: ::Stripe::AccountService::CreateParams::Capabilities::MbWayPayments, mobilepay_payments: ::Stripe::AccountService::CreateParams::Capabilities::MobilepayPayments, multibanco_payments: ::Stripe::AccountService::CreateParams::Capabilities::MultibancoPayments, mx_bank_transfer_payments: ::Stripe::AccountService::CreateParams::Capabilities::MxBankTransferPayments, naver_pay_payments: ::Stripe::AccountService::CreateParams::Capabilities::NaverPayPayments, oxxo_payments: ::Stripe::AccountService::CreateParams::Capabilities::OxxoPayments, p24_payments: ::Stripe::AccountService::CreateParams::Capabilities::P24Payments, payco_payments: ::Stripe::AccountService::CreateParams::Capabilities::PaycoPayments, paynow_payments: ::Stripe::AccountService::CreateParams::Capabilities::PaynowPayments, paypal_payments: ::Stripe::AccountService::CreateParams::Capabilities::PaypalPayments, payto_payments: ::Stripe::AccountService::CreateParams::Capabilities::PaytoPayments, promptpay_payments: ::Stripe::AccountService::CreateParams::Capabilities::PromptpayPayments, qris_payments: ::Stripe::AccountService::CreateParams::Capabilities::QrisPayments, rechnung_payments: ::Stripe::AccountService::CreateParams::Capabilities::RechnungPayments, revolut_pay_payments: ::Stripe::AccountService::CreateParams::Capabilities::RevolutPayPayments, samsung_pay_payments: ::Stripe::AccountService::CreateParams::Capabilities::SamsungPayPayments, sepa_bank_transfer_payments: ::Stripe::AccountService::CreateParams::Capabilities::SepaBankTransferPayments, sepa_debit_payments: ::Stripe::AccountService::CreateParams::Capabilities::SepaDebitPayments, shopeepay_payments: ::Stripe::AccountService::CreateParams::Capabilities::ShopeepayPayments, sofort_payments: ::Stripe::AccountService::CreateParams::Capabilities::SofortPayments, swish_payments: ::Stripe::AccountService::CreateParams::Capabilities::SwishPayments, tax_reporting_us_1099_k: ::Stripe::AccountService::CreateParams::Capabilities::TaxReportingUs1099K, tax_reporting_us_1099_misc: ::Stripe::AccountService::CreateParams::Capabilities::TaxReportingUs1099Misc, transfers: ::Stripe::AccountService::CreateParams::Capabilities::Transfers, treasury: ::Stripe::AccountService::CreateParams::Capabilities::Treasury, treasury_evolve: ::Stripe::AccountService::CreateParams::Capabilities::TreasuryEvolve, treasury_fifth_third: ::Stripe::AccountService::CreateParams::Capabilities::TreasuryFifthThird, treasury_goldman_sachs: ::Stripe::AccountService::CreateParams::Capabilities::TreasuryGoldmanSachs, twint_payments: ::Stripe::AccountService::CreateParams::Capabilities::TwintPayments, us_bank_account_ach_payments: ::Stripe::AccountService::CreateParams::Capabilities::UsBankAccountAchPayments, us_bank_transfer_payments: ::Stripe::AccountService::CreateParams::Capabilities::UsBankTransferPayments, zip_payments: ::Stripe::AccountService::CreateParams::Capabilities::ZipPayments).void
2932
+ params(acss_debit_payments: ::Stripe::AccountService::CreateParams::Capabilities::AcssDebitPayments, affirm_payments: ::Stripe::AccountService::CreateParams::Capabilities::AffirmPayments, afterpay_clearpay_payments: ::Stripe::AccountService::CreateParams::Capabilities::AfterpayClearpayPayments, alma_payments: ::Stripe::AccountService::CreateParams::Capabilities::AlmaPayments, amazon_pay_payments: ::Stripe::AccountService::CreateParams::Capabilities::AmazonPayPayments, au_becs_debit_payments: ::Stripe::AccountService::CreateParams::Capabilities::AuBecsDebitPayments, automatic_indirect_tax: ::Stripe::AccountService::CreateParams::Capabilities::AutomaticIndirectTax, bacs_debit_payments: ::Stripe::AccountService::CreateParams::Capabilities::BacsDebitPayments, bancontact_payments: ::Stripe::AccountService::CreateParams::Capabilities::BancontactPayments, bank_transfer_payments: ::Stripe::AccountService::CreateParams::Capabilities::BankTransferPayments, blik_payments: ::Stripe::AccountService::CreateParams::Capabilities::BlikPayments, boleto_payments: ::Stripe::AccountService::CreateParams::Capabilities::BoletoPayments, card_issuing: ::Stripe::AccountService::CreateParams::Capabilities::CardIssuing, card_payments: ::Stripe::AccountService::CreateParams::Capabilities::CardPayments, cartes_bancaires_payments: ::Stripe::AccountService::CreateParams::Capabilities::CartesBancairesPayments, cashapp_payments: ::Stripe::AccountService::CreateParams::Capabilities::CashappPayments, eps_payments: ::Stripe::AccountService::CreateParams::Capabilities::EpsPayments, fpx_payments: ::Stripe::AccountService::CreateParams::Capabilities::FpxPayments, gb_bank_transfer_payments: ::Stripe::AccountService::CreateParams::Capabilities::GbBankTransferPayments, giropay_payments: ::Stripe::AccountService::CreateParams::Capabilities::GiropayPayments, gopay_payments: ::Stripe::AccountService::CreateParams::Capabilities::GopayPayments, grabpay_payments: ::Stripe::AccountService::CreateParams::Capabilities::GrabpayPayments, id_bank_transfer_payments: ::Stripe::AccountService::CreateParams::Capabilities::IdBankTransferPayments, id_bank_transfer_payments_bca: ::Stripe::AccountService::CreateParams::Capabilities::IdBankTransferPaymentsBca, ideal_payments: ::Stripe::AccountService::CreateParams::Capabilities::IdealPayments, india_international_payments: ::Stripe::AccountService::CreateParams::Capabilities::IndiaInternationalPayments, jcb_payments: ::Stripe::AccountService::CreateParams::Capabilities::JcbPayments, jp_bank_transfer_payments: ::Stripe::AccountService::CreateParams::Capabilities::JpBankTransferPayments, kakao_pay_payments: ::Stripe::AccountService::CreateParams::Capabilities::KakaoPayPayments, klarna_payments: ::Stripe::AccountService::CreateParams::Capabilities::KlarnaPayments, konbini_payments: ::Stripe::AccountService::CreateParams::Capabilities::KonbiniPayments, kr_card_payments: ::Stripe::AccountService::CreateParams::Capabilities::KrCardPayments, legacy_payments: ::Stripe::AccountService::CreateParams::Capabilities::LegacyPayments, link_payments: ::Stripe::AccountService::CreateParams::Capabilities::LinkPayments, mb_way_payments: ::Stripe::AccountService::CreateParams::Capabilities::MbWayPayments, mobilepay_payments: ::Stripe::AccountService::CreateParams::Capabilities::MobilepayPayments, multibanco_payments: ::Stripe::AccountService::CreateParams::Capabilities::MultibancoPayments, mx_bank_transfer_payments: ::Stripe::AccountService::CreateParams::Capabilities::MxBankTransferPayments, naver_pay_payments: ::Stripe::AccountService::CreateParams::Capabilities::NaverPayPayments, oxxo_payments: ::Stripe::AccountService::CreateParams::Capabilities::OxxoPayments, p24_payments: ::Stripe::AccountService::CreateParams::Capabilities::P24Payments, pay_by_bank_payments: ::Stripe::AccountService::CreateParams::Capabilities::PayByBankPayments, payco_payments: ::Stripe::AccountService::CreateParams::Capabilities::PaycoPayments, paynow_payments: ::Stripe::AccountService::CreateParams::Capabilities::PaynowPayments, paypal_payments: ::Stripe::AccountService::CreateParams::Capabilities::PaypalPayments, payto_payments: ::Stripe::AccountService::CreateParams::Capabilities::PaytoPayments, promptpay_payments: ::Stripe::AccountService::CreateParams::Capabilities::PromptpayPayments, qris_payments: ::Stripe::AccountService::CreateParams::Capabilities::QrisPayments, rechnung_payments: ::Stripe::AccountService::CreateParams::Capabilities::RechnungPayments, revolut_pay_payments: ::Stripe::AccountService::CreateParams::Capabilities::RevolutPayPayments, samsung_pay_payments: ::Stripe::AccountService::CreateParams::Capabilities::SamsungPayPayments, sepa_bank_transfer_payments: ::Stripe::AccountService::CreateParams::Capabilities::SepaBankTransferPayments, sepa_debit_payments: ::Stripe::AccountService::CreateParams::Capabilities::SepaDebitPayments, shopeepay_payments: ::Stripe::AccountService::CreateParams::Capabilities::ShopeepayPayments, sofort_payments: ::Stripe::AccountService::CreateParams::Capabilities::SofortPayments, swish_payments: ::Stripe::AccountService::CreateParams::Capabilities::SwishPayments, tax_reporting_us_1099_k: ::Stripe::AccountService::CreateParams::Capabilities::TaxReportingUs1099K, tax_reporting_us_1099_misc: ::Stripe::AccountService::CreateParams::Capabilities::TaxReportingUs1099Misc, transfers: ::Stripe::AccountService::CreateParams::Capabilities::Transfers, treasury: ::Stripe::AccountService::CreateParams::Capabilities::Treasury, treasury_evolve: ::Stripe::AccountService::CreateParams::Capabilities::TreasuryEvolve, treasury_fifth_third: ::Stripe::AccountService::CreateParams::Capabilities::TreasuryFifthThird, treasury_goldman_sachs: ::Stripe::AccountService::CreateParams::Capabilities::TreasuryGoldmanSachs, twint_payments: ::Stripe::AccountService::CreateParams::Capabilities::TwintPayments, us_bank_account_ach_payments: ::Stripe::AccountService::CreateParams::Capabilities::UsBankAccountAchPayments, us_bank_transfer_payments: ::Stripe::AccountService::CreateParams::Capabilities::UsBankTransferPayments, zip_payments: ::Stripe::AccountService::CreateParams::Capabilities::ZipPayments).void
2882
2933
  }
2883
2934
  def initialize(
2884
2935
  acss_debit_payments: nil,
@@ -2922,6 +2973,7 @@ module Stripe
2922
2973
  naver_pay_payments: nil,
2923
2974
  oxxo_payments: nil,
2924
2975
  p24_payments: nil,
2976
+ pay_by_bank_payments: nil,
2925
2977
  payco_payments: nil,
2926
2978
  paynow_payments: nil,
2927
2979
  paypal_payments: nil,
@@ -3131,6 +3183,19 @@ module Stripe
3131
3183
  town: nil
3132
3184
  ); end
3133
3185
  end
3186
+ class DirectorshipDeclaration < Stripe::RequestParams
3187
+ # The Unix timestamp marking when the directorship declaration attestation was made.
3188
+ sig { returns(Integer) }
3189
+ attr_accessor :date
3190
+ # The IP address from which the directorship declaration attestation was made.
3191
+ sig { returns(String) }
3192
+ attr_accessor :ip
3193
+ # The user agent of the browser from which the directorship declaration attestation was made.
3194
+ sig { returns(String) }
3195
+ attr_accessor :user_agent
3196
+ sig { params(date: Integer, ip: String, user_agent: String).void }
3197
+ def initialize(date: nil, ip: nil, user_agent: nil); end
3198
+ end
3134
3199
  class OwnershipDeclaration < Stripe::RequestParams
3135
3200
  # The Unix timestamp marking when the beneficial owner attestation was made.
3136
3201
  sig { returns(Integer) }
@@ -3175,6 +3240,9 @@ module Stripe
3175
3240
  # 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.
3176
3241
  sig { returns(T::Boolean) }
3177
3242
  attr_accessor :directors_provided
3243
+ # This hash is used to attest that the directors information provided to Stripe is both current and correct.
3244
+ sig { returns(::Stripe::AccountService::CreateParams::Company::DirectorshipDeclaration) }
3245
+ attr_accessor :directorship_declaration
3178
3246
  # 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.
3179
3247
  sig { returns(T::Boolean) }
3180
3248
  attr_accessor :executives_provided
@@ -3224,13 +3292,14 @@ module Stripe
3224
3292
  sig { returns(::Stripe::AccountService::CreateParams::Company::Verification) }
3225
3293
  attr_accessor :verification
3226
3294
  sig {
3227
- params(address: ::Stripe::AccountService::CreateParams::Company::Address, address_kana: ::Stripe::AccountService::CreateParams::Company::AddressKana, address_kanji: ::Stripe::AccountService::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::AccountService::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::AccountService::CreateParams::Company::Verification).void
3295
+ params(address: ::Stripe::AccountService::CreateParams::Company::Address, address_kana: ::Stripe::AccountService::CreateParams::Company::AddressKana, address_kanji: ::Stripe::AccountService::CreateParams::Company::AddressKanji, directors_provided: T::Boolean, directorship_declaration: ::Stripe::AccountService::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::AccountService::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::AccountService::CreateParams::Company::Verification).void
3228
3296
  }
3229
3297
  def initialize(
3230
3298
  address: nil,
3231
3299
  address_kana: nil,
3232
3300
  address_kanji: nil,
3233
3301
  directors_provided: nil,
3302
+ directorship_declaration: nil,
3234
3303
  executives_provided: nil,
3235
3304
  export_license_id: nil,
3236
3305
  export_purpose_code: nil,
@@ -3373,6 +3442,13 @@ module Stripe
3373
3442
  sig { params(files: T::Array[String]).void }
3374
3443
  def initialize(files: nil); end
3375
3444
  end
3445
+ class ProofOfUltimateBeneficialOwnership < Stripe::RequestParams
3446
+ # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
3447
+ sig { returns(T::Array[String]) }
3448
+ attr_accessor :files
3449
+ sig { params(files: T::Array[String]).void }
3450
+ def initialize(files: nil); end
3451
+ end
3376
3452
  # 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.
3377
3453
  sig {
3378
3454
  returns(::Stripe::AccountService::CreateParams::Documents::BankAccountOwnershipVerification)
@@ -3400,8 +3476,13 @@ module Stripe
3400
3476
  # One or more documents showing the company’s proof of registration with the national business registry.
3401
3477
  sig { returns(::Stripe::AccountService::CreateParams::Documents::ProofOfRegistration) }
3402
3478
  attr_accessor :proof_of_registration
3479
+ # One or more documents that demonstrate proof of ultimate beneficial ownership.
3480
+ sig {
3481
+ returns(::Stripe::AccountService::CreateParams::Documents::ProofOfUltimateBeneficialOwnership)
3482
+ }
3483
+ attr_accessor :proof_of_ultimate_beneficial_ownership
3403
3484
  sig {
3404
- params(bank_account_ownership_verification: ::Stripe::AccountService::CreateParams::Documents::BankAccountOwnershipVerification, company_license: ::Stripe::AccountService::CreateParams::Documents::CompanyLicense, company_memorandum_of_association: ::Stripe::AccountService::CreateParams::Documents::CompanyMemorandumOfAssociation, company_ministerial_decree: ::Stripe::AccountService::CreateParams::Documents::CompanyMinisterialDecree, company_registration_verification: ::Stripe::AccountService::CreateParams::Documents::CompanyRegistrationVerification, company_tax_id_verification: ::Stripe::AccountService::CreateParams::Documents::CompanyTaxIdVerification, proof_of_registration: ::Stripe::AccountService::CreateParams::Documents::ProofOfRegistration).void
3485
+ params(bank_account_ownership_verification: ::Stripe::AccountService::CreateParams::Documents::BankAccountOwnershipVerification, company_license: ::Stripe::AccountService::CreateParams::Documents::CompanyLicense, company_memorandum_of_association: ::Stripe::AccountService::CreateParams::Documents::CompanyMemorandumOfAssociation, company_ministerial_decree: ::Stripe::AccountService::CreateParams::Documents::CompanyMinisterialDecree, company_registration_verification: ::Stripe::AccountService::CreateParams::Documents::CompanyRegistrationVerification, company_tax_id_verification: ::Stripe::AccountService::CreateParams::Documents::CompanyTaxIdVerification, proof_of_registration: ::Stripe::AccountService::CreateParams::Documents::ProofOfRegistration, proof_of_ultimate_beneficial_ownership: ::Stripe::AccountService::CreateParams::Documents::ProofOfUltimateBeneficialOwnership).void
3405
3486
  }
3406
3487
  def initialize(
3407
3488
  bank_account_ownership_verification: nil,
@@ -3410,7 +3491,8 @@ module Stripe
3410
3491
  company_ministerial_decree: nil,
3411
3492
  company_registration_verification: nil,
3412
3493
  company_tax_id_verification: nil,
3413
- proof_of_registration: nil
3494
+ proof_of_registration: nil,
3495
+ proof_of_ultimate_beneficial_ownership: nil
3414
3496
  ); end
3415
3497
  end
3416
3498
  class Groups < Stripe::RequestParams
@@ -618,6 +618,23 @@ module Stripe
618
618
  }
619
619
  def initialize(enabled: nil, features: nil); end
620
620
  end
621
+ class TaxThresholdMonitoring < Stripe::RequestParams
622
+ class Features < Stripe::RequestParams
623
+
624
+ end
625
+ # Whether the embedded component is enabled.
626
+ sig { returns(T::Boolean) }
627
+ attr_accessor :enabled
628
+ # The list of features enabled in the embedded component.
629
+ sig {
630
+ returns(::Stripe::AccountSessionService::CreateParams::Components::TaxThresholdMonitoring::Features)
631
+ }
632
+ attr_accessor :features
633
+ sig {
634
+ params(enabled: T::Boolean, features: ::Stripe::AccountSessionService::CreateParams::Components::TaxThresholdMonitoring::Features).void
635
+ }
636
+ def initialize(enabled: nil, features: nil); end
637
+ end
621
638
  # Configuration for the account management embedded component.
622
639
  sig {
623
640
  returns(::Stripe::AccountSessionService::CreateParams::Components::AccountManagement)
@@ -656,18 +673,18 @@ module Stripe
656
673
  # Configuration for the documents embedded component.
657
674
  sig { returns(::Stripe::AccountSessionService::CreateParams::Components::Documents) }
658
675
  attr_accessor :documents
659
- # Configuration for the financial account component.
676
+ # Configuration for the financial account embedded component.
660
677
  sig { returns(::Stripe::AccountSessionService::CreateParams::Components::FinancialAccount) }
661
678
  attr_accessor :financial_account
662
- # Configuration for the financial account transactions component.
679
+ # Configuration for the financial account transactions embedded component.
663
680
  sig {
664
681
  returns(::Stripe::AccountSessionService::CreateParams::Components::FinancialAccountTransactions)
665
682
  }
666
683
  attr_accessor :financial_account_transactions
667
- # Configuration for the issuing card component.
684
+ # Configuration for the issuing card embedded component.
668
685
  sig { returns(::Stripe::AccountSessionService::CreateParams::Components::IssuingCard) }
669
686
  attr_accessor :issuing_card
670
- # Configuration for the issuing cards list component.
687
+ # Configuration for the issuing cards list embedded component.
671
688
  sig { returns(::Stripe::AccountSessionService::CreateParams::Components::IssuingCardsList) }
672
689
  attr_accessor :issuing_cards_list
673
690
  # Configuration for the notification banner embedded component.
@@ -704,8 +721,13 @@ module Stripe
704
721
  # Configuration for the tax settings embedded component.
705
722
  sig { returns(::Stripe::AccountSessionService::CreateParams::Components::TaxSettings) }
706
723
  attr_accessor :tax_settings
724
+ # Configuration for the tax threshold monitoring embedded component.
725
+ sig {
726
+ returns(::Stripe::AccountSessionService::CreateParams::Components::TaxThresholdMonitoring)
727
+ }
728
+ attr_accessor :tax_threshold_monitoring
707
729
  sig {
708
- params(account_management: ::Stripe::AccountSessionService::CreateParams::Components::AccountManagement, account_onboarding: ::Stripe::AccountSessionService::CreateParams::Components::AccountOnboarding, app_install: ::Stripe::AccountSessionService::CreateParams::Components::AppInstall, app_viewport: ::Stripe::AccountSessionService::CreateParams::Components::AppViewport, balances: ::Stripe::AccountSessionService::CreateParams::Components::Balances, capital_financing: ::Stripe::AccountSessionService::CreateParams::Components::CapitalFinancing, capital_financing_application: ::Stripe::AccountSessionService::CreateParams::Components::CapitalFinancingApplication, capital_financing_promotion: ::Stripe::AccountSessionService::CreateParams::Components::CapitalFinancingPromotion, capital_overview: ::Stripe::AccountSessionService::CreateParams::Components::CapitalOverview, documents: ::Stripe::AccountSessionService::CreateParams::Components::Documents, financial_account: ::Stripe::AccountSessionService::CreateParams::Components::FinancialAccount, financial_account_transactions: ::Stripe::AccountSessionService::CreateParams::Components::FinancialAccountTransactions, issuing_card: ::Stripe::AccountSessionService::CreateParams::Components::IssuingCard, issuing_cards_list: ::Stripe::AccountSessionService::CreateParams::Components::IssuingCardsList, notification_banner: ::Stripe::AccountSessionService::CreateParams::Components::NotificationBanner, payment_details: ::Stripe::AccountSessionService::CreateParams::Components::PaymentDetails, payment_method_settings: ::Stripe::AccountSessionService::CreateParams::Components::PaymentMethodSettings, payments: ::Stripe::AccountSessionService::CreateParams::Components::Payments, payouts: ::Stripe::AccountSessionService::CreateParams::Components::Payouts, payouts_list: ::Stripe::AccountSessionService::CreateParams::Components::PayoutsList, recipients: ::Stripe::AccountSessionService::CreateParams::Components::Recipients, reporting_chart: ::Stripe::AccountSessionService::CreateParams::Components::ReportingChart, tax_registrations: ::Stripe::AccountSessionService::CreateParams::Components::TaxRegistrations, tax_settings: ::Stripe::AccountSessionService::CreateParams::Components::TaxSettings).void
730
+ params(account_management: ::Stripe::AccountSessionService::CreateParams::Components::AccountManagement, account_onboarding: ::Stripe::AccountSessionService::CreateParams::Components::AccountOnboarding, app_install: ::Stripe::AccountSessionService::CreateParams::Components::AppInstall, app_viewport: ::Stripe::AccountSessionService::CreateParams::Components::AppViewport, balances: ::Stripe::AccountSessionService::CreateParams::Components::Balances, capital_financing: ::Stripe::AccountSessionService::CreateParams::Components::CapitalFinancing, capital_financing_application: ::Stripe::AccountSessionService::CreateParams::Components::CapitalFinancingApplication, capital_financing_promotion: ::Stripe::AccountSessionService::CreateParams::Components::CapitalFinancingPromotion, capital_overview: ::Stripe::AccountSessionService::CreateParams::Components::CapitalOverview, documents: ::Stripe::AccountSessionService::CreateParams::Components::Documents, financial_account: ::Stripe::AccountSessionService::CreateParams::Components::FinancialAccount, financial_account_transactions: ::Stripe::AccountSessionService::CreateParams::Components::FinancialAccountTransactions, issuing_card: ::Stripe::AccountSessionService::CreateParams::Components::IssuingCard, issuing_cards_list: ::Stripe::AccountSessionService::CreateParams::Components::IssuingCardsList, notification_banner: ::Stripe::AccountSessionService::CreateParams::Components::NotificationBanner, payment_details: ::Stripe::AccountSessionService::CreateParams::Components::PaymentDetails, payment_method_settings: ::Stripe::AccountSessionService::CreateParams::Components::PaymentMethodSettings, payments: ::Stripe::AccountSessionService::CreateParams::Components::Payments, payouts: ::Stripe::AccountSessionService::CreateParams::Components::Payouts, payouts_list: ::Stripe::AccountSessionService::CreateParams::Components::PayoutsList, recipients: ::Stripe::AccountSessionService::CreateParams::Components::Recipients, reporting_chart: ::Stripe::AccountSessionService::CreateParams::Components::ReportingChart, tax_registrations: ::Stripe::AccountSessionService::CreateParams::Components::TaxRegistrations, tax_settings: ::Stripe::AccountSessionService::CreateParams::Components::TaxSettings, tax_threshold_monitoring: ::Stripe::AccountSessionService::CreateParams::Components::TaxThresholdMonitoring).void
709
731
  }
710
732
  def initialize(
711
733
  account_management: nil,
@@ -731,7 +753,8 @@ module Stripe
731
753
  recipients: nil,
732
754
  reporting_chart: nil,
733
755
  tax_registrations: nil,
734
- tax_settings: nil
756
+ tax_settings: nil,
757
+ tax_threshold_monitoring: nil
735
758
  ); end
736
759
  end
737
760
  # The identifier of the account to create an Account Session for.
@@ -99,7 +99,7 @@ module Stripe
99
99
  # Whether to cancel subscriptions immediately or at the end of the billing period.
100
100
  sig { returns(String) }
101
101
  attr_accessor :mode
102
- # 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.
102
+ # 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.
103
103
  sig { returns(String) }
104
104
  attr_accessor :proration_behavior
105
105
  sig {
@@ -316,7 +316,7 @@ module Stripe
316
316
  # Whether to cancel subscriptions immediately or at the end of the billing period.
317
317
  sig { returns(String) }
318
318
  attr_accessor :mode
319
- # 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.
319
+ # 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.
320
320
  sig { returns(String) }
321
321
  attr_accessor :proration_behavior
322
322
  sig {
@@ -1240,6 +1240,9 @@ module Stripe
1240
1240
  attr_accessor :tos_shown_and_accepted
1241
1241
  sig { params(setup_future_usage: String, tos_shown_and_accepted: T::Boolean).void }
1242
1242
  def initialize(setup_future_usage: nil, tos_shown_and_accepted: nil); end
1243
+ end
1244
+ class PayByBank < Stripe::RequestParams
1245
+
1243
1246
  end
1244
1247
  class Payco < Stripe::RequestParams
1245
1248
  # Controls when the funds will be captured from the customer's account.
@@ -1624,6 +1627,11 @@ module Stripe
1624
1627
  returns(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::P24)
1625
1628
  }
1626
1629
  attr_accessor :p24
1630
+ # contains details about the Pay By Bank payment method options.
1631
+ sig {
1632
+ returns(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::PayByBank)
1633
+ }
1634
+ attr_accessor :pay_by_bank
1627
1635
  # contains details about the PAYCO payment method options.
1628
1636
  sig {
1629
1637
  returns(::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Payco)
@@ -1685,7 +1693,7 @@ module Stripe
1685
1693
  }
1686
1694
  attr_accessor :wechat_pay
1687
1695
  sig {
1688
- params(acss_debit: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::AcssDebit, affirm: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Affirm, afterpay_clearpay: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::AfterpayClearpay, alipay: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Alipay, amazon_pay: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::AmazonPay, au_becs_debit: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::AuBecsDebit, bacs_debit: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::BacsDebit, bancontact: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Bancontact, boleto: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Boleto, card: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Card, cashapp: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Cashapp, customer_balance: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::CustomerBalance, eps: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Eps, fpx: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Fpx, giropay: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Giropay, grabpay: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Grabpay, ideal: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Ideal, kakao_pay: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::KakaoPay, klarna: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Klarna, konbini: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Konbini, kr_card: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::KrCard, link: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Link, mobilepay: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Mobilepay, multibanco: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Multibanco, naver_pay: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::NaverPay, oxxo: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Oxxo, p24: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::P24, payco: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Payco, paynow: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Paynow, paypal: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Paypal, payto: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Payto, pix: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Pix, revolut_pay: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::RevolutPay, samsung_pay: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::SamsungPay, sepa_debit: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::SepaDebit, sofort: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Sofort, swish: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Swish, us_bank_account: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::UsBankAccount, wechat_pay: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::WechatPay).void
1696
+ params(acss_debit: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::AcssDebit, affirm: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Affirm, afterpay_clearpay: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::AfterpayClearpay, alipay: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Alipay, amazon_pay: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::AmazonPay, au_becs_debit: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::AuBecsDebit, bacs_debit: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::BacsDebit, bancontact: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Bancontact, boleto: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Boleto, card: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Card, cashapp: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Cashapp, customer_balance: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::CustomerBalance, eps: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Eps, fpx: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Fpx, giropay: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Giropay, grabpay: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Grabpay, ideal: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Ideal, kakao_pay: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::KakaoPay, klarna: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Klarna, konbini: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Konbini, kr_card: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::KrCard, link: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Link, mobilepay: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Mobilepay, multibanco: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Multibanco, naver_pay: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::NaverPay, oxxo: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Oxxo, p24: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::P24, pay_by_bank: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::PayByBank, payco: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Payco, paynow: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Paynow, paypal: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Paypal, payto: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Payto, pix: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Pix, revolut_pay: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::RevolutPay, samsung_pay: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::SamsungPay, sepa_debit: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::SepaDebit, sofort: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Sofort, swish: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::Swish, us_bank_account: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::UsBankAccount, wechat_pay: ::Stripe::Checkout::SessionService::CreateParams::PaymentMethodOptions::WechatPay).void
1689
1697
  }
1690
1698
  def initialize(
1691
1699
  acss_debit: nil,
@@ -1715,6 +1723,7 @@ module Stripe
1715
1723
  naver_pay: nil,
1716
1724
  oxxo: nil,
1717
1725
  p24: nil,
1726
+ pay_by_bank: nil,
1718
1727
  payco: nil,
1719
1728
  paynow: nil,
1720
1729
  paypal: nil,
@@ -29,7 +29,7 @@ module Stripe
29
29
  sig { params(after: String).void }
30
30
  def initialize(after: nil); end
31
31
  end
32
- # The ID of the Stripe account whose transactions will be retrieved.
32
+ # The ID of the Financial Connections Account whose transactions will be retrieved.
33
33
  sig { returns(String) }
34
34
  attr_accessor :account
35
35
  # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.