stripe 20.2.0.pre.alpha.1 → 20.2.0.pre.alpha.3

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 (143) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stripe/event_types.rb +28 -0
  3. data/lib/stripe/events/v2_core_account_closed_event.rb +2 -2
  4. data/lib/stripe/events/v2_core_account_including_defaults_updated_event.rb +2 -2
  5. data/lib/stripe/events/v2_extend_object_definition_created_event.rb +61 -0
  6. data/lib/stripe/events/v2_extend_object_definition_version_created_event.rb +65 -0
  7. data/lib/stripe/events/v2_money_management_received_debit_mandate_canceled_event.rb +2 -0
  8. data/lib/stripe/events/v2_money_management_received_debit_mandate_created_event.rb +2 -0
  9. data/lib/stripe/events/v2_money_management_received_debit_mandate_expired_event.rb +2 -0
  10. data/lib/stripe/events/v2_money_management_received_debit_mandate_pending_cancellation_event.rb +2 -0
  11. data/lib/stripe/events/v2_money_management_received_debit_mandate_updated_event.rb +2 -0
  12. data/lib/stripe/events/v2_money_management_spending_mandate_canceled_event.rb +44 -0
  13. data/lib/stripe/events/v2_money_management_spending_mandate_created_event.rb +46 -0
  14. data/lib/stripe/events/v2_money_management_spending_mandate_expired_event.rb +44 -0
  15. data/lib/stripe/events/v2_money_management_spending_mandate_pending_cancellation_event.rb +44 -0
  16. data/lib/stripe/events/v2_money_management_spending_mandate_updated_event.rb +44 -0
  17. data/lib/stripe/object_types.rb +5 -0
  18. data/lib/stripe/params/account_session_create_params.rb +200 -0
  19. data/lib/stripe/params/checkout/session_create_params.rb +46 -1
  20. data/lib/stripe/params/confirmation_token_create_params.rb +21 -0
  21. data/lib/stripe/params/customer_tax_exemption_create_params.rb +29 -1
  22. data/lib/stripe/params/customer_update_params.rb +55 -0
  23. data/lib/stripe/params/fx_quote_create_params.rb +2 -2
  24. data/lib/stripe/params/invoice_create_params.rb +8 -1
  25. data/lib/stripe/params/invoice_update_params.rb +8 -1
  26. data/lib/stripe/params/payment_attempt_record_report_authenticated_params.rb +58 -1
  27. data/lib/stripe/params/payment_attempt_record_report_authorized_params.rb +35 -1
  28. data/lib/stripe/params/payment_attempt_record_report_guaranteed_params.rb +35 -1
  29. data/lib/stripe/params/payment_intent_capture_params.rb +57 -1
  30. data/lib/stripe/params/payment_intent_confirm_params.rb +91 -1
  31. data/lib/stripe/params/payment_intent_create_params.rb +91 -1
  32. data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +57 -1
  33. data/lib/stripe/params/payment_intent_increment_authorization_params.rb +57 -1
  34. data/lib/stripe/params/payment_intent_update_params.rb +91 -1
  35. data/lib/stripe/params/payment_method_configuration_create_params.rb +42 -0
  36. data/lib/stripe/params/payment_method_configuration_update_params.rb +42 -0
  37. data/lib/stripe/params/payment_method_create_params.rb +21 -0
  38. data/lib/stripe/params/payment_record_report_payment_attempt_guaranteed_params.rb +35 -1
  39. data/lib/stripe/params/payment_record_report_payment_attempt_params.rb +35 -1
  40. data/lib/stripe/params/payment_record_report_payment_params.rb +35 -1
  41. data/lib/stripe/params/quote_create_params.rb +1 -1
  42. data/lib/stripe/params/quote_update_params.rb +1 -1
  43. data/lib/stripe/params/radar/payment_evaluation_create_params.rb +19 -1
  44. data/lib/stripe/params/refund_create_params.rb +4 -0
  45. data/lib/stripe/params/setup_intent_confirm_params.rb +50 -1
  46. data/lib/stripe/params/setup_intent_create_params.rb +50 -1
  47. data/lib/stripe/params/setup_intent_update_params.rb +34 -1
  48. data/lib/stripe/params/shared_payment/issued_token_create_params.rb +19 -0
  49. data/lib/stripe/params/subscription_create_params.rb +4 -0
  50. data/lib/stripe/params/subscription_list_params.rb +5 -1
  51. data/lib/stripe/params/subscription_update_params.rb +4 -0
  52. data/lib/stripe/params/tax/certificate_create_params.rb +21 -0
  53. data/lib/stripe/params/tax/certificate_delete_params.rb +8 -0
  54. data/lib/stripe/params/tax/certificate_list_params.rb +33 -0
  55. data/lib/stripe/params/tax/certificate_retrieve_params.rb +15 -0
  56. data/lib/stripe/params/tax/form_create_params.rb +504 -0
  57. data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +21 -0
  58. data/lib/stripe/params/v2/core/account_session_create_params.rb +13 -0
  59. data/lib/stripe/params/v2/extend/object_definition_list_params.rb +17 -0
  60. data/lib/stripe/params/v2/extend/object_definition_retrieve_params.rb +10 -0
  61. data/lib/stripe/params/v2/extend/object_definitions/version_list_params.rb +19 -0
  62. data/lib/stripe/params/v2/extend/object_definitions/version_retrieve_params.rb +12 -0
  63. data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +22 -1
  64. data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +46 -0
  65. data/lib/stripe/params/v2/money_management/payout_intent_create_params.rb +22 -1
  66. data/lib/stripe/params/v2/money_management/payout_intent_update_params.rb +22 -1
  67. data/lib/stripe/params/v2/money_management/received_debit_list_params.rb +5 -2
  68. data/lib/stripe/params/v2/money_management/spending_mandate_cancel_params.rb +10 -0
  69. data/lib/stripe/params/v2/money_management/spending_mandate_list_params.rb +26 -0
  70. data/lib/stripe/params/v2/money_management/spending_mandate_retrieve_params.rb +10 -0
  71. data/lib/stripe/params.rb +27 -0
  72. data/lib/stripe/resources/account_session.rb +81 -0
  73. data/lib/stripe/resources/apps/install.rb +1 -1
  74. data/lib/stripe/resources/balance_transaction.rb +1 -1
  75. data/lib/stripe/resources/charge.rb +373 -5
  76. data/lib/stripe/resources/checkout/session.rb +32 -0
  77. data/lib/stripe/resources/confirmation_token.rb +103 -3
  78. data/lib/stripe/resources/coupon.rb +6 -3
  79. data/lib/stripe/resources/customer_tax_exemption.rb +32 -1
  80. data/lib/stripe/resources/identity/verification_report.rb +34 -0
  81. data/lib/stripe/resources/invoice.rb +3 -0
  82. data/lib/stripe/resources/mandate.rb +16 -0
  83. data/lib/stripe/resources/payment_attempt_record.rb +151 -2
  84. data/lib/stripe/resources/payment_intent.rb +126 -2
  85. data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +46 -1
  86. data/lib/stripe/resources/payment_method.rb +103 -3
  87. data/lib/stripe/resources/payment_method_configuration.rb +68 -0
  88. data/lib/stripe/resources/payment_record.rb +151 -2
  89. data/lib/stripe/resources/radar/payment_evaluation.rb +41 -2
  90. data/lib/stripe/resources/refund.rb +38 -0
  91. data/lib/stripe/resources/reporting/report_run.rb +2 -0
  92. data/lib/stripe/resources/reserve/hold.rb +2 -2
  93. data/lib/stripe/resources/reserve/plan.rb +1 -1
  94. data/lib/stripe/resources/reserve/release.rb +1 -1
  95. data/lib/stripe/resources/setup_attempt.rb +21 -2
  96. data/lib/stripe/resources/setup_intent.rb +38 -2
  97. data/lib/stripe/resources/shared_payment/granted_token.rb +32 -2
  98. data/lib/stripe/resources/shared_payment/issued_token.rb +20 -0
  99. data/lib/stripe/resources/subscription.rb +3 -1
  100. data/lib/stripe/resources/tax/certificate.rb +81 -0
  101. data/lib/stripe/resources/tax/form.rb +11 -0
  102. data/lib/stripe/resources/tax/form_correction.rb +43 -0
  103. data/lib/stripe/resources/terminal/reader.rb +18 -1
  104. data/lib/stripe/resources/treasury/inbound_transfer.rb +29 -1
  105. data/lib/stripe/resources/treasury/outbound_payment.rb +29 -1
  106. data/lib/stripe/resources/treasury/outbound_transfer.rb +29 -1
  107. data/lib/stripe/resources/v2/core/account_session.rb +27 -0
  108. data/lib/stripe/resources/v2/core/event.rb +1 -1
  109. data/lib/stripe/resources/v2/core/event_base.rb +36 -0
  110. data/lib/stripe/resources/v2/data/search_result_list.rb +1 -1
  111. data/lib/stripe/resources/v2/extend/object_definition.rb +40 -0
  112. data/lib/stripe/resources/v2/extend/object_definition_version.rb +168 -0
  113. data/lib/stripe/resources/v2/money_management/outbound_payment.rb +74 -1
  114. data/lib/stripe/resources/v2/money_management/payout_intent.rb +22 -1
  115. data/lib/stripe/resources/v2/money_management/payout_method.rb +40 -0
  116. data/lib/stripe/resources/v2/money_management/received_debit.rb +3 -0
  117. data/lib/stripe/resources/v2/money_management/spending_mandate.rb +121 -0
  118. data/lib/stripe/resources/v2/tax/operations_resolve_address_result.rb +1 -1
  119. data/lib/stripe/resources.rb +46 -0
  120. data/lib/stripe/services/apps/install_service.rb +1 -1
  121. data/lib/stripe/services/checkout/session_service.rb +2 -0
  122. data/lib/stripe/services/reserve/hold_service.rb +2 -2
  123. data/lib/stripe/services/reserve/plan_service.rb +2 -2
  124. data/lib/stripe/services/reserve/release_service.rb +2 -2
  125. data/lib/stripe/services/tax/certificate_service.rb +52 -0
  126. data/lib/stripe/services/tax/form_service.rb +11 -0
  127. data/lib/stripe/services/tax_service.rb +2 -1
  128. data/lib/stripe/services/v2/core/vault/network_token_service.rb +1 -0
  129. data/lib/stripe/services/v2/extend/object_definition_service.rb +39 -0
  130. data/lib/stripe/services/v2/extend/object_definitions/version_service.rb +34 -0
  131. data/lib/stripe/services/v2/extend_service.rb +2 -1
  132. data/lib/stripe/services/v2/money_management/received_debit_mandate_service.rb +3 -0
  133. data/lib/stripe/services/v2/money_management/spending_mandate_service.rb +43 -0
  134. data/lib/stripe/services/v2/money_management_service.rb +2 -1
  135. data/lib/stripe/services.rb +11 -0
  136. data/lib/stripe/stripe_event_notification_handler.rb +28 -0
  137. data/lib/stripe/stripe_service.rb +13 -9
  138. data/lib/stripe/version.rb +1 -1
  139. data/lib/stripe/webhook.rb +68 -3
  140. data/lib/stripe/workload_identity_exchange.rb +2 -2
  141. data/rbi/stripe/resources/v2/core/event_base.rbi +11 -0
  142. data/rbi/stripe.rbi +5856 -213
  143. metadata +32 -2
