stripe 18.5.0.pre.alpha.1 → 18.5.0.pre.alpha.2

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 (147) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stripe/api_requestor.rb +26 -1
  3. data/lib/stripe/api_version.rb +1 -1
  4. data/lib/stripe/event_types.rb +27 -0
  5. data/lib/stripe/events/v2_billing_rate_card_custom_pricing_unit_overage_rate_created_event.rb +67 -0
  6. data/lib/stripe/events/v2_iam_stripe_access_grant_approved_event.rb +20 -0
  7. data/lib/stripe/events/v2_iam_stripe_access_grant_canceled_event.rb +20 -0
  8. data/lib/stripe/events/v2_iam_stripe_access_grant_denied_event.rb +20 -0
  9. data/lib/stripe/events/v2_iam_stripe_access_grant_removed_event.rb +20 -0
  10. data/lib/stripe/events/v2_iam_stripe_access_grant_requested_event.rb +20 -0
  11. data/lib/stripe/events/v2_iam_stripe_access_grant_updated_event.rb +20 -0
  12. data/lib/stripe/object_types.rb +2 -0
  13. data/lib/stripe/params/account_create_params.rb +25 -0
  14. data/lib/stripe/params/account_link_create_params.rb +4 -4
  15. data/lib/stripe/params/account_session_create_params.rb +4 -4
  16. data/lib/stripe/params/account_update_params.rb +25 -0
  17. data/lib/stripe/params/billing/alert_create_params.rb +7 -7
  18. data/lib/stripe/params/billing_portal/session_create_params.rb +1 -1
  19. data/lib/stripe/params/checkout/session_create_params.rb +21 -8
  20. data/lib/stripe/params/credit_note_create_params.rb +3 -3
  21. data/lib/stripe/params/credit_note_list_preview_line_items_params.rb +3 -3
  22. data/lib/stripe/params/credit_note_preview_lines_list_params.rb +3 -3
  23. data/lib/stripe/params/credit_note_preview_params.rb +3 -3
  24. data/lib/stripe/params/customer_create_funding_instructions_params.rb +1 -1
  25. data/lib/stripe/params/customer_create_params.rb +1 -1
  26. data/lib/stripe/params/customer_funding_instructions_create_params.rb +1 -1
  27. data/lib/stripe/params/customer_tax_id_create_params.rb +1 -1
  28. data/lib/stripe/params/delegated_checkout/requested_session_confirm_params.rb +75 -1
  29. data/lib/stripe/params/delegated_checkout/requested_session_create_params.rb +70 -1
  30. data/lib/stripe/params/delegated_checkout/requested_session_update_params.rb +13 -1
  31. data/lib/stripe/params/dispute_update_params.rb +5 -1
  32. data/lib/stripe/params/financial_connections/session_create_params.rb +5 -5
  33. data/lib/stripe/params/invoice_create_params.rb +2 -2
  34. data/lib/stripe/params/invoice_create_preview_params.rb +6 -6
  35. data/lib/stripe/params/invoice_update_params.rb +2 -2
  36. data/lib/stripe/params/order_create_params.rb +2 -2
  37. data/lib/stripe/params/order_update_params.rb +2 -2
  38. data/lib/stripe/params/payment_intent_capture_params.rb +8 -8
  39. data/lib/stripe/params/payment_intent_confirm_params.rb +23 -11
  40. data/lib/stripe/params/payment_intent_create_params.rb +23 -11
  41. data/lib/stripe/params/payment_intent_increment_authorization_params.rb +8 -8
  42. data/lib/stripe/params/payment_intent_reauthorize_params.rb +19 -0
  43. data/lib/stripe/params/payment_intent_update_params.rb +23 -11
  44. data/lib/stripe/params/payment_link_create_params.rb +7 -7
  45. data/lib/stripe/params/payment_link_update_params.rb +42 -7
  46. data/lib/stripe/params/payment_method_update_params.rb +5 -5
  47. data/lib/stripe/params/payment_record_report_payment_attempt_canceled_params.rb +1 -1
  48. data/lib/stripe/params/payment_record_report_payment_attempt_failed_params.rb +1 -1
  49. data/lib/stripe/params/payment_record_report_payment_attempt_guaranteed_params.rb +1 -1
  50. data/lib/stripe/params/promotion_code_create_params.rb +1 -1
  51. data/lib/stripe/params/subscription_create_params.rb +6 -6
  52. data/lib/stripe/params/subscription_item_delete_params.rb +15 -1
  53. data/lib/stripe/params/subscription_update_params.rb +6 -6
  54. data/lib/stripe/params/tax/calculation_create_params.rb +1 -1
  55. data/lib/stripe/params/tax/registration_create_params.rb +14 -1
  56. data/lib/stripe/params/tax_id_create_params.rb +1 -1
  57. data/lib/stripe/params/terminal/configuration_create_params.rb +26 -0
  58. data/lib/stripe/params/terminal/configuration_update_params.rb +27 -1
  59. data/lib/stripe/params/v2/billing/intent_create_params.rb +19 -19
  60. data/lib/stripe/params/v2/core/account_create_params.rb +50 -0
  61. data/lib/stripe/params/v2/core/account_link_create_params.rb +81 -1
  62. data/lib/stripe/params/v2/core/account_update_params.rb +50 -0
  63. data/lib/stripe/params/v2/money_management/financial_account_create_params.rb +4 -1
  64. data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +4 -0
  65. data/lib/stripe/params.rb +1 -0
  66. data/lib/stripe/resources/account.rb +32 -0
  67. data/lib/stripe/resources/account_session.rb +3 -3
  68. data/lib/stripe/resources/application_fee.rb +2 -2
  69. data/lib/stripe/resources/balance_transfer.rb +1 -1
  70. data/lib/stripe/resources/billing/alert.rb +36 -36
  71. data/lib/stripe/resources/billing/alert_recovered.rb +40 -0
  72. data/lib/stripe/resources/billing/alert_triggered.rb +6 -6
  73. data/lib/stripe/resources/billing/credit_balance_summary.rb +34 -1
  74. data/lib/stripe/resources/charge.rb +49 -1
  75. data/lib/stripe/resources/checkout/session.rb +26 -10
  76. data/lib/stripe/resources/confirmation_token.rb +27 -1
  77. data/lib/stripe/resources/delegated_checkout/requested_session.rb +128 -4
  78. data/lib/stripe/resources/financial_connections/session.rb +18 -18
  79. data/lib/stripe/resources/fr_meal_vouchers_onboarding.rb +1 -1
  80. data/lib/stripe/resources/identity/blocklist_entry.rb +1 -1
  81. data/lib/stripe/resources/invoice.rb +4 -4
  82. data/lib/stripe/resources/invoice_item.rb +3 -3
  83. data/lib/stripe/resources/invoice_line_item.rb +5 -5
  84. data/lib/stripe/resources/mandate.rb +4 -0
  85. data/lib/stripe/resources/order.rb +2 -2
  86. data/lib/stripe/resources/payment_attempt_record.rb +46 -20
  87. data/lib/stripe/resources/payment_intent.rb +57 -1
  88. data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +1 -1
  89. data/lib/stripe/resources/payment_link.rb +7 -7
  90. data/lib/stripe/resources/payment_method.rb +29 -3
  91. data/lib/stripe/resources/payment_method_balance.rb +1 -1
  92. data/lib/stripe/resources/payment_record.rb +46 -20
  93. data/lib/stripe/resources/product_catalog/trial_offer.rb +1 -1
  94. data/lib/stripe/resources/profile.rb +80 -0
  95. data/lib/stripe/resources/promotion_code.rb +1 -1
  96. data/lib/stripe/resources/quote_line.rb +208 -4
  97. data/lib/stripe/resources/quote_preview_invoice.rb +4 -4
  98. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +104 -2
  99. data/lib/stripe/resources/radar/account_evaluation.rb +1 -1
  100. data/lib/stripe/resources/radar/payment_evaluation.rb +1 -21
  101. data/lib/stripe/resources/setup_intent.rb +16 -0
  102. data/lib/stripe/resources/shared_payment/granted_token.rb +1 -1
  103. data/lib/stripe/resources/subscription.rb +23 -5
  104. data/lib/stripe/resources/subscription_schedule.rb +104 -2
  105. data/lib/stripe/resources/tax/calculation.rb +1 -1
  106. data/lib/stripe/resources/tax/registration.rb +16 -0
  107. data/lib/stripe/resources/tax/transaction.rb +1 -1
  108. data/lib/stripe/resources/tax_id.rb +1 -1
  109. data/lib/stripe/resources/terminal/configuration.rb +32 -0
  110. data/lib/stripe/resources/transit_balance.rb +1 -1
  111. data/lib/stripe/resources/v2/billing/bill_setting_version.rb +1 -0
  112. data/lib/stripe/resources/v2/billing/cadence.rb +1 -0
  113. data/lib/stripe/resources/v2/billing/collection_setting_version.rb +1 -0
  114. data/lib/stripe/resources/v2/billing/intent.rb +3 -0
  115. data/lib/stripe/resources/v2/billing/intent_action.rb +19 -16
  116. data/lib/stripe/resources/v2/billing/license_fee.rb +3 -0
  117. data/lib/stripe/resources/v2/billing/license_fee_subscription.rb +3 -0
  118. data/lib/stripe/resources/v2/billing/license_fee_version.rb +3 -0
  119. data/lib/stripe/resources/v2/billing/meter_event.rb +1 -1
  120. data/lib/stripe/resources/v2/billing/meter_event_adjustment.rb +1 -0
  121. data/lib/stripe/resources/v2/billing/meter_event_session.rb +1 -0
  122. data/lib/stripe/resources/v2/billing/pricing_plan.rb +3 -0
  123. data/lib/stripe/resources/v2/billing/pricing_plan_component.rb +3 -0
  124. data/lib/stripe/resources/v2/billing/pricing_plan_subscription.rb +3 -0
  125. data/lib/stripe/resources/v2/billing/pricing_plan_version.rb +3 -0
  126. data/lib/stripe/resources/v2/billing/rate_card_rate.rb +3 -0
  127. data/lib/stripe/resources/v2/billing/rate_card_subscription.rb +3 -0
  128. data/lib/stripe/resources/v2/billing/rate_card_version.rb +3 -0
  129. data/lib/stripe/resources/v2/billing/service_action.rb +1 -0
  130. data/lib/stripe/resources/v2/core/account.rb +89 -1
  131. data/lib/stripe/resources/v2/core/account_link.rb +72 -0
  132. data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +1 -0
  133. data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +1 -0
  134. data/lib/stripe/resources/v2/iam/api_key.rb +1 -1
  135. data/lib/stripe/resources/v2/money_management/financial_account.rb +2 -0
  136. data/lib/stripe/resources/v2/money_management/financial_address.rb +1 -1
  137. data/lib/stripe/resources/v2/money_management/outbound_payment.rb +3 -1
  138. data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +1 -1
  139. data/lib/stripe/resources/v2/money_management/payout_method.rb +4 -0
  140. data/lib/stripe/resources/v2/payments/off_session_payment.rb +6 -1
  141. data/lib/stripe/resources.rb +9 -0
  142. data/lib/stripe/services/payment_intent_service.rb +18 -0
  143. data/lib/stripe/services/subscription_service.rb +1 -1
  144. data/lib/stripe/services/v2/iam/api_key_service.rb +6 -6
  145. data/lib/stripe/version.rb +1 -1
  146. data/rbi/stripe.rbi +2641 -486
  147. metadata +12 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: efd842c062e6b8f24cac7eecf528d528026332a8a41499a3a52765adf25c23a7
