stripe 19.3.0.pre.beta.1 → 19.4.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 (93) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stripe/api_requestor.rb +34 -1
  3. data/lib/stripe/api_version.rb +1 -1
  4. data/lib/stripe/event_types.rb +16 -8
  5. data/lib/stripe/events/{v2_core_account_including_configuration_storer_capability_status_updated_event.rb → v2_core_account_including_configuration_money_manager_capability_status_updated_event.rb} +8 -8
  6. data/lib/stripe/events/{v2_core_account_including_configuration_storer_updated_event.rb → v2_core_account_including_configuration_money_manager_updated_event.rb} +6 -6
  7. data/lib/stripe/events/v2_money_management_outbound_payment_under_review_event.rb +44 -0
  8. data/lib/stripe/events/v2_money_management_outbound_transfer_under_review_event.rb +44 -0
  9. data/lib/stripe/params/account_create_params.rb +1 -1
  10. data/lib/stripe/params/account_update_params.rb +1 -1
  11. data/lib/stripe/params/balance_transaction_list_params.rb +1 -1
  12. data/lib/stripe/params/billing/credit_balance_summary_retrieve_params.rb +1 -1
  13. data/lib/stripe/params/billing/credit_grant_create_params.rb +1 -1
  14. data/lib/stripe/params/checkout/session_create_params.rb +47 -2
  15. data/lib/stripe/params/confirmation_token_create_params.rb +1 -1
  16. data/lib/stripe/params/credit_note_create_params.rb +1 -1
  17. data/lib/stripe/params/credit_note_list_preview_line_items_params.rb +1 -1
  18. data/lib/stripe/params/credit_note_preview_lines_list_params.rb +1 -1
  19. data/lib/stripe/params/credit_note_preview_params.rb +1 -1
  20. data/lib/stripe/params/dispute_update_params.rb +17 -1
  21. data/lib/stripe/params/financial_connections/session_create_params.rb +1 -1
  22. data/lib/stripe/params/invoice_add_lines_params.rb +1 -1
  23. data/lib/stripe/params/invoice_create_preview_params.rb +52 -1
  24. data/lib/stripe/params/invoice_line_item_update_params.rb +1 -1
  25. data/lib/stripe/params/invoice_update_lines_params.rb +1 -1
  26. data/lib/stripe/params/order_create_params.rb +1 -1
  27. data/lib/stripe/params/order_update_params.rb +1 -1
  28. data/lib/stripe/params/payment_intent_confirm_params.rb +38 -3
  29. data/lib/stripe/params/payment_intent_create_params.rb +38 -3
  30. data/lib/stripe/params/payment_intent_search_params.rb +1 -1
  31. data/lib/stripe/params/payment_intent_update_params.rb +38 -3
  32. data/lib/stripe/params/payment_link_create_params.rb +1 -1
  33. data/lib/stripe/params/payment_method_create_params.rb +1 -1
  34. data/lib/stripe/params/setup_intent_confirm_params.rb +1 -1
  35. data/lib/stripe/params/setup_intent_create_params.rb +1 -1
  36. data/lib/stripe/params/setup_intent_update_params.rb +1 -1
  37. data/lib/stripe/params/subscription_create_params.rb +28 -1
  38. data/lib/stripe/params/subscription_pause_params.rb +1 -1
  39. data/lib/stripe/params/subscription_update_params.rb +29 -2
  40. data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +1 -1
  41. data/lib/stripe/params/topup_create_params.rb +24 -0
  42. data/lib/stripe/params/v2/core/account_create_params.rb +258 -124
  43. data/lib/stripe/params/v2/core/account_token_create_params.rb +4 -4
  44. data/lib/stripe/params/v2/core/account_update_params.rb +268 -134
  45. data/lib/stripe/params/v2/core/batch_job_create_params.rb +0 -5
  46. data/lib/stripe/params/v2/money_management/financial_account_list_params.rb +4 -4
  47. data/lib/stripe/resources/balance_transaction.rb +3 -3
  48. data/lib/stripe/resources/capital/financing_offer.rb +2 -0
  49. data/lib/stripe/resources/capital/financing_summary.rb +2 -0
  50. data/lib/stripe/resources/card.rb +16 -1
  51. data/lib/stripe/resources/charge.rb +22 -0
  52. data/lib/stripe/resources/checkout/session.rb +66 -0
  53. data/lib/stripe/resources/confirmation_token.rb +9 -0
  54. data/lib/stripe/resources/credit_note.rb +2 -0
  55. data/lib/stripe/resources/customer.rb +16 -0
  56. data/lib/stripe/resources/dispute.rb +32 -0
  57. data/lib/stripe/resources/financial_connections/account.rb +20 -1
  58. data/lib/stripe/resources/financial_connections/authorization.rb +18 -1
  59. data/lib/stripe/resources/issuing/authorization.rb +16 -0
  60. data/lib/stripe/resources/issuing/card.rb +16 -0
  61. data/lib/stripe/resources/issuing/cardholder.rb +16 -0
  62. data/lib/stripe/resources/issuing/dispute.rb +16 -1
  63. data/lib/stripe/resources/issuing/transaction.rb +16 -0
  64. data/lib/stripe/resources/order.rb +1 -1
  65. data/lib/stripe/resources/payment_attempt_record.rb +2 -2
  66. data/lib/stripe/resources/payment_intent.rb +49 -1
  67. data/lib/stripe/resources/payment_method.rb +25 -0
  68. data/lib/stripe/resources/payment_record.rb +2 -2
  69. data/lib/stripe/resources/radar/value_list_item.rb +15 -1
  70. data/lib/stripe/resources/reserve/hold.rb +18 -1
  71. data/lib/stripe/resources/setup_attempt.rb +16 -0
  72. data/lib/stripe/resources/setup_intent.rb +16 -0
  73. data/lib/stripe/resources/shared_payment/granted_token.rb +9 -0
  74. data/lib/stripe/resources/source.rb +16 -0
  75. data/lib/stripe/resources/subscription.rb +24 -3
  76. data/lib/stripe/resources/token.rb +15 -1
  77. data/lib/stripe/resources/v2/commerce/product_catalog_import.rb +2 -0
  78. data/lib/stripe/resources/v2/core/account.rb +515 -198
  79. data/lib/stripe/resources/v2/core/batch_job.rb +0 -2
  80. data/lib/stripe/resources/v2/money_management/financial_address.rb +2 -2
  81. data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +1 -1
  82. data/lib/stripe/resources/v2/money_management/outbound_payment.rb +17 -2
  83. data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +17 -2
  84. data/lib/stripe/resources/v2/money_management/received_credit.rb +2 -0
  85. data/lib/stripe/resources.rb +20 -10
  86. data/lib/stripe/services/balance_transaction_service.rb +2 -2
  87. data/lib/stripe/services/credit_note_service.rb +2 -0
  88. data/lib/stripe/services/subscription_service.rb +1 -1
  89. data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +1 -0
  90. data/lib/stripe/stripe_event_notification_handler.rb +20 -8
  91. data/lib/stripe/version.rb +1 -1
  92. data/rbi/stripe.rbi +2545 -881
  93. metadata +9 -7
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: afafb2a8e28c3da022dd66a279a3d5d2e9db63db55e3de937c97795cdf716776
4
- data.tar.gz: 03e5ebc1552f8ea7442def80713c6aaf79c861f6b85b446074cf80e25892718e
3
+ metadata.gz: fb584feca4d939e2430e5fe9090bcb72061a1acefd38dd425244b26226ee56a3
4
+ data.tar.gz: 2a6468a740e65a6f7e2df844f1ee954f951f2e058316733a003f589a0014055f
5
5
  SHA512:
