stripe 20.1.0.pre.alpha.2 → 20.1.0.pre.alpha.4

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 (126) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stripe/api_requestor.rb +35 -4
  3. data/lib/stripe/api_version.rb +1 -1
  4. data/lib/stripe/errors.rb +6 -0
  5. data/lib/stripe/event_types.rb +4 -4
  6. data/lib/stripe/events/{v2_payments_off_session_payment_requires_capture_event.rb → v2_signals_account_signal_customer_risk_ready_event.rb} +7 -7
  7. data/lib/stripe/object_types.rb +3 -0
  8. data/lib/stripe/params/account_create_params.rb +12 -12
  9. data/lib/stripe/params/account_update_params.rb +9 -9
  10. data/lib/stripe/params/checkout/session_create_params.rb +449 -4
  11. data/lib/stripe/params/checkout/session_update_params.rb +1 -1
  12. data/lib/stripe/params/confirmation_token_create_params.rb +22 -0
  13. data/lib/stripe/params/invoice_create_preview_params.rb +2 -2
  14. data/lib/stripe/params/issuing/authorization_capture_params.rb +24 -44
  15. data/lib/stripe/params/issuing/authorization_create_params.rb +8 -0
  16. data/lib/stripe/params/issuing/transaction_create_force_capture_params.rb +24 -44
  17. data/lib/stripe/params/issuing/transaction_create_unlinked_refund_params.rb +0 -43
  18. data/lib/stripe/params/payment_intent_confirm_params.rb +100 -0
  19. data/lib/stripe/params/payment_intent_create_params.rb +100 -0
  20. data/lib/stripe/params/payment_intent_update_params.rb +100 -0
  21. data/lib/stripe/params/payment_method_create_params.rb +22 -0
  22. data/lib/stripe/params/risk/form_retrieve_params.rb +15 -0
  23. data/lib/stripe/params/risk/form_update_params.rb +190 -0
  24. data/lib/stripe/params/setup_intent_confirm_params.rb +22 -0
  25. data/lib/stripe/params/setup_intent_create_params.rb +22 -0
  26. data/lib/stripe/params/setup_intent_update_params.rb +22 -0
  27. data/lib/stripe/params/subscription_schedule_update_params.rb +1 -1
  28. data/lib/stripe/params/subscription_update_params.rb +1 -1
  29. data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +22 -0
  30. data/lib/stripe/params/test_helpers/issuing/authorization_capture_params.rb +24 -44
  31. data/lib/stripe/params/test_helpers/issuing/authorization_create_params.rb +8 -0
  32. data/lib/stripe/params/test_helpers/issuing/transaction_create_force_capture_params.rb +24 -44
  33. data/lib/stripe/params/test_helpers/issuing/transaction_create_unlinked_refund_params.rb +0 -43
  34. data/lib/stripe/params/v2/core/account_create_params.rb +288 -1
  35. data/lib/stripe/params/v2/core/account_evaluation_create_params.rb +4 -1
  36. data/lib/stripe/params/v2/core/account_list_params.rb +3 -1
  37. data/lib/stripe/params/v2/core/account_update_params.rb +288 -1
  38. data/lib/stripe/params/v2/data/operation_search_params.rb +27 -0
  39. data/lib/stripe/params/v2/payments/off_session_payment_create_params.rb +0 -13
  40. data/lib/stripe/params/v2/signals/account_activity_create_params.rb +70 -2
  41. data/lib/stripe/params/v2/signals/account_evaluation_create_params.rb +72 -3
  42. data/lib/stripe/params.rb +9 -8
  43. data/lib/stripe/resources/account.rb +6 -6
  44. data/lib/stripe/resources/account_session.rb +56 -2
  45. data/lib/stripe/resources/balance.rb +83 -0
  46. data/lib/stripe/resources/billing/alert_notification.rb +1 -0
  47. data/lib/stripe/resources/billing_portal/configuration.rb +46 -0
  48. data/lib/stripe/resources/card.rb +3 -1
  49. data/lib/stripe/resources/charge.rb +52 -0
  50. data/lib/stripe/resources/checkout/session.rb +428 -5
  51. data/lib/stripe/resources/confirmation_token.rb +52 -0
  52. data/lib/stripe/resources/customer.rb +2 -2
  53. data/lib/stripe/resources/dispute.rb +1 -1
  54. data/lib/stripe/resources/financial_connections/account.rb +1 -1
  55. data/lib/stripe/resources/identity/verification_report.rb +35 -20
  56. data/lib/stripe/resources/invoice.rb +1 -1
  57. data/lib/stripe/resources/invoice_item.rb +1 -1
  58. data/lib/stripe/resources/issuing/authorization.rb +20 -0
  59. data/lib/stripe/resources/order.rb +1 -1
  60. data/lib/stripe/resources/payment_attempt_record.rb +52 -0
  61. data/lib/stripe/resources/payment_intent.rb +72 -0
  62. data/lib/stripe/resources/payment_link.rb +24 -1
  63. data/lib/stripe/resources/payment_method.rb +52 -0
  64. data/lib/stripe/resources/payment_record.rb +52 -0
  65. data/lib/stripe/resources/quote_preview_invoice.rb +3 -33
  66. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +3 -0
  67. data/lib/stripe/resources/radar/payment_evaluation.rb +1 -1
  68. data/lib/stripe/resources/refund.rb +14 -0
  69. data/lib/stripe/resources/risk/form.rb +276 -0
  70. data/lib/stripe/resources/shared_payment/granted_token.rb +3 -3
  71. data/lib/stripe/resources/source.rb +1 -3
  72. data/lib/stripe/resources/source_mandate_notification.rb +1 -3
  73. data/lib/stripe/resources/subscription.rb +2 -2
  74. data/lib/stripe/resources/tax/calculation.rb +1 -1
  75. data/lib/stripe/resources/tax/registration.rb +64 -0
  76. data/lib/stripe/resources/tax/transaction.rb +1 -1
  77. data/lib/stripe/resources/token.rb +2 -0
  78. data/lib/stripe/resources/treasury/credit_reversal.rb +2 -0
  79. data/lib/stripe/resources/treasury/debit_reversal.rb +2 -0
  80. data/lib/stripe/resources/treasury/financial_account.rb +2 -0
  81. data/lib/stripe/resources/treasury/inbound_transfer.rb +2 -0
  82. data/lib/stripe/resources/treasury/outbound_payment.rb +2 -0
  83. data/lib/stripe/resources/treasury/outbound_transfer.rb +2 -0
  84. data/lib/stripe/resources/treasury/received_credit.rb +8 -0
  85. data/lib/stripe/resources/treasury/received_debit.rb +2 -0
  86. data/lib/stripe/resources/treasury/transaction.rb +16 -0
  87. data/lib/stripe/resources/treasury/transaction_entry.rb +16 -0
  88. data/lib/stripe/resources/v2/core/account.rb +1866 -185
  89. data/lib/stripe/resources/v2/core/account_evaluation.rb +2 -0
  90. data/lib/stripe/resources/v2/data/search_result_list.rb +382 -0
  91. data/lib/stripe/resources/v2/money_management/financial_address.rb +65 -1
  92. data/lib/stripe/resources/v2/money_management/received_credit.rb +66 -0
  93. data/lib/stripe/resources/v2/money_management/received_debit.rb +1 -1
  94. data/lib/stripe/resources/v2/payments/off_session_payment.rb +0 -20
  95. data/lib/stripe/resources/v2/signals/account_activity.rb +83 -1
  96. data/lib/stripe/resources/v2/signals/account_evaluation.rb +51 -1
  97. data/lib/stripe/resources/v2/signals/account_signal.rb +55 -0
  98. data/lib/stripe/resources.rb +12 -5
  99. data/lib/stripe/services/risk/form_service.rb +47 -0
  100. data/lib/stripe/services/risk_service.rb +13 -0
  101. data/lib/stripe/services/subscription_service.rb +1 -1
  102. data/lib/stripe/services/test_helpers/customer_service.rb +1 -1
  103. data/lib/stripe/services/test_helpers/shared_payment/granted_token_service.rb +2 -2
  104. data/lib/stripe/services/v1_services.rb +2 -1
  105. data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +0 -28
  106. data/lib/stripe/services/v2/data/operation_service.rb +22 -0
  107. data/lib/stripe/services/v2/data_service.rb +2 -1
  108. data/lib/stripe/services/v2/money_management/financial_account_service.rb +1 -1
  109. data/lib/stripe/services/v2/payments/off_session_payment_service.rb +0 -11
  110. data/lib/stripe/services.rb +9 -0
  111. data/lib/stripe/stripe_client.rb +29 -4
  112. data/lib/stripe/stripe_event_notification_handler.rb +5 -5
  113. data/lib/stripe/stripe_service.rb +10 -0
  114. data/lib/stripe/util.rb +9 -2
  115. data/lib/stripe/v2_search_result_object.rb +62 -0
  116. data/lib/stripe/version.rb +1 -1
  117. data/lib/stripe/webhook.rb +1 -1
  118. data/lib/stripe/workload_identity_exchange.rb +242 -0
  119. data/lib/stripe.rb +2 -0
  120. data/rbi/stripe/stripe_client.rbi +13 -0
  121. data/rbi/stripe/workload_identity_exchange.rbi +21 -0
  122. data/rbi/stripe.rbi +7087 -1296
  123. metadata +14 -6
  124. data/lib/stripe/params/v2/core/vault/gb_bank_account_acknowledge_confirmation_of_payee_params.rb +0 -12
  125. data/lib/stripe/params/v2/core/vault/gb_bank_account_initiate_confirmation_of_payee_params.rb +0 -22
  126. data/lib/stripe/params/v2/payments/off_session_payment_capture_params.rb +0 -178
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 46373e53926671934bb55ac696fde661e2c3a5a746237207e6192bcf7204fac7
4
- data.tar.gz: 8122ca92668b2753bd9cfa0178e5dfe9227fe8b38f192cefc9b8958ffa818d45
3
+ metadata.gz: d71cd26c3b7e58470fe45fd5b67a202423d14b1442b1eef7d438e7043224c330
4
+ data.tar.gz: 3f41a42dbdf2472269069de8bc6f240f2b5e1f720c626cf5ede531ae1dbf161d
5
5
  SHA512:
6
- metadata.gz: 00a6aed992407f9643b2b3b131d7ae913836de9855e29d2a11f4c636121903049f168efad19680cfba7d68a800679672c3c9a2d163999a520d7a50ad30f6d3a0
7
- data.tar.gz: a5ee0238a58417d360dd388245dbc923fd73a4bc9c4a4a6bf9dc7757def057731b272b16421de9d1258a632e3a46424ac6e3aa714c53f1fa1a965473ba40bd65
6
+ metadata.gz: 3a63b8dac31659ff1bad67b0a14ef7a12413700470995a1ba6f70c6fb942b9e327d2c334ac75e64af110ce24e32283bc80b805a1a3c8e0f58780520df396d399
7
+ data.tar.gz: d79e658cd191c1f2fd2cb46716710cc6edd9504758aa7f8bc7dcb7a985f2d2111b71c2b8e5506a9d624973ce195d3bebf6508cdfd2d6fd836d1d37c16f3a9630
@@ -490,7 +490,12 @@ module Stripe
490
490
 
491
491
  api_key ||= opts[:api_key]
492
492
 
493
- check_api_key!(api_key)
493
+ if config.authenticator && config.api_key
494
+ raise AuthenticationError,
495
+ "Can't specify both api_key and authenticator."
496
+ end
497
+
498
+ check_api_key!(api_key) if api_key || !config.authenticator
494
499
 