4
- data.tar.gz: cd3116248b44274d463cd9b8cc66c73bb838afa78757469a95db742e904fd696
3
+ metadata.gz: 889bcc035b68b5aab0a3a6fefc81a2161d397b8c54796f03491b296253d8999b
4
+ data.tar.gz: 808eb12a8acbed40ea9f0b89155d11026a4a963a0ed8b928eb3becbaae28a222
5
5
  SHA512:
6
- metadata.gz: 03d38ebf9f5650e66ecd352a22c3a38f18ecca129559940099f43760c1825726dd8923ab31d1892c8df7147a30b122e9ed3c30e946662772f09b24e5e0fc068b
7
- data.tar.gz: f509a4e4c63c6273df5c15960f347ad02abd464763c231594ed114ccb33156dd1829249e053d7da9ce32751788cba96e05bb59d3f2df79499fd17022acd857af
6
+ metadata.gz: f57e3de39673830952d0864947ee06525c9ad4b34cb395e56f3019eb4be8819ecb75f96a71f038a5683a929324abbd95d0e8555d1dc1e52edabb2fc75ed34a67
7
+ data.tar.gz: 69dbf016c00f9d1594e63f82e7d0d0cb26950d0b565d0f08e953082df54feb88e5bcf814613cd2cb61464f0ffbf0ec85939283a0387fa10c3db4ae0c2bf4d9d5
@@ -964,6 +964,9 @@ module Stripe
964
964
  user_agent = "Stripe/#{api_mode} RubyBindings/#{Stripe::VERSION}"