6
- metadata.gz: b32bba5512cdf3ee41477cd06947a023827cbbca94d24d032dce892c4c0c291c73ea7bd48c65093aeb2736d33cd34b84d6104b8d93534da97a67da88d01f7c74
7
- data.tar.gz: 8a716bbe5b5c4ee3931943d642981620911a9307255c39ba65861a6a00ffd5f387b1cb19e8069fa10a0ee8cdeef742d876d868105b351ac4d4b59db7a09eecfa
6
+ metadata.gz: 3fb14fff4045a430d6dd852aa58c20626da40c184456553f149b05055c0bd8787a0c0d6b3a57a36c975a45db5a1e74b7e4109dc5ba009680f0752aea548cfc8c
7
+ data.tar.gz: c938e2337db24d0d904bb4d4f93a34ca9c00d076ffc2bb4e1439348ca3bbfdf1cbb942e1f7cca66ee576b094d1095a8006c1b6411c4bdc0476f19bb169be3c13
@@ -1,5 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require "digest"
4
+ require "socket"
3
5
  require "stripe/instrumentation"
4
6
 
5
7
  module Stripe
@@ -201,6 +203,9 @@ module Stripe
201
203
  )
202
204
  req_opts = RequestOptions.extract_opts_from_hash(req_opts)
203
205
 
206
+ notice = http_resp["stripe-notice"]
207
+ warn("WARNING: #{notice}") if notice
208
+
204
209
  resp = interpret_response(http_resp)
205
210
 
206
211
  # If being called from `APIRequestor#request`, put the last response in
@@ -1099,6 +1104,31 @@ module Stripe
1099
1104
  # in so that we can generate a rich user agent header to help debug
1100
1105
  # integrations.
1101
1106
  class SystemProfiler
1107
+ UNAME_HASH = begin
1108
+ parts = []
1109
+ parts << if RUBY_PLATFORM.match?(/mswin|mingw|cygwin/)
1110
+ begin
1111
+ `ver 2>NUL`.strip
1112
+ rescue StandardError
1113
+ ""
1114
+ end
1115
+ else
1116
+ begin
1117
+ `uname -a 2>/dev/null`.strip
1118
+ rescue StandardError
1119
+ ""
1120
+ end
1121
+ end
1122
+ parts << begin
1123
+ Socket.gethostname
1124
+ rescue StandardError
1125
+ ""
1126
+ end
1127
+ Digest::MD5.hexdigest(parts.join(" "))
1128
+ rescue StandardError
1129
+ ""
1130
+ end
1131
+
1102
1132
  AI_AGENTS = [
1103
1133
  # aiAgents: The beginning of the section generated from our OpenAPI spec
1104
1134
  %w[ANTIGRAVITY_CLI_ALIAS antigravity],
@@ -1134,7 +1164,10 @@ module Stripe
1134
1164
  engine: defined?(RUBY_ENGINE) ? RUBY_ENGINE : "",
1135
1165
  }.delete_if { |_k, v| v.nil? }