@@ -154,6 +154,49 @@ module Stripe
154
154
  end
155
155
  end
156
156
 
157
+ class Bills < ::Stripe::RequestParams
158
+ class Features < ::Stripe::RequestParams
159
+ # Whether to allow bill management features.
160
+ attr_accessor :bill_management
161
+ # Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. This is `false` by default.
162
+ attr_accessor :disable_stripe_user_authentication
163
+ # Whether to allow sending money.
164
+ attr_accessor :send_money
165
+
166
+ def initialize(
167
+ bill_management: nil,
168
+ disable_stripe_user_authentication: nil,
169
+ send_money: nil
170
+ )
171
+ @bill_management = bill_management
172
+ @disable_stripe_user_authentication = disable_stripe_user_authentication
173
+ @send_money = send_money
174
+ end
175
+ end
176
+ # Whether the embedded component is enabled.
177
+ attr_accessor :enabled
178
+ # The list of features enabled in the embedded component.
179
+ attr_accessor :features
180
+
181
+ def initialize(enabled: nil, features: nil)
182
+ @enabled = enabled
183
+ @features = features
184
+ end
185
+ end
186
+
187
+ class BusinessProfileManagement < ::Stripe::RequestParams
188
+ class Features < ::Stripe::RequestParams; end
189
+ # Whether the embedded component is enabled.
190
+ attr_accessor :enabled
191
+ # An empty list, because this embedded component has no features.
192
+ attr_accessor :features
193
+
194
+ def initialize(enabled: nil, features: nil)
195
+ @enabled = enabled
196
+ @features = features
197
+ end
198
+ end
199
+
157
200
  class CapitalFinancing < ::Stripe::RequestParams