965
965
  user_agent += " " + format_app_info(Stripe.app_info) unless Stripe.app_info.nil?
966
966
 
967
+ ai_agent = SystemProfiler.detect_ai_agent
968
+ user_agent += " AIAgent/#{ai_agent}" unless ai_agent.empty?
969
+
967
970
  headers = {
968
971
  "User-Agent" => user_agent,
969
972
  "Authorization" => "Bearer #{req_opts[:api_key]}",
@@ -1125,6 +1128,23 @@ module Stripe
1125
1128
  "uname lookup failed"
1126
1129
  end
1127
1130
 
1131
+ AI_AGENTS = [
1132
+ %w[ANTIGRAVITY_CLI_ALIAS antigravity],
1133
+ %w[CLAUDECODE claude_code],
1134
+ %w[CLINE_ACTIVE cline],
1135
+ %w[CODEX_SANDBOX codex_cli],
1136
+ %w[CURSOR_AGENT cursor],
1137
+ %w[GEMINI_CLI gemini_cli],
1138
+ %w[OPENCODE open_code],
1139
+ ].freeze
1140
+
1141
+ def self.detect_ai_agent(env = ENV)
1142
+ AI_AGENTS.each do |env_var, agent_name|
1143
+ return agent_name if env[env_var] && !env[env_var].empty?
1144
+ end
1145
+ ""
1146
+ end
1147
+
1128
1148
  def initialize
1129
1149
  @uname = self.class.uname
1130
1150
  end
@@ -1133,7 +1153,7 @@ module Stripe
1133
1153
  lang_version = "#{RUBY_VERSION} p#{RUBY_PATCHLEVEL} " \
1134
1154
  "(#{RUBY_RELEASE_DATE})"
1135
1155
 
1136
- {
1156
+ ua = {
1137
1157
  application: Stripe.app_info,
1138
1158
  bindings_version: Stripe::VERSION,
1139
1159
  lang: "ruby",
@@ -1144,6 +1164,11 @@ module Stripe
1144
1164
  uname: @uname,
1145
1165
  hostname: Socket.gethostname,
1146
1166
  }.delete_if { |_k, v| v.nil? }
1167
+
1168
+ ai_agent = self.class.detect_ai_agent
1169
+ ua[:ai_agent] = ai_agent unless ai_agent.empty?
1170
+
1171
+ ua
1147
1172
  end
1148
1173
  end
1149
1174
 
@@ -3,6 +3,6 @@
3
3
 
4
4
  module Stripe
5
5
  module ApiVersion
6
- CURRENT = "2026-01-28.preview"
6
+ CURRENT = "2026-03-04.preview"
7
7
  end
8
8
  end
@@ -44,6 +44,8 @@ module Stripe
44
44
  Events::V2BillingPricingPlanVersionCreatedEvent.lookup_type =>
45
45
  Events::V2BillingPricingPlanVersionCreatedEvent,
46
46
  Events::V2BillingRateCardCreatedEvent.lookup_type => Events::V2BillingRateCardCreatedEvent,
47
+ Events::V2BillingRateCardCustomPricingUnitOverageRateCreatedEvent.lookup_type =>
48
+ Events::V2BillingRateCardCustomPricingUnitOverageRateCreatedEvent,
47
49
  Events::V2BillingRateCardRateCreatedEvent.lookup_type => Events::V2BillingRateCardRateCreatedEvent,
48
50
  Events::V2BillingRateCardSubscriptionActivatedEvent.lookup_type =>
49
51
  Events::V2BillingRateCardSubscriptionActivatedEvent,
@@ -159,6 +161,17 @@ module Stripe
159
161
  Events::V2IamApiKeyPermissionsUpdatedEvent,
160
162
  Events::V2IamApiKeyRotatedEvent.lookup_type => Events::V2IamApiKeyRotatedEvent,
161
163
  Events::V2IamApiKeyUpdatedEvent.lookup_type => Events::V2IamApiKeyUpdatedEvent,
164
+ Events::V2IamStripeAccessGrantApprovedEvent.lookup_type =>
165
+ Events::V2IamStripeAccessGrantApprovedEvent,
166
+ Events::V2IamStripeAccessGrantCanceledEvent.lookup_type =>
167
+ Events::V2IamStripeAccessGrantCanceledEvent,
168
+ Events::V2IamStripeAccessGrantDeniedEvent.lookup_type => Events::V2IamStripeAccessGrantDeniedEvent,
169
+ Events::V2IamStripeAccessGrantRemovedEvent.lookup_type =>
170
+ Events::V2IamStripeAccessGrantRemovedEvent,
171
+ Events::V2IamStripeAccessGrantRequestedEvent.lookup_type =>
172
+ Events::V2IamStripeAccessGrantRequestedEvent,
173
+ Events::V2IamStripeAccessGrantUpdatedEvent.lookup_type =>
174
+ Events::V2IamStripeAccessGrantUpdatedEvent,
162
175
  Events::V2MoneyManagementAdjustmentCreatedEvent.lookup_type =>
163
176
  Events::V2MoneyManagementAdjustmentCreatedEvent,
164
177
  Events::V2MoneyManagementFinancialAccountCreatedEvent.lookup_type =>
@@ -339,6 +352,8 @@ module Stripe
339
352
  Events::V2BillingPricingPlanVersionCreatedEventNotification,
340
353
  Events::V2BillingRateCardCreatedEventNotification.lookup_type =>
341
354
  Events::V2BillingRateCardCreatedEventNotification,
355
+ Events::V2BillingRateCardCustomPricingUnitOverageRateCreatedEventNotification.lookup_type =>
356
+ Events::V2BillingRateCardCustomPricingUnitOverageRateCreatedEventNotification,
342
357
  Events::V2BillingRateCardRateCreatedEventNotification.lookup_type =>
343
358
  Events::V2BillingRateCardRateCreatedEventNotification,
344
359
  Events::V2BillingRateCardSubscriptionActivatedEventNotification.lookup_type =>
@@ -471,6 +486,18 @@ module Stripe
471
486
  Events::V2IamApiKeyRotatedEventNotification,
472
487
  Events::V2IamApiKeyUpdatedEventNotification.lookup_type =>
473
488
  Events::V2IamApiKeyUpdatedEventNotification,
489
+ Events::V2IamStripeAccessGrantApprovedEventNotification.lookup_type =>
490
+ Events::V2IamStripeAccessGrantApprovedEventNotification,
491
+ Events::V2IamStripeAccessGrantCanceledEventNotification.lookup_type =>
492
+ Events::V2IamStripeAccessGrantCanceledEventNotification,
493
+ Events::V2IamStripeAccessGrantDeniedEventNotification.lookup_type =>
494
+ Events::V2IamStripeAccessGrantDeniedEventNotification,
495
+ Events::V2IamStripeAccessGrantRemovedEventNotification.lookup_type =>
496
+ Events::V2IamStripeAccessGrantRemovedEventNotification,
497
+ Events::V2IamStripeAccessGrantRequestedEventNotification.lookup_type =>
498
+ Events::V2IamStripeAccessGrantRequestedEventNotification,
499
+ Events::V2IamStripeAccessGrantUpdatedEventNotification.lookup_type =>
500
+ Events::V2IamStripeAccessGrantUpdatedEventNotification,
474
501
  Events::V2MoneyManagementAdjustmentCreatedEventNotification.lookup_type =>
475
502
  Events::V2MoneyManagementAdjustmentCreatedEventNotification,
476
503
  Events::V2MoneyManagementFinancialAccountCreatedEventNotification.lookup_type =>
@@ -0,0 +1,67 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Events
6
+ # Occurs when a RateCardCustomPricingUnitOverageRate is created.
7
+ class V2BillingRateCardCustomPricingUnitOverageRateCreatedEvent < Stripe::V2::Core::Event
8
+ def self.lookup_type
9
+ "v2.billing.rate_card_custom_pricing_unit_overage_rate.created"
10
+ end
11
+
12
+ class V2BillingRateCardCustomPricingUnitOverageRateCreatedEventData < ::Stripe::StripeObject
13
+ # Timestamp of when the object was created.
14
+ attr_reader :created
15
+ # The ID of the custom pricing unit this overage rate applies to.
16
+ attr_reader :custom_pricing_unit
17
+ # The ID of the RateCard Version when the custom pricing unit overage rate was created.
18
+ attr_reader :rate_card_version
19
+ # The ID of the RateCard which this custom pricing unit overage rate belongs to.
20
+ attr_reader :rate_card
21
+
22
+ def self.inner_class_types
23
+ @inner_class_types = {}
24
+ end
25
+
26
+ def self.field_remappings
27
+ @field_remappings = {}
28
+ end
29
+ end
30
+
31
+ def self.inner_class_types
32
+ @inner_class_types = { data: V2BillingRateCardCustomPricingUnitOverageRateCreatedEventData }
33
+ end
34
+ attr_reader :data, :related_object
35
+
36
+ # Retrieves the related object from the API. Makes an API request on every call.
37
+ def fetch_related_object
38
+ _request(
39
+ method: :get,
40
+ path: related_object.url,
41
+ base_address: :api,
42
+ opts: { stripe_context: context }
43
+ )
44
+ end
45
+ end
46
+
47
+ # Occurs when a RateCardCustomPricingUnitOverageRate is created.
48
+ class V2BillingRateCardCustomPricingUnitOverageRateCreatedEventNotification < Stripe::V2::Core::EventNotification
49
+ def self.lookup_type
50
+ "v2.billing.rate_card_custom_pricing_unit_overage_rate.created"
51
+ end
52
+
53
+ attr_reader :related_object
54
+
55
+ # Retrieves the RateCardCustomPricingUnitOverageRate related to this EventNotification from the Stripe API. Makes an API request on every call.
56
+ def fetch_related_object
57
+ resp = @client.raw_request(
58
+ :get,
59
+ related_object.url,
60
+ opts: { stripe_context: context },
61
+ usage: ["fetch_related_object"]
62
+ )
63
+ @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url))
64
+ end
65
+ end
66
+ end
67
+ end
@@ -0,0 +1,20 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Events
6
+ # Occurs when a Stripe Access Grant is approved.
7
+ class V2IamStripeAccessGrantApprovedEvent < Stripe::V2::Core::Event
8
+ def self.lookup_type
9
+ "v2.iam.stripe_access_grant.approved"
10
+ end
11
+ end
12
+
13
+ # Occurs when a Stripe Access Grant is approved.
14
+ class V2IamStripeAccessGrantApprovedEventNotification < Stripe::V2::Core::EventNotification
15
+ def self.lookup_type
16
+ "v2.iam.stripe_access_grant.approved"
17
+ end
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,20 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Events
6
+ # Occurs when a Stripe Access Grant is canceled by the requesting Stripe.
7
+ class V2IamStripeAccessGrantCanceledEvent < Stripe::V2::Core::Event
8
+ def self.lookup_type
9
+ "v2.iam.stripe_access_grant.canceled"
10
+ end
11
+ end
12
+
13
+ # Occurs when a Stripe Access Grant is canceled by the requesting Stripe.
14
+ class V2IamStripeAccessGrantCanceledEventNotification < Stripe::V2::Core::EventNotification
15
+ def self.lookup_type
16
+ "v2.iam.stripe_access_grant.canceled"
17
+ end
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,20 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Events
6
+ # Occurs when a Stripe Access Grant is denied (was pending, then denied by the customer).
7
+ class V2IamStripeAccessGrantDeniedEvent < Stripe::V2::Core::Event
8
+ def self.lookup_type
9
+ "v2.iam.stripe_access_grant.denied"
10
+ end
11
+ end
12
+
13
+ # Occurs when a Stripe Access Grant is denied (was pending, then denied by the customer).
14
+ class V2IamStripeAccessGrantDeniedEventNotification < Stripe::V2::Core::EventNotification
15
+ def self.lookup_type
16
+ "v2.iam.stripe_access_grant.denied"
17
+ end
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,20 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Events
6
+ # Occurs when a Stripe Access Grant is removed (was approved, and then removed by the customer).
7
+ class V2IamStripeAccessGrantRemovedEvent < Stripe::V2::Core::Event
8
+ def self.lookup_type
9
+ "v2.iam.stripe_access_grant.removed"
10
+ end
11
+ end
12
+
13
+ # Occurs when a Stripe Access Grant is removed (was approved, and then removed by the customer).
14
+ class V2IamStripeAccessGrantRemovedEventNotification < Stripe::V2::Core::EventNotification
15
+ def self.lookup_type
16
+ "v2.iam.stripe_access_grant.removed"
17
+ end
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,20 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Events
6
+ # Occurs when a Stripe Access Grant is requested.
7
+ class V2IamStripeAccessGrantRequestedEvent < Stripe::V2::Core::Event
8
+ def self.lookup_type
9
+ "v2.iam.stripe_access_grant.requested"
10
+ end
11
+ end
12
+
13
+ # Occurs when a Stripe Access Grant is requested.
14
+ class V2IamStripeAccessGrantRequestedEventNotification < Stripe::V2::Core::EventNotification
15
+ def self.lookup_type
16
+ "v2.iam.stripe_access_grant.requested"
17
+ end
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,20 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Events
6
+ # Occurs when a Stripe Access Grant is updated.
7
+ class V2IamStripeAccessGrantUpdatedEvent < Stripe::V2::Core::Event
8
+ def self.lookup_type
9
+ "v2.iam.stripe_access_grant.updated"
10
+ end
11
+ end
12
+
13
+ # Occurs when a Stripe Access Grant is updated.
14
+ class V2IamStripeAccessGrantUpdatedEventNotification < Stripe::V2::Core::EventNotification
15
+ def self.lookup_type
16
+ "v2.iam.stripe_access_grant.updated"
17
+ end
18
+ end
19
+ end
20
+ end
@@ -28,6 +28,7 @@ module Stripe
28
28
  BalanceTransfer.object_name => BalanceTransfer,
