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
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2921b41c38421669174217f063b94459582a8df2634865d2d1e719129d14397d
4
- data.tar.gz: 1ca194c1d755077d96edf29b4f349aa2dac1a683ddfb3405191ed4b338175f05
3
+ metadata.gz: bf13e09a87858c727d05450277632c42a9993205f9e3a2e272d64eb4d8365e93
4
+ data.tar.gz: 52ddabc3645dcb4ac635e3d6ab97662250bd5665abe45fcac6b0d652f7be4e8b
5
5
  SHA512:
6
- metadata.gz: 33fbcddcfd585290f71045311852b9641fa3b6be2f1df347a1d6c2389a350762579a45f141b7ad8105e2f00c7421865ae38263975647e89f28db7741d36a877f
7
- data.tar.gz: 3798623d8c33e8bc4952763962c40602e7b41aef1fa77d3f1bcdbca51d95b6ca87e29e21ffbbf6334fba82449470ca1622e55a2140d0e10b3de6c6e99a247258
6
+ metadata.gz: 6f469ffa42f801e498081d1a9c17c77a5fef3fd7d1c1787a1685079b7dd7e75d2ca6da7c085b6f27c972149116753006b9fa3ae2a6845c7ecd327269c444c337
7
+ data.tar.gz: 5e8488bb799a7a3a982409ffb8f9f31603325c986b11018fc2213c9f489d1c45f5e15770d081a0076195337de6bffd8525708a8ebe24d919563cf58ecc0ec461
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 13.4.0-beta.3 - 2025-01-17
4
+ * [#1514](https://github.com/stripe/stripe-ruby/pull/1514) Update generated code for beta
5
+
6
+
3
7
  ## 13.4.0-beta.2 - 2025-01-09
4
8
  * [#1504](https://github.com/stripe/stripe-ruby/pull/1504) Update generated code for beta
5
9
  * Add support for `close` method on resource `Treasury.FinancialAccount`
@@ -12,6 +16,14 @@
12
16
  * Add method parameter classes for all resources and service methods.
13
17
  * These changes are NOT breaking and are purely additive. The method parameter classes are not required, we still accept hashes as well as the new `RequestParams` classes. Any additional gated parameters are still available to pass via hash. Resource fields define publicly documented fields and other deserialized fields are still accessible.
14
18
 
19
+ ## 13.3.1 - 2025-01-13
20
+ * [#1512](https://github.com/stripe/stripe-ruby/pull/1512) Import global configuration for options not available on StripeClient options
21
+ * Fixes bug where `StripeClient` was not falling back to global options for options that are not available to be set per-client
22
+ * [#1516](https://github.com/stripe/stripe-ruby/pull/1516) ThinEvent reason and livemode
23
+ - Add `livemode` and optional `reason` fields to ThinEvent
24
+ * [#1518](https://github.com/stripe/stripe-ruby/pull/1518) Pin ubuntu version in Test action
25
+ * [#1508](https://github.com/stripe/stripe-ruby/pull/1508) Added pull request template
26
+
15
27
  ## 13.3.0 - 2024-12-18
16
28
  * [#1500](https://github.com/stripe/stripe-ruby/pull/1500) This release changes the pinned API version to `2024-12-18.acacia`.
17
29
 
data/CONTRIBUTING.md ADDED
@@ -0,0 +1,25 @@
1
+
2
+ # Contributing
3
+
4
+ We welcome bug reports, feature requests, and code contributions in a pull request.
5
+
6
+ For most pull requests, we request that you identify or create an associated issue that has the necessary context. We use these issues to reach agreement on an approach and save the PR author from having to redo work. Fixing typos or documentation issues likely do not need an issue; for any issue that introduces substantial code changes, changes the public interface, or if you aren't sure, please find or [create an issue](https://www.github.com/stripe/stripe-ruby/issues/new/choose).
7
+
8
+ ## Contributor License Agreement
9
+
10
+ All contributors must sign the Contributor License Agreement (CLA) before we can accept their contribution. If you have not yet signed the agreement, you will be given an option to do so when you open a pull request. You can then sign by clicking on the badge in the comment from @CLAassistant.
11
+
12
+ ## Generated code
13
+
14
+ This project has a combination of manually maintained code and code generated from our private code generator. If your contribution involves changes to generated code, please call this out in the issue or pull request as we will likely need to make a change to our code generator before accepting the contribution.
15
+
16
+ To identify files with purely generated code, look for the comment `File generated from our OpenAPI spec.` at the start of the file. Generated blocks of code within hand-written files will be between comments that say `The beginning of the section generated from our OpenAPI spec` and `The end of the section generated from our OpenAPI spec`.
17
+
18
+ ## Compatibility with supported language and runtime versions
19
+
20
+ This project supports [many different langauge and runtime versions](README.md#requirements) and we are unable to accept any contribution that does not work on _all_ supported versions. If, after discussing the approach in the associated issue, your change must use an API / feature that isn't available in all supported versions, please call this out explicitly in the issue or pull request so we can help figure out the best way forward.
21
+
22
+ ## Set up your dev environment
23
+
24
+ Please refer to this project's [README.md](README.md#development) for instructions on how to set up your development environment.
25
+
data/Makefile CHANGED
@@ -1,3 +1,5 @@
1
+ # NOTE: this file is deprecated and slated for deletion; prefer using the equivalent `just` commands.
2
+
1
3
  .PHONY: update-version codegen-format test ci-test
2
4
  update-version:
3
5
  @echo "$(VERSION)" > VERSION
data/OPENAPI_VERSION CHANGED
@@ -1 +1 @@
1
- v1436
1
+ v1454
data/README.md CHANGED
@@ -362,19 +362,22 @@ New features and bug fixes are released on the latest major version of the Strip
362
362
 
363
363
  ## Development
364
364
 
365
- The test suite depends on [stripe-mock], so make sure to fetch and run it from a
366
- background terminal ([stripe-mock's README][stripe-mock] also contains
367
- instructions for installing via Homebrew and other methods):
365
+ [Contribution guidelines for this project](CONTRIBUTING.md)
366
+
367
+ The test suite depends on [stripe-mock], so make sure to fetch and run it from a background terminal ([stripe-mock's README][stripe-mock] also contains instructions for installing via Homebrew and other methods):
368
368
 
369
369
  ```sh
370
370
  go install github.com/stripe/stripe-mock@latest
371
371
  stripe-mock
372
372
  ```
373
373
 
374
+ We use [just](https://github.com/casey/just) for common development tasks. You can install it or run the underlying commands directly (by copying them from the `justfile`). Common tasks include:
375
+
374
376
  Run all tests:
375
377
 
376
378
  ```sh
377
- bundle exec rake test
379
+ just test
380
+ # or: bundle exec rake test
378
381
  ```
379
382
 
380
383
  Run a single test suite:
@@ -392,13 +395,15 @@ bundle exec ruby -Ilib/ test/stripe/util_test.rb -n /should.convert.names.to.sym
392
395
  Run the linter:
393
396
 
394
397
  ```sh
395
- bundle exec rake rubocop
398
+ just lint
399
+ # or: bundle exec rubocop
396
400
  ```
397
401
 
398
402
  Update bundled CA certificates from the [Mozilla cURL release][curl]:
399
403
 
400
404
  ```sh
401
- bundle exec rake update_certs
405
+ just update-certs
406
+ # or: bundle exec rake update_certs
402
407
  ```
403
408
 
404
409
  Update the bundled [stripe-mock] by editing the version number found in
data/Rakefile CHANGED
@@ -8,11 +8,6 @@ Rake::TestTask.new do |t|
8
8
  t.pattern = "./test/**/*_test.rb"
9
9
  end
10
10
 
11
- if RUBY_VERSION >= "2.7.0"
12
- require "rubocop/rake_task"
13
- RuboCop::RakeTask.new
14
- end
15
-
16
11
  desc "Update bundled certs"
17
12
  task :update_certs do
18
13
  require "net/http"
data/VERSION CHANGED
@@ -1 +1 @@
1
- 13.4.0-beta.2
1
+ 13.4.0-beta.3
data/justfile ADDED
@@ -0,0 +1,43 @@
1
+ set quiet
2
+
3
+ import? '../sdk-codegen/utils.just'
4
+
5
+ _default:
6
+ just --list --unsorted
7
+
8
+ install *args:
9
+ bundle install {{ if is_dependency() == "true" {"--quiet"} else {""} }} {{ args }}
10
+
11
+ # ⭐ run all unit tests
12
+ test: install
13
+ bundle exec rake test
14
+
15
+ # check linting / formatting status of files
16
+ format-check *args: install
17
+ bundle exec rubocop {{ args }}
18
+ alias lint-check := format-check
19
+
20
+ # ⭐ check style & formatting for all files, fixing what we can
21
+ lint: (format-check "--autocorrect")
22
+
23
+ # NOTE: "-o /dev/null" is vital - rubocop has super noisy output and codegen will crash when formatting ruby if everything gets printed
24
+ # so, we send all its output to the void
25
+ # copy of `lint` with less output
26
+ format: (format-check "-o /dev/null --autocorrect")
27
+
28
+ update-certs: install
29
+ bundle exec rake update_certs
30
+
31
+ # run sorbet to check type definitions
32
+ typecheck: install
33
+ {{ if semver_matches(`ruby -e "puts RUBY_VERSION"`, ">=2.7") == "true" { \
34
+ "bundle exec srb tc" \
35
+ } else { \
36
+ "echo \"Ruby version < 2.7, skipping srb tc\"" \
37
+ } }}
38
+
39
+ # called by tooling
40
+ [private]
41
+ update-version version:
42
+ echo "{{ version }}" > VERSION
43
+ perl -pi -e 's|VERSION = "[.\-\w\d]+"|VERSION = "{{ version }}"|' lib/stripe/version.rb
@@ -3,6 +3,6 @@
3
3
 
4
4
  module Stripe
5
5
  module ApiVersion
6
- CURRENT = "2024-12-18.acacia"
6
+ CURRENT = "2025-01-27.acacia"
7
7
  end
8
8
  end
@@ -172,6 +172,8 @@ module Stripe
172
172
  attr_reader :oxxo_payments
173
173
  # The status of the P24 payments capability of the account, or whether the account can directly process P24 charges.
174
174
  attr_reader :p24_payments
175
+ # The status of the pay_by_bank payments capability of the account, or whether the account can directly process pay_by_bank charges.
176
+ attr_reader :pay_by_bank_payments
175
177
  # The status of the Payco capability of the account, or whether the account can directly process Payco payments.
176
178
  attr_reader :payco_payments
177
179
  # The status of the paynow payments capability of the account, or whether the account can directly process paynow charges.
@@ -1178,6 +1180,15 @@ module Stripe
1178
1180
  end
1179
1181
  end
1180
1182
 
1183
+ class PayByBankPayments < Stripe::RequestParams
1184
+ # 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.
1185
+ attr_accessor :requested
1186
+
1187
+ def initialize(requested: nil)
1188
+ @requested = requested
1189
+ end
1190
+ end
1191
+
1181
1192
  class PaycoPayments < Stripe::RequestParams
1182
1193
  # 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.
1183
1194
  attr_accessor :requested
@@ -1484,6 +1495,8 @@ module Stripe
1484
1495
  attr_accessor :oxxo_payments
1485
1496
  # The p24_payments capability.
1486
1497
  attr_accessor :p24_payments
1498
+ # The pay_by_bank_payments capability.
1499
+ attr_accessor :pay_by_bank_payments
1487
1500
  # The payco_payments capability.
1488
1501
  attr_accessor :payco_payments
1489
1502
  # The paynow_payments capability.
@@ -1577,6 +1590,7 @@ module Stripe
1577
1590
  naver_pay_payments: nil,
1578
1591
  oxxo_payments: nil,
1579
1592
  p24_payments: nil,
1593
+ pay_by_bank_payments: nil,
1580
1594
  payco_payments: nil,
1581
1595
  paynow_payments: nil,
1582
1596
  paypal_payments: nil,
@@ -1644,6 +1658,7 @@ module Stripe
1644
1658
  @naver_pay_payments = naver_pay_payments
1645
1659
  @oxxo_payments = oxxo_payments
1646
1660
  @p24_payments = p24_payments
1661
+ @pay_by_bank_payments = pay_by_bank_payments
1647
1662
  @payco_payments = payco_payments
1648
1663
  @paynow_payments = paynow_payments
1649
1664
  @paypal_payments = paypal_payments
@@ -1856,6 +1871,21 @@ module Stripe
1856
1871
  end
1857
1872
  end
1858
1873
 
1874
+ class DirectorshipDeclaration < Stripe::RequestParams
1875
+ # The Unix timestamp marking when the directorship declaration attestation was made.
1876
+ attr_accessor :date
1877
+ # The IP address from which the directorship declaration attestation was made.
1878
+ attr_accessor :ip
1879
+ # The user agent of the browser from which the directorship declaration attestation was made.
1880
+ attr_accessor :user_agent
1881
+
1882
+ def initialize(date: nil, ip: nil, user_agent: nil)
1883
+ @date = date
1884
+ @ip = ip
1885
+ @user_agent = user_agent
1886
+ end
1887
+ end
1888
+
1859
1889
  class OwnershipDeclaration < Stripe::RequestParams
1860
1890
  # The Unix timestamp marking when the beneficial owner attestation was made.
1861
1891
  attr_accessor :date
@@ -1898,6 +1928,8 @@ module Stripe
1898
1928
  attr_accessor :address_kanji
1899
1929
  # 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.
1900
1930
  attr_accessor :directors_provided
1931
+ # This hash is used to attest that the directors information provided to Stripe is both current and correct.
1932
+ attr_accessor :directorship_declaration
1901
1933
  # 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.
1902
1934
  attr_accessor :executives_provided
1903
1935
  # The export license ID number of the company, also referred as Import Export Code (India only).
@@ -1936,6 +1968,7 @@ module Stripe
1936
1968
  address_kana: nil,
1937
1969
  address_kanji: nil,
1938
1970
  directors_provided: nil,
1971
+ directorship_declaration: nil,
1939
1972
  executives_provided: nil,
1940
1973
  export_license_id: nil,
1941
1974
  export_purpose_code: nil,
@@ -1957,6 +1990,7 @@ module Stripe
1957
1990
  @address_kana = address_kana
1958
1991
  @address_kanji = address_kanji
1959
1992
  @directors_provided = directors_provided
1993
+ @directorship_declaration = directorship_declaration
1960
1994
  @executives_provided = executives_provided
1961
1995
  @export_license_id = export_license_id
1962
1996
  @export_purpose_code = export_purpose_code
@@ -2039,6 +2073,15 @@ module Stripe
2039
2073
  @files = files
2040
2074
  end
2041
2075
  end
2076
+
2077
+ class ProofOfUltimateBeneficialOwnership < Stripe::RequestParams
2078
+ # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
2079
+ attr_accessor :files
2080
+
2081
+ def initialize(files: nil)
2082
+ @files = files
2083
+ end
2084
+ end
2042
2085
  # 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.
2043
2086
  attr_accessor :bank_account_ownership_verification
2044
2087
  # One or more documents that demonstrate proof of a company's license to operate.
@@ -2053,6 +2096,8 @@ module Stripe
2053
2096
  attr_accessor :company_tax_id_verification
2054
2097
  # One or more documents showing the company’s proof of registration with the national business registry.
2055
2098
  attr_accessor :proof_of_registration
2099
+ # One or more documents that demonstrate proof of ultimate beneficial ownership.
2100
+ attr_accessor :proof_of_ultimate_beneficial_ownership
2056
2101
 
2057
2102
  def initialize(
2058
2103
  bank_account_ownership_verification: nil,
@@ -2061,7 +2106,8 @@ module Stripe
2061
2106
  company_ministerial_decree: nil,
2062
2107
  company_registration_verification: nil,
2063
2108
  company_tax_id_verification: nil,
2064
- proof_of_registration: nil
2109
+ proof_of_registration: nil,
2110
+ proof_of_ultimate_beneficial_ownership: nil
2065
2111
  )
2066
2112
  @bank_account_ownership_verification = bank_account_ownership_verification
2067
2113
  @company_license = company_license
@@ -2070,6 +2116,7 @@ module Stripe
2070
2116
  @company_registration_verification = company_registration_verification
2071
2117
  @company_tax_id_verification = company_tax_id_verification
2072
2118
  @proof_of_registration = proof_of_registration
2119
+ @proof_of_ultimate_beneficial_ownership = proof_of_ultimate_beneficial_ownership
2073
2120
  end
2074
2121
  end
2075
2122
 
@@ -3316,6 +3363,15 @@ module Stripe
3316
3363
  end
3317
3364
  end
3318
3365
 
3366
+ class PayByBankPayments < Stripe::RequestParams
3367
+ # 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.
3368
+ attr_accessor :requested
3369
+
3370
+ def initialize(requested: nil)
3371
+ @requested = requested
3372
+ end
3373
+ end
3374
+
3319
3375
  class PaycoPayments < Stripe::RequestParams
3320
3376
  # 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.
3321
3377
  attr_accessor :requested
@@ -3622,6 +3678,8 @@ module Stripe
3622
3678
  attr_accessor :oxxo_payments
3623
3679
  # The p24_payments capability.
3624
3680
  attr_accessor :p24_payments
3681
+ # The pay_by_bank_payments capability.
3682
+ attr_accessor :pay_by_bank_payments
3625
3683
  # The payco_payments capability.
3626
3684
  attr_accessor :payco_payments
3627
3685
  # The paynow_payments capability.
@@ -3715,6 +3773,7 @@ module Stripe
3715
3773
  naver_pay_payments: nil,
3716
3774
  oxxo_payments: nil,
3717
3775
  p24_payments: nil,
3776
+ pay_by_bank_payments: nil,
3718
3777
  payco_payments: nil,
3719
3778
  paynow_payments: nil,
3720
3779
  paypal_payments: nil,
@@ -3782,6 +3841,7 @@ module Stripe
3782
3841
  @naver_pay_payments = naver_pay_payments
3783
3842
  @oxxo_payments = oxxo_payments
3784
3843
  @p24_payments = p24_payments
3844
+ @pay_by_bank_payments = pay_by_bank_payments
3785
3845
  @payco_payments = payco_payments
3786
3846
  @paynow_payments = paynow_payments
3787
3847
  @paypal_payments = paypal_payments
@@ -3994,6 +4054,21 @@ module Stripe
3994
4054
  end
3995
4055
  end
3996
4056
 
4057
+ class DirectorshipDeclaration < Stripe::RequestParams
4058
+ # The Unix timestamp marking when the directorship declaration attestation was made.
4059
+ attr_accessor :date
4060
+ # The IP address from which the directorship declaration attestation was made.
4061
+ attr_accessor :ip
4062
+ # The user agent of the browser from which the directorship declaration attestation was made.
4063
+ attr_accessor :user_agent
4064
+
4065
+ def initialize(date: nil, ip: nil, user_agent: nil)
4066
+ @date = date
4067
+ @ip = ip
4068
+ @user_agent = user_agent
4069
+ end
4070
+ end
4071
+
3997
4072
  class OwnershipDeclaration < Stripe::RequestParams
3998
4073
  # The Unix timestamp marking when the beneficial owner attestation was made.
3999
4074
  attr_accessor :date
@@ -4036,6 +4111,8 @@ module Stripe
4036
4111
  attr_accessor :address_kanji
4037
4112
  # 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.
4038
4113
  attr_accessor :directors_provided
4114
+ # This hash is used to attest that the directors information provided to Stripe is both current and correct.
4115
+ attr_accessor :directorship_declaration
4039
4116
  # 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.
4040
4117
  attr_accessor :executives_provided
4041
4118
  # The export license ID number of the company, also referred as Import Export Code (India only).
@@ -4074,6 +4151,7 @@ module Stripe
4074
4151
  address_kana: nil,
4075
4152
  address_kanji: nil,
4076
4153
  directors_provided: nil,
4154
+ directorship_declaration: nil,
4077
4155
  executives_provided: nil,
4078
4156
  export_license_id: nil,
4079
4157
  export_purpose_code: nil,
@@ -4095,6 +4173,7 @@ module Stripe
4095
4173
  @address_kana = address_kana
4096
4174
  @address_kanji = address_kanji
4097
4175
  @directors_provided = directors_provided
4176
+ @directorship_declaration = directorship_declaration
4098
4177
  @executives_provided = executives_provided
4099
4178
  @export_license_id = export_license_id
4100
4179
  @export_purpose_code = export_purpose_code
@@ -4258,6 +4337,15 @@ module Stripe
4258
4337
  @files = files
4259
4338
  end
4260
4339
  end
4340
+
4341
+ class ProofOfUltimateBeneficialOwnership < Stripe::RequestParams
4342
+ # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
4343
+ attr_accessor :files
4344
+
4345
+ def initialize(files: nil)
4346
+ @files = files
4347
+ end
4348
+ end
4261
4349
  # 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.
4262
4350
  attr_accessor :bank_account_ownership_verification
4263
4351
  # One or more documents that demonstrate proof of a company's license to operate.
@@ -4272,6 +4360,8 @@ module Stripe
4272
4360
  attr_accessor :company_tax_id_verification
4273
4361
  # One or more documents showing the company’s proof of registration with the national business registry.
4274
4362
  attr_accessor :proof_of_registration
4363
+ # One or more documents that demonstrate proof of ultimate beneficial ownership.
4364
+ attr_accessor :proof_of_ultimate_beneficial_ownership
4275
4365
 
4276
4366
  def initialize(
4277
4367
  bank_account_ownership_verification: nil,
@@ -4280,7 +4370,8 @@ module Stripe
4280
4370
  company_ministerial_decree: nil,
4281
4371
  company_registration_verification: nil,
4282
4372
  company_tax_id_verification: nil,
4283
- proof_of_registration: nil
4373
+ proof_of_registration: nil,
4374
+ proof_of_ultimate_beneficial_ownership: nil
4284
4375
  )
4285
4376
  @bank_account_ownership_verification = bank_account_ownership_verification
4286
4377
  @company_license = company_license
@@ -4289,6 +4380,7 @@ module Stripe
4289
4380
  @company_registration_verification = company_registration_verification
4290
4381
  @company_tax_id_verification = company_tax_id_verification
4291
4382
  @proof_of_registration = proof_of_registration
4383
+ @proof_of_ultimate_beneficial_ownership = proof_of_ultimate_beneficial_ownership
4292
4384
  end
4293
4385
  end
4294
4386
 
@@ -95,6 +95,70 @@ module Stripe
95
95
  attr_reader :features
96
96
  end
97
97
 
98
+ class FinancialAccount < Stripe::StripeObject
99
+ class Features < Stripe::StripeObject
100
+ # 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.
101
+ attr_reader :disable_stripe_user_authentication
102
+ # Whether to allow external accounts to be linked for money transfer.
103
+ attr_reader :external_account_collection
104
+ # Whether to allow sending money.
105
+ attr_reader :send_money
106
+ # Whether to allow transferring balance.
107
+ attr_reader :transfer_balance
108
+ end
109
+ # Whether the embedded component is enabled.
110
+ attr_reader :enabled
111
+ # Attribute for field features
112
+ attr_reader :features
113
+ end
114
+
115
+ class FinancialAccountTransactions < Stripe::StripeObject
116
+ class Features < Stripe::StripeObject
117
+ # Whether to allow card spend dispute management features.
118
+ attr_reader :card_spend_dispute_management
119
+ end
120
+ # Whether the embedded component is enabled.
121
+ attr_reader :enabled
122
+ # Attribute for field features
123
+ attr_reader :features
124
+ end
125
+
126
+ class IssuingCard < Stripe::StripeObject
127
+ class Features < Stripe::StripeObject
128
+ # Whether to allow card management features.
129
+ attr_reader :card_management
130
+ # Whether to allow card spend dispute management features.
131
+ attr_reader :card_spend_dispute_management
132
+ # Whether to allow cardholder management features.
133
+ attr_reader :cardholder_management
134
+ # Whether to allow spend control management features.
135
+ attr_reader :spend_control_management
136
+ end
137
+ # Whether the embedded component is enabled.
138
+ attr_reader :enabled
139
+ # Attribute for field features
140
+ attr_reader :features
141
+ end
142
+
143
+ class IssuingCardsList < Stripe::StripeObject
144
+ class Features < Stripe::StripeObject
145
+ # Whether to allow card management features.
146
+ attr_reader :card_management
147
+ # Whether to allow card spend dispute management features.
148
+ attr_reader :card_spend_dispute_management
149
+ # Whether to allow cardholder management features.
150
+ attr_reader :cardholder_management
151
+ # 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.
152
+ attr_reader :disable_stripe_user_authentication
153
+ # Whether to allow spend control management features.
154
+ attr_reader :spend_control_management
155
+ end
156
+ # Whether the embedded component is enabled.
157
+ attr_reader :enabled
158
+ # Attribute for field features
159
+ attr_reader :features
160
+ end
161
+
98
162
  class NotificationBanner < Stripe::StripeObject
99
163
  class Features < Stripe::StripeObject
100
164
  # 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.
@@ -198,6 +262,14 @@ module Stripe
198
262
  attr_reader :capital_financing_promotion
199
263
  # Attribute for field documents
200
264
  attr_reader :documents
265
+ # Attribute for field financial_account
266
+ attr_reader :financial_account
267
+ # Attribute for field financial_account_transactions
268
+ attr_reader :financial_account_transactions
269
+ # Attribute for field issuing_card
270
+ attr_reader :issuing_card
271
+ # Attribute for field issuing_cards_list
272
+ attr_reader :issuing_cards_list
201
273
  # Attribute for field notification_banner
202
274
  attr_reader :notification_banner
203
275
  # Attribute for field payment_details
@@ -763,6 +835,20 @@ module Stripe
763
835
  @features = features
764
836
  end
765
837
  end
838
+
839
+ class TaxThresholdMonitoring < Stripe::RequestParams
840
+ class Features < Stripe::RequestParams
841
+ end
842
+ # Whether the embedded component is enabled.
843
+ attr_accessor :enabled
844
+ # The list of features enabled in the embedded component.
845
+ attr_accessor :features
846
+
847
+ def initialize(enabled: nil, features: nil)
848
+ @enabled = enabled
849
+ @features = features
850
+ end
851
+ end
766
852
  # Configuration for the account management embedded component.
767
853
  attr_accessor :account_management
768
854
  # Configuration for the account onboarding embedded component.
@@ -783,13 +869,13 @@ module Stripe
783
869
  attr_accessor :capital_overview
784
870
  # Configuration for the documents embedded component.
785
871
  attr_accessor :documents
786
- # Configuration for the financial account component.
872
+ # Configuration for the financial account embedded component.
787
873
  attr_accessor :financial_account
788
- # Configuration for the financial account transactions component.
874
+ # Configuration for the financial account transactions embedded component.
789
875
  attr_accessor :financial_account_transactions
790
- # Configuration for the issuing card component.
876
+ # Configuration for the issuing card embedded component.
791
877
  attr_accessor :issuing_card
792
- # Configuration for the issuing cards list component.
878
+ # Configuration for the issuing cards list embedded component.
793
879
  attr_accessor :issuing_cards_list
794
880
  # Configuration for the notification banner embedded component.
795
881
  attr_accessor :notification_banner
@@ -811,6 +897,8 @@ module Stripe
811
897
  attr_accessor :tax_registrations
812
898
  # Configuration for the tax settings embedded component.
813
899
  attr_accessor :tax_settings
900
+ # Configuration for the tax threshold monitoring embedded component.
901
+ attr_accessor :tax_threshold_monitoring
814
902
 
815
903
  def initialize(
816
904
  account_management: nil,
@@ -836,7 +924,8 @@ module Stripe
836
924
  recipients: nil,
837
925
  reporting_chart: nil,
838
926
  tax_registrations: nil,
839
- tax_settings: nil
927
+ tax_settings: nil,
928
+ tax_threshold_monitoring: nil
840
929
  )
841
930
  @account_management = account_management
842
931
  @account_onboarding = account_onboarding
@@ -862,6 +951,7 @@ module Stripe
862
951
  @reporting_chart = reporting_chart
863
952
  @tax_registrations = tax_registrations
864
953
  @tax_settings = tax_settings
954
+ @tax_threshold_monitoring = tax_threshold_monitoring
865
955
  end
866
956
  end
867
957
  # The identifier of the account to create an Account Session for.
@@ -202,7 +202,7 @@ module Stripe
202
202
  attr_accessor :enabled
203
203
  # Whether to cancel subscriptions immediately or at the end of the billing period.
204
204
  attr_accessor :mode
205
- # 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.
205
+ # 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.
206
206
  attr_accessor :proration_behavior
207
207
 
208
208
  def initialize(
@@ -410,7 +410,7 @@ module Stripe
410
410
  attr_accessor :enabled
411
411
  # Whether to cancel subscriptions immediately or at the end of the billing period.
412
412
  attr_accessor :mode
413
- # 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.
413
+ # 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.
414
414
  attr_accessor :proration_behavior
415
415
 
416
416
  def initialize(
@@ -831,6 +831,8 @@ module Stripe
831
831
  attr_reader :verified_name
832
832
  end
833
833
 
834
+ class PayByBank < Stripe::StripeObject; end
835
+
834
836
  class Payco < Stripe::StripeObject
835
837
  # A unique identifier for the buyer as determined by the local payment processor.
836
838
  attr_reader :buyer_id
@@ -1125,6 +1127,8 @@ module Stripe
1125
1127
  attr_reader :oxxo
1126
1128
  # Attribute for field p24
1127
1129
  attr_reader :p24
1130
+ # Attribute for field pay_by_bank
1131
+ attr_reader :pay_by_bank
1128
1132
  # Attribute for field payco
1129
1133
  attr_reader :payco
1130
1134
  # Attribute for field paynow