158
201
  class Features < ::Stripe::RequestParams; end
159
202
  # Whether the embedded component is enabled.
@@ -337,6 +380,19 @@ module Stripe
337
380
  end
338
381
  end
339
382
 
383
+ class FinancialAccountRewards < ::Stripe::RequestParams
384
+ class Features < ::Stripe::RequestParams; end
385
+ # Whether the embedded component is enabled.
386
+ attr_accessor :enabled
387
+ # An empty list, because this embedded component has no features.
388
+ attr_accessor :features
389
+
390
+ def initialize(enabled: nil, features: nil)
391
+ @enabled = enabled
392
+ @features = features
393
+ end
394
+ end
395
+
340
396
  class FinancialAccountTransactions < ::Stripe::RequestParams
341
397
  class Features < ::Stripe::RequestParams
342
398
  # Whether to allow card spend dispute management features.
@@ -357,6 +413,86 @@ module Stripe
357
413
  end
358
414
  end
359
415
 
416
+ class FinancialAccounts < ::Stripe::RequestParams
417
+ class Features < ::Stripe::RequestParams
418
+ # Whether to allow bill management features.
419
+ attr_accessor :bill_management
420
+ # Whether to allow card management features.
421
+ attr_accessor :card_management
422
+ # Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. This is `false` by default.
423
+ attr_accessor :disable_stripe_user_authentication
424
+ # Whether to allow payout schedule to be changed. Defaults to `true` when `controller.losses.payments` is set to `stripe` for the account, otherwise `false`.
425
+ attr_accessor :edit_payout_schedule
426
+ # Whether to allow sending money.
427
+ attr_accessor :send_money
428
+
429
+ def initialize(
430
+ bill_management: nil,
431
+ card_management: nil,
432
+ disable_stripe_user_authentication: nil,
433
+ edit_payout_schedule: nil,
434
+ send_money: nil
435
+ )
436
+ @bill_management = bill_management
437
+ @card_management = card_management
438
+ @disable_stripe_user_authentication = disable_stripe_user_authentication
439
+ @edit_payout_schedule = edit_payout_schedule
440
+ @send_money = send_money
441
+ end
442
+ end
443
+ # Whether the embedded component is enabled.
444
+ attr_accessor :enabled
445
+ # The list of features enabled in the embedded component.
446
+ attr_accessor :features
447
+
448
+ def initialize(enabled: nil, features: nil)
449
+ @enabled = enabled
450
+ @features = features
451
+ end
452
+ end
453
+
454
+ class FinancialAccountsTransactions < ::Stripe::RequestParams
455
+ class Features < ::Stripe::RequestParams
456
+ # Whether to allow capturing and cancelling payment intents. This is `true` by default.
457
+ attr_accessor :capture_payments
458
+ # Whether to allow card management features.
459
+ attr_accessor :card_management
460
+ # Whether to allow card spend dispute management features.
461
+ attr_accessor :card_spend_dispute_management
462
+ # Whether connected accounts can manage destination charges that are created on behalf of them. This is `false` by default.
463
+ attr_accessor :destination_on_behalf_of_charge_management
464
+ # Whether responding to disputes is enabled, including submitting evidence and accepting disputes. This is `true` by default.
465
+ attr_accessor :dispute_management
466
+ # Whether sending refunds is enabled. This is `true` by default.
467
+ attr_accessor :refund_management
468
+
469
+ def initialize(
470
+ capture_payments: nil,
471
+ card_management: nil,
472
+ card_spend_dispute_management: nil,
473
+ destination_on_behalf_of_charge_management: nil,
474
+ dispute_management: nil,
475
+ refund_management: nil
476
+ )
477
+ @capture_payments = capture_payments
478
+ @card_management = card_management
479
+ @card_spend_dispute_management = card_spend_dispute_management
480
+ @destination_on_behalf_of_charge_management = destination_on_behalf_of_charge_management
481
+ @dispute_management = dispute_management
482
+ @refund_management = refund_management
483
+ end
484
+ end
485
+ # Whether the embedded component is enabled.
486
+ attr_accessor :enabled
487
+ # The list of features enabled in the embedded component.
488
+ attr_accessor :features
489
+
490
+ def initialize(enabled: nil, features: nil)
491
+ @enabled = enabled
492
+ @features = features
493
+ end
494
+ end
495
+
360
496
  class InstantPayoutsPromotion < ::Stripe::RequestParams