29
29
  BankAccount.object_name => BankAccount,
30
30
  Billing::Alert.object_name => Billing::Alert,
31
+ Billing::AlertRecovered.object_name => Billing::AlertRecovered,
31
32
  Billing::AlertTriggered.object_name => Billing::AlertTriggered,
32
33
  Billing::Analytics::MeterUsage.object_name => Billing::Analytics::MeterUsage,
33
34
  Billing::Analytics::MeterUsageRow.object_name => Billing::Analytics::MeterUsageRow,
@@ -129,6 +130,7 @@ module Stripe
129
130
  Product.object_name => Product,
130
131
  ProductCatalog::TrialOffer.object_name => ProductCatalog::TrialOffer,
131
132
  ProductFeature.object_name => ProductFeature,
133
+ Profile.object_name => Profile,
132
134
  PromotionCode.object_name => PromotionCode,
133
135
  Quote.object_name => Quote,
134
136
  QuoteLine.object_name => QuoteLine,
@@ -2207,6 +2207,8 @@ module Stripe
2207
2207
  end
2208
2208
 
2209
2209
  class Payments < ::Stripe::RequestParams
2210
+ # When you enable this parameter, the customer of this Account receives an email receipt when their payment succeeds. If this parameter isn't set, the default value is `false`.
2211
+ attr_accessor :email_customers_on_successful_payment
2210
2212
  # The default text that appears on statements for non-card charges outside of Japan. For card charges, if you don't set a `statement_descriptor_prefix`, this text is also used as the statement descriptor prefix. In that case, if concatenating the statement descriptor suffix causes the combined statement descriptor to exceed 22 characters, we truncate the `statement_descriptor` text to limit the full descriptor to 22 characters. For more information about statement descriptors and their requirements, see the [account settings documentation](https://docs.stripe.com/get-started/account/statement-descriptors).
