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
@@ -110,6 +110,15 @@ module Stripe
110
110
  attr_reader :smart_tip_threshold
111
111
  end
112
112
 
113
+ class Jpy < Stripe::StripeObject
114
+ # Fixed amounts displayed when collecting a tip
115
+ attr_reader :fixed_amounts
116
+ # Percentages displayed when collecting a tip
117
+ attr_reader :percentages
118
+ # Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
119
+ attr_reader :smart_tip_threshold
120
+ end
121
+
113
122
  class Myr < Stripe::StripeObject
114
123
  # Fixed amounts displayed when collecting a tip
115
124
  attr_reader :fixed_amounts
@@ -188,6 +197,8 @@ module Stripe
188
197
  attr_reader :gbp
189
198
  # Attribute for field hkd
190
199
  attr_reader :hkd
200
+ # Attribute for field jpy
201
+ attr_reader :jpy
191
202
  # Attribute for field myr
192
203
  attr_reader :myr
193
204
  # Attribute for field nok
@@ -382,6 +393,21 @@ module Stripe
382
393
  end
383
394
  end
384
395
 
396
+ class Jpy < Stripe::RequestParams
397
+ # Fixed amounts displayed when collecting a tip
398
+ attr_accessor :fixed_amounts
399
+ # Percentages displayed when collecting a tip
400
+ attr_accessor :percentages
401
+ # Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
402
+ attr_accessor :smart_tip_threshold
403
+
404
+ def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil)
405
+ @fixed_amounts = fixed_amounts
406
+ @percentages = percentages
407
+ @smart_tip_threshold = smart_tip_threshold
408
+ end
409
+ end
410
+
385
411
  class Myr < Stripe::RequestParams
386
412
  # Fixed amounts displayed when collecting a tip
387
413
  attr_accessor :fixed_amounts
@@ -502,6 +528,8 @@ module Stripe
502
528
  attr_accessor :gbp
503
529
  # Tipping configuration for HKD
504
530
  attr_accessor :hkd
531
+ # Tipping configuration for JPY
532
+ attr_accessor :jpy
505
533
  # Tipping configuration for MYR
506
534
  attr_accessor :myr
507
535
  # Tipping configuration for NOK
@@ -526,6 +554,7 @@ module Stripe
526
554
  eur: nil,
527
555
  gbp: nil,
528
556
  hkd: nil,
557
+ jpy: nil,
529
558
  myr: nil,
530
559
  nok: nil,
531
560
  nzd: nil,
@@ -542,6 +571,7 @@ module Stripe
542
571
  @eur = eur
543
572
  @gbp = gbp
544
573
  @hkd = hkd
574
+ @jpy = jpy
545
575
  @myr = myr
546
576
  @nok = nok
547
577
  @nzd = nzd
@@ -786,6 +816,21 @@ module Stripe
786
816
  end
787
817
  end
788
818
 
819
+ class Jpy < Stripe::RequestParams
820
+ # Fixed amounts displayed when collecting a tip
821
+ attr_accessor :fixed_amounts
822
+ # Percentages displayed when collecting a tip
823
+ attr_accessor :percentages
824
+ # Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
825
+ attr_accessor :smart_tip_threshold
826
+
827
+ def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil)
828
+ @fixed_amounts = fixed_amounts
829
+ @percentages = percentages
830
+ @smart_tip_threshold = smart_tip_threshold
831
+ end
832
+ end
833
+
789
834
  class Myr < Stripe::RequestParams
790
835
  # Fixed amounts displayed when collecting a tip
791
836
  attr_accessor :fixed_amounts
@@ -906,6 +951,8 @@ module Stripe
906
951
  attr_accessor :gbp
907
952
  # Tipping configuration for HKD
908
953
  attr_accessor :hkd
954
+ # Tipping configuration for JPY
955
+ attr_accessor :jpy
909
956
  # Tipping configuration for MYR
910
957
  attr_accessor :myr
911
958
  # Tipping configuration for NOK
@@ -930,6 +977,7 @@ module Stripe
930
977
  eur: nil,
931
978
  gbp: nil,
932
979
  hkd: nil,
980
+ jpy: nil,
933
981
  myr: nil,
934
982
  nok: nil,
935
983
  nzd: nil,
@@ -946,6 +994,7 @@ module Stripe
946
994
  @eur = eur
947
995
  @gbp = gbp
948
996
  @hkd = hkd
997
+ @jpy = jpy
949
998
  @myr = myr
950
999
  @nok = nok
951
1000
  @nzd = nzd
@@ -143,6 +143,21 @@ module Stripe
143
143
  end
144
144
  end
145
145
 
146
+ class DirectorshipDeclaration < Stripe::RequestParams
147
+ # The Unix timestamp marking when the directorship declaration attestation was made.
148
+ attr_accessor :date
149
+ # The IP address from which the directorship declaration attestation was made.
150
+ attr_accessor :ip
151
+ # The user agent of the browser from which the directorship declaration attestation was made.
152
+ attr_accessor :user_agent
153
+
154
+ def initialize(date: nil, ip: nil, user_agent: nil)
155
+ @date = date
156
+ @ip = ip
157
+ @user_agent = user_agent
158
+ end
159
+ end
160
+
146
161
  class OwnershipDeclaration < Stripe::RequestParams
147
162
  # The Unix timestamp marking when the beneficial owner attestation was made.
148
163
  attr_accessor :date
@@ -185,6 +200,8 @@ module Stripe
185
200
  attr_accessor :address_kanji
186
201
  # 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.
187
202
  attr_accessor :directors_provided
203
+ # This hash is used to attest that the directors information provided to Stripe is both current and correct.
204
+ attr_accessor :directorship_declaration
188
205
  # 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.
189
206
  attr_accessor :executives_provided
190
207
  # The export license ID number of the company, also referred as Import Export Code (India only).
@@ -225,6 +242,7 @@ module Stripe
225
242
  address_kana: nil,
226
243
  address_kanji: nil,
227
244
  directors_provided: nil,
245
+ directorship_declaration: nil,
228
246
  executives_provided: nil,
229
247
  export_license_id: nil,
230
248
  export_purpose_code: nil,
@@ -247,6 +265,7 @@ module Stripe
247
265
  @address_kana = address_kana
248
266
  @address_kanji = address_kanji
249
267
  @directors_provided = directors_provided
268
+ @directorship_declaration = directorship_declaration
250
269
  @executives_provided = executives_provided
251
270
  @export_license_id = export_license_id
252
271
  @export_purpose_code = export_purpose_code
@@ -539,6 +539,15 @@ module Stripe
539
539
  end
540
540
  end
541
541
 
542
+ class PayByBankPayments < Stripe::RequestParams
543
+ # 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.
544
+ attr_accessor :requested
545
+
546
+ def initialize(requested: nil)
547
+ @requested = requested
548
+ end
549
+ end
550
+
542
551
  class PaycoPayments < Stripe::RequestParams
543
552
  # 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.
544
553
  attr_accessor :requested
@@ -845,6 +854,8 @@ module Stripe
845
854
  attr_accessor :oxxo_payments
846
855
  # The p24_payments capability.
847
856
  attr_accessor :p24_payments
857
+ # The pay_by_bank_payments capability.
858
+ attr_accessor :pay_by_bank_payments
848
859
  # The payco_payments capability.
849
860
  attr_accessor :payco_payments
850
861
  # The paynow_payments capability.
@@ -938,6 +949,7 @@ module Stripe
938
949
  naver_pay_payments: nil,
939
950
  oxxo_payments: nil,
940
951
  p24_payments: nil,
952
+ pay_by_bank_payments: nil,
941
953
  payco_payments: nil,
942
954
  paynow_payments: nil,
943
955
  paypal_payments: nil,
@@ -1005,6 +1017,7 @@ module Stripe
1005
1017
  @naver_pay_payments = naver_pay_payments
1006
1018
  @oxxo_payments = oxxo_payments
1007
1019
  @p24_payments = p24_payments
1020
+ @pay_by_bank_payments = pay_by_bank_payments
1008
1021
  @payco_payments = payco_payments
1009
1022
  @paynow_payments = paynow_payments
1010
1023
  @paypal_payments = paypal_payments
@@ -1217,6 +1230,21 @@ module Stripe
1217
1230
  end
1218
1231
  end
1219
1232
 
1233
+ class DirectorshipDeclaration < Stripe::RequestParams
1234
+ # The Unix timestamp marking when the directorship declaration attestation was made.
1235
+ attr_accessor :date
1236
+ # The IP address from which the directorship declaration attestation was made.
1237
+ attr_accessor :ip
1238
+ # The user agent of the browser from which the directorship declaration attestation was made.
1239
+ attr_accessor :user_agent
1240
+
1241
+ def initialize(date: nil, ip: nil, user_agent: nil)
1242
+ @date = date
1243
+ @ip = ip
1244
+ @user_agent = user_agent
1245
+ end
1246
+ end
1247
+
1220
1248
  class OwnershipDeclaration < Stripe::RequestParams
1221
1249
  # The Unix timestamp marking when the beneficial owner attestation was made.
1222
1250
  attr_accessor :date
@@ -1259,6 +1287,8 @@ module Stripe
1259
1287
  attr_accessor :address_kanji
1260
1288
  # 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.
1261
1289
  attr_accessor :directors_provided
1290
+ # This hash is used to attest that the directors information provided to Stripe is both current and correct.
1291
+ attr_accessor :directorship_declaration
1262
1292
  # 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.
1263
1293
  attr_accessor :executives_provided
1264
1294
  # The export license ID number of the company, also referred as Import Export Code (India only).
@@ -1297,6 +1327,7 @@ module Stripe
1297
1327
  address_kana: nil,
1298
1328
  address_kanji: nil,
1299
1329
  directors_provided: nil,
1330
+ directorship_declaration: nil,
1300
1331
  executives_provided: nil,
1301
1332
  export_license_id: nil,
1302
1333
  export_purpose_code: nil,
@@ -1318,6 +1349,7 @@ module Stripe
1318
1349
  @address_kana = address_kana
1319
1350
  @address_kanji = address_kanji
1320
1351
  @directors_provided = directors_provided
1352
+ @directorship_declaration = directorship_declaration
1321
1353
  @executives_provided = executives_provided
1322
1354
  @export_license_id = export_license_id
1323
1355
  @export_purpose_code = export_purpose_code
@@ -1400,6 +1432,15 @@ module Stripe
1400
1432
  @files = files
1401
1433
  end
1402
1434
  end
1435
+
1436
+ class ProofOfUltimateBeneficialOwnership < Stripe::RequestParams
1437
+ # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
1438
+ attr_accessor :files
1439
+
1440
+ def initialize(files: nil)
1441
+ @files = files
1442
+ end
1443
+ end
1403
1444
  # 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.
1404
1445
  attr_accessor :bank_account_ownership_verification
1405
1446
  # One or more documents that demonstrate proof of a company's license to operate.
@@ -1414,6 +1455,8 @@ module Stripe
1414
1455
  attr_accessor :company_tax_id_verification
1415
1456
  # One or more documents showing the company’s proof of registration with the national business registry.
1416
1457
  attr_accessor :proof_of_registration
1458
+ # One or more documents that demonstrate proof of ultimate beneficial ownership.
1459
+ attr_accessor :proof_of_ultimate_beneficial_ownership
1417
1460
 
1418
1461
  def initialize(
1419
1462
  bank_account_ownership_verification: nil,
@@ -1422,7 +1465,8 @@ module Stripe
1422
1465
  company_ministerial_decree: nil,
1423
1466
  company_registration_verification: nil,
1424
1467
  company_tax_id_verification: nil,
1425
- proof_of_registration: nil
1468
+ proof_of_registration: nil,
1469
+ proof_of_ultimate_beneficial_ownership: nil
1426
1470
  )
1427
1471
  @bank_account_ownership_verification = bank_account_ownership_verification
1428
1472
  @company_license = company_license
@@ -1431,6 +1475,7 @@ module Stripe
1431
1475
  @company_registration_verification = company_registration_verification
1432
1476
  @company_tax_id_verification = company_tax_id_verification
1433
1477
  @proof_of_registration = proof_of_registration
1478
+ @proof_of_ultimate_beneficial_ownership = proof_of_ultimate_beneficial_ownership
1434
1479
  end
1435
1480
  end
1436
1481
 
@@ -2686,6 +2731,15 @@ module Stripe
2686
2731
  end
2687
2732
  end
2688
2733
 
2734
+ class PayByBankPayments < Stripe::RequestParams
2735
+ # 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.
2736
+ attr_accessor :requested
2737
+
2738
+ def initialize(requested: nil)
2739
+ @requested = requested
2740
+ end
2741
+ end
2742
+
2689
2743
  class PaycoPayments < Stripe::RequestParams
2690
2744
  # 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.
2691
2745
  attr_accessor :requested
@@ -2992,6 +3046,8 @@ module Stripe
2992
3046
  attr_accessor :oxxo_payments
2993
3047
  # The p24_payments capability.
2994
3048
  attr_accessor :p24_payments
3049
+ # The pay_by_bank_payments capability.
3050
+ attr_accessor :pay_by_bank_payments
2995
3051
  # The payco_payments capability.
2996
3052
  attr_accessor :payco_payments
2997
3053
  # The paynow_payments capability.
@@ -3085,6 +3141,7 @@ module Stripe
3085
3141
  naver_pay_payments: nil,
3086
3142
  oxxo_payments: nil,
3087
3143
  p24_payments: nil,
3144
+ pay_by_bank_payments: nil,
3088
3145
  payco_payments: nil,
3089
3146
  paynow_payments: nil,
3090
3147
  paypal_payments: nil,
@@ -3152,6 +3209,7 @@ module Stripe
3152
3209
  @naver_pay_payments = naver_pay_payments
3153
3210
  @oxxo_payments = oxxo_payments
3154
3211
  @p24_payments = p24_payments
3212
+ @pay_by_bank_payments = pay_by_bank_payments
3155
3213
  @payco_payments = payco_payments
3156
3214
  @paynow_payments = paynow_payments
3157
3215
  @paypal_payments = paypal_payments
@@ -3364,6 +3422,21 @@ module Stripe
3364
3422
  end
3365
3423
  end
3366
3424
 
3425
+ class DirectorshipDeclaration < Stripe::RequestParams
3426
+ # The Unix timestamp marking when the directorship declaration attestation was made.
3427
+ attr_accessor :date
3428
+ # The IP address from which the directorship declaration attestation was made.
3429
+ attr_accessor :ip
3430
+ # The user agent of the browser from which the directorship declaration attestation was made.
3431
+ attr_accessor :user_agent
3432
+
3433
+ def initialize(date: nil, ip: nil, user_agent: nil)
3434
+ @date = date
3435
+ @ip = ip
3436
+ @user_agent = user_agent
3437
+ end
3438
+ end
3439
+
3367
3440
  class OwnershipDeclaration < Stripe::RequestParams
3368
3441
  # The Unix timestamp marking when the beneficial owner attestation was made.
3369
3442
  attr_accessor :date
@@ -3406,6 +3479,8 @@ module Stripe
3406
3479
  attr_accessor :address_kanji
3407
3480
  # 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.
3408
3481
  attr_accessor :directors_provided
3482
+ # This hash is used to attest that the directors information provided to Stripe is both current and correct.
3483
+ attr_accessor :directorship_declaration
3409
3484
  # 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.
3410
3485
  attr_accessor :executives_provided
3411
3486
  # The export license ID number of the company, also referred as Import Export Code (India only).
@@ -3444,6 +3519,7 @@ module Stripe
3444
3519
  address_kana: nil,
3445
3520
  address_kanji: nil,
3446
3521
  directors_provided: nil,
3522
+ directorship_declaration: nil,
3447
3523
  executives_provided: nil,
3448
3524
  export_license_id: nil,
3449
3525
  export_purpose_code: nil,
@@ -3465,6 +3541,7 @@ module Stripe
3465
3541
  @address_kana = address_kana
3466
3542
  @address_kanji = address_kanji
3467
3543
  @directors_provided = directors_provided
3544
+ @directorship_declaration = directorship_declaration
3468
3545
  @executives_provided = executives_provided
3469
3546
  @export_license_id = export_license_id
3470
3547
  @export_purpose_code = export_purpose_code
@@ -3628,6 +3705,15 @@ module Stripe
3628
3705
  @files = files
3629
3706
  end
3630
3707
  end
3708
+
3709
+ class ProofOfUltimateBeneficialOwnership < Stripe::RequestParams
3710
+ # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
3711
+ attr_accessor :files
3712
+
3713
+ def initialize(files: nil)
3714
+ @files = files
3715
+ end
3716
+ end
3631
3717
  # 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.
3632
3718
  attr_accessor :bank_account_ownership_verification
3633
3719
  # One or more documents that demonstrate proof of a company's license to operate.
@@ -3642,6 +3728,8 @@ module Stripe
3642
3728
  attr_accessor :company_tax_id_verification
3643
3729
  # One or more documents showing the company’s proof of registration with the national business registry.
3644
3730
  attr_accessor :proof_of_registration
3731
+ # One or more documents that demonstrate proof of ultimate beneficial ownership.
3732
+ attr_accessor :proof_of_ultimate_beneficial_ownership
3645
3733
 
3646
3734
  def initialize(
3647
3735
  bank_account_ownership_verification: nil,
@@ -3650,7 +3738,8 @@ module Stripe
3650
3738
  company_ministerial_decree: nil,
3651
3739
  company_registration_verification: nil,
3652
3740
  company_tax_id_verification: nil,
3653
- proof_of_registration: nil
3741
+ proof_of_registration: nil,
3742
+ proof_of_ultimate_beneficial_ownership: nil
3654
3743
  )
3655
3744
  @bank_account_ownership_verification = bank_account_ownership_verification
3656
3745
  @company_license = company_license
@@ -3659,6 +3748,7 @@ module Stripe
3659
3748
  @company_registration_verification = company_registration_verification
3660
3749
  @company_tax_id_verification = company_tax_id_verification
3661
3750
  @proof_of_registration = proof_of_registration
3751
+ @proof_of_ultimate_beneficial_ownership = proof_of_ultimate_beneficial_ownership
3662
3752
  end
3663
3753
  end
3664
3754
 
@@ -552,6 +552,20 @@ module Stripe
552
552
  @features = features
553
553
  end
554
554
  end
555
+
556
+ class TaxThresholdMonitoring < Stripe::RequestParams
557
+ class Features < Stripe::RequestParams
558
+ end
559
+ # Whether the embedded component is enabled.
560
+ attr_accessor :enabled
561
+ # The list of features enabled in the embedded component.
562
+ attr_accessor :features
563
+
564
+ def initialize(enabled: nil, features: nil)
565
+ @enabled = enabled
566
+ @features = features
567
+ end
568
+ end
555
569
  # Configuration for the account management embedded component.
556
570
  attr_accessor :account_management
557
571
  # Configuration for the account onboarding embedded component.
@@ -572,13 +586,13 @@ module Stripe
572
586
  attr_accessor :capital_overview
573
587
  # Configuration for the documents embedded component.
574
588
  attr_accessor :documents
575
- # Configuration for the financial account component.
589
+ # Configuration for the financial account embedded component.
576
590
  attr_accessor :financial_account
577
- # Configuration for the financial account transactions component.
591
+ # Configuration for the financial account transactions embedded component.
578
592
  attr_accessor :financial_account_transactions
579
- # Configuration for the issuing card component.
593
+ # Configuration for the issuing card embedded component.
580
594
  attr_accessor :issuing_card
581
- # Configuration for the issuing cards list component.
595
+ # Configuration for the issuing cards list embedded component.
582
596
  attr_accessor :issuing_cards_list
583
597
  # Configuration for the notification banner embedded component.
584
598
  attr_accessor :notification_banner
@@ -600,6 +614,8 @@ module Stripe
600
614
  attr_accessor :tax_registrations
601
615
  # Configuration for the tax settings embedded component.
602
616
  attr_accessor :tax_settings
617
+ # Configuration for the tax threshold monitoring embedded component.
618
+ attr_accessor :tax_threshold_monitoring
603
619
 
604
620
  def initialize(
605
621
  account_management: nil,
@@ -625,7 +641,8 @@ module Stripe
625
641
  recipients: nil,
626
642
  reporting_chart: nil,
627
643
  tax_registrations: nil,
628
- tax_settings: nil
644
+ tax_settings: nil,
645
+ tax_threshold_monitoring: nil
629
646
  )
630
647
  @account_management = account_management
631
648
  @account_onboarding = account_onboarding
@@ -651,6 +668,7 @@ module Stripe
651
668
  @reporting_chart = reporting_chart
652
669
  @tax_registrations = tax_registrations
653
670
  @tax_settings = tax_settings
671
+ @tax_threshold_monitoring = tax_threshold_monitoring
654
672
  end
655
673
  end
656
674
  # The identifier of the account to create an Account Session for.
@@ -100,7 +100,7 @@ module Stripe
100
100
  attr_accessor :enabled
101
101
  # Whether to cancel subscriptions immediately or at the end of the billing period.
102
102
  attr_accessor :mode
103
- # 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.
103
+ # 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.
104
104
  attr_accessor :proration_behavior
105
105
 
106
106
  def initialize(
@@ -308,7 +308,7 @@ module Stripe
308
308
  attr_accessor :enabled
309
309
  # Whether to cancel subscriptions immediately or at the end of the billing period.
310
310
  attr_accessor :mode
311
- # 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.
311
+ # 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.
312
312
  attr_accessor :proration_behavior
313
313
 
314
314
  def initialize(
@@ -1266,6 +1266,9 @@ module Stripe
1266
1266
  end
1267
1267
  end
1268
1268
 
1269
+ class PayByBank < Stripe::RequestParams
1270
+ end
1271
+
1269
1272
  class Payco < Stripe::RequestParams
1270
1273
  # Controls when the funds will be captured from the customer's account.
1271
1274
  attr_accessor :capture_method
@@ -1578,6 +1581,8 @@ module Stripe
1578
1581
  attr_accessor :oxxo
1579
1582
  # contains details about the P24 payment method options.
1580
1583
  attr_accessor :p24
1584
+ # contains details about the Pay By Bank payment method options.
1585
+ attr_accessor :pay_by_bank
1581
1586
  # contains details about the PAYCO payment method options.
1582
1587
  attr_accessor :payco
1583
1588
  # contains details about the PayNow payment method options.
@@ -1631,6 +1636,7 @@ module Stripe
1631
1636
  naver_pay: nil,
1632
1637
  oxxo: nil,
1633
1638
  p24: nil,
1639
+ pay_by_bank: nil,
1634
1640
  payco: nil,
1635
1641
  paynow: nil,
1636
1642
  paypal: nil,
@@ -1671,6 +1677,7 @@ module Stripe
1671
1677
  @naver_pay = naver_pay
1672
1678
  @oxxo = oxxo
1673
1679
  @p24 = p24
1680
+ @pay_by_bank = pay_by_bank
1674
1681
  @payco = payco
1675
1682
  @paynow = paynow
1676
1683
  @paypal = paypal
@@ -31,7 +31,7 @@ module Stripe
31
31
  @after = after
32
32
  end
33
33
  end
34
- # The ID of the Stripe account whose transactions will be retrieved.
34
+ # The ID of the Financial Connections Account whose transactions will be retrieved.
35
35
  attr_accessor :account
36
36
  # 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.
37
37
  attr_accessor :ending_before