361
497
  class Features < ::Stripe::RequestParams
362
498
  # Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. 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`.
@@ -459,6 +595,19 @@ module Stripe
459
595
  end
460
596
  end
461
597
 
598
+ class NetworkCostPassthroughReport < ::Stripe::RequestParams
599
+ class Features < ::Stripe::RequestParams; end
600
+ # Whether the embedded component is enabled.
601
+ attr_accessor :enabled
602
+ # An empty list, because this embedded component has no features.
603
+ attr_accessor :features
604
+
605
+ def initialize(enabled: nil, features: nil)
606
+ @enabled = enabled
607
+ @features = features
608
+ end
609
+ end
610
+
462
611
  class NotificationBanner < ::Stripe::RequestParams
463
612
  class Features < ::Stripe::RequestParams
464
613
  # Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. 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`.
@@ -722,6 +871,29 @@ module Stripe
722
871
  end
723
872
  end
724
873
 
874
+ class RecipientsList < ::Stripe::RequestParams
875
+ class Features < ::Stripe::RequestParams
876
+ # Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. This is `false` by default.
877
+ attr_accessor :disable_stripe_user_authentication
878
+ # Whether to allow sending money.
879
+ attr_accessor :send_money
880
+
881
+ def initialize(disable_stripe_user_authentication: nil, send_money: nil)
882
+ @disable_stripe_user_authentication = disable_stripe_user_authentication
883
+ @send_money = send_money
884
+ end
885
+ end
886
+ # Whether the embedded component is enabled.
887
+ attr_accessor :enabled
888
+ # The list of features enabled in the embedded component.
889
+ attr_accessor :features
890
+
891
+ def initialize(enabled: nil, features: nil)
892
+ @enabled = enabled
893
+ @features = features
894
+ end
895
+ end
896
+
725
897
  class ReportingChart < ::Stripe::RequestParams
726
898
  class Features < ::Stripe::RequestParams; end
727
899
  # Whether the embedded component is enabled.
@@ -813,6 +985,10 @@ module Stripe
813
985
  attr_accessor :balance_report
814
986
  # Configuration for the [balances](/connect/supported-embedded-components/balances/) embedded component.
815
987
  attr_accessor :balances
988
+ # Configuration for the [Bills](/connect/supported-embedded-components/bills/) embedded component.
989
+ attr_accessor :bills
990
+ # Configuration for the [Business profile management](/connect/supported-embedded-components/business-profile-management/) embedded component.
991
+ attr_accessor :business_profile_management
816
992
  # Configuration for the [Capital financing](/connect/supported-embedded-components/capital-financing/) embedded component.
817
993
  attr_accessor :capital_financing
818
994
  # Configuration for the [Capital financing application](/connect/supported-embedded-components/capital-financing-application/) embedded component.
@@ -833,14 +1009,22 @@ module Stripe
833
1009
  attr_accessor :export_tax_transactions
834
1010
  # Configuration for the [financial account](/connect/supported-embedded-components/financial-account/) embedded component.
835
1011
  attr_accessor :financial_account