2211
2213
  attr_accessor :statement_descriptor
2212
2214
  # The Kana variation of `statement_descriptor` used for charges in Japan. Japanese statement descriptors have [special requirements](https://docs.stripe.com/get-started/account/statement-descriptors#set-japanese-statement-descriptors).
@@ -2215,10 +2217,12 @@ module Stripe
2215
2217
  attr_accessor :statement_descriptor_kanji
2216
2218
 
2217
2219
  def initialize(
2220
+ email_customers_on_successful_payment: nil,
2218
2221
  statement_descriptor: nil,
2219
2222
  statement_descriptor_kana: nil,
2220
2223
  statement_descriptor_kanji: nil
2221
2224
  )
2225
+ @email_customers_on_successful_payment = email_customers_on_successful_payment
2222
2226
  @statement_descriptor = statement_descriptor
2223
2227
  @statement_descriptor_kana = statement_descriptor_kana
2224
2228
  @statement_descriptor_kanji = statement_descriptor_kanji
@@ -2324,6 +2328,23 @@ module Stripe
2324
2328
  end
2325
2329
  end
2326
2330
 
2331
+ class SmartDisputes < ::Stripe::RequestParams
2332
+ class AutoRespond < ::Stripe::RequestParams
2333
+ # The preference setting for auto-respond. Can be 'on', 'off', or 'inherit'.
2334
+ attr_accessor :preference
2335
+
2336
+ def initialize(preference: nil)
2337
+ @preference = preference
2338
+ end
2339
+ end
2340
+ # Smart Disputes auto-respond settings for the account.
2341
+ attr_accessor :auto_respond
2342
+
2343
+ def initialize(auto_respond: nil)
2344
+ @auto_respond = auto_respond
2345
+ end
2346
+ end
2347
+
2327
2348
  class TaxForms < ::Stripe::RequestParams
2328
2349
  # Whether the account opted out of receiving their tax forms by postal delivery.
2329
2350
  attr_accessor :consented_to_paperless_delivery
@@ -2375,6 +2396,8 @@ module Stripe
2375
2396
  attr_accessor :payouts
2376
2397
  # Settings specific to the PayPay payments method.
2377
2398
  attr_accessor :paypay_payments
2399
+ # Settings specific to the account's use of Smart Disputes.
2400
+ attr_accessor :smart_disputes
2378
2401
  # Settings specific to the account's tax forms.
2379
2402
  attr_accessor :tax_forms
2380
2403
  # Settings specific to the account's Treasury FinancialAccounts.
@@ -2391,6 +2414,7 @@ module Stripe
2391
2414
  payments: nil,
2392
2415
  payouts: nil,
2393
2416
  paypay_payments: nil,
2417
+ smart_disputes: nil,
2394
2418
  tax_forms: nil,
2395
2419
  treasury: nil
2396
2420
  )
@@ -2404,6 +2428,7 @@ module Stripe
2404
2428
  @payments = payments
2405
2429
  @payouts = payouts
2406
2430
  @paypay_payments = paypay_payments
2431
+ @smart_disputes = smart_disputes
2407
2432
  @tax_forms = tax_forms
2408
2433
  @treasury = treasury
2409
2434
  end
@@ -4,17 +4,17 @@
4
4
  module Stripe
5
5
  class AccountLinkCreateParams < ::Stripe::RequestParams
6
6
  class CollectionOptions < ::Stripe::RequestParams