1136
1166
 
1137
- ua[:platform] = RUBY_PLATFORM if Stripe.enable_telemetry?
1167
+ if Stripe.enable_telemetry?
1168
+ ua[:platform] = RUBY_PLATFORM
1169
+ ua[:source] = UNAME_HASH unless UNAME_HASH.empty?
1170
+ end
1138
1171
 
1139
1172
  ai_agent = detect_ai_agent
1140
1173
  ua[:ai_agent] = ai_agent unless ai_agent.empty?
@@ -3,6 +3,6 @@
3
3
 
4
4
  module Stripe
5
5
  module ApiVersion
6
- CURRENT = "2026-05-27.preview"
6
+ CURRENT = "2026-06-24.preview"
7
7
  end
8
8
  end
@@ -26,14 +26,14 @@ module Stripe
26
26
  Events::V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEvent,
27
27
  Events::V2CoreAccountIncludingConfigurationMerchantUpdatedEvent.lookup_type =>
28
28
  Events::V2CoreAccountIncludingConfigurationMerchantUpdatedEvent,
29
+ Events::V2CoreAccountIncludingConfigurationMoneyManagerCapabilityStatusUpdatedEvent.lookup_type =>
30
+ Events::V2CoreAccountIncludingConfigurationMoneyManagerCapabilityStatusUpdatedEvent,
31
+ Events::V2CoreAccountIncludingConfigurationMoneyManagerUpdatedEvent.lookup_type =>
32
+ Events::V2CoreAccountIncludingConfigurationMoneyManagerUpdatedEvent,
29
33
  Events::V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent.lookup_type =>
30
34
  Events::V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent,
31
35
  Events::V2CoreAccountIncludingConfigurationRecipientUpdatedEvent.lookup_type =>
32
36
  Events::V2CoreAccountIncludingConfigurationRecipientUpdatedEvent,
33
- Events::V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEvent.lookup_type =>
34
- Events::V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEvent,
35
- Events::V2CoreAccountIncludingConfigurationStorerUpdatedEvent.lookup_type =>
36
- Events::V2CoreAccountIncludingConfigurationStorerUpdatedEvent,
37
37
  Events::V2CoreAccountIncludingDefaultsUpdatedEvent.lookup_type =>
38
38
  Events::V2CoreAccountIncludingDefaultsUpdatedEvent,
39
39
  Events::V2CoreAccountIncludingFutureRequirementsUpdatedEvent.lookup_type =>
@@ -104,6 +104,8 @@ module Stripe
104
104
  Events::V2MoneyManagementOutboundPaymentPostedEvent,
105
105
  Events::V2MoneyManagementOutboundPaymentReturnedEvent.lookup_type =>
106
106
  Events::V2MoneyManagementOutboundPaymentReturnedEvent,
107
+ Events::V2MoneyManagementOutboundPaymentUnderReviewEvent.lookup_type =>
108
+ Events::V2MoneyManagementOutboundPaymentUnderReviewEvent,
107
109
  Events::V2MoneyManagementOutboundPaymentUpdatedEvent.lookup_type =>
108
110
  Events::V2MoneyManagementOutboundPaymentUpdatedEvent,
109
111
  Events::V2MoneyManagementOutboundTransferCanceledEvent.lookup_type =>
@@ -116,6 +118,8 @@ module Stripe
116
118
  Events::V2MoneyManagementOutboundTransferPostedEvent,
117
119
  Events::V2MoneyManagementOutboundTransferReturnedEvent.lookup_type =>
118
120
  Events::V2MoneyManagementOutboundTransferReturnedEvent,
121
+ Events::V2MoneyManagementOutboundTransferUnderReviewEvent.lookup_type =>
122
+ Events::V2MoneyManagementOutboundTransferUnderReviewEvent,
119
123
  Events::V2MoneyManagementOutboundTransferUpdatedEvent.lookup_type =>
120
124
  Events::V2MoneyManagementOutboundTransferUpdatedEvent,
121
125
  Events::V2MoneyManagementPayoutMethodCreatedEvent.lookup_type =>
@@ -183,14 +187,14 @@ module Stripe
183
187
  Events::V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEventNotification,
184
188
  Events::V2CoreAccountIncludingConfigurationMerchantUpdatedEventNotification.lookup_type =>
185
189
  Events::V2CoreAccountIncludingConfigurationMerchantUpdatedEventNotification,
190
+ Events::V2CoreAccountIncludingConfigurationMoneyManagerCapabilityStatusUpdatedEventNotification.lookup_type =>
191
+ Events::V2CoreAccountIncludingConfigurationMoneyManagerCapabilityStatusUpdatedEventNotification,
192
+ Events::V2CoreAccountIncludingConfigurationMoneyManagerUpdatedEventNotification.lookup_type =>
193
+ Events::V2CoreAccountIncludingConfigurationMoneyManagerUpdatedEventNotification,
186
194
  Events::V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEventNotification.lookup_type =>
187
195
  Events::V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEventNotification,
188
196
  Events::V2CoreAccountIncludingConfigurationRecipientUpdatedEventNotification.lookup_type =>