495
500
  body_params = nil
496
501
  query_params = nil
@@ -507,6 +512,8 @@ module Stripe
507
512
  headers = request_headers(method, api_mode, opts)
508
513
  url = api_url(path, base_url)
509
514
 
515
+ auth_overridden = opts[:api_key] || opts[:headers]&.key?("Authorization")
516
+
510
517
  # Merge given query parameters with any already encoded in the path.
511
518
  query = query_params ? Util.encode_parameters(query_params, api_mode) : nil
512
519
 
@@ -541,7 +548,7 @@ module Stripe
541
548
  end
542
549
 
543
550
  http_resp =
544
- execute_request_with_rescues(base_url, headers, api_mode, usage, context) do
551
+ execute_request_with_rescues(base_url, headers, api_mode, usage, context, auth_overridden) do
545
552
  self.class
546
553
  .default_connection_manager(config)
547
554
  .execute_request(method, url,
@@ -621,8 +628,13 @@ module Stripe
621
628
  http_status >= 400
622
629
  end
623
630
 
624
- private def execute_request_with_rescues(base_url, headers, api_mode, usage, context)
631
+ private def execute_request_with_rescues(base_url, headers, api_mode, usage, context, auth_overridden)
625
632
  num_retries = 0
633
+ auth_replayed = false
634
+ workload_credentials =
635
+ if !auth_overridden && config.authenticator.is_a?(WorkloadIdentity::Authenticator)
636
+ config.authenticator.credentials
637
+ end
626
638
 
627
639
  begin
628
640
  request_start = nil
@@ -670,6 +682,13 @@ module Stripe
670
682
  notify_request_end(context, request_duration, http_status, num_retries,
671
683
  user_data, resp, headers)
672
684
 
685
+ if workload_credentials && !auth_replayed && e.is_a?(AuthenticationError) && e.http_status == 401
686
+ auth_replayed = true
687
+ workload_credentials.refresh_token(WorkloadIdentity.extract_bearer_token(headers["Authorization"]))
688
+ headers["Authorization"] = config.authenticator.call
689
+ retry
690
+ end
691
+
673
692
  if self.class.should_retry?(e,
674
693
  num_retries: num_retries,
675
694
  config: config)
@@ -1018,6 +1037,18 @@ module Stripe
1018
1037
  message + "\n\n(Network error: #{error.message})"
1019
1038
  end
1020
1039
 
1040
+ private def build_authorization_header(req_opts)
1041
+ return req_opts[:headers]["Authorization"] if req_opts[:headers]&.key?("Authorization")
1042
+ return "Bearer #{req_opts[:api_key]}" if req_opts[:api_key] || !config.authenticator
1043
+
1044
+ value = config.authenticator.call
1045
+ unless value.is_a?(String) && !value.empty?
1046
+ raise AuthenticationError, "The configured authenticator did not return a usable Authorization " \
1047
+ "header value."
1048
+ end
1049
+ value
1050
+ end
1051
+
1021
1052
  private def request_headers(method, api_mode, req_opts)
1022
1053
  user_agent = "Stripe/#{api_mode} RubyBindings/#{Stripe::VERSION}"
1023
1054
  user_agent += " " + format_app_info(Stripe.app_info) unless Stripe.app_info.nil?
@@ -1027,7 +1058,7 @@ module Stripe
1027
1058
 
1028
1059
  headers = {
1029
1060
  "User-Agent" => user_agent,
1030
- "Authorization" => "Bearer #{req_opts[:api_key]}",
1061
+ "Authorization" => build_authorization_header(req_opts),
1031
1062
  }
1032
1063
 
1033
1064
  if config.enable_telemetry?
@@ -3,7 +3,7 @@
3
3
 
4
4
  module Stripe
5
5
  module ApiVersion
6
- CURRENT = "2026-10-07.preview"
6
+ CURRENT = "2026-10-14.preview"
7
7
  CURRENT_MAJOR = ""
8
8
  end
9
9
  end
data/lib/stripe/errors.rb CHANGED
@@ -49,6 +49,12 @@ module Stripe
49
49
  class APIConnectionError < StripeError
50
50
  end
51
51
 
52
+ # WorkloadIdentityError is raised when workload identity authentication
53
+ # fails, for example because the identity provider couldn't produce an
54
+ # assertion or the token exchange was rejected
55
+ class WorkloadIdentityError < StripeError
56
+ end
57
+
52
58
  # APIError is a generic error that may be raised in cases where none of the
53
59
  # other named errors cover the problem. It could also be raised in the case
54
60
  # that a new error has been introduced in the API, but this version of the
@@ -711,8 +711,6 @@ module Stripe
711
711
  Events::V2PaymentsOffSessionPaymentFailedEvent,
712
712
  Events::V2PaymentsOffSessionPaymentPausedEvent.lookup_type =>
713
713
  Events::V2PaymentsOffSessionPaymentPausedEvent,
714
- Events::V2PaymentsOffSessionPaymentRequiresCaptureEvent.lookup_type =>
715
- Events::V2PaymentsOffSessionPaymentRequiresCaptureEvent,
716
714
  Events::V2PaymentsOffSessionPaymentResumedEvent.lookup_type =>
717
715
  Events::V2PaymentsOffSessionPaymentResumedEvent,
718
716
  Events::V2PaymentsOffSessionPaymentSucceededEvent.lookup_type =>
@@ -746,6 +744,8 @@ module Stripe
746
744
  Events::V2ReportingReportRunUpdatedEvent.lookup_type => Events::V2ReportingReportRunUpdatedEvent,
747
745
  Events::V2SignalsAccountEvaluationCompleteEvent.lookup_type =>
748
746
  Events::V2SignalsAccountEvaluationCompleteEvent,
747
+ Events::V2SignalsAccountSignalCustomerRiskReadyEvent.lookup_type =>
748
+ Events::V2SignalsAccountSignalCustomerRiskReadyEvent,
749
749
  Events::V2SignalsAccountSignalFraudulentMerchantReadyEvent.lookup_type =>
750
750
  Events::V2SignalsAccountSignalFraudulentMerchantReadyEvent,
751
751
  Events::V2SignalsAccountSignalFraudulentWebsiteReadyEvent.lookup_type =>
@@ -1611,8 +1611,6 @@ module Stripe
1611
1611
  Events::V2PaymentsOffSessionPaymentFailedEventNotification,
1612
1612
  Events::V2PaymentsOffSessionPaymentPausedEventNotification.lookup_type =>
1613
1613
  Events::V2PaymentsOffSessionPaymentPausedEventNotification,
1614
- Events::V2PaymentsOffSessionPaymentRequiresCaptureEventNotification.lookup_type =>
1615
- Events::V2PaymentsOffSessionPaymentRequiresCaptureEventNotification,
1616
1614
  Events::V2PaymentsOffSessionPaymentResumedEventNotification.lookup_type =>
1617
1615
  Events::V2PaymentsOffSessionPaymentResumedEventNotification,
1618
1616
  Events::V2PaymentsOffSessionPaymentSucceededEventNotification.lookup_type =>
@@ -1649,6 +1647,8 @@ module Stripe
1649
1647
  Events::V2ReportingReportRunUpdatedEventNotification,
1650
1648
  Events::V2SignalsAccountEvaluationCompleteEventNotification.lookup_type =>
1651
1649
  Events::V2SignalsAccountEvaluationCompleteEventNotification,
1650
+ Events::V2SignalsAccountSignalCustomerRiskReadyEventNotification.lookup_type =>
1651
+ Events::V2SignalsAccountSignalCustomerRiskReadyEventNotification,
1652
1652
  Events::V2SignalsAccountSignalFraudulentMerchantReadyEventNotification.lookup_type =>
1653
1653
  Events::V2SignalsAccountSignalFraudulentMerchantReadyEventNotification,
1654
1654
  Events::V2SignalsAccountSignalFraudulentWebsiteReadyEventNotification.lookup_type =>
@@ -3,10 +3,10 @@
3
3
 
4
4
  module Stripe
5
5
  module Events
6
- # Deprecated. Sent when the off-session payment becomes available for capture.
7
- class V2PaymentsOffSessionPaymentRequiresCaptureEvent < Stripe::V2::Core::Event
6
+ # Occurs when a customer's risk level changes and a new customer risk signal is ready.
7
+ class V2SignalsAccountSignalCustomerRiskReadyEvent < Stripe::V2::Core::Event
8
8
  def self.lookup_type
9
- "v2.payments.off_session_payment.requires_capture"
9
+ "v2.signals.account_signal.customer_risk_ready"
10
10
  end
11
11
 
12
12
  # Retrieves the related object from the API. Makes an API request on every call.
@@ -21,15 +21,15 @@ module Stripe
21
21
  attr_reader :related_object
22
22
  end
23
23
 
24
- # Deprecated. Sent when the off-session payment becomes available for capture.
25
- class V2PaymentsOffSessionPaymentRequiresCaptureEventNotification < Stripe::V2::Core::EventNotification
24
+ # Occurs when a customer's risk level changes and a new customer risk signal is ready.
25
+ class V2SignalsAccountSignalCustomerRiskReadyEventNotification < Stripe::V2::Core::EventNotification
26
26
  def self.lookup_type
27
- "v2.payments.off_session_payment.requires_capture"
27
+ "v2.signals.account_signal.customer_risk_ready"
28
28
  end
29
29
 
30
30
  attr_reader :related_object
31
31
 
32
- # Retrieves the OffSessionPayment related to this EventNotification from the Stripe API. Makes an API request on every call.
32
+ # Retrieves the AccountSignal related to this EventNotification from the Stripe API. Makes an API request on every call.
33
33
  def fetch_related_object
34
34
  resp = @client.raw_request(
35
35
  :get,
@@ -171,6 +171,7 @@ module Stripe
171
171
  Reserve::Release.object_name => Reserve::Release,
172
172
  ReserveTransaction.object_name => ReserveTransaction,
173
173
  Review.object_name => Review,
174
+ Risk::Form.object_name => Risk::Form,
174
175
  RiskSignals.object_name => RiskSignals,
175
176
  SetupAttempt.object_name => SetupAttempt,
176
177
  SetupIntent.object_name => SetupIntent,
@@ -230,6 +231,7 @@ module Stripe
230
231
  def self.v2_object_names_to_classes
231
232
  {
232
233
  V2::ListObject.object_name => V2::ListObject,
234
+ V2::SearchResultObject.object_name => V2::SearchResultObject,
233
235
 
234
236
  # v2 object classes: The beginning of the section generated from our OpenAPI spec
235
237
  V2::Billing::BillSetting.object_name => V2::Billing::BillSetting,
@@ -290,6 +292,7 @@ module Stripe
290
292
  V2::Data::ReportRun.object_name => V2::Data::ReportRun,
291
293
  V2::Data::Reporting::QueryRun.object_name => V2::Data::Reporting::QueryRun,
292
294
  V2::Data::Schema.object_name => V2::Data::Schema,
295
+ V2::Data::SearchResultList.object_name => V2::Data::SearchResultList,
293
296
  V2::Extend::Workflow.object_name => V2::Extend::Workflow,
294
297
  V2::Extend::WorkflowRun.object_name => V2::Extend::WorkflowRun,
295
298
  V2::Iam::ActivityLog.object_name => V2::Iam::ActivityLog,
@@ -1691,7 +1691,7 @@ module Stripe
1691
1691
  end
1692
1692
 
1693
1693
  class Fees < ::Stripe::RequestParams
1694
- # A value indicating the responsible payer of Stripe fees on this account. Defaults to `account`. Learn more about [fee behavior on connected accounts](https://docs.stripe.com/connect/direct-charges-fee-payer-behavior).
1694
+ # Controls who pays Stripe fees for direct charges and other pricing-control-eligible Stripe products. Setting `controller.losses.payments=application` requires `controller.fees.payer=application`. For destination charges and separate charges and transfers, Stripe bills the platform regardless of this setting. Defaults to `account`. Learn more about [fee behavior on connected accounts](https://docs.stripe.com/connect/direct-charges-fee-payer-behavior), including application fees and pricing considerations.
1695
1695
  attr_accessor :payer
1696
1696
 
1697
1697
  def initialize(payer: nil)
@@ -1700,7 +1700,7 @@ module Stripe
1700
1700
  end
1701
1701
 
1702
1702
  class Losses < ::Stripe::RequestParams
1703
- # A value indicating who is liable when this account can't pay back negative balances resulting from payments. Defaults to `stripe`.
1703
+ # Controls who is responsible for payment-related negative balances on this account. The platform remains liable for negative balances on its own account. To use Stripe negative balance liability, your integration must meet [Managed Risk requirements](https://docs.stripe.com/connect/risk-management/managed-risk). Defaults to `stripe`.
1704
1704
  attr_accessor :payments
1705
1705
 
1706
1706
  def initialize(payments: nil)
@@ -2579,12 +2579,12 @@ module Stripe
2579
2579
  end
2580
2580
  end
2581
2581
 
2582
- class WechatPayPayments < ::Stripe::RequestParams
2583
- # The domains of the user's mobile web checkout pages for WeChat Pay payments. At most 4 domains are allowed.
2584
- attr_accessor :mobile_web_domains
2582
+ class WechatPayMobileWebPayments < ::Stripe::RequestParams
2583
+ # The domains of the user's mobile web checkout pages for WeChat Pay payments.
2584
+ attr_accessor :domains
2585
2585
 
2586
- def initialize(mobile_web_domains: nil)
2587
- @mobile_web_domains = mobile_web_domains
2586
+ def initialize(domains: nil)
2587
+ @domains = domains
2588
2588
  end
2589
2589
  end
2590
2590
  # Settings specific to Bacs Direct Debit.
@@ -2615,8 +2615,8 @@ module Stripe
2615
2615
  attr_accessor :tax_forms
2616
2616
  # Settings specific to the account's Treasury FinancialAccounts.
2617
2617
  attr_accessor :treasury
2618
- # Settings specific to the WeChat Pay payments method.
2619
- attr_accessor :wechat_pay_payments
2618
+ # Settings specific to WeChat Pay payments made through a mobile web browser.
2619
+ attr_accessor :wechat_pay_mobile_web_payments
2620
2620
 
2621
2621
  def initialize(
2622
2622
  bacs_debit_payments: nil,
@@ -2633,7 +2633,7 @@ module Stripe
2633
2633
  smart_disputes: nil,
2634
2634
  tax_forms: nil,
2635
2635
  treasury: nil,
2636
- wechat_pay_payments: nil
2636
+ wechat_pay_mobile_web_payments: nil
2637
2637
  )
2638
2638
  @bacs_debit_payments = bacs_debit_payments
2639
2639
  @bank_bca_onboarding = bank_bca_onboarding
@@ -2649,7 +2649,7 @@ module Stripe
2649
2649
  @smart_disputes = smart_disputes
2650
2650
  @tax_forms = tax_forms
2651
2651
  @treasury = treasury
2652
- @wechat_pay_payments = wechat_pay_payments
2652
+ @wechat_pay_mobile_web_payments = wechat_pay_mobile_web_payments
2653
2653
  end
2654
2654
  end
2655
2655
 
@@ -2687,7 +2687,7 @@ module Stripe
2687
2687
  attr_accessor :capabilities
2688
2688
  # Information about the company or business. This field is available for any `business_type`. Once you create an [Account Link](/api/account_links) or [Account Session](/api/account_sessions), this property can only be updated for accounts where [controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts.
2689
2689
  attr_accessor :company
2690
- # A hash of configuration describing the account controller's attributes.
2690
+ # Configures the account's Dashboard access, loss liability, requirements collection, and Stripe fee responsibility.
2691
2691
  attr_accessor :controller
2692
2692
  # The country in which the account holder resides, or in which the business is legally established. This should be an ISO 3166-1 alpha-2 country code. For example, if you are in the United States and the business for which you're creating an account is legally represented in Canada, you would use `CA` as the country for the account being created. Available countries include [Stripe's global markets](https://stripe.com/global) as well as countries where [cross-border payouts](https://stripe.com/docs/connect/cross-border-payouts) are supported.
2693
2693
  attr_accessor :country
@@ -2532,12 +2532,12 @@ module Stripe
2532
2532
  end
2533
2533
  end
2534
2534
 
2535
- class WechatPayPayments < ::Stripe::RequestParams
2536
- # The domains of the user's mobile web checkout pages for WeChat Pay payments. At most 4 domains are allowed.
2537
- attr_accessor :mobile_web_domains
2535
+ class WechatPayMobileWebPayments < ::Stripe::RequestParams
2536
+ # The domains of the user's mobile web checkout pages for WeChat Pay payments.
2537
+ attr_accessor :domains
2538
2538
 
2539
- def initialize(mobile_web_domains: nil)
2540
- @mobile_web_domains = mobile_web_domains
2539
+ def initialize(domains: nil)
2540
+ @domains = domains
2541
2541
  end
2542
2542
  end
2543
2543
  # Settings specific to Bacs Direct Debit payments.
@@ -2568,8 +2568,8 @@ module Stripe
2568
2568
  attr_accessor :tax_forms
2569
2569
  # Settings specific to the account's Treasury FinancialAccounts.
2570
2570
  attr_accessor :treasury
2571
- # Settings specific to the WeChat Pay payments method.
2572
- attr_accessor :wechat_pay_payments
2571
+ # Settings specific to WeChat Pay payments made through a mobile web browser.
2572
+ attr_accessor :wechat_pay_mobile_web_payments
2573
2573
 
2574
2574
  def initialize(
2575
2575
  bacs_debit_payments: nil,
@@ -2586,7 +2586,7 @@ module Stripe
2586
2586
  smart_disputes: nil,
2587
2587
  tax_forms: nil,
2588
2588
  treasury: nil,
2589
- wechat_pay_payments: nil
2589
+ wechat_pay_mobile_web_payments: nil
2590
2590
  )
2591
2591
  @bacs_debit_payments = bacs_debit_payments
2592
2592
  @bank_bca_onboarding = bank_bca_onboarding
@@ -2602,7 +2602,7 @@ module Stripe
2602
2602
  @smart_disputes = smart_disputes
2603
2603
  @tax_forms = tax_forms
2604
2604
  @treasury = treasury
2605
- @wechat_pay_payments = wechat_pay_payments
2605
+ @wechat_pay_mobile_web_payments = wechat_pay_mobile_web_payments
2606
2606
  end
2607
2607
  end
2608
2608