7
+ # Specifies whether the platform collects external account information from connected accounts during Connect Onboarding. When set to `true`, the platform only collects external account information if the connected account has capabilities which require it. Some capabilities, such as `treasury`, don't require external account collection. When set to `false`, external account collection is skipped. Defaults to `true`.
8
+ attr_accessor :external_account_collection
7
9
  # Specifies whether the platform collects only currently_due requirements (`currently_due`) or both currently_due and eventually_due requirements (`eventually_due`). If you don't specify `collection_options`, the default value is `currently_due`.
8
10
  attr_accessor :fields
9
11
  # Specifies whether the platform collects future_requirements in addition to requirements in Connect Onboarding. The default value is `omit`.
10
12
  attr_accessor :future_requirements
11
- # Specifies whether the platform collects external account information from connected accounts during Connect Onboarding. When set to `false`, external account collection is skipped. Defaults to `true`.
12
- attr_accessor :external_account_collection
13
13
 
14
- def initialize(fields: nil, future_requirements: nil, external_account_collection: nil)
14
+ def initialize(external_account_collection: nil, fields: nil, future_requirements: nil)
15
+ @external_account_collection = external_account_collection
15
16
  @fields = fields
16
17
  @future_requirements = future_requirements
17
- @external_account_collection = external_account_collection
18
18
  end
19
19
  end
20
20
  # The identifier of the account to create an account link for.
@@ -734,6 +734,8 @@ module Stripe
734
734
  attr_accessor :account_management
735
735
  # Configuration for the [account onboarding](/connect/supported-embedded-components/account-onboarding/) embedded component.
736
736
  attr_accessor :account_onboarding
737
+ # Configuration for the [agentic commerce settings](/connect/supported-embedded-components/agentic-commerce-settings/) embedded component.
738
+ attr_accessor :agentic_commerce_settings
737
739
  # Configuration for the [app install](/connect/supported-embedded-components/app-install/) embedded component.
738
740
  attr_accessor :app_install
739
741
  # Configuration for the [app viewport](/connect/supported-embedded-components/app-viewport/) embedded component.
@@ -794,8 +796,6 @@ module Stripe
794
796
  attr_accessor :tax_settings
795
797
  # Configuration for the [tax threshold monitoring](/connect/supported-embedded-components/tax-threshold-monitoring/) embedded component.
796
798
  attr_accessor :tax_threshold_monitoring
797
- # Configuration for the [agentic commerce settings](/connect/supported-embedded-components/agentic-commerce-settings/) embedded component.
798
- attr_accessor :agentic_commerce_settings
799
799
  # Configuration for the [Terminal hardware orders](/connect/supported-embedded-components/terminal-hardware-orders/) embedded component.
800
800
  attr_accessor :terminal_hardware_orders
801
801
  # Configuration for the [Terminal hardware shop](/connect/supported-embedded-components/terminal-hardware-shop/) embedded component.
@@ -804,6 +804,7 @@ module Stripe
804
804
  def initialize(
805
805
  account_management: nil,
806
806
  account_onboarding: nil,
807
+ agentic_commerce_settings: nil,
807
808
  app_install: nil,
808
809
  app_viewport: nil,
809
810
  balances: nil,
@@ -834,12 +835,12 @@ module Stripe
834
835
  tax_registrations: nil,
835
836
  tax_settings: nil,
836
837
  tax_threshold_monitoring: nil,
837
- agentic_commerce_settings: nil,
838
838
  terminal_hardware_orders: nil,
839
839
  terminal_hardware_shop: nil
840
840
  )
841
841
  @account_management = account_management
842
842
  @account_onboarding = account_onboarding
843
+ @agentic_commerce_settings = agentic_commerce_settings
843
844
  @app_install = app_install
844
845
  @app_viewport = app_viewport
845
846
  @balances = balances
@@ -870,7 +871,6 @@ module Stripe
870
871
  @tax_registrations = tax_registrations
871
872
  @tax_settings = tax_settings
872
873
  @tax_threshold_monitoring = tax_threshold_monitoring
873
- @agentic_commerce_settings = agentic_commerce_settings
874
874
  @terminal_hardware_orders = terminal_hardware_orders
875
875
  @terminal_hardware_shop = terminal_hardware_shop
876
876
  end
@@ -2129,6 +2129,8 @@ module Stripe
2129
2129
  end
2130
2130
 
2131
2131
  class Payments < ::Stripe::RequestParams
2132
+ # When you enable this parameter, the customer of this Account receives an email receipt when their payment succeeds. If this parameter isn't set, the default value is `false`.
2133
+ attr_accessor :email_customers_on_successful_payment
2132
2134
  # The default text that appears on statements for non-card charges outside of Japan. For card charges, if you don't set a `statement_descriptor_prefix`, this text is also used as the statement descriptor prefix. In that case, if concatenating the statement descriptor suffix causes the combined statement descriptor to exceed 22 characters, we truncate the `statement_descriptor` text to limit the full descriptor to 22 characters. For more information about statement descriptors and their requirements, see the [account settings documentation](https://docs.stripe.com/get-started/account/statement-descriptors).
2133
2135
  attr_accessor :statement_descriptor
2134
2136
  # The Kana variation of `statement_descriptor` used for charges in Japan. Japanese statement descriptors have [special requirements](https://docs.stripe.com/get-started/account/statement-descriptors#set-japanese-statement-descriptors).
@@ -2137,10 +2139,12 @@ module Stripe
2137
2139
  attr_accessor :statement_descriptor_kanji
2138
2140
 
2139
2141
  def initialize(
2142
+ email_customers_on_successful_payment: nil,
2140
2143
  statement_descriptor: nil,
2141
2144
  statement_descriptor_kana: nil,
2142
2145
  statement_descriptor_kanji: nil
2143
2146
  )
2147
+ @email_customers_on_successful_payment = email_customers_on_successful_payment
2144
2148
  @statement_descriptor = statement_descriptor
2145
2149
  @statement_descriptor_kana = statement_descriptor_kana
2146
2150
  @statement_descriptor_kanji = statement_descriptor_kanji
@@ -2246,6 +2250,23 @@ module Stripe
2246
2250
  end
2247
2251
  end
2248
2252
 
2253
+ class SmartDisputes < ::Stripe::RequestParams
2254
+ class AutoRespond < ::Stripe::RequestParams
2255
+ # The preference setting for auto-respond. Can be 'on', 'off', or 'inherit'.
2256
+ attr_accessor :preference
2257
+
2258
+ def initialize(preference: nil)
2259
+ @preference = preference
2260
+ end
2261
+ end
2262
+ # Smart Disputes auto-respond settings for the account.
2263
+ attr_accessor :auto_respond
2264
+
2265
+ def initialize(auto_respond: nil)
2266
+ @auto_respond = auto_respond
2267
+ end
2268
+ end
2269
+
2249
2270
  class TaxForms < ::Stripe::RequestParams
2250
2271
  # Whether the account opted out of receiving their tax forms by postal delivery.
2251
2272
  attr_accessor :consented_to_paperless_delivery
@@ -2297,6 +2318,8 @@ module Stripe
2297
2318
  attr_accessor :payouts
2298
2319
  # Settings specific to the PayPay payments method.
2299
2320
  attr_accessor :paypay_payments
2321
+ # Settings specific to the account's use of Smart Disputes.
2322
+ attr_accessor :smart_disputes
2300
2323
  # Settings specific to the account's tax forms.
2301
2324
  attr_accessor :tax_forms
2302
2325
  # Settings specific to the account's Treasury FinancialAccounts.
@@ -2313,6 +2336,7 @@ module Stripe
2313
2336
  payments: nil,
2314
2337
  payouts: nil,
2315
2338
  paypay_payments: nil,
2339
+ smart_disputes: nil,
2316
2340
  tax_forms: nil,
2317
2341
  treasury: nil
2318
2342
  )
@@ -2326,6 +2350,7 @@ module Stripe
2326
2350
  @payments = payments
2327
2351
  @payouts = payouts
2328
2352
  @paypay_payments = paypay_payments
2353
+ @smart_disputes = smart_disputes
2329
2354
  @tax_forms = tax_forms
2330
2355
  @treasury = treasury
2331
2356
  end
@@ -163,7 +163,7 @@ module Stripe
163
163
  @value = value
164
164
  end
165
165
  end
166
- # The monetary amount. Required when type is `amount`.
166
+ # The monetary amount. Required when type is `amount`. The threshold is the total_before_tax, the amount consumed after all credits and discounts are applied, but before tax is applied.
167
167
  attr_accessor :amount
168
168
  # The custom pricing unit amount. Required when type is `custom_pricing_unit`.
169
169
  attr_accessor :custom_pricing_unit
@@ -207,7 +207,7 @@ module Stripe
207
207
  end
208
208
  # The filters allows limiting the scope of this usage alert. You can only specify up to one filter at this time.
209
209
  attr_accessor :filters
210
- # Defines at which value the alert will fire.
210
+ # Defines the threshold value that triggers the alert.
211
211
  attr_accessor :gte
212
212
  # The [Billing Meter](/api/billing/meter) ID whose usage is monitored.
213
213
  attr_accessor :meter
@@ -227,27 +227,27 @@ module Stripe
227
227
  attr_accessor :credit_balance_threshold
228
228
  # Specifies which fields in the response should be expanded.
229
229
  attr_accessor :expand
230
+ # The configuration of the spend threshold. An event fires when the amount consumed exceeds the threshold, after all credits and discounts are applied but before tax is applied.
231
+ attr_accessor :spend_threshold
230
232
  # The title of the alert.
231
233
  attr_accessor :title
232
234
  # The configuration of the usage threshold.
233
235
  attr_accessor :usage_threshold
234
- # The configuration of the spend threshold.
235
- attr_accessor :spend_threshold
236
236
 
237
237
  def initialize(
238
238
  alert_type: nil,
239
239
  credit_balance_threshold: nil,
240
240
  expand: nil,
241
+ spend_threshold: nil,
241
242
  title: nil,
242
- usage_threshold: nil,
243
- spend_threshold: nil
243
+ usage_threshold: nil
244
244
  )
245
245
  @alert_type = alert_type
246
246
  @credit_balance_threshold = credit_balance_threshold
247
247
  @expand = expand
248
+ @spend_threshold = spend_threshold
248
249
  @title = title
249
250
  @usage_threshold = usage_threshold
250
- @spend_threshold = spend_threshold
251
251
  end
252
252
  end
253
253
  end
@@ -142,7 +142,7 @@ module Stripe
142
142
  @type = type
143
143
  end
144
144
  end
145
- # The ID of an existing [configuration](https://docs.stripe.com/api/customer_portal/configuration) to use for this session, describing its functionality and features. If not specified, the session uses the default configuration.
145
+ # The ID of an existing [configuration](https://docs.stripe.com/api/customer_portal/configurations) to use for this session, describing its functionality and features. If not specified, the session uses the default configuration.
146
146
  attr_accessor :configuration
147
147
  # The ID of an existing customer.
148
148
  attr_accessor :customer