189
197
  Events::V2CoreAccountIncludingConfigurationRecipientUpdatedEventNotification,
190
- Events::V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEventNotification.lookup_type =>
191
- Events::V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEventNotification,
192
- Events::V2CoreAccountIncludingConfigurationStorerUpdatedEventNotification.lookup_type =>
193
- Events::V2CoreAccountIncludingConfigurationStorerUpdatedEventNotification,
194
198
  Events::V2CoreAccountIncludingDefaultsUpdatedEventNotification.lookup_type =>
195
199
  Events::V2CoreAccountIncludingDefaultsUpdatedEventNotification,
196
200
  Events::V2CoreAccountIncludingFutureRequirementsUpdatedEventNotification.lookup_type =>
@@ -279,6 +283,8 @@ module Stripe
279
283
  Events::V2MoneyManagementOutboundPaymentPostedEventNotification,
280
284
  Events::V2MoneyManagementOutboundPaymentReturnedEventNotification.lookup_type =>
281
285
  Events::V2MoneyManagementOutboundPaymentReturnedEventNotification,
286
+ Events::V2MoneyManagementOutboundPaymentUnderReviewEventNotification.lookup_type =>
287
+ Events::V2MoneyManagementOutboundPaymentUnderReviewEventNotification,
282
288
  Events::V2MoneyManagementOutboundPaymentUpdatedEventNotification.lookup_type =>
283
289
  Events::V2MoneyManagementOutboundPaymentUpdatedEventNotification,
284
290
  Events::V2MoneyManagementOutboundTransferCanceledEventNotification.lookup_type =>
@@ -291,6 +297,8 @@ module Stripe
291
297
  Events::V2MoneyManagementOutboundTransferPostedEventNotification,
292
298
  Events::V2MoneyManagementOutboundTransferReturnedEventNotification.lookup_type =>
293
299
  Events::V2MoneyManagementOutboundTransferReturnedEventNotification,
300
+ Events::V2MoneyManagementOutboundTransferUnderReviewEventNotification.lookup_type =>
301
+ Events::V2MoneyManagementOutboundTransferUnderReviewEventNotification,
294
302
  Events::V2MoneyManagementOutboundTransferUpdatedEventNotification.lookup_type =>
295
303
  Events::V2MoneyManagementOutboundTransferUpdatedEventNotification,
296
304
  Events::V2MoneyManagementPayoutMethodCreatedEventNotification.lookup_type =>
@@ -3,13 +3,13 @@
3
3
 
4
4
  module Stripe
5
5
  module Events
6
- # Occurs when the status of an Account's storer configuration capability is updated.
7
- class V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEvent < Stripe::V2::Core::Event
6
+ # Occurs when the status of an Account's money manager configuration capability is updated.
7
+ class V2CoreAccountIncludingConfigurationMoneyManagerCapabilityStatusUpdatedEvent < Stripe::V2::Core::Event
8
8
  def self.lookup_type
9
- "v2.core.account[configuration.storer].capability_status_updated"
9
+ "v2.core.account[configuration.money_manager].capability_status_updated"
10
10
  end
11
11
 
12
- class V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEventData < ::Stripe::StripeObject
12
+ class V2CoreAccountIncludingConfigurationMoneyManagerCapabilityStatusUpdatedEventData < ::Stripe::StripeObject
13
13
  # Open Enum. The capability which had its status updated.
14
14
  attr_reader :updated_capability
15
15
 
@@ -24,7 +24,7 @@ module Stripe
24
24
 
25
25
  def self.inner_class_types
26
26
  @inner_class_types = {
27
- data: V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEventData,
27
+ data: V2CoreAccountIncludingConfigurationMoneyManagerCapabilityStatusUpdatedEventData,
28
28
  }
29
29
  end
30
30
  attr_reader :data, :related_object
@@ -40,10 +40,10 @@ module Stripe
40
40
  end
41
41
  end
42
42
 
43
- # Occurs when the status of an Account's storer configuration capability is updated.
44
- class V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEventNotification < Stripe::V2::Core::EventNotification
43
+ # Occurs when the status of an Account's money manager configuration capability is updated.
44
+ class V2CoreAccountIncludingConfigurationMoneyManagerCapabilityStatusUpdatedEventNotification < Stripe::V2::Core::EventNotification
45
45
  def self.lookup_type
46
- "v2.core.account[configuration.storer].capability_status_updated"
46
+ "v2.core.account[configuration.money_manager].capability_status_updated"
47
47
  end
48
48
 
49
49
  attr_reader :related_object
@@ -3,10 +3,10 @@
3
3
 
4
4
  module Stripe
5
5
  module Events
6
- # Occurs when a Storer's configuration is updated.
7
- class V2CoreAccountIncludingConfigurationStorerUpdatedEvent < Stripe::V2::Core::Event
6
+ # Occurs when a MoneyManager's configuration is updated.
7
+ class V2CoreAccountIncludingConfigurationMoneyManagerUpdatedEvent < Stripe::V2::Core::Event
8
8
  def self.lookup_type
9
- "v2.core.account[configuration.storer].updated"
9
+ "v2.core.account[configuration.money_manager].updated"
10
10
  end
11
11
 
12
12
  # Retrieves the related object from the API. Makes an API request on every call.
@@ -21,10 +21,10 @@ module Stripe
21
21
  attr_reader :related_object
22
22
  end
23
23
 
24
- # Occurs when a Storer's configuration is updated.
25
- class V2CoreAccountIncludingConfigurationStorerUpdatedEventNotification < Stripe::V2::Core::EventNotification
24
+ # Occurs when a MoneyManager's configuration is updated.
25
+ class V2CoreAccountIncludingConfigurationMoneyManagerUpdatedEventNotification < Stripe::V2::Core::EventNotification
26
26
  def self.lookup_type
27
- "v2.core.account[configuration.storer].updated"
27
+ "v2.core.account[configuration.money_manager].updated"
28
28
  end
29
29
 
30
30
  attr_reader :related_object
@@ -0,0 +1,44 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Events
6
+ # Occurs when an OutboundPayment is placed under review.
7
+ class V2MoneyManagementOutboundPaymentUnderReviewEvent < Stripe::V2::Core::Event
8
+ def self.lookup_type
9
+ "v2.money_management.outbound_payment.under_review"
10
+ end
11
+
12
+ # Retrieves the related object from the API. Makes an API request on every call.
13
+ def fetch_related_object
14
+ _request(
15
+ method: :get,
16
+ path: related_object.url,
17
+ base_address: :api,
18
+ opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" }
19
+ )
20
+ end
21
+ attr_reader :related_object
22
+ end
23
+
24
+ # Occurs when an OutboundPayment is placed under review.
25
+ class V2MoneyManagementOutboundPaymentUnderReviewEventNotification < Stripe::V2::Core::EventNotification
26
+ def self.lookup_type
27
+ "v2.money_management.outbound_payment.under_review"
28
+ end
29
+
30
+ attr_reader :related_object
31
+
32
+ # Retrieves the OutboundPayment related to this EventNotification from the Stripe API. Makes an API request on every call.
33
+ def fetch_related_object
34
+ resp = @client.raw_request(
35
+ :get,
36
+ related_object.url,
37
+ opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" },
38
+ usage: ["fetch_related_object"]
39
+ )
40
+ @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url))
41
+ end
42
+ end
43
+ end
44
+ end
@@ -0,0 +1,44 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Events
6
+ # Occurs when an OutboundTransfer is placed under review.
7
+ class V2MoneyManagementOutboundTransferUnderReviewEvent < Stripe::V2::Core::Event
8
+ def self.lookup_type
9
+ "v2.money_management.outbound_transfer.under_review"
10
+ end
11
+
12
+ # Retrieves the related object from the API. Makes an API request on every call.
13
+ def fetch_related_object
14
+ _request(
15
+ method: :get,
16
+ path: related_object.url,
17
+ base_address: :api,
18
+ opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" }
19
+ )
20
+ end
21
+ attr_reader :related_object
22
+ end
23
+
24
+ # Occurs when an OutboundTransfer is placed under review.
25
+ class V2MoneyManagementOutboundTransferUnderReviewEventNotification < Stripe::V2::Core::EventNotification
26
+ def self.lookup_type
27
+ "v2.money_management.outbound_transfer.under_review"
28
+ end
29
+
30
+ attr_reader :related_object
31
+
32
+ # Retrieves the OutboundTransfer related to this EventNotification from the Stripe API. Makes an API request on every call.
33
+ def fetch_related_object
34
+ resp = @client.raw_request(
35
+ :get,
36
+ related_object.url,
37
+ opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" },
38
+ usage: ["fetch_related_object"]
39
+ )
40
+ @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url))
41
+ end
42
+ end
43
+ end
44
+ end
@@ -1736,7 +1736,7 @@ module Stripe
1736
1736
  attr_accessor :bank_account_ownership_verification
1737
1737
  # One or more documents that demonstrate proof of a company's license to operate.
1738
1738
  attr_accessor :company_license
1739
- # One or more documents showing the company's Memorandum of Association.
1739
+ # One or more documents showing the company's governing document (for example, a memorandum of association, constitution, or articles of association).
1740
1740
  attr_accessor :company_memorandum_of_association
1741
1741
  # (Certain countries only) One or more documents showing the ministerial decree legalizing the company's establishment.
1742
1742
  attr_accessor :company_ministerial_decree
@@ -1655,7 +1655,7 @@ module Stripe
1655
1655
  attr_accessor :bank_account_ownership_verification
1656
1656
  # One or more documents that demonstrate proof of a company's license to operate.
1657
1657
  attr_accessor :company_license
1658
- # One or more documents showing the company's Memorandum of Association.
1658
+ # One or more documents showing the company's governing document (for example, a memorandum of association, constitution, or articles of association).
1659
1659
  attr_accessor :company_memorandum_of_association
1660
1660
  # (Certain countries only) One or more documents showing the ministerial decree legalizing the company's establishment.
1661
1661
  attr_accessor :company_ministerial_decree
@@ -36,7 +36,7 @@ module Stripe
36
36
  attr_accessor :source
37
37
  # A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
38
38
  attr_accessor :starting_after
39
- # Only returns transactions of the given type. One of: `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `climate_order_purchase`, `climate_order_refund`, `connect_collection_transfer`, `contribution`, `inbound_transfer`, `inbound_transfer_reversal`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_transaction`, `obligation_outbound`, `obligation_reversal_inbound`, `payment`, `payment_failure_refund`, `payment_network_reserve_hold`, `payment_network_reserve_release`, `payment_refund`, `payment_reversal`, `payment_unreconciled`, `payout`, `payout_cancel`, `payout_failure`, `payout_minimum_balance_hold`, `payout_minimum_balance_release`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `reserve_hold`, `reserve_release`, `stripe_fee`, `stripe_fx_fee`, `stripe_balance_payment_debit`, `stripe_balance_payment_debit_reversal`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, `transfer_refund`, or `fee_credit_funding`.
39
+ # Only returns transactions of the given type. One of: `tax_fund`, `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `climate_order_purchase`, `climate_order_refund`, `connect_collection_transfer`, `contribution`, `inbound_transfer`, `inbound_transfer_reversal`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_transaction`, `obligation_outbound`, `obligation_reversal_inbound`, `payment`, `payment_failure_refund`, `payment_network_reserve_hold`, `payment_network_reserve_release`, `payment_refund`, `payment_reversal`, `payment_unreconciled`, `payout`, `payout_cancel`, `payout_failure`, `payout_minimum_balance_hold`, `payout_minimum_balance_release`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `reserve_hold`, `reserve_release`, `stripe_fee`, `stripe_fx_fee`, `stripe_balance_payment_debit`, `stripe_balance_payment_debit_reversal`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, `transfer_refund`, or `fee_credit_funding`.
40
40
  attr_accessor :type
41
41
 
42
42
  def initialize(
@@ -16,7 +16,7 @@ module Stripe
16
16
  end
17
17
  # The price type that credit grants can apply to. We currently only support the `metered` price type. Cannot be used in combination with `prices`.
18
18
  attr_accessor :price_type
19
- # A list of prices that the credit grant can apply to. We currently only support the `metered` prices. Cannot be used in combination with `price_type`.
19
+ # A list of prices that the credit grant can apply to. We currently only support the `metered` prices. Cannot be used in combination with `price_type`. Limit 20 prices.
20
20
  attr_accessor :prices
21
21
 
22
22
  def initialize(price_type: nil, prices: nil)
@@ -39,7 +39,7 @@ module Stripe
39
39
  end
40
40
  # The price type that credit grants can apply to. We currently only support the `metered` price type. Cannot be used in combination with `prices`.
41
41
  attr_accessor :price_type
42
- # A list of prices that the credit grant can apply to. We currently only support the `metered` prices. Cannot be used in combination with `price_type`.
42
+ # A list of prices that the credit grant can apply to. We currently only support the `metered` prices. Cannot be used in combination with `price_type`. Limit 20 prices.
43
43
  attr_accessor :prices
44
44
 
45
45
  def initialize(price_type: nil, prices: nil)
@@ -1818,6 +1818,24 @@ module Stripe
1818
1818
  end
1819
1819
  end
1820
1820
 
1821
+ class Sunbit < ::Stripe::RequestParams
1822
+ # Controls when the funds will be captured from the customer's account.
1823
+ attr_accessor :capture_method
1824
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1825
+ #
1826
+ # 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.
1827
+ #
1828
+ # 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.
1829
+ #
1830
+ # 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).
1831
+ attr_accessor :setup_future_usage
1832
+
1833
+ def initialize(capture_method: nil, setup_future_usage: nil)
1834
+ @capture_method = capture_method
1835
+ @setup_future_usage = setup_future_usage
1836
+ end
1837
+ end
1838
+
1821
1839
  class Swish < ::Stripe::RequestParams
1822
1840
  # The order reference that will be displayed to customers in the Swish application. Defaults to the `id` of the Payment Intent.
1823
1841
  attr_accessor :reference
@@ -2019,6 +2037,8 @@ module Stripe
2019
2037
  attr_accessor :sepa_debit
2020
2038
  # contains details about the Sofort payment method options.
2021
2039
  attr_accessor :sofort
2040
+ # contains details about the Sunbit payment method options.
2041
+ attr_accessor :sunbit
2022
2042
  # contains details about the Swish payment method options.
2023
2043
  attr_accessor :swish
2024
2044
  # contains details about the TWINT payment method options.
@@ -2075,6 +2095,7 @@ module Stripe
2075
2095
  scalapay: nil,
2076
2096
  sepa_debit: nil,
2077
2097
  sofort: nil,
2098
+ sunbit: nil,
2078
2099
  swish: nil,
2079
2100
  twint: nil,
2080
2101
  upi: nil,
@@ -2125,6 +2146,7 @@ module Stripe
2125
2146
  @scalapay = scalapay
2126
2147
  @sepa_debit = sepa_debit
2127
2148
  @sofort = sofort
2149
+ @sunbit = sunbit
2128
2150
  @swish = swish
2129
2151
  @twint = twint
2130
2152
  @upi = upi
@@ -2347,6 +2369,27 @@ module Stripe
2347
2369
  end
2348
2370
 
2349
2371
  class SubscriptionData < ::Stripe::RequestParams
2372
+ class BillingCycleAnchorConfig < ::Stripe::RequestParams
2373
+ # The day of the month the anchor should be. Ranges from 1 to 31.
2374
+ attr_accessor :day_of_month
2375
+ # The hour of the day the anchor should be. Ranges from 0 to 23.
2376
+ attr_accessor :hour
2377
+ # The minute of the hour the anchor should be. Ranges from 0 to 59.
2378
+ attr_accessor :minute
2379
+ # The month to start full cycle periods. Ranges from 1 to 12.
2380
+ attr_accessor :month
2381
+ # The second of the minute the anchor should be. Ranges from 0 to 59.
2382
+ attr_accessor :second
2383
+
2384
+ def initialize(day_of_month: nil, hour: nil, minute: nil, month: nil, second: nil)
2385
+ @day_of_month = day_of_month
2386
+ @hour = hour
2387
+ @minute = minute
2388
+ @month = month
2389
+ @second = second
2390
+ end
2391
+ end
2392
+
2350
2393
  class BillingMode < ::Stripe::RequestParams
2351
2394
  class Flexible < ::Stripe::RequestParams
2352
2395
  # Controls how invoices and invoice items display proration amounts and discount amounts.
@@ -2431,6 +2474,8 @@ module Stripe
2431
2474
  attr_accessor :application_fee_percent
2432
2475
  # A future timestamp to anchor the subscription's billing cycle for new subscriptions. You can't set this parameter if `ui_mode` is `elements`.
2433
2476
  attr_accessor :billing_cycle_anchor
2477
+ # Configures when the subscription schedule's billing cycle anchors to a specific day of the week or month.
2478
+ attr_accessor :billing_cycle_anchor_config
2434
2479
  # Controls how prorations and invoices for subscriptions are calculated and orchestrated.
2435
2480
  attr_accessor :billing_mode
2436
2481
  # The tax rates that will apply to any subscription item that does not have
@@ -2463,6 +2508,7 @@ module Stripe
2463
2508
  def initialize(
2464
2509
  application_fee_percent: nil,
2465
2510
  billing_cycle_anchor: nil,
2511
+ billing_cycle_anchor_config: nil,
2466
2512
  billing_mode: nil,
2467
2513
  default_tax_rates: nil,
2468
2514
  description: nil,
@@ -2478,6 +2524,7 @@ module Stripe
2478
2524
  )
2479
2525
  @application_fee_percent = application_fee_percent
2480
2526
  @billing_cycle_anchor = billing_cycle_anchor
2527
+ @billing_cycle_anchor_config = billing_cycle_anchor_config
2481
2528
  @billing_mode = billing_mode
2482
2529
  @default_tax_rates = default_tax_rates
2483
2530
  @description = description
@@ -2610,8 +2657,6 @@ module Stripe
2610
2657
  # You can configure Checkout to collect your customers' business names, individual names, or both. Each name field can be either required or optional.
2611
2658
  #
2612
2659
  # If a [Customer](https://docs.stripe.com/api/customers) is created or provided, the names can be saved to the Customer object as well.
2613
- #
2614
- # You can't set this parameter if `ui_mode` is `custom`.
2615
2660
  attr_accessor :name_collection
2616
2661
  # A list of optional items the customer can add to their order at checkout. Use this parameter to pass one-time or recurring [Prices](https://docs.stripe.com/api/prices).
2617
2662
  #
@@ -514,7 +514,7 @@ module Stripe
514
514
  attr_accessor :sofort
515
515
  # This hash contains details about the Stripe balance payment method.
516
516
  attr_accessor :stripe_balance
517
- # If this is a Sunbit PaymentMethod, this hash contains details about the Sunbit payment method.
517
+ # If this is a `sunbit` PaymentMethod, this hash contains details about the Sunbit payment method.
518
518
  attr_accessor :sunbit
519
519
  # If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
520
520
  attr_accessor :swish
@@ -28,7 +28,7 @@ module Stripe
28
28
  attr_accessor :metadata
29
29
  # The line item quantity to credit.
30
30
  attr_accessor :quantity
31
- # A list of up to 10 tax amounts for the credit note line item. Not valid when `tax_rates` is used or if invoice is set up with `automatic_tax[enabled]=true`.
31
+ # A list of up to 20 tax amounts for the credit note line item. Not valid when `tax_rates` is used or if invoice is set up with `automatic_tax[enabled]=true`.
32
32
  attr_accessor :tax_amounts
33
33
  # The tax rates which apply to the credit note line item. Only valid when the `type` is `custom_line_item` and `tax_amounts` is not used.
34
34
  attr_accessor :tax_rates
@@ -28,7 +28,7 @@ module Stripe
28
28
  attr_accessor :metadata
29
29
  # The line item quantity to credit.
30
30
  attr_accessor :quantity
31
- # A list of up to 10 tax amounts for the credit note line item. Not valid when `tax_rates` is used or if invoice is set up with `automatic_tax[enabled]=true`.
31
+ # A list of up to 20 tax amounts for the credit note line item. Not valid when `tax_rates` is used or if invoice is set up with `automatic_tax[enabled]=true`.
32
32
  attr_accessor :tax_amounts
33
33
  # The tax rates which apply to the credit note line item. Only valid when the `type` is `custom_line_item` and `tax_amounts` is not used.
34
34
  attr_accessor :tax_rates
@@ -28,7 +28,7 @@ module Stripe
28
28
  attr_accessor :metadata
29
29
  # The line item quantity to credit.
30
30
  attr_accessor :quantity
31
- # A list of up to 10 tax amounts for the credit note line item. Not valid when `tax_rates` is used or if invoice is set up with `automatic_tax[enabled]=true`.
31
+ # A list of up to 20 tax amounts for the credit note line item. Not valid when `tax_rates` is used or if invoice is set up with `automatic_tax[enabled]=true`.
32
32
  attr_accessor :tax_amounts
33
33
  # The tax rates which apply to the credit note line item. Only valid when the `type` is `custom_line_item` and `tax_amounts` is not used.
34
34
  attr_accessor :tax_rates
@@ -28,7 +28,7 @@ module Stripe
28
28
  attr_accessor :metadata
29
29
  # The line item quantity to credit.
30
30
  attr_accessor :quantity
31
- # A list of up to 10 tax amounts for the credit note line item. Not valid when `tax_rates` is used or if invoice is set up with `automatic_tax[enabled]=true`.
31
+ # A list of up to 20 tax amounts for the credit note line item. Not valid when `tax_rates` is used or if invoice is set up with `automatic_tax[enabled]=true`.
32
32
  attr_accessor :tax_amounts
33
33
  # The tax rates which apply to the credit note line item. Only valid when the `type` is `custom_line_item` and `tax_amounts` is not used.
34
34
  attr_accessor :tax_rates
@@ -5,6 +5,15 @@ module Stripe
5
5
  class DisputeUpdateParams < ::Stripe::RequestParams
6
6
  class Evidence < ::Stripe::RequestParams
7
7
  class EnhancedEvidence < ::Stripe::RequestParams
8
+ class MastercardCompliance < ::Stripe::RequestParams
9
+ # A field acknowledging the fee incurred when countering a Mastercard compliance dispute. If this field is set to true, evidence can be submitted for the compliance dispute.
10
+ attr_accessor :fee_acknowledged
11
+
12
+ def initialize(fee_acknowledged: nil)
13
+ @fee_acknowledged = fee_acknowledged
14
+ end
15
+ end
16
+
8
17
  class VisaCompellingEvidence3 < ::Stripe::RequestParams
9
18
  class DisputedTransaction < ::Stripe::RequestParams
10
19
  class ShippingAddress < ::Stripe::RequestParams
@@ -162,12 +171,19 @@ module Stripe
162
171
  @fee_acknowledged = fee_acknowledged
163
172
  end
164
173
  end
174
+ # Evidence provided for Mastercard compliance evidence submission.
175
+ attr_accessor :mastercard_compliance
165
176
  # Evidence provided for Visa Compelling Evidence 3.0 evidence submission.
166
177
  attr_accessor :visa_compelling_evidence_3
167
178
  # Evidence provided for Visa compliance evidence submission.
168
179
  attr_accessor :visa_compliance
169
180
 
170
- def initialize(visa_compelling_evidence_3: nil, visa_compliance: nil)
181
+ def initialize(
182
+ mastercard_compliance: nil,
183
+ visa_compelling_evidence_3: nil,
184
+ visa_compliance: nil
185
+ )
186
+ @mastercard_compliance = mastercard_compliance
171
187
  @visa_compelling_evidence_3 = visa_compelling_evidence_3
172
188
  @visa_compliance = visa_compliance
173
189
  end
@@ -47,7 +47,7 @@ module Stripe
47
47
  end
48
48
 
49
49
  class Limits < ::Stripe::RequestParams
50
- # The number of accounts that can be linked in this Session.
50
+ # The number of accounts that can be linked in this Session. Pass an empty value to allow any number of accounts.
51
51
  attr_accessor :accounts
52
52
 
53
53
  def initialize(accounts: nil)
@@ -233,7 +233,7 @@ module Stripe
233
233
  attr_accessor :quantity
234
234
  # Non-negative decimal with at most 12 decimal places. The quantity of units for the line item.
235
235
  attr_accessor :quantity_decimal
236
- # A list of up to 10 tax amounts for this line item. This can be useful if you calculate taxes on your own or use a third-party to calculate them. You cannot set tax amounts if any line item has [tax_rates](https://docs.stripe.com/api/invoices/line_item#invoice_line_item_object-tax_rates) or if the invoice has [default_tax_rates](https://docs.stripe.com/api/invoices/object#invoice_object-default_tax_rates) or uses [automatic tax](https://docs.stripe.com/tax/invoicing). Pass an empty string to remove previously defined tax amounts.
236
+ # A list of up to 20 tax amounts for this line item. This can be useful if you calculate taxes on your own or use a third-party to calculate them. You cannot set tax amounts if any line item has [tax_rates](https://docs.stripe.com/api/invoices/line_item#invoice_line_item_object-tax_rates) or if the invoice has [default_tax_rates](https://docs.stripe.com/api/invoices/object#invoice_object-default_tax_rates) or uses [automatic tax](https://docs.stripe.com/tax/invoicing). Pass an empty string to remove previously defined tax amounts.
237
237
  attr_accessor :tax_amounts
238
238
  # The tax rates which apply to the line item. When set, the `default_tax_rates` on the invoice do not apply to this line item. Pass an empty string to remove previously-defined tax rates.
239
239
  attr_accessor :tax_rates