1012
+ # Configuration for the [financial account rewards](/connect/supported-embedded-components/financial-account-rewards/) embedded component.
1013
+ attr_accessor :financial_account_rewards
836
1014
  # Configuration for the [financial account transactions](/connect/supported-embedded-components/financial-account-transactions/) embedded component.
837
1015
  attr_accessor :financial_account_transactions
1016
+ # Configuration for the [financial accounts](/connect/supported-embedded-components/financial-accounts/) embedded component.
1017
+ attr_accessor :financial_accounts
1018
+ # Configuration for the [financial accounts transactions](/connect/supported-embedded-components/financial-accounts-transactions/) embedded component.
1019
+ attr_accessor :financial_accounts_transactions
838
1020
  # Configuration for the [instant payouts promotion](/connect/supported-embedded-components/instant-payouts-promotion/) embedded component.
839
1021
  attr_accessor :instant_payouts_promotion
840
1022
  # Configuration for the [issuing card](/connect/supported-embedded-components/issuing-card/) embedded component.
841
1023
  attr_accessor :issuing_card
842
1024
  # Configuration for the [issuing cards list](/connect/supported-embedded-components/issuing-cards-list/) embedded component.
843
1025
  attr_accessor :issuing_cards_list
1026
+ # Configuration for the [network cost passthrough report](/connect/supported-embedded-components/network-cost-passthrough-report/) embedded component.
1027
+ attr_accessor :network_cost_passthrough_report
844
1028
  # Configuration for the [notification banner](/connect/supported-embedded-components/notification-banner/) embedded component.
845
1029
  attr_accessor :notification_banner
846
1030
  # Configuration for the [payment details](/connect/supported-embedded-components/payment-details/) embedded component.
@@ -863,6 +1047,8 @@ module Stripe
863
1047
  attr_accessor :product_tax_code_selector
864
1048
  # Configuration for the [recipients](/connect/supported-embedded-components/recipients/) embedded component.
865
1049
  attr_accessor :recipients
1050
+ # Configuration for the [recipients list](/connect/supported-embedded-components/recipients-list/) embedded component.
1051
+ attr_accessor :recipients_list
866
1052
  # Configuration for the [reporting chart](/connect/supported-embedded-components/reporting-chart/) embedded component.
867
1053
  attr_accessor :reporting_chart
868
1054
  # Configuration for the [tax registrations](/connect/supported-embedded-components/tax-registrations/) embedded component.
@@ -884,6 +1070,8 @@ module Stripe
884
1070
  app_viewport: nil,
885
1071
  balance_report: nil,
886
1072
  balances: nil,
1073
+ bills: nil,
1074
+ business_profile_management: nil,
887
1075
  capital_financing: nil,
888
1076
  capital_financing_application: nil,
889
1077
  capital_financing_manual_payment: nil,
@@ -894,10 +1082,14 @@ module Stripe
894
1082
  documents: nil,
895
1083
  export_tax_transactions: nil,
896
1084
  financial_account: nil,
1085
+ financial_account_rewards: nil,
897
1086
  financial_account_transactions: nil,
1087
+ financial_accounts: nil,
1088
+ financial_accounts_transactions: nil,
898
1089
  instant_payouts_promotion: nil,
899
1090
  issuing_card: nil,
900
1091
  issuing_cards_list: nil,
1092
+ network_cost_passthrough_report: nil,
901
1093
  notification_banner: nil,
902
1094
  payment_details: nil,
903
1095
  payment_disputes: nil,
@@ -909,6 +1101,7 @@ module Stripe
909
1101
  payouts_list: nil,
910
1102
  product_tax_code_selector: nil,
911
1103
  recipients: nil,
1104
+ recipients_list: nil,
912
1105
  reporting_chart: nil,
913
1106
  tax_registrations: nil,
914
1107
  tax_settings: nil,
@@ -923,6 +1116,8 @@ module Stripe
923
1116
  @app_viewport = app_viewport
924
1117
  @balance_report = balance_report
925
1118
  @balances = balances
1119
+ @bills = bills
1120
+ @business_profile_management = business_profile_management
926
1121
  @capital_financing = capital_financing
927
1122
  @capital_financing_application = capital_financing_application
928
1123
  @capital_financing_manual_payment = capital_financing_manual_payment
@@ -933,10 +1128,14 @@ module Stripe
933
1128
  @documents = documents
934
1129
  @export_tax_transactions = export_tax_transactions
935
1130
  @financial_account = financial_account
1131
+ @financial_account_rewards = financial_account_rewards
936
1132
  @financial_account_transactions = financial_account_transactions
1133
+ @financial_accounts = financial_accounts
1134
+ @financial_accounts_transactions = financial_accounts_transactions
937
1135
  @instant_payouts_promotion = instant_payouts_promotion
938
1136
  @issuing_card = issuing_card
939
1137
  @issuing_cards_list = issuing_cards_list
1138
+ @network_cost_passthrough_report = network_cost_passthrough_report
940
1139
  @notification_banner = notification_banner
941
1140
  @payment_details = payment_details
942
1141
  @payment_disputes = payment_disputes
@@ -948,6 +1147,7 @@ module Stripe
948
1147
  @payouts_list = payouts_list
949
1148
  @product_tax_code_selector = product_tax_code_selector
950
1149
  @recipients = recipients
1150
+ @recipients_list = recipients_list
951
1151
  @reporting_chart = reporting_chart
952
1152
  @tax_registrations = tax_registrations
953
1153
  @tax_settings = tax_settings
@@ -362,6 +362,15 @@ module Stripe
362
362
  end
363
363
  end
364
364
 
365
+ class CustomPaymentMethodOptions < ::Stripe::RequestParams
366
+ # Use `off_session` to set up this custom payment method for future payments when the customer is absent. Use `none` to disable setup for future usage.
367
+ attr_accessor :setup_future_usage
368
+
369
+ def initialize(setup_future_usage: nil)
370
+ @setup_future_usage = setup_future_usage
371
+ end
372
+ end
373
+
365
374
  class CustomText < ::Stripe::RequestParams
366
375
  class AfterSubmit < ::Stripe::RequestParams
367
376
  # Text can be up to 1200 characters in length.
@@ -2452,10 +2461,19 @@ module Stripe
2452
2461
  end
2453
2462
 
2454
2463
  class Paypay < ::Stripe::RequestParams
2464
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2465
+ #
2466
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
2467
+ #
2468
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
2469
+ #
2470
+ # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
2471
+ attr_accessor :setup_future_usage
2455
2472
  # The merchant's subscription identifier for this off-session charge.
2456
2473
  attr_accessor :subscription_reference
2457
2474
 
2458
- def initialize(subscription_reference: nil)
2475
+ def initialize(setup_future_usage: nil, subscription_reference: nil)
2476
+ @setup_future_usage = setup_future_usage
2459
2477
  @subscription_reference = subscription_reference
2460
2478
  end
2461
2479
  end
@@ -2686,6 +2704,21 @@ module Stripe
2686
2704
  end
2687
2705
  end
2688
2706
 
2707
+ class StripeBalance < ::Stripe::RequestParams
2708
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2709
+ #
2710
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
2711
+ #
2712
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
2713
+ #
2714
+ # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
2715
+ attr_accessor :setup_future_usage
2716
+
2717
+ def initialize(setup_future_usage: nil)
2718
+ @setup_future_usage = setup_future_usage
2719
+ end
2720
+ end
2721
+
2689
2722
  class Sunbit < ::Stripe::RequestParams
2690
2723
  # Controls when the funds will be captured from the customer's account.
2691
2724
  attr_accessor :capture_method
@@ -2911,6 +2944,8 @@ module Stripe
2911
2944
  attr_accessor :sequra
2912
2945
  # contains details about the Sofort payment method options.
2913
2946
  attr_accessor :sofort
2947
+ # contains details about the Stripe Balance payment method options.
2948
+ attr_accessor :stripe_balance
2914
2949
  # contains details about the Sunbit payment method options.
2915
2950
  attr_accessor :sunbit
2916
2951
  # contains details about the Swish payment method options.
@@ -2972,6 +3007,7 @@ module Stripe
2972
3007
  sepa_debit: nil,
2973
3008
  sequra: nil,
2974
3009
  sofort: nil,
3010
+ stripe_balance: nil,
2975
3011
  sunbit: nil,
2976
3012
  swish: nil,
2977
3013
  twint: nil,
@@ -3026,6 +3062,7 @@ module Stripe
3026
3062
  @sepa_debit = sepa_debit
3027
3063
  @sequra = sequra
3028
3064
  @sofort = sofort
3065
+ @stripe_balance = stripe_balance
3029
3066
  @sunbit = sunbit
3030
3067
  @swish = swish
3031
3068
  @twint = twint
@@ -3651,6 +3688,8 @@ module Stripe
3651
3688
  attr_accessor :currency
3652
3689
  # Collect additional information from your customer using custom fields. Up to 3 fields are supported. You can't set this parameter if `ui_mode` is `elements`.
3653
3690
  attr_accessor :custom_fields
3691
+ # Options keyed by custom payment method type IDs (e.g., `cpmt_123`). Each ID must belong to your account and be included in `custom_payment_method_types`. Only available in `payment` mode.
3692
+ attr_accessor :custom_payment_method_options
3654
3693
  # A list of custom payment methods (e.g., `cpmt_123`) this Checkout Session can accept.
3655
3694
  #
3656
3695
  # You can add custom payment methods to your account through the dashboard under Settings > Custom Payment Methods.
@@ -3767,6 +3806,8 @@ module Stripe
3767
3806
  # We recommend that you review your privacy policy and check with your legal contacts
3768
3807
  # before using this feature. Learn more about [collecting phone numbers with Checkout](https://docs.stripe.com/payments/checkout/phone-numbers).
3769
3808
  attr_accessor :phone_number_collection
3809
+ # Token used to resolve the presentment currency for this Checkout Session.
3810
+ attr_accessor :pricing_token
3770
3811
  # This parameter applies to `ui_mode: embedded_page`. Learn more about the [redirect behavior](https://docs.stripe.com/payments/checkout/custom-success-page?payment-ui=embedded-form) of embedded sessions. Defaults to `always`.
3771
3812
  attr_accessor :redirect_on_completion
3772
3813
  # The URL to redirect your customer back to after they authenticate or cancel their payment on the
@@ -3820,6 +3861,7 @@ module Stripe
3820
3861
  consent_collection: nil,
3821
3862
  currency: nil,
3822
3863
  custom_fields: nil,
3864
+ custom_payment_method_options: nil,
3823
3865
  custom_payment_method_types: nil,
3824
3866
  custom_text: nil,
3825
3867
  customer: nil,
@@ -3852,6 +3894,7 @@ module Stripe
3852
3894
  payment_settings: nil,
3853
3895
  permissions: nil,
3854
3896
  phone_number_collection: nil,
3897
+ pricing_token: nil,
3855
3898
  redirect_on_completion: nil,
3856
3899
  return_url: nil,
3857
3900
  saved_payment_method_options: nil,
@@ -3881,6 +3924,7 @@ module Stripe
3881
3924
  @consent_collection = consent_collection
3882
3925
  @currency = currency
3883
3926
  @custom_fields = custom_fields
3927
+ @custom_payment_method_options = custom_payment_method_options
3884
3928
  @custom_payment_method_types = custom_payment_method_types
3885
3929
  @custom_text = custom_text
3886
3930
  @customer = customer
@@ -3913,6 +3957,7 @@ module Stripe
3913
3957
  @payment_settings = payment_settings
3914
3958
  @permissions = permissions
3915
3959
  @phone_number_collection = phone_number_collection
3960
+ @pricing_token = pricing_token
3916
3961
  @redirect_on_completion = redirect_on_completion
3917
3962
  @return_url = return_url
3918
3963
  @saved_payment_method_options = saved_payment_method_options
@@ -19,6 +19,7 @@ module Stripe
19
19
  end
20
20
  end
21
21
 
22
+ class AeonPay < ::Stripe::RequestParams; end
22
23
  class Affirm < ::Stripe::RequestParams; end
23
24
  class AfterpayClearpay < ::Stripe::RequestParams; end
24
25
  class Alipay < ::Stripe::RequestParams; end
@@ -37,6 +38,8 @@ module Stripe
37
38
  end
38
39
  end
39
40
 
41
+ class AuPay < ::Stripe::RequestParams; end
42
+
40
43
  class BacsDebit < ::Stripe::RequestParams
41
44
  # Account number of the bank account that the funds will be debited from.
42
45
  attr_accessor :account_number
@@ -119,6 +122,7 @@ module Stripe
119
122
  class Cashapp < ::Stripe::RequestParams; end
120
123
  class Crypto < ::Stripe::RequestParams; end
121
124
  class CustomerBalance < ::Stripe::RequestParams; end
125
+ class Dbarai < ::Stripe::RequestParams; end
122
126
 
123
127
  class Eps < ::Stripe::RequestParams
124
128
  # The customer's bank.
@@ -204,6 +208,7 @@ module Stripe
204
208
  class KrCard < ::Stripe::RequestParams; end
205
209
  class Link < ::Stripe::RequestParams; end
206
210
  class MbWay < ::Stripe::RequestParams; end
211
+ class Merpay < ::Stripe::RequestParams; end
207
212
  class Mobilepay < ::Stripe::RequestParams; end
208
213
  class Multibanco < ::Stripe::RequestParams; end
209
214
 
@@ -432,6 +437,8 @@ module Stripe
432
437
  class Zip < ::Stripe::RequestParams; end
433
438
  # If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method.
434
439
  attr_accessor :acss_debit
440
+ # If this is a `aeon_pay` PaymentMethod, this hash contains details about the AEON Pay payment method.
441
+ attr_accessor :aeon_pay
435
442
  # If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method.
436
443
  attr_accessor :affirm
437
444
  # If this is an `AfterpayClearpay` PaymentMethod, this hash contains details about the AfterpayClearpay payment method.
@@ -446,6 +453,8 @@ module Stripe
446
453
  attr_accessor :amazon_pay
447
454
  # If this is an `au_becs_debit` PaymentMethod, this hash contains details about the bank account.
448
455
  attr_accessor :au_becs_debit
456
+ # If this is a `au_pay` PaymentMethod, this hash contains details about the au PAY payment method.
457
+ attr_accessor :au_pay
449
458
  # If this is a `bacs_debit` PaymentMethod, this hash contains details about the Bacs Direct Debit bank account.
450
459
  attr_accessor :bacs_debit
451
460
  # If this is a `bancontact` PaymentMethod, this hash contains details about the Bancontact payment method.
@@ -468,6 +477,8 @@ module Stripe
468
477
  attr_accessor :crypto
469
478
  # If this is a `customer_balance` PaymentMethod, this hash contains details about the CustomerBalance payment method.
470
479
  attr_accessor :customer_balance
480
+ # If this is a `dbarai` PaymentMethod, this hash contains details about the d-Barai payment method.
481
+ attr_accessor :dbarai
471
482
  # If this is an `eps` PaymentMethod, this hash contains details about the EPS payment method.
472
483
  attr_accessor :eps
473
484
  # If this is an `fpx` PaymentMethod, this hash contains details about the FPX payment method.
@@ -500,6 +511,8 @@ module Stripe
500
511
  attr_accessor :link
501
512
  # If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.
502
513
  attr_accessor :mb_way
514
+ # If this is a `merpay` PaymentMethod, this hash contains details about the Merpay payment method.
515
+ attr_accessor :merpay
503
516
  # Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
504
517
  attr_accessor :metadata
505
518
  # If this is a `mobilepay` PaymentMethod, this hash contains details about the MobilePay payment method.
@@ -585,6 +598,7 @@ module Stripe
585
598
 
586
599
  def initialize(
587
600
  acss_debit: nil,
601
+ aeon_pay: nil,
588
602
  affirm: nil,
589
603
  afterpay_clearpay: nil,
590
604
  alipay: nil,
@@ -592,6 +606,7 @@ module Stripe
592
606
  alma: nil,
593
607
  amazon_pay: nil,
594
608
  au_becs_debit: nil,
609
+ au_pay: nil,
595
610
  bacs_debit: nil,
596
611
  bancontact: nil,
597
612
  billie: nil,
@@ -603,6 +618,7 @@ module Stripe
603
618
  cashapp: nil,
604
619
  crypto: nil,
605
620
  customer_balance: nil,
621
+ dbarai: nil,
606
622
  eps: nil,
607
623
  fpx: nil,
608
624
  getflex: nil,
@@ -619,6 +635,7 @@ module Stripe
619
635
  kr_card: nil,
620
636
  link: nil,
621
637
  mb_way: nil,
638
+ merpay: nil,
622
639
  metadata: nil,
623
640
  mobilepay: nil,
624
641
  multibanco: nil,
@@ -662,6 +679,7 @@ module Stripe
662
679
  zip: nil
663
680
  )
664
681
  @acss_debit = acss_debit
682
+ @aeon_pay = aeon_pay
665
683
  @affirm = affirm
666
684
  @afterpay_clearpay = afterpay_clearpay
667
685
  @alipay = alipay
@@ -669,6 +687,7 @@ module Stripe
669
687
  @alma = alma
670
688
  @amazon_pay = amazon_pay
671
689
  @au_becs_debit = au_becs_debit
690
+ @au_pay = au_pay
672
691
  @bacs_debit = bacs_debit
673
692
  @bancontact = bancontact
674
693
  @billie = billie
@@ -680,6 +699,7 @@ module Stripe
680
699
  @cashapp = cashapp
681
700
  @crypto = crypto
682
701
  @customer_balance = customer_balance
702
+ @dbarai = dbarai
683
703
  @eps = eps
684
704
  @fpx = fpx
685
705
  @getflex = getflex
@@ -696,6 +716,7 @@ module Stripe
696
716
  @kr_card = kr_card
697
717
  @link = link
698
718
  @mb_way = mb_way
719
+ @merpay = merpay
699
720
  @metadata = metadata
700
721
  @mobilepay = mobilepay
701
722
  @multibanco = multibanco
@@ -24,12 +24,32 @@ module Stripe
24
24
  end
25
25
  end
26
26
 
27
+ class ReasonDetails < ::Stripe::RequestParams
28
+ class Other < ::Stripe::RequestParams
29
+ # A free-text description of the exemption reason. Maximum 5000 characters.
30
+ attr_accessor :reason_text
31
+
32
+ def initialize(reason_text: nil)
33
+ @reason_text = reason_text
34
+ end
35
+ end
36
+ # Details for the `other` exemption reason.
37
+ attr_accessor :other
38
+
39
+ def initialize(other: nil)
40
+ @other = other
41
+ end
42
+ end
43
+
27
44
  class Us < ::Stripe::RequestParams
28
45
  # Two-letter US state code (ISO 3166-2).
29
46
  attr_accessor :state
47
+ # The group of tax codes this exemption applies to. Defaults to `all`. `saas` is only available when `state` is `CA`.
48
+ attr_accessor :tax_code_group
30
49
 
31
- def initialize(state: nil)
50
+ def initialize(state: nil, tax_code_group: nil)
32
51
  @state = state
52
+ @tax_code_group = tax_code_group
33
53
  end
34
54
  end
35
55
  # Canada-specific exemption details. Required when country is CA; must be absent otherwise.
@@ -44,6 +64,10 @@ module Stripe
44
64
  attr_accessor :expand
45
65
  # ISO 8601 date (YYYY-MM-DD) when the exemption expires.
46
66
  attr_accessor :expiration_date
67
+ # The reason the customer is exempt. Required when `us.tax_code_group` is `saas`.
68
+ attr_accessor :reason
69
+ # Additional details about the exemption reason.
70
+ attr_accessor :reason_details
47
71
  # US-specific exemption details. Required when country is US; must be absent otherwise.
48
72
  attr_accessor :us
49
73
 
@@ -54,6 +78,8 @@ module Stripe
54
78
  es: nil,
55
79
  expand: nil,
56
80
  expiration_date: nil,
81
+ reason: nil,
82
+ reason_details: nil,
57
83
  us: nil
58
84
  )
59
85
  @ca = ca
@@ -62,6 +88,8 @@ module Stripe
62
88
  @es = es
63
89
  @expand = expand
64
90
  @expiration_date = expiration_date
91
+ @reason = reason
92
+ @reason_details = reason_details
65
93
  @us = us
66
94
  end
67
95
  end