stripe 19.4.0.pre.alpha.3 → 19.4.0.pre.alpha.5

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 (105) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stripe/api_requestor.rb +2 -27
  3. data/lib/stripe/error_object.rb +48 -19
  4. data/lib/stripe/object_types.rb +2 -1
  5. data/lib/stripe/params/account_create_params.rb +2 -0
  6. data/lib/stripe/params/account_person_create_params.rb +6 -0
  7. data/lib/stripe/params/account_person_update_params.rb +6 -0
  8. data/lib/stripe/params/account_session_create_params.rb +0 -42
  9. data/lib/stripe/params/account_update_params.rb +2 -0
  10. data/lib/stripe/params/billing/alert_create_params.rb +1 -1
  11. data/lib/stripe/params/billing/alert_notification_list_params.rb +70 -0
  12. data/lib/stripe/params/billing_portal/configuration_create_params.rb +1 -1
  13. data/lib/stripe/params/billing_portal/configuration_update_params.rb +1 -1
  14. data/lib/stripe/params/confirmation_token_create_params.rb +5 -0
  15. data/lib/stripe/params/crypto/deposit_address_create_params.rb +24 -0
  16. data/lib/stripe/params/crypto/deposit_address_list_params.rb +45 -0
  17. data/lib/stripe/params/crypto/deposit_address_retrieve_params.rb +15 -0
  18. data/lib/stripe/params/delegated_checkout/requested_session_confirm_params.rb +5 -1
  19. data/lib/stripe/params/invoice_create_preview_params.rb +1 -1
  20. data/lib/stripe/params/issuing/authorization_capture_params.rb +1 -1
  21. data/lib/stripe/params/issuing/authorization_create_params.rb +1 -1
  22. data/lib/stripe/params/issuing/authorization_finalize_amount_params.rb +1 -1
  23. data/lib/stripe/params/issuing/transaction_create_force_capture_params.rb +1 -1
  24. data/lib/stripe/params/issuing/transaction_create_unlinked_refund_params.rb +1 -1
  25. data/lib/stripe/params/payment_intent_capture_params.rb +43 -1
  26. data/lib/stripe/params/payment_intent_confirm_params.rb +104 -2
  27. data/lib/stripe/params/payment_intent_create_params.rb +103 -1
  28. data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +43 -1
  29. data/lib/stripe/params/payment_intent_increment_authorization_params.rb +43 -1
  30. data/lib/stripe/params/payment_intent_update_params.rb +103 -1
  31. data/lib/stripe/params/payment_method_configuration_create_params.rb +21 -0
  32. data/lib/stripe/params/payment_method_configuration_update_params.rb +21 -0
  33. data/lib/stripe/params/payment_method_create_params.rb +5 -0
  34. data/lib/stripe/params/payment_record_create_params.rb +109 -0
  35. data/lib/stripe/params/radar/payment_evaluation_create_params.rb +22 -1
  36. data/lib/stripe/params/refund_create_params.rb +4 -0
  37. data/lib/stripe/params/setup_intent_confirm_params.rb +5 -0
  38. data/lib/stripe/params/setup_intent_create_params.rb +5 -0
  39. data/lib/stripe/params/setup_intent_update_params.rb +5 -0
  40. data/lib/stripe/params/subscription_schedule_create_params.rb +136 -0
  41. data/lib/stripe/params/subscription_schedule_update_params.rb +137 -1
  42. data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +5 -0
  43. data/lib/stripe/params/test_helpers/issuing/authorization_capture_params.rb +1 -1
  44. data/lib/stripe/params/test_helpers/issuing/authorization_create_params.rb +1 -1
  45. data/lib/stripe/params/test_helpers/issuing/authorization_finalize_amount_params.rb +1 -1
  46. data/lib/stripe/params/test_helpers/issuing/transaction_create_force_capture_params.rb +1 -1
  47. data/lib/stripe/params/test_helpers/issuing/transaction_create_unlinked_refund_params.rb +1 -1
  48. data/lib/stripe/params/token_create_params.rb +8 -0
  49. data/lib/stripe/params/v2/core/account_create_params.rb +32 -1
  50. data/lib/stripe/params/v2/core/account_update_params.rb +32 -1
  51. data/lib/stripe/params.rb +10 -8
  52. data/lib/stripe/resources/account.rb +2 -2
  53. data/lib/stripe/resources/account_session.rb +8 -0
  54. data/lib/stripe/resources/balance_transaction.rb +1 -1
  55. data/lib/stripe/resources/billing/alert.rb +3 -0
  56. data/lib/stripe/resources/billing/alert_notification.rb +56 -0
  57. data/lib/stripe/resources/billing_portal/configuration.rb +1 -1
  58. data/lib/stripe/resources/charge.rb +2 -2
  59. data/lib/stripe/resources/checkout/session.rb +2 -2
  60. data/lib/stripe/resources/confirmation_token.rb +13 -0
  61. data/lib/stripe/resources/crypto/deposit_address.rb +80 -0
  62. data/lib/stripe/resources/crypto/onramp_session.rb +2 -0
  63. data/lib/stripe/resources/financial_connections/session.rb +3 -0
  64. data/lib/stripe/resources/invoice.rb +1 -1
  65. data/lib/stripe/resources/issuing/card.rb +2 -0
  66. data/lib/stripe/resources/issuing/transaction.rb +2 -2
  67. data/lib/stripe/resources/order.rb +1 -1
  68. data/lib/stripe/resources/payment_intent.rb +71 -9
  69. data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +30 -1
  70. data/lib/stripe/resources/payment_method.rb +15 -2
  71. data/lib/stripe/resources/payment_method_configuration.rb +34 -0
  72. data/lib/stripe/resources/payment_record.rb +12 -0
  73. data/lib/stripe/resources/profile.rb +14 -14
  74. data/lib/stripe/resources/quote_preview_invoice.rb +1 -1
  75. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +125 -0
  76. data/lib/stripe/resources/shared_payment/granted_token.rb +11 -1170
  77. data/lib/stripe/resources/shared_payment/issued_token.rb +18 -1
  78. data/lib/stripe/resources/subscription_schedule.rb +125 -0
  79. data/lib/stripe/resources/tax/calculation.rb +1 -1
  80. data/lib/stripe/resources/tax/transaction.rb +1 -1
  81. data/lib/stripe/resources/v2/core/account.rb +193 -1
  82. data/lib/stripe/resources/v2/signals/account_signal.rb +4 -1
  83. data/lib/stripe/resources.rb +4 -2
  84. data/lib/stripe/services/account_person_service.rb +1 -1
  85. data/lib/stripe/services/account_service.rb +1 -1
  86. data/lib/stripe/services/billing/alert_notification_service.rb +19 -0
  87. data/lib/stripe/services/billing/alert_service.rb +7 -0
  88. data/lib/stripe/services/crypto/deposit_address_service.rb +43 -0
  89. data/lib/stripe/services/crypto_service.rb +2 -1
  90. data/lib/stripe/services/payment_method_service.rb +1 -1
  91. data/lib/stripe/services/payment_record_service.rb +12 -0
  92. data/lib/stripe/services/v1_services.rb +1 -2
  93. data/lib/stripe/services/v2/signals/account_signal_service.rb +1 -1
  94. data/lib/stripe/services.rb +4 -2
  95. data/lib/stripe/telemetry_id.rb +65 -0
  96. data/lib/stripe/version.rb +1 -1
  97. data/lib/stripe.rb +2 -0
  98. data/rbi/stripe.rbi +2684 -1609
  99. metadata +12 -8
  100. data/lib/stripe/params/fr_meal_vouchers_onboarding_create_params.rb +0 -25
  101. data/lib/stripe/params/fr_meal_vouchers_onboarding_list_params.rb +0 -22
  102. data/lib/stripe/params/fr_meal_vouchers_onboarding_retrieve_params.rb +0 -13
  103. data/lib/stripe/params/fr_meal_vouchers_onboarding_update_params.rb +0 -16
  104. data/lib/stripe/resources/fr_meal_vouchers_onboarding.rb +0 -153
  105. data/lib/stripe/services/fr_meal_vouchers_onboarding_service.rb +0 -57
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dc92f0d6b95ef6c9484b61852f7651c905cd76bc63c93530c2b5d0a9967f496e
4
- data.tar.gz: 69dfe990e13f1ab11530560c136f5b14378d754d66c66d99f0c8b9444743270a
3
+ metadata.gz: 8771ba309353c5e551324e651771cb93d948289ea07c9dde6a47e6749c9a1988
4
+ data.tar.gz: 6fa8b5b899e44cf31c63ff98014dc2dc7590c34712b8a06750c2d48465de2c3d
5
5
  SHA512:
6
- metadata.gz: 202a8909d9d0bbe087f1ec32cff0c3306946bc0abfc05bd8321fa2b10d2fe483cebdfefa85c7db9a9851130de1218c679338238d597942eb7f97771bdc9c52ea
7
- data.tar.gz: 4ed2df46a47f2a8a414bca75565604f267344c32367a18a6f24eb9f6e0056522e97b6ecabc203bea7e9f7f58bcac7f801d7b475d81ca12649214ac8819b5997e
6
+ metadata.gz: 8afeccea648d6810d1576d20ee5b5665d88024421233dea4efcb23e02ba3713f5039367ed4636089d5c8c76fa290b3afdc86ce3e04fc74002b2bd44aa89b2afe
7
+ data.tar.gz: 27bbee2932bf9e6bbd7c78b981c7509b747ca09eb9c10ac74d40f7124ac8ff67bfa25eab002147a0d56f85f903c831b582505ea6d4bebb972851f4a2f5847c08
@@ -1,6 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "digest"
4
3
  require "socket"
5
4
  require "stripe/instrumentation"
6
5
 
@@ -1106,31 +1105,6 @@ module Stripe
1106
1105
  # in so that we can generate a rich user agent header to help debug
1107
1106
  # integrations.
1108
1107
  class SystemProfiler
1109
- UNAME_HASH = begin
1110
- parts = []
1111
- parts << if RUBY_PLATFORM.match?(/mswin|mingw|cygwin/)
1112
- begin
1113
- `ver 2>NUL`.strip
1114
- rescue StandardError
1115
- ""
1116
- end
1117
- else
1118
- begin
1119
- `uname -a 2>/dev/null`.strip
1120
- rescue StandardError
1121
- ""
1122
- end
1123
- end
1124
- parts << begin
1125
- Socket.gethostname
1126
- rescue StandardError
1127
- ""
1128
- end
1129
- Digest::MD5.hexdigest(parts.join(" "))
1130
- rescue StandardError
1131
- ""
1132
- end
1133
-
1134
1108
  AI_AGENTS = [
1135
1109
  # aiAgents: The beginning of the section generated from our OpenAPI spec
1136
1110
  %w[ANTIGRAVITY_CLI_ALIAS antigravity],
@@ -1168,7 +1142,8 @@ module Stripe
1168
1142
 
1169
1143
  if Stripe.enable_telemetry?
1170
1144
  ua[:platform] = RUBY_PLATFORM
1171
- ua[:source] = UNAME_HASH unless UNAME_HASH.empty?
1145
+ tid = TelemetryId.get
1146
+ ua[:telemetry_id] = tid if tid
1172
1147
  end
1173
1148
 
1174
1149
  ai_agent = detect_ai_agent
@@ -11,69 +11,98 @@ module Stripe
11
11
  # methods would cause users to run into `NoMethodError` exceptions and
12
12
  # get in the way of generic error handling.
13
13
 
14
+ # errorFields: The beginning of the section generated from our OpenAPI spec
15
+ # For card errors resulting from a card issuer decline, a short string indicating [how to proceed with an error](https://docs.stripe.com/declines#retrying-issuer-declines) if they provide one.
16
+ def advice_code
17
+ @values[:advice_code]
18
+ end
19
+
14
20
  # For card errors, the ID of the failed charge.
15
21
  def charge
16
22
  @values[:charge]
17
23
  end
18
24
 
19
- # For some errors that could be handled programmatically, a short string
20
- # indicating the error code reported.
25
+ # For some errors that could be handled programmatically, a short string indicating the [error code](https://docs.stripe.com/error-codes) reported.
21
26
  def code
22
27
  @values[:code]
23
28
  end
24
29
 
25
- # For card errors resulting from a card issuer decline, a short string
26
- # indicating the card issuer's reason for the decline if they provide one.
30
+ # For card errors resulting from a card issuer decline, a short string indicating the [card issuer's reason for the decline](https://docs.stripe.com/declines#issuer-declines) if they provide one.
27
31
  def decline_code
28
32
  @values[:decline_code]
29
33
  end
30
34
 
31
- # A URL to more information about the error code reported.
35
+ # A URL to more information about the [error code](https://docs.stripe.com/error-codes) reported.
32
36
  def doc_url
33
37
  @values[:doc_url]
34
38
  end
35
39
 
36
- # A human-readable message providing more details about the error. For card
37
- # errors, these messages can be shown to your users.
40
+ # The GiftCardOperation object for errors returned on a request involving a GiftCardOperation.
41
+ def gift_card_operation
42
+ @values[:gift_card_operation]
43
+ end
44
+
45
+ # A human-readable message providing more details about the error. For card errors, these messages can be shown to your users.
38
46
  def message
39
47
  @values[:message]
40
48
  end
41
49
 
42
- # If the error is parameter-specific, the parameter related to the error.
43
- # For example, you can use this to display a message near the correct form
44
- # field.
50
+ # For card errors resulting from a card issuer decline, a 2 digit code which indicates the advice given to merchant by the card network on how to proceed with an error.
51
+ def network_advice_code
52
+ @values[:network_advice_code]
53
+ end
54
+
55
+ # For payments declined by the network, an alphanumeric code which indicates the reason the payment failed.
56
+ def network_decline_code
57
+ @values[:network_decline_code]
58
+ end
59
+
60
+ # If the error is parameter-specific, the parameter related to the error. For example, you can use this to display a message near the correct form field.
45
61
  def param
46
62
  @values[:param]
47
63
  end
48
64
 
49
- # The PaymentIntent object for errors returned on a request involving a
50
- # PaymentIntent.
65
+ # The PaymentIntent object for errors returned on a request involving a PaymentIntent.
51
66
  def payment_intent
52
67
  @values[:payment_intent]
53
68
  end
54
69
 
55
- # The PaymentMethod object for errors returned on a request involving a
56
- # PaymentMethod.
70
+ # The PaymentMethod object for errors returned on a request involving a PaymentMethod.
57
71
  def payment_method
58
72
  @values[:payment_method]
59
73
  end
60
74
 
61
- # The SetupIntent object for errors returned on a request involving a
62
- # SetupIntent.
75
+ # If the error is specific to the type of payment method, the payment method type that had a problem. This field is only populated for invoice-related errors.
76
+ def payment_method_type
77
+ @values[:payment_method_type]
78
+ end
79
+
80
+ # A URL to the request log entry in your dashboard.
81
+ def request_log_url
82
+ @values[:request_log_url]
83
+ end
84
+
85
+ # The SetupIntent object for errors returned on a request involving a SetupIntent.
63
86
  def setup_intent
64
87
  @values[:setup_intent]
65
88
  end
66
89
 
67
- # The source object for errors returned on a request involving a source.
90
+ # The PaymentSource object for errors returned on a request involving a PaymentSource.
68
91
  def source
69
92
  @values[:source]
70
93
  end
71
94
 
72
- # The type of error returned. One of `api_error`, `card_error`,
73
- # `idempotency_error`, or `invalid_request_error`.
95
+ # The type of error returned. One of `api_error`, `card_error`, `idempotency_error`, or `invalid_request_error`
74
96
  def type
75
97
  @values[:type]
76
98
  end
99
+
100
+ # The user message associated with the error.
101
+ def user_message
102
+ @values[:user_message]
103
+ end
104
+
105
+ # errorFields: The end of the section generated from our OpenAPI spec
77
106
  end
78
107
 
79
108
  # Represents on OAuth error returned by the OAuth API.
@@ -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::AlertNotification.object_name => Billing::AlertNotification,
31
32
  Billing::AlertRecovered.object_name => Billing::AlertRecovered,
32
33
  Billing::AlertTriggered.object_name => Billing::AlertTriggered,
33
34
  Billing::Analytics::MeterUsage.object_name => Billing::Analytics::MeterUsage,
@@ -61,6 +62,7 @@ module Stripe
61
62
  Crypto::Customer.object_name => Crypto::Customer,
62
63
  Crypto::CustomerConsumerWallet.object_name => Crypto::CustomerConsumerWallet,
63
64
  Crypto::CustomerPaymentToken.object_name => Crypto::CustomerPaymentToken,
65
+ Crypto::DepositAddress.object_name => Crypto::DepositAddress,
64
66
  Crypto::OnrampSession.object_name => Crypto::OnrampSession,
65
67
  Crypto::OnrampTransactionLimits.object_name => Crypto::OnrampTransactionLimits,
66
68
  Customer.object_name => Customer,
@@ -90,7 +92,6 @@ module Stripe
90
92
  FinancialConnections::Session.object_name => FinancialConnections::Session,
91
93
  FinancialConnections::Transaction.object_name => FinancialConnections::Transaction,
92
94
  Forwarding::Request.object_name => Forwarding::Request,
93
- FrMealVouchersOnboarding.object_name => FrMealVouchersOnboarding,
94
95
  FundingInstructions.object_name => FundingInstructions,
95
96
  FxQuote.object_name => FxQuote,
96
97
  GiftCard.object_name => GiftCard,
@@ -1508,6 +1508,8 @@ module Stripe
1508
1508
  # The category identifying the legal structure of the company or legal entity. See [Business structure](/connect/identity-verification#business-structure) for more details. Pass an empty string to unset this value.
1509
1509
  attr_accessor :structure
1510
1510
  # The business ID number of the company, as appropriate for the company’s country. (Examples are an Employer ID Number in the U.S., a Business Number in Canada, or a Company Number in the UK.)
1511
+ #
1512
+ # Changing this value requires that the account re-accept the [terms of service](/api/accounts/object#account_object-tos_acceptance).
1511
1513
  attr_accessor :tax_id
1512
1514
  # The jurisdiction in which the `tax_id` is registered (Germany-based companies only).
1513
1515
  attr_accessor :tax_id_registrar
@@ -388,8 +388,12 @@ module Stripe
388
388
  # The person's gender (International regulations require either "male" or "female").
389
389
  attr_accessor :gender
390
390
  # The person's ID number, as appropriate for their country. For example, a social security number in the U.S., social insurance number in Canada, etc. Instead of the number itself, you can also provide a [PII token provided by Stripe.js](https://docs.stripe.com/js/tokens/create_token?type=pii).
391
+ #
392
+ # Changing this value for the account's representative requires that the account re-accept the [terms of service](/api/accounts/object#account_object-tos_acceptance).
391
393
  attr_accessor :id_number
392
394
  # The person's secondary ID number, as appropriate for their country, will be used for enhanced verification checks. In Thailand, this would be the laser code found on the back of an ID card. Instead of the number itself, you can also provide a [PII token provided by Stripe.js](https://docs.stripe.com/js/tokens/create_token?type=pii).
395
+ #
396
+ # Changing this value for the account's representative requires that the account re-accept the [terms of service](/api/accounts/object#account_object-tos_acceptance).
393
397
  attr_accessor :id_number_secondary
394
398
  # The person's last name.
395
399
  attr_accessor :last_name
@@ -418,6 +422,8 @@ module Stripe
418
422
  # The credit applicant's self-reported monthly housing payment in minor units.
419
423
  attr_accessor :self_reported_monthly_housing_payment
420
424
  # The last four digits of the person's Social Security number (U.S. only).
425
+ #
426
+ # Changing this value for the account's representative requires that the account re-accept the [terms of service](/api/accounts/object#account_object-tos_acceptance).
421
427
  attr_accessor :ssn_last_4
422
428
  # Demographic data related to the person.
423
429
  attr_accessor :us_cfpb_data
@@ -388,8 +388,12 @@ module Stripe
388
388
  # The person's gender (International regulations require either "male" or "female").
389
389
  attr_accessor :gender
390
390
  # The person's ID number, as appropriate for their country. For example, a social security number in the U.S., social insurance number in Canada, etc. Instead of the number itself, you can also provide a [PII token provided by Stripe.js](https://docs.stripe.com/js/tokens/create_token?type=pii).
391
+ #
392
+ # Changing this value for the account's representative requires that the account re-accept the [terms of service](/api/accounts/object#account_object-tos_acceptance).
391
393
  attr_accessor :id_number
392
394
  # The person's secondary ID number, as appropriate for their country, will be used for enhanced verification checks. In Thailand, this would be the laser code found on the back of an ID card. Instead of the number itself, you can also provide a [PII token provided by Stripe.js](https://docs.stripe.com/js/tokens/create_token?type=pii).
395
+ #
396
+ # Changing this value for the account's representative requires that the account re-accept the [terms of service](/api/accounts/object#account_object-tos_acceptance).
393
397
  attr_accessor :id_number_secondary
394
398
  # The person's last name.
395
399
  attr_accessor :last_name
@@ -418,6 +422,8 @@ module Stripe
418
422
  # The credit applicant's self-reported monthly housing payment in minor units.
419
423
  attr_accessor :self_reported_monthly_housing_payment
420
424
  # The last four digits of the person's Social Security number (U.S. only).
425
+ #
426
+ # Changing this value for the account's representative requires that the account re-accept the [terms of service](/api/accounts/object#account_object-tos_acceptance).
421
427
  attr_accessor :ssn_last_4
422
428
  # Demographic data related to the person.
423
429
  attr_accessor :us_cfpb_data
@@ -340,26 +340,6 @@ module Stripe
340
340
  end
341
341
  end
342
342
 
343
- class FinancialAccounts < ::Stripe::RequestParams
344
- class Features < ::Stripe::RequestParams; end
345
- # Attribute for param field features
346
- attr_accessor :features
347
-
348
- def initialize(features: nil)
349
- @features = features
350
- end
351
- end
352
-
353
- class FinancialAccountsTransactions < ::Stripe::RequestParams
354
- class Features < ::Stripe::RequestParams; end
355
- # Attribute for param field features
356
- attr_accessor :features
357
-
358
- def initialize(features: nil)
359
- @features = features
360
- end
361
- end
362
-
363
343
  class InstantPayoutsPromotion < ::Stripe::RequestParams
364
344
  class Features < ::Stripe::RequestParams
365
345
  # Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`.
@@ -706,16 +686,6 @@ module Stripe
706
686
  end
707
687
  end
708
688
 
709
- class RecipientsList < ::Stripe::RequestParams
710
- class Features < ::Stripe::RequestParams; end
711
- # Attribute for param field features
712
- attr_accessor :features
713
-
714
- def initialize(features: nil)
715
- @features = features
716
- end
717
- end
718
-
719
689
  class ReportingChart < ::Stripe::RequestParams
720
690
  class Features < ::Stripe::RequestParams; end
721
691
  # Whether the embedded component is enabled.
@@ -827,10 +797,6 @@ module Stripe
827
797
  attr_accessor :financial_account
828
798
  # Configuration for the [financial account transactions](/connect/supported-embedded-components/financial-account-transactions/) embedded component.
829
799
  attr_accessor :financial_account_transactions
830
- # Configuration for the [financial accounts](/connect/supported-embedded-components/financial-accounts/) embedded component.
831
- attr_accessor :financial_accounts
832
- # Configuration for the [financial accounts transactions](/connect/supported-embedded-components/financial-accounts-transactions/) embedded component.
833
- attr_accessor :financial_accounts_transactions
834
800
  # Configuration for the [instant payouts promotion](/connect/supported-embedded-components/instant-payouts-promotion/) embedded component.
835
801
  attr_accessor :instant_payouts_promotion
836
802
  # Configuration for the [issuing card](/connect/supported-embedded-components/issuing-card/) embedded component.
@@ -859,8 +825,6 @@ module Stripe
859
825
  attr_accessor :product_tax_code_selector
860
826
  # Configuration for the [recipients](/connect/supported-embedded-components/recipients/) embedded component.
861
827
  attr_accessor :recipients
862
- # Configuration for the [recipients list](/connect/supported-embedded-components/recipients-list/) embedded component.
863
- attr_accessor :recipients_list
864
828
  # Configuration for the [reporting chart](/connect/supported-embedded-components/reporting-chart/) embedded component.
865
829
  attr_accessor :reporting_chart
866
830
  # Configuration for the [tax registrations](/connect/supported-embedded-components/tax-registrations/) embedded component.
@@ -892,8 +856,6 @@ module Stripe
892
856
  export_tax_transactions: nil,
893
857
  financial_account: nil,
894
858
  financial_account_transactions: nil,
895
- financial_accounts: nil,
896
- financial_accounts_transactions: nil,
897
859
  instant_payouts_promotion: nil,
898
860
  issuing_card: nil,
899
861
  issuing_cards_list: nil,
@@ -908,7 +870,6 @@ module Stripe
908
870
  payouts_list: nil,
909
871
  product_tax_code_selector: nil,
910
872
  recipients: nil,
911
- recipients_list: nil,
912
873
  reporting_chart: nil,
913
874
  tax_registrations: nil,
914
875
  tax_settings: nil,
@@ -933,8 +894,6 @@ module Stripe
933
894
  @export_tax_transactions = export_tax_transactions
934
895
  @financial_account = financial_account
935
896
  @financial_account_transactions = financial_account_transactions
936
- @financial_accounts = financial_accounts
937
- @financial_accounts_transactions = financial_accounts_transactions
938
897
  @instant_payouts_promotion = instant_payouts_promotion
939
898
  @issuing_card = issuing_card
940
899
  @issuing_cards_list = issuing_cards_list
@@ -949,7 +908,6 @@ module Stripe
949
908
  @payouts_list = payouts_list
950
909
  @product_tax_code_selector = product_tax_code_selector
951
910
  @recipients = recipients
952
- @recipients_list = recipients_list
953
911
  @reporting_chart = reporting_chart
954
912
  @tax_registrations = tax_registrations
955
913
  @tax_settings = tax_settings
@@ -1508,6 +1508,8 @@ module Stripe
1508
1508
  # The category identifying the legal structure of the company or legal entity. See [Business structure](/connect/identity-verification#business-structure) for more details. Pass an empty string to unset this value.
1509
1509
  attr_accessor :structure
1510
1510
  # The business ID number of the company, as appropriate for the company’s country. (Examples are an Employer ID Number in the U.S., a Business Number in Canada, or a Company Number in the UK.)
1511
+ #
1512
+ # Changing this value requires that the account re-accept the [terms of service](/api/accounts/object#account_object-tos_acceptance).
1511
1513
  attr_accessor :tax_id
1512
1514
  # The jurisdiction in which the `tax_id` is registered (Germany-based companies only).
1513
1515
  attr_accessor :tax_id_registrar
@@ -245,7 +245,7 @@ module Stripe
245
245
  end
246
246
  # The filters allows limiting the scope of this usage alert. You can only specify up to one filter at this time.
247
247
  attr_accessor :filters
248
- # Defines the threshold value that triggers the alert.
248
+ # Defines the threshold value that triggers the alert. The value must be greater than 0.
249
249
  attr_accessor :gte
250
250
  # The [Billing Meter](/api/billing/meter) ID whose usage is monitored.
251
251
  attr_accessor :meter
@@ -0,0 +1,70 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Billing
6
+ class AlertNotificationListParams < ::Stripe::RequestParams
7
+ class NotifiedAt < ::Stripe::RequestParams
8
+ # Minimum value to filter by (exclusive)
9
+ attr_accessor :gt
10
+ # Minimum value to filter by (inclusive)
11
+ attr_accessor :gte
12
+ # Maximum value to filter by (exclusive)
13
+ attr_accessor :lt
14
+ # Maximum value to filter by (inclusive)
15
+ attr_accessor :lte
16
+
17
+ def initialize(gt: nil, gte: nil, lt: nil, lte: nil)
18
+ @gt = gt
19
+ @gte = gte
20
+ @lt = lt
21
+ @lte = lte
22
+ end
23
+ end
24
+ # Filter results to only include triggered or recovered notifications.
25
+ attr_accessor :action
26
+ # Filter results to only include notifications for the given billing cadence.
27
+ attr_accessor :cadence
28
+ # The customer to list notifications for.
29
+ attr_accessor :customer
30
+ # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
31
+ attr_accessor :ending_before
32
+ # Specifies which fields in the response should be expanded.
33
+ attr_accessor :expand
34
+ # A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
35
+ attr_accessor :limit
36
+ # Filter results to only include notifications for the given meter.
37
+ attr_accessor :meter
38
+ # Filter results according to when the notification was sent.
39
+ attr_accessor :notified_at
40
+ # 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.
41
+ attr_accessor :starting_after
42
+ # Filter results to only include notifications for the given subscription.
43
+ attr_accessor :subscription
44
+
45
+ def initialize(
46
+ action: nil,
47
+ cadence: nil,
48
+ customer: nil,
49
+ ending_before: nil,
50
+ expand: nil,
51
+ limit: nil,
52
+ meter: nil,
53
+ notified_at: nil,
54
+ starting_after: nil,
55
+ subscription: nil
56
+ )
57
+ @action = action
58
+ @cadence = cadence
59
+ @customer = customer
60
+ @ending_before = ending_before
61
+ @expand = expand
62
+ @limit = limit
63
+ @meter = meter
64
+ @notified_at = notified_at
65
+ @starting_after = starting_after
66
+ @subscription = subscription
67
+ end
68
+ end
69
+ end
70
+ end
@@ -197,7 +197,7 @@ module Stripe
197
197
  end
198
198
  # The business information shown to customers in the portal.
199
199
  attr_accessor :business_profile
200
- # The default URL to redirect customers to when they click on the portal's link to return to your website. This can be [overriden](https://docs.stripe.com/api/customer_portal/sessions/create#create_portal_session-return_url) when creating the session.
200
+ # The default URL to redirect customers to when they click on the portal's link to return to your website. This can be [overridden](https://docs.stripe.com/api/customer_portal/sessions/create#create_portal_session-return_url) when creating the session.
201
201
  attr_accessor :default_return_url
202
202
  # Specifies which fields in the response should be expanded.
203
203
  attr_accessor :expand
@@ -201,7 +201,7 @@ module Stripe
201
201
  attr_accessor :active
202
202
  # The business information shown to customers in the portal.
203
203
  attr_accessor :business_profile
204
- # The default URL to redirect customers to when they click on the portal's link to return to your website. This can be [overriden](https://docs.stripe.com/api/customer_portal/sessions/create#create_portal_session-return_url) when creating the session.
204
+ # The default URL to redirect customers to when they click on the portal's link to return to your website. This can be [overridden](https://docs.stripe.com/api/customer_portal/sessions/create#create_portal_session-return_url) when creating the session.
205
205
  attr_accessor :default_return_url
206
206
  # Specifies which fields in the response should be expanded.
207
207
  attr_accessor :expand
@@ -404,6 +404,7 @@ module Stripe
404
404
  end
405
405
  end
406
406
 
407
+ class Vipps < ::Stripe::RequestParams; end
407
408
  class WechatPay < ::Stripe::RequestParams; end
408
409
  class Zip < ::Stripe::RequestParams; end
409
410
  # If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method.
@@ -540,6 +541,8 @@ module Stripe
540
541
  attr_accessor :upi
541
542
  # If this is an `us_bank_account` PaymentMethod, this hash contains details about the US bank account payment method.
542
543
  attr_accessor :us_bank_account
544
+ # If this is a `vipps` PaymentMethod, this hash contains details about the Vipps payment method.
545
+ attr_accessor :vipps
543
546
  # If this is an `wechat_pay` PaymentMethod, this hash contains details about the wechat_pay payment method.
544
547
  attr_accessor :wechat_pay
545
548
  # If this is a `zip` PaymentMethod, this hash contains details about the Zip payment method.
@@ -613,6 +616,7 @@ module Stripe
613
616
  type: nil,
614
617
  upi: nil,
615
618
  us_bank_account: nil,
619
+ vipps: nil,
616
620
  wechat_pay: nil,
617
621
  zip: nil
618
622
  )
@@ -683,6 +687,7 @@ module Stripe
683
687
  @type = type
684
688
  @upi = upi
685
689
  @us_bank_account = us_bank_account
690
+ @vipps = vipps
686
691
  @wechat_pay = wechat_pay
687
692
  @zip = zip
688
693
  end
@@ -0,0 +1,24 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Crypto
6
+ class DepositAddressCreateParams < ::Stripe::RequestParams
7
+ # Attribute for param field customer
8
+ attr_accessor :customer
9
+ # Specifies which fields in the response should be expanded.
10
+ attr_accessor :expand
11
+ # Attribute for param field metadata
12
+ attr_accessor :metadata
13
+ # Attribute for param field network
14
+ attr_accessor :network
15
+
16
+ def initialize(customer: nil, expand: nil, metadata: nil, network: nil)
17
+ @customer = customer
18
+ @expand = expand
19
+ @metadata = metadata
20
+ @network = network
21
+ end
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,45 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Crypto
6
+ class DepositAddressListParams < ::Stripe::RequestParams
7
+ # Attribute for param field address
8
+ attr_accessor :address
9
+ # Attribute for param field customer
10
+ attr_accessor :customer
11
+ # Attribute for param field customer_account
12
+ attr_accessor :customer_account
13
+ # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
14
+ attr_accessor :ending_before
15
+ # Specifies which fields in the response should be expanded.
16
+ attr_accessor :expand
17
+ # A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
18
+ attr_accessor :limit
19
+ # Attribute for param field network
20
+ attr_accessor :network
21
+ # 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.
22
+ attr_accessor :starting_after
23
+
24
+ def initialize(
25
+ address: nil,
26
+ customer: nil,
27
+ customer_account: nil,
28
+ ending_before: nil,
29
+ expand: nil,
30
+ limit: nil,
31
+ network: nil,
32
+ starting_after: nil
33
+ )
34
+ @address = address
35
+ @customer = customer
36
+ @customer_account = customer_account
37
+ @ending_before = ending_before
38
+ @expand = expand
39
+ @limit = limit
40
+ @network = network
41
+ @starting_after = starting_after
42
+ end
43
+ end
44
+ end
45
+ end
@@ -0,0 +1,15 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Crypto
6
+ class DepositAddressRetrieveParams < ::Stripe::RequestParams
7
+ # Specifies which fields in the response should be expanded.
8
+ attr_accessor :expand
9
+
10
+ def initialize(expand: nil)
11
+ @expand = expand
12
+ end
13
+ end
14
+ end
15
+ end
@@ -145,6 +145,8 @@ module Stripe
145
145
  attr_accessor :return_url
146
146
  # Risk details/signals associated with the requested session
147
147
  attr_accessor :risk_details
148
+ # Set to true when using Stripe.js, iOS, or Android client-side SDKs to handle next actions.
149
+ attr_accessor :use_stripe_sdk
148
150
 
149
151
  def initialize(
150
152
  affiliate_attribution: nil,
@@ -153,7 +155,8 @@ module Stripe
153
155
  metadata: nil,
154
156
  payment_method: nil,
155
157
  return_url: nil,
156
- risk_details: nil
158
+ risk_details: nil,
159
+ use_stripe_sdk: nil
157
160
  )
158
161
  @affiliate_attribution = affiliate_attribution
159
162
  @buyer_consents = buyer_consents
@@ -162,6 +165,7 @@ module Stripe
162
165
  @payment_method = payment_method
163
166
  @return_url = return_url
164
167
  @risk_details = risk_details
168
+ @use_stripe_sdk = use_stripe_sdk
165
169
  end
166
170
  end
167
171
  end
@@ -1820,7 +1820,7 @@ module Stripe
1820
1820
  attr_accessor :trial
1821
1821
  # Specify trial behavior when crossing phase boundaries
1822
1822
  attr_accessor :trial_continuation
1823
- # Sets the phase to trialing from the start date to this date. Must be before the phase end date, can not be combined with `trial`
1823
+ # Sets the phase to trialing from the start date to this date. Must be within the phase. When previewing an update, if combined with `trial=true`, it must match the phase end date.
1824
1824
  attr_accessor :trial_end
1825
1825
  # Settings related to subscription trials.
1826
1826
  attr_accessor :trial_settings
@@ -44,7 +44,7 @@ module Stripe
44
44
 
45
45
  class ReportedBreakdown < ::Stripe::RequestParams
46
46
  class Fuel < ::Stripe::RequestParams
47
- # Gross fuel amount that should equal Fuel Volume multipled by Fuel Unit Cost, inclusive of taxes.
47
+ # Gross fuel amount that should equal Fuel Volume multiplied by Fuel Unit Cost, inclusive of taxes.
48
48
  attr_accessor :gross_amount_decimal
49
49
 
50
50
  def initialize(gross_amount_decimal: nil)
@@ -46,7 +46,7 @@ module Stripe
46
46
 
47
47
  class ReportedBreakdown < ::Stripe::RequestParams
48
48
  class Fuel < ::Stripe::RequestParams
49
- # Gross fuel amount that should equal Fuel Volume multipled by Fuel Unit Cost, inclusive of taxes.
49
+ # Gross fuel amount that should equal Fuel Volume multiplied by Fuel Unit Cost, inclusive of taxes.
50
50
  attr_accessor :gross_amount_decimal
51
51
 
52
52
  def initialize(gross_amount_decimal: nil)
@@ -34,7 +34,7 @@ module Stripe
34
34
 
35
35
  class ReportedBreakdown < ::Stripe::RequestParams
36
36
  class Fuel < ::Stripe::RequestParams
37
- # Gross fuel amount that should equal Fuel Volume multipled by Fuel Unit Cost, inclusive of taxes.
37
+ # Gross fuel amount that should equal Fuel Volume multiplied by Fuel Unit Cost, inclusive of taxes.
38
38
  attr_accessor :gross_amount_decimal
39
39
 
40
40
  def initialize(gross_amount_decimal: nil)