stripe 15.2.0.pre.beta.1 → 15.3.0.pre.beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (196) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +92 -0
  3. data/CONTRIBUTING.md +25 -0
  4. data/OPENAPI_VERSION +1 -1
  5. data/README.md +10 -7
  6. data/VERSION +1 -1
  7. data/lib/stripe/api_version.rb +1 -1
  8. data/lib/stripe/event_types.rb +9 -0
  9. data/lib/stripe/events/v2_core_account_link_completed_event.rb +1 -1
  10. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_failed_event.rb +1 -1
  11. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_processing_event.rb +1 -1
  12. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_queued_event.rb +1 -1
  13. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_returned_event.rb +1 -1
  14. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_succeeded_event.rb +1 -1
  15. data/lib/stripe/events/v2_money_management_outbound_payment_canceled_event.rb +1 -1
  16. data/lib/stripe/events/v2_money_management_outbound_payment_failed_event.rb +1 -1
  17. data/lib/stripe/events/v2_money_management_outbound_payment_posted_event.rb +1 -1
  18. data/lib/stripe/events/v2_money_management_outbound_payment_returned_event.rb +1 -1
  19. data/lib/stripe/events/v2_money_management_outbound_payment_updated_event.rb +1 -1
  20. data/lib/stripe/events/v2_off_session_payment_requires_capture_event.rb +21 -0
  21. data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_failed_event.rb +21 -0
  22. data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_started_event.rb +21 -0
  23. data/lib/stripe/events/v2_payments_off_session_payment_canceled_event.rb +21 -0
  24. data/lib/stripe/events/v2_payments_off_session_payment_created_event.rb +21 -0
  25. data/lib/stripe/events/v2_payments_off_session_payment_failed_event.rb +21 -0
  26. data/lib/stripe/events/v2_payments_off_session_payment_succeeded_event.rb +21 -0
  27. data/lib/stripe/object_types.rb +1 -3
  28. data/lib/stripe/resources/account.rb +47 -20
  29. data/lib/stripe/resources/account_session.rb +85 -24
  30. data/lib/stripe/resources/apple_pay_domain.rb +1 -2
  31. data/lib/stripe/resources/balance.rb +42 -0
  32. data/lib/stripe/resources/balance_transaction.rb +2 -0
  33. data/lib/stripe/resources/bank_account.rb +2 -2
  34. data/lib/stripe/resources/billing_portal/session.rb +1 -1
  35. data/lib/stripe/resources/capability.rb +1 -1
  36. data/lib/stripe/resources/charge.rb +85 -9
  37. data/lib/stripe/resources/checkout/session.rb +22 -6
  38. data/lib/stripe/resources/confirmation_token.rb +37 -97
  39. data/lib/stripe/resources/country_spec.rb +1 -1
  40. data/lib/stripe/resources/coupon.rb +1 -2
  41. data/lib/stripe/resources/credit_note.rb +10 -11
  42. data/lib/stripe/resources/customer.rb +2 -4
  43. data/lib/stripe/resources/customer_session.rb +3 -3
  44. data/lib/stripe/resources/dispute.rb +2 -2
  45. data/lib/stripe/resources/event.rb +1 -1
  46. data/lib/stripe/resources/file.rb +1 -1
  47. data/lib/stripe/resources/financial_connections/account.rb +2 -0
  48. data/lib/stripe/resources/financial_connections/institution.rb +2 -0
  49. data/lib/stripe/resources/identity/verification_report.rb +6 -0
  50. data/lib/stripe/resources/identity/verification_session.rb +17 -11
  51. data/lib/stripe/resources/invoice.rb +70 -43
  52. data/lib/stripe/resources/invoice_item.rb +2 -3
  53. data/lib/stripe/resources/invoice_line_item.rb +1 -1
  54. data/lib/stripe/resources/invoice_payment.rb +9 -2
  55. data/lib/stripe/resources/issuing/authorization.rb +8 -8
  56. data/lib/stripe/resources/issuing/card.rb +1 -1
  57. data/lib/stripe/resources/issuing/dispute.rb +3 -3
  58. data/lib/stripe/resources/order.rb +2 -55
  59. data/lib/stripe/resources/payment_attempt_record.rb +8 -0
  60. data/lib/stripe/resources/payment_intent.rb +439 -411
  61. data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +7 -0
  62. data/lib/stripe/resources/payment_method.rb +50 -113
  63. data/lib/stripe/resources/payment_method_configuration.rb +297 -2
  64. data/lib/stripe/resources/payment_method_domain.rb +2 -2
  65. data/lib/stripe/resources/payment_record.rb +8 -0
  66. data/lib/stripe/resources/payout.rb +4 -4
  67. data/lib/stripe/resources/person.rb +2 -2
  68. data/lib/stripe/resources/plan.rb +2 -3
  69. data/lib/stripe/resources/price.rb +1 -1
  70. data/lib/stripe/resources/privacy/redaction_job.rb +52 -29
  71. data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +12 -4
  72. data/lib/stripe/resources/product.rb +1 -61
  73. data/lib/stripe/resources/quote.rb +1 -1
  74. data/lib/stripe/resources/quote_preview_invoice.rb +2 -2
  75. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +26 -1
  76. data/lib/stripe/resources/radar/value_list.rb +1 -2
  77. data/lib/stripe/resources/radar/value_list_item.rb +1 -2
  78. data/lib/stripe/resources/refund.rb +6 -1
  79. data/lib/stripe/resources/reversal.rb +1 -1
  80. data/lib/stripe/resources/review.rb +1 -1
  81. data/lib/stripe/resources/setup_intent.rb +123 -311
  82. data/lib/stripe/resources/source.rb +1 -1
  83. data/lib/stripe/resources/subscription.rb +132 -37
  84. data/lib/stripe/resources/subscription_item.rb +33 -0
  85. data/lib/stripe/resources/subscription_schedule.rb +120 -5
  86. data/lib/stripe/resources/tax/association.rb +8 -31
  87. data/lib/stripe/resources/tax/calculation.rb +4 -0
  88. data/lib/stripe/resources/tax/calculation_line_item.rb +2 -0
  89. data/lib/stripe/resources/tax/registration.rb +1 -1
  90. data/lib/stripe/resources/tax_id.rb +1 -2
  91. data/lib/stripe/resources/tax_rate.rb +2 -2
  92. data/lib/stripe/resources/terminal/configuration.rb +1 -2
  93. data/lib/stripe/resources/terminal/location.rb +2 -3
  94. data/lib/stripe/resources/terminal/reader.rb +26 -4
  95. data/lib/stripe/resources/test_helpers/test_clock.rb +1 -2
  96. data/lib/stripe/resources/token.rb +2 -2
  97. data/lib/stripe/resources/transfer.rb +1 -1
  98. data/lib/stripe/resources/v2/core/account.rb +5 -5
  99. data/lib/stripe/resources/v2/money_management/received_credit.rb +0 -20
  100. data/lib/stripe/resources/v2/money_management/received_debit.rb +0 -24
  101. data/lib/stripe/resources/v2/payments/off_session_payment.rb +74 -0
  102. data/lib/stripe/resources/webhook_endpoint.rb +1 -2
  103. data/lib/stripe/resources.rb +8 -3
  104. data/lib/stripe/services/account_external_account_service.rb +2 -3
  105. data/lib/stripe/services/account_login_link_service.rb +1 -1
  106. data/lib/stripe/services/account_person_service.rb +1 -2
  107. data/lib/stripe/services/account_service.rb +38 -13
  108. data/lib/stripe/services/account_session_service.rb +49 -24
  109. data/lib/stripe/services/apple_pay_domain_service.rb +1 -2
  110. data/lib/stripe/services/balance_service.rb +1 -1
  111. data/lib/stripe/services/balance_settings_service.rb +2 -2
  112. data/lib/stripe/services/charge_service.rb +76 -8
  113. data/lib/stripe/services/checkout/session_service.rb +14 -6
  114. data/lib/stripe/services/coupon_service.rb +1 -2
  115. data/lib/stripe/services/credit_note_service.rb +7 -8
  116. data/lib/stripe/services/customer_balance_transaction_service.rb +3 -3
  117. data/lib/stripe/services/customer_cash_balance_transaction_service.rb +2 -2
  118. data/lib/stripe/services/customer_payment_source_service.rb +1 -1
  119. data/lib/stripe/services/customer_service.rb +3 -5
  120. data/lib/stripe/services/customer_tax_id_service.rb +1 -2
  121. data/lib/stripe/services/dispute_service.rb +1 -1
  122. data/lib/stripe/services/external_account_service.rb +2 -3
  123. data/lib/stripe/services/file_service.rb +1 -1
  124. data/lib/stripe/services/identity/verification_session_service.rb +5 -5
  125. data/lib/stripe/services/invoice_item_service.rb +1 -2
  126. data/lib/stripe/services/invoice_service.rb +65 -35
  127. data/lib/stripe/services/issuing/authorization_service.rb +4 -4
  128. data/lib/stripe/services/issuing/card_service.rb +1 -1
  129. data/lib/stripe/services/issuing/dispute_service.rb +2 -2
  130. data/lib/stripe/services/order_service.rb +1 -33
  131. data/lib/stripe/services/payment_intent_service.rb +385 -386
  132. data/lib/stripe/services/payment_method_configuration_service.rb +212 -2
  133. data/lib/stripe/services/payment_method_domain_service.rb +1 -1
  134. data/lib/stripe/services/payment_method_service.rb +47 -110
  135. data/lib/stripe/services/payout_service.rb +2 -2
  136. data/lib/stripe/services/plan_service.rb +2 -3
  137. data/lib/stripe/services/price_service.rb +2 -2
  138. data/lib/stripe/services/privacy/redaction_job_service.rb +22 -13
  139. data/lib/stripe/services/privacy/redaction_job_validation_error_service.rb +1 -1
  140. data/lib/stripe/services/product_feature_service.rb +1 -2
  141. data/lib/stripe/services/product_service.rb +2 -41
  142. data/lib/stripe/services/promotion_code_service.rb +1 -1
  143. data/lib/stripe/services/quote_service.rb +1 -1
  144. data/lib/stripe/services/radar/early_fraud_warning_service.rb +1 -1
  145. data/lib/stripe/services/radar/value_list_item_service.rb +1 -2
  146. data/lib/stripe/services/radar/value_list_service.rb +1 -2
  147. data/lib/stripe/services/setup_intent_service.rb +122 -310
  148. data/lib/stripe/services/source_service.rb +1 -1
  149. data/lib/stripe/services/subscription_item_service.rb +26 -0
  150. data/lib/stripe/services/subscription_schedule_service.rb +94 -4
  151. data/lib/stripe/services/subscription_service.rb +103 -33
  152. data/lib/stripe/services/tax/calculation_service.rb +4 -0
  153. data/lib/stripe/services/tax/registration_service.rb +1 -1
  154. data/lib/stripe/services/tax_id_service.rb +1 -2
  155. data/lib/stripe/services/terminal/configuration_service.rb +1 -2
  156. data/lib/stripe/services/terminal/location_service.rb +2 -3
  157. data/lib/stripe/services/terminal/reader_service.rb +17 -3
  158. data/lib/stripe/services/test_helpers/confirmation_token_service.rb +37 -97
  159. data/lib/stripe/services/test_helpers/test_clock_service.rb +1 -2
  160. data/lib/stripe/services/token_service.rb +1 -1
  161. data/lib/stripe/services/transfer_service.rb +1 -1
  162. data/lib/stripe/services/v1_services.rb +1 -2
  163. data/lib/stripe/services/v2/billing/meter_event_session_service.rb +1 -2
  164. data/lib/stripe/services/v2/core/accounts/person_service.rb +2 -4
  165. data/lib/stripe/services/v2/core/event_destination_service.rb +4 -10
  166. data/lib/stripe/services/v2/core/event_service.rb +1 -2
  167. data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +3 -7
  168. data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +2 -4
  169. data/lib/stripe/services/v2/money_management/adjustment_service.rb +1 -2
  170. data/lib/stripe/services/v2/money_management/financial_account_service.rb +1 -2
  171. data/lib/stripe/services/v2/money_management/financial_address_service.rb +1 -1
  172. data/lib/stripe/services/v2/money_management/inbound_transfer_service.rb +1 -2
  173. data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +1 -2
  174. data/lib/stripe/services/v2/money_management/outbound_payment_service.rb +2 -4
  175. data/lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb +2 -4
  176. data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +2 -4
  177. data/lib/stripe/services/v2/money_management/payout_method_service.rb +3 -7
  178. data/lib/stripe/services/v2/money_management/received_credit_service.rb +1 -2
  179. data/lib/stripe/services/v2/money_management/received_debit_service.rb +1 -2
  180. data/lib/stripe/services/v2/money_management/transaction_entry_service.rb +1 -2
  181. data/lib/stripe/services/v2/money_management/transaction_service.rb +1 -2
  182. data/lib/stripe/services/v2/payment_service.rb +15 -0
  183. data/lib/stripe/services/v2/payments/off_session_payment_service.rb +138 -0
  184. data/lib/stripe/services/v2/test_helpers/financial_address_service.rb +1 -2
  185. data/lib/stripe/services/v2_services.rb +2 -1
  186. data/lib/stripe/services/webhook_endpoint_service.rb +1 -2
  187. data/lib/stripe/services.rb +2 -3
  188. data/lib/stripe/version.rb +1 -1
  189. data/rbi/stripe.rbi +3903 -4131
  190. metadata +13 -8
  191. data/lib/stripe/resources/billing/meter_error_report.rb +0 -59
  192. data/lib/stripe/resources/gift_cards/card.rb +0 -208
  193. data/lib/stripe/resources/gift_cards/transaction.rb +0 -272
  194. data/lib/stripe/services/gift_cards/card_service.rb +0 -170
  195. data/lib/stripe/services/gift_cards/transaction_service.rb +0 -209
  196. data/lib/stripe/services/gift_cards_service.rb +0 -14
@@ -6,14 +6,14 @@ module Stripe
6
6
  # properties on the account like its current requirements or if the account is
7
7
  # enabled to make live charges or receive payouts.
8
8
  #
9
- # For accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection)
9
+ # For accounts where [controller.requirement_collection](https://docs.stripe.com/api/accounts/object#account_object-controller-requirement_collection)
10
10
  # is `application`, which includes Custom accounts, the properties below are always
11
11
  # returned.
12
12
  #
13
- # For accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection)
13
+ # For accounts where [controller.requirement_collection](https://docs.stripe.com/api/accounts/object#account_object-controller-requirement_collection)
14
14
  # is `stripe`, which includes Standard and Express accounts, some properties are only returned
15
- # until you create an [Account Link](https://stripe.com/api/account_links) or [Account Session](https://stripe.com/api/account_sessions)
16
- # to start Connect Onboarding. Learn about the [differences between accounts](https://stripe.com/connect/accounts).
15
+ # until you create an [Account Link](https://docs.stripe.com/api/account_links) or [Account Session](https://docs.stripe.com/api/account_sessions)
16
+ # to start Connect Onboarding. Learn about the [differences between accounts](https://docs.stripe.com/connect/accounts).
17
17
  class Account < APIResource
18
18
  extend Stripe::APIOperations::Create
19
19
  include Stripe::APIOperations::Delete
@@ -188,6 +188,8 @@ module Stripe
188
188
  attr_reader :paypal_payments
189
189
  # The status of the PayTo capability of the account, or whether the account can directly process PayTo charges.
190
190
  attr_reader :payto_payments
191
+ # The status of the pix payments capability of the account, or whether the account can directly process pix charges.
192
+ attr_reader :pix_payments
191
193
  # The status of the promptpay payments capability of the account, or whether the account can directly process promptpay charges.
192
194
  attr_reader :promptpay_payments
193
195
  # The status of the Qris capability of the account, or whether the account can directly process Qris payments.
@@ -679,8 +681,7 @@ module Stripe
679
681
  attr_reader :user_agent
680
682
  end
681
683
 
682
- class DeleteParams < Stripe::RequestParams
683
- end
684
+ class DeleteParams < Stripe::RequestParams; end
684
685
 
685
686
  class UpdateParams < Stripe::RequestParams
686
687
  class BankAccount < Stripe::RequestParams
@@ -1263,6 +1264,15 @@ module Stripe
1263
1264
  end
1264
1265
  end
1265
1266
 
1267
+ class PixPayments < Stripe::RequestParams
1268
+ # 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.
1269
+ attr_accessor :requested
1270
+
1271
+ def initialize(requested: nil)
1272
+ @requested = requested
1273
+ end
1274
+ end
1275
+
1266
1276
  class PromptpayPayments < Stripe::RequestParams
1267
1277
  # 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.
1268
1278
  attr_accessor :requested
@@ -1565,6 +1575,8 @@ module Stripe
1565
1575
  attr_accessor :paypal_payments
1566
1576
  # The payto_payments capability.
1567
1577
  attr_accessor :payto_payments
1578
+ # The pix_payments capability.
1579
+ attr_accessor :pix_payments
1568
1580
  # The promptpay_payments capability.
1569
1581
  attr_accessor :promptpay_payments
1570
1582
  # The qris_payments capability.
@@ -1661,6 +1673,7 @@ module Stripe
1661
1673
  paynow_payments: nil,
1662
1674
  paypal_payments: nil,
1663
1675
  payto_payments: nil,
1676
+ pix_payments: nil,
1664
1677
  promptpay_payments: nil,
1665
1678
  qris_payments: nil,
1666
1679
  rechnung_payments: nil,
@@ -1733,6 +1746,7 @@ module Stripe
1733
1746
  @paynow_payments = paynow_payments
1734
1747
  @paypal_payments = paypal_payments
1735
1748
  @payto_payments = payto_payments
1749
+ @pix_payments = pix_payments
1736
1750
  @promptpay_payments = promptpay_payments
1737
1751
  @qris_payments = qris_payments
1738
1752
  @rechnung_payments = rechnung_payments
@@ -3524,6 +3538,15 @@ module Stripe
3524
3538
  end
3525
3539
  end
3526
3540
 
3541
+ class PixPayments < Stripe::RequestParams
3542
+ # 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.
3543
+ attr_accessor :requested
3544
+
3545
+ def initialize(requested: nil)
3546
+ @requested = requested
3547
+ end
3548
+ end
3549
+
3527
3550
  class PromptpayPayments < Stripe::RequestParams
3528
3551
  # 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.
3529
3552
  attr_accessor :requested
@@ -3826,6 +3849,8 @@ module Stripe
3826
3849
  attr_accessor :paypal_payments
3827
3850
  # The payto_payments capability.
3828
3851
  attr_accessor :payto_payments
3852
+ # The pix_payments capability.
3853
+ attr_accessor :pix_payments
3829
3854
  # The promptpay_payments capability.
3830
3855
  attr_accessor :promptpay_payments
3831
3856
  # The qris_payments capability.
@@ -3922,6 +3947,7 @@ module Stripe
3922
3947
  paynow_payments: nil,
3923
3948
  paypal_payments: nil,
3924
3949
  payto_payments: nil,
3950
+ pix_payments: nil,
3925
3951
  promptpay_payments: nil,
3926
3952
  qris_payments: nil,
3927
3953
  rechnung_payments: nil,
@@ -3994,6 +4020,7 @@ module Stripe
3994
4020
  @paynow_payments = paynow_payments
3995
4021
  @paypal_payments = paypal_payments
3996
4022
  @payto_payments = payto_payments
4023
+ @pix_payments = pix_payments
3997
4024
  @promptpay_payments = promptpay_payments
3998
4025
  @qris_payments = qris_payments
3999
4026
  @rechnung_payments = rechnung_payments
@@ -5379,21 +5406,21 @@ module Stripe
5379
5406
  # Always true for a deleted object
5380
5407
  attr_reader :deleted
5381
5408
 
5382
- # With [Connect](https://stripe.com/docs/connect), you can create Stripe accounts for your users.
5409
+ # With [Connect](https://docs.stripe.com/docs/connect), you can create Stripe accounts for your users.
5383
5410
  # To do this, you'll first need to [register your platform](https://dashboard.stripe.com/account/applications/settings).
5384
5411
  #
5385
- # If you've already collected information for your connected accounts, you [can prefill that information](https://stripe.com/docs/connect/best-practices#onboarding) when
5412
+ # If you've already collected information for your connected accounts, you [can prefill that information](https://docs.stripe.com/docs/connect/best-practices#onboarding) when
5386
5413
  # creating the account. Connect Onboarding won't ask for the prefilled information during account onboarding.
5387
5414
  # You can prefill any information on the account.
5388
5415
  def self.create(params = {}, opts = {})
5389
5416
  request_stripe_object(method: :post, path: "/v1/accounts", params: params, opts: opts)
5390
5417
  end
5391
5418
 
5392
- # With [Connect](https://stripe.com/connect), you can delete accounts you manage.
5419
+ # With [Connect](https://docs.stripe.com/connect), you can delete accounts you manage.
5393
5420
  #
5394
5421
  # Test-mode accounts can be deleted at any time.
5395
5422
  #
5396
- # Live-mode accounts where Stripe is responsible for negative account balances cannot be deleted, which includes Standard accounts. Live-mode accounts where your platform is liable for negative account balances, which includes Custom and Express accounts, can be deleted when all [balances](https://stripe.com/api/balance/balance_object) are zero.
5423
+ # Live-mode accounts where Stripe is responsible for negative account balances cannot be deleted, which includes Standard accounts. Live-mode accounts where your platform is liable for negative account balances, which includes Custom and Express accounts, can be deleted when all [balances](https://docs.stripe.com/api/balance/balance_object) are zero.
5397
5424
  #
5398
5425
  # If you want to delete your own account, use the [account information tab in your account settings](https://dashboard.stripe.com/settings/account) instead.
5399
5426
  def self.delete(account, params = {}, opts = {})
@@ -5405,11 +5432,11 @@ module Stripe
5405
5432
  )
5406
5433
  end
5407
5434
 
5408
- # With [Connect](https://stripe.com/connect), you can delete accounts you manage.
5435
+ # With [Connect](https://docs.stripe.com/connect), you can delete accounts you manage.
5409
5436
  #
5410
5437
  # Test-mode accounts can be deleted at any time.
5411
5438
  #
5412
- # Live-mode accounts where Stripe is responsible for negative account balances cannot be deleted, which includes Standard accounts. Live-mode accounts where your platform is liable for negative account balances, which includes Custom and Express accounts, can be deleted when all [balances](https://stripe.com/api/balance/balance_object) are zero.
5439
+ # Live-mode accounts where Stripe is responsible for negative account balances cannot be deleted, which includes Standard accounts. Live-mode accounts where your platform is liable for negative account balances, which includes Custom and Express accounts, can be deleted when all [balances](https://docs.stripe.com/api/balance/balance_object) are zero.
5413
5440
  #
5414
5441
  # If you want to delete your own account, use the [account information tab in your account settings](https://dashboard.stripe.com/settings/account) instead.
5415
5442
  def delete(params = {}, opts = {})
@@ -5421,7 +5448,7 @@ module Stripe
5421
5448
  )
5422
5449
  end
5423
5450
 
5424
- # Returns a list of accounts connected to your platform via [Connect](https://stripe.com/docs/connect). If you're not a platform, the list is empty.
5451
+ # Returns a list of accounts connected to your platform via [Connect](https://docs.stripe.com/docs/connect). If you're not a platform, the list is empty.
5425
5452
  def self.list(params = {}, opts = {})
5426
5453
  request_stripe_object(method: :get, path: "/v1/accounts", params: params, opts: opts)
5427
5454
  end
@@ -5446,7 +5473,7 @@ module Stripe
5446
5473
  )
5447
5474
  end
5448
5475
 
5449
- # With [Connect](https://stripe.com/connect), you can reject accounts that you have flagged as suspicious.
5476
+ # With [Connect](https://docs.stripe.com/connect), you can reject accounts that you have flagged as suspicious.
5450
5477
  #
5451
5478
  # Only accounts where your platform is liable for negative account balances, which includes Custom and Express accounts, can be rejected. Test-mode accounts can be rejected at any time. Live-mode accounts can only be rejected after all balances are zero.
5452
5479
  def reject(params = {}, opts = {})
@@ -5458,7 +5485,7 @@ module Stripe
5458
5485
  )
5459
5486
  end
5460
5487
 
5461
- # With [Connect](https://stripe.com/connect), you can reject accounts that you have flagged as suspicious.
5488
+ # With [Connect](https://docs.stripe.com/connect), you can reject accounts that you have flagged as suspicious.
5462
5489
  #
5463
5490
  # Only accounts where your platform is liable for negative account balances, which includes Custom and Express accounts, can be rejected. Test-mode accounts can be rejected at any time. Live-mode accounts can only be rejected after all balances are zero.
5464
5491
  def self.reject(account, params = {}, opts = {})
@@ -5470,19 +5497,19 @@ module Stripe
5470
5497
  )
5471
5498
  end
5472
5499
 
5473
- # Updates a [connected account](https://stripe.com/connect/accounts) by setting the values of the parameters passed. Any parameters not provided are
5500
+ # Updates a [connected account](https://docs.stripe.com/connect/accounts) by setting the values of the parameters passed. Any parameters not provided are
5474
5501
  # left unchanged.
5475
5502
  #
5476
- # For accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection)
5503
+ # For accounts where [controller.requirement_collection](https://docs.stripe.com/api/accounts/object#account_object-controller-requirement_collection)
5477
5504
  # is application, which includes Custom accounts, you can update any information on the account.
5478
5505
  #
5479
- # For accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection)
5506
+ # For accounts where [controller.requirement_collection](https://docs.stripe.com/api/accounts/object#account_object-controller-requirement_collection)
5480
5507
  # is stripe, which includes Standard and Express accounts, you can update all information until you create
5481
- # an [Account Link or <a href="/api/account_sessions">Account Session](https://stripe.com/api/account_links) to start Connect onboarding,
5508
+ # an [Account Link or <a href="/api/account_sessions">Account Session](https://docs.stripe.com/api/account_links) to start Connect onboarding,
5482
5509
  # after which some properties can no longer be updated.
5483
5510
  #
5484
5511
  # To update your own account, use the [Dashboard](https://dashboard.stripe.com/settings/account). Refer to our
5485
- # [Connect](https://stripe.com/docs/connect/updating-accounts) documentation to learn more about updating accounts.
5512
+ # [Connect](https://docs.stripe.com/docs/connect/updating-accounts) documentation to learn more about updating accounts.
5486
5513
  def self.update(account, params = {}, opts = {})
5487
5514
  request_stripe_object(
5488
5515
  method: :post,
@@ -87,6 +87,23 @@ module Stripe
87
87
  attr_reader :features
88
88
  end
89
89
 
90
+ class DisputesList < Stripe::StripeObject
91
+ class Features < Stripe::StripeObject
92
+ # Whether to allow capturing and cancelling payment intents. This is `true` by default.
93
+ attr_reader :capture_payments
94
+ # Whether to allow connected accounts to manage destination charges that are created on behalf of them. This is `false` by default.
95
+ attr_reader :destination_on_behalf_of_charge_management
96
+ # Whether to allow responding to disputes, including submitting evidence and accepting disputes. This is `true` by default.
97
+ attr_reader :dispute_management
98
+ # Whether to allow sending refunds. This is `true` by default.
99
+ attr_reader :refund_management
100
+ end
101
+ # Whether the embedded component is enabled.
102
+ attr_reader :enabled
103
+ # Attribute for field features
104
+ attr_reader :features
105
+ end
106
+
90
107
  class Documents < Stripe::StripeObject
91
108
  class Features < Stripe::StripeObject; end
92
109
  # Whether the embedded component is enabled.
@@ -189,6 +206,21 @@ module Stripe
189
206
  attr_reader :features
190
207
  end
191
208
 
209
+ class PaymentDisputes < Stripe::StripeObject
210
+ class Features < Stripe::StripeObject
211
+ # Whether to allow connected accounts to manage destination charges that are created on behalf of them. This is `false` by default.
212
+ attr_reader :destination_on_behalf_of_charge_management
213
+ # Whether to allow responding to disputes, including submitting evidence and accepting disputes. This is `true` by default.
214
+ attr_reader :dispute_management
215
+ # Whether to allow sending refunds. This is `true` by default.
216
+ attr_reader :refund_management
217
+ end
218
+ # Whether the embedded component is enabled.
219
+ attr_reader :enabled
220
+ # Attribute for field features
221
+ attr_reader :features
222
+ end
223
+
192
224
  class Payments < Stripe::StripeObject
193
225
  class Features < Stripe::StripeObject
194
226
  # Whether to allow capturing and cancelling payment intents. This is `true` by default.
@@ -260,6 +292,8 @@ module Stripe
260
292
  attr_reader :capital_financing_application
261
293
  # Attribute for field capital_financing_promotion
262
294
  attr_reader :capital_financing_promotion
295
+ # Attribute for field disputes_list
296
+ attr_reader :disputes_list
263
297
  # Attribute for field documents
264
298
  attr_reader :documents
265
299
  # Attribute for field financial_account
@@ -274,6 +308,8 @@ module Stripe
274
308
  attr_reader :notification_banner
275
309
  # Attribute for field payment_details
276
310
  attr_reader :payment_details
311
+ # Attribute for field payment_disputes
312
+ attr_reader :payment_disputes
277
313
  # Attribute for field payments
278
314
  attr_reader :payments
279
315
  # Attribute for field payouts
@@ -419,8 +455,7 @@ module Stripe
419
455
  end
420
456
 
421
457
  class CapitalFinancing < Stripe::RequestParams
422
- class Features < Stripe::RequestParams
423
- end
458
+ class Features < Stripe::RequestParams; end
424
459
  # Whether the embedded component is enabled.
425
460
  attr_accessor :enabled
426
461
  # The list of features enabled in the embedded component.
@@ -433,8 +468,7 @@ module Stripe
433
468
  end
434
469
 
435
470
  class CapitalFinancingApplication < Stripe::RequestParams
436
- class Features < Stripe::RequestParams
437
- end
471
+ class Features < Stripe::RequestParams; end
438
472
  # Whether the embedded component is enabled.
439
473
  attr_accessor :enabled
440
474
  # The list of features enabled in the embedded component.
@@ -447,8 +481,7 @@ module Stripe
447
481
  end
448
482
 
449
483
  class CapitalFinancingPromotion < Stripe::RequestParams
450
- class Features < Stripe::RequestParams
451
- end
484
+ class Features < Stripe::RequestParams; end
452
485
  # Whether the embedded component is enabled.
453
486
  attr_accessor :enabled
454
487
  # The list of features enabled in the embedded component.
@@ -461,7 +494,40 @@ module Stripe
461
494
  end
462
495
 
463
496
  class CapitalOverview < Stripe::RequestParams
497
+ class Features < Stripe::RequestParams; end
498
+ # Whether the embedded component is enabled.
499
+ attr_accessor :enabled
500
+ # The list of features enabled in the embedded component.
501
+ attr_accessor :features
502
+
503
+ def initialize(enabled: nil, features: nil)
504
+ @enabled = enabled
505
+ @features = features
506
+ end
507
+ end
508
+
509
+ class DisputesList < Stripe::RequestParams
464
510
  class Features < Stripe::RequestParams
511
+ # Whether to allow capturing and cancelling payment intents. This is `true` by default.
512
+ attr_accessor :capture_payments
513
+ # Whether to allow connected accounts to manage destination charges that are created on behalf of them. This is `false` by default.
514
+ attr_accessor :destination_on_behalf_of_charge_management
515
+ # Whether to allow responding to disputes, including submitting evidence and accepting disputes. This is `true` by default.
516
+ attr_accessor :dispute_management
517
+ # Whether to allow sending refunds. This is `true` by default.
518
+ attr_accessor :refund_management
519
+
520
+ def initialize(
521
+ capture_payments: nil,
522
+ destination_on_behalf_of_charge_management: nil,
523
+ dispute_management: nil,
524
+ refund_management: nil
525
+ )
526
+ @capture_payments = capture_payments
527
+ @destination_on_behalf_of_charge_management = destination_on_behalf_of_charge_management
528
+ @dispute_management = dispute_management
529
+ @refund_management = refund_management
530
+ end
465
531
  end
466
532
  # Whether the embedded component is enabled.
467
533
  attr_accessor :enabled
@@ -475,8 +541,7 @@ module Stripe
475
541
  end
476
542
 
477
543
  class Documents < Stripe::RequestParams
478
- class Features < Stripe::RequestParams
479
- end
544
+ class Features < Stripe::RequestParams; end
480
545
  # Whether the embedded component is enabled.
481
546
  attr_accessor :enabled
482
547
  # The list of features enabled in the embedded component.
@@ -489,8 +554,7 @@ module Stripe
489
554
  end
490
555
 
491
556
  class ExportTaxTransactions < Stripe::RequestParams
492
- class Features < Stripe::RequestParams
493
- end
557
+ class Features < Stripe::RequestParams; end
494
558
  # Whether the embedded component is enabled.
495
559
  attr_accessor :enabled
496
560
  # The list of features enabled in the embedded component.
@@ -719,8 +783,7 @@ module Stripe
719
783
  end
720
784
 
721
785
  class PaymentMethodSettings < Stripe::RequestParams
722
- class Features < Stripe::RequestParams
723
- end
786
+ class Features < Stripe::RequestParams; end
724
787
  # Whether the embedded component is enabled.
725
788
  attr_accessor :enabled
726
789
  # The list of features enabled in the embedded component.
@@ -805,8 +868,7 @@ module Stripe
805
868
  end
806
869
 
807
870
  class PayoutsList < Stripe::RequestParams
808
- class Features < Stripe::RequestParams
809
- end
871
+ class Features < Stripe::RequestParams; end
810
872
  # Whether the embedded component is enabled.
811
873
  attr_accessor :enabled
812
874
  # The list of features enabled in the embedded component.
@@ -819,8 +881,7 @@ module Stripe
819
881
  end
820
882
 
821
883
  class ProductTaxCodeSelector < Stripe::RequestParams
822
- class Features < Stripe::RequestParams
823
- end
884
+ class Features < Stripe::RequestParams; end
824
885
  # Whether the embedded component is enabled.
825
886
  attr_accessor :enabled
826
887
  # The list of features enabled in the embedded component.
@@ -853,8 +914,7 @@ module Stripe
853
914
  end
854
915
 
855
916
  class ReportingChart < Stripe::RequestParams
856
- class Features < Stripe::RequestParams
857
- end
917
+ class Features < Stripe::RequestParams; end
858
918
  # Whether the embedded component is enabled.
859
919
  attr_accessor :enabled
860
920
  # The list of features enabled in the embedded component.
@@ -867,8 +927,7 @@ module Stripe
867
927
  end
868
928
 
869
929
  class TaxRegistrations < Stripe::RequestParams
870
- class Features < Stripe::RequestParams
871
- end
930
+ class Features < Stripe::RequestParams; end
872
931
  # Whether the embedded component is enabled.
873
932
  attr_accessor :enabled
874
933
  # The list of features enabled in the embedded component.
@@ -881,8 +940,7 @@ module Stripe
881
940
  end
882
941
 
883
942
  class TaxSettings < Stripe::RequestParams
884
- class Features < Stripe::RequestParams
885
- end
943
+ class Features < Stripe::RequestParams; end
886
944
  # Whether the embedded component is enabled.
887
945
  attr_accessor :enabled
888
946
  # The list of features enabled in the embedded component.
@@ -895,8 +953,7 @@ module Stripe
895
953
  end
896
954
 
897
955
  class TaxThresholdMonitoring < Stripe::RequestParams
898
- class Features < Stripe::RequestParams
899
- end
956
+ class Features < Stripe::RequestParams; end
900
957
  # Whether the embedded component is enabled.
901
958
  attr_accessor :enabled
902
959
  # The list of features enabled in the embedded component.
@@ -925,6 +982,8 @@ module Stripe
925
982
  attr_accessor :capital_financing_promotion
926
983
  # Configuration for the capital overview embedded component.
927
984
  attr_accessor :capital_overview
985
+ # Configuration for the disputes list embedded component.
986
+ attr_accessor :disputes_list
928
987
  # Configuration for the documents embedded component.
929
988
  attr_accessor :documents
930
989
  # Configuration for the export tax transactions embedded component.
@@ -974,6 +1033,7 @@ module Stripe
974
1033
  capital_financing_application: nil,
975
1034
  capital_financing_promotion: nil,
976
1035
  capital_overview: nil,
1036
+ disputes_list: nil,
977
1037
  documents: nil,
978
1038
  export_tax_transactions: nil,
979
1039
  financial_account: nil,
@@ -1003,6 +1063,7 @@ module Stripe
1003
1063
  @capital_financing_application = capital_financing_application
1004
1064
  @capital_financing_promotion = capital_financing_promotion
1005
1065
  @capital_overview = capital_overview
1066
+ @disputes_list = disputes_list
1006
1067
  @documents = documents
1007
1068
  @export_tax_transactions = export_tax_transactions
1008
1069
  @financial_account = financial_account
@@ -13,8 +13,7 @@ module Stripe
13
13
  "apple_pay_domain"
14
14
  end
15
15
 
16
- class DeleteParams < Stripe::RequestParams
17
- end
16
+ class DeleteParams < Stripe::RequestParams; end
18
17
 
19
18
  class ListParams < Stripe::RequestParams
20
19
  # Attribute for param field domain_name
@@ -126,6 +126,46 @@ module Stripe
126
126
  # Attribute for field source_types
127
127
  attr_reader :source_types
128
128
  end
129
+
130
+ class RefundAndDisputePrefunding < Stripe::StripeObject
131
+ class Available < Stripe::StripeObject
132
+ class SourceTypes < Stripe::StripeObject
133
+ # Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated).
134
+ attr_reader :bank_account
135
+ # Amount coming from most payment methods, including cards as well as [non-legacy bank debits](https://docs.stripe.com/payments/bank-debits).
136
+ attr_reader :card
137
+ # Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method.
138
+ attr_reader :fpx
139
+ end
140
+ # Balance amount.
141
+ attr_reader :amount
142
+ # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
143
+ attr_reader :currency
144
+ # Attribute for field source_types
145
+ attr_reader :source_types
146
+ end
147
+
148
+ class Pending < Stripe::StripeObject
149
+ class SourceTypes < Stripe::StripeObject
150
+ # Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated).
151
+ attr_reader :bank_account
152
+ # Amount coming from most payment methods, including cards as well as [non-legacy bank debits](https://docs.stripe.com/payments/bank-debits).
153
+ attr_reader :card
154
+ # Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method.
155
+ attr_reader :fpx
156
+ end
157
+ # Balance amount.
158
+ attr_reader :amount
159
+ # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
160
+ attr_reader :currency
161
+ # Attribute for field source_types
162
+ attr_reader :source_types
163
+ end
164
+ # Funds that are available for use.
165
+ attr_reader :available
166
+ # Funds that are pending
167
+ attr_reader :pending
168
+ end
129
169
  # Available funds that you can transfer or pay out automatically by Stripe or explicitly through the [Transfers API](https://stripe.com/docs/api#transfers) or [Payouts API](https://stripe.com/docs/api#payouts). You can find the available balance for each currency and payment type in the `source_types` property.
130
170
  attr_reader :available
131
171
  # Funds held due to negative balances on connected accounts where [account.controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts. You can find the connect reserve balance for each currency and payment type in the `source_types` property.
@@ -140,5 +180,7 @@ module Stripe
140
180
  attr_reader :object
141
181
  # Funds that aren't available in the balance yet. You can find the pending balance for each currency and each payment type in the `source_types` property.
142
182
  attr_reader :pending
183
+ # Attribute for field refund_and_dispute_prefunding
184
+ attr_reader :refund_and_dispute_prefunding
143
185
  end
144
186
  end
@@ -90,6 +90,8 @@ module Stripe
90
90
  attr_reader :amount
91
91
  # The date that the transaction's net funds become available in the Stripe balance.
92
92
  attr_reader :available_on
93
+ # The balance that this transaction impacts.
94
+ attr_reader :balance_type
93
95
  # Time at which the object was created. Measured in seconds since the Unix epoch.
94
96
  attr_reader :created
95
97
  # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
@@ -4,11 +4,11 @@
4
4
  module Stripe
5
5
  # These bank accounts are payment methods on `Customer` objects.
6
6
  #
7
- # On the other hand [External Accounts](https://stripe.com/api#external_accounts) are transfer
7
+ # On the other hand [External Accounts](https://docs.stripe.com/api#external_accounts) are transfer
8
8
  # destinations on `Account` objects for connected accounts.
9
9
  # They can be bank accounts or debit cards as well, and are documented in the links above.
10
10
  #
11
- # Related guide: [Bank debits and transfers](https://stripe.com/payments/bank-debits-transfers)
11
+ # Related guide: [Bank debits and transfers](https://docs.stripe.com/payments/bank-debits-transfers)
12
12
  class BankAccount < APIResource
13
13
  include Stripe::APIOperations::Delete
14
14
  extend Stripe::APIOperations::List
@@ -16,7 +16,7 @@ module Stripe
16
16
  # Create sessions on-demand when customers intend to manage their subscriptions
17
17
  # and billing details.
18
18
  #
19
- # Related guide: [Customer management](https://stripe.com/customer-management)
19
+ # Related guide: [Customer management](https://docs.stripe.com/customer-management)
20
20
  class Session < APIResource
21
21
  extend Stripe::APIOperations::Create
22
22
 
@@ -65,7 +65,7 @@ module Stripe
65
65
  end
66
66
  # Fields that are due and can be satisfied by providing the corresponding alternative fields instead.
67
67
  attr_reader :alternatives
68
- # Date by which the fields in `currently_due` must be collected to keep the capability enabled for the account. These fields may disable the capability sooner if the next threshold is reached before they are collected.
68
+ # The date by which all required account information must be both submitted and verified. This includes fields listed in `currently_due` as well as those in `pending_verification`. If any required information is missing or unverified by this date, the account may be disabled. Note that `current_deadline` may change if additional `currently_due` requirements are requested.
69
69
  attr_reader :current_deadline
70
70
  # Fields that need to be collected to keep the capability enabled. If not collected by `current_deadline`, these fields appear in `past_due` as well, and the capability is disabled.
71
71
  attr_reader :currently_due