stripe 19.4.0.pre.alpha.3 → 19.4.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 (65) 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 +0 -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_portal/configuration_create_params.rb +1 -1
  11. data/lib/stripe/params/billing_portal/configuration_update_params.rb +1 -1
  12. data/lib/stripe/params/invoice_create_preview_params.rb +1 -1
  13. data/lib/stripe/params/issuing/authorization_capture_params.rb +1 -1
  14. data/lib/stripe/params/issuing/authorization_create_params.rb +1 -1
  15. data/lib/stripe/params/issuing/authorization_finalize_amount_params.rb +1 -1
  16. data/lib/stripe/params/issuing/transaction_create_force_capture_params.rb +1 -1
  17. data/lib/stripe/params/issuing/transaction_create_unlinked_refund_params.rb +1 -1
  18. data/lib/stripe/params/payment_record_create_params.rb +109 -0
  19. data/lib/stripe/params/refund_create_params.rb +4 -0
  20. data/lib/stripe/params/subscription_schedule_create_params.rb +136 -0
  21. data/lib/stripe/params/subscription_schedule_update_params.rb +137 -1
  22. data/lib/stripe/params/test_helpers/issuing/authorization_capture_params.rb +1 -1
  23. data/lib/stripe/params/test_helpers/issuing/authorization_create_params.rb +1 -1
  24. data/lib/stripe/params/test_helpers/issuing/authorization_finalize_amount_params.rb +1 -1
  25. data/lib/stripe/params/test_helpers/issuing/transaction_create_force_capture_params.rb +1 -1
  26. data/lib/stripe/params/test_helpers/issuing/transaction_create_unlinked_refund_params.rb +1 -1
  27. data/lib/stripe/params/token_create_params.rb +8 -0
  28. data/lib/stripe/params.rb +2 -8
  29. data/lib/stripe/resources/account_session.rb +8 -0
  30. data/lib/stripe/resources/balance_transaction.rb +1 -1
  31. data/lib/stripe/resources/billing_portal/configuration.rb +1 -1
  32. data/lib/stripe/resources/checkout/session.rb +2 -2
  33. data/lib/stripe/resources/financial_connections/session.rb +3 -0
  34. data/lib/stripe/resources/invoice.rb +1 -1
  35. data/lib/stripe/resources/issuing/card.rb +2 -0
  36. data/lib/stripe/resources/issuing/transaction.rb +2 -2
  37. data/lib/stripe/resources/order.rb +1 -1
  38. data/lib/stripe/resources/payment_method.rb +2 -2
  39. data/lib/stripe/resources/payment_record.rb +12 -0
  40. data/lib/stripe/resources/profile.rb +14 -14
  41. data/lib/stripe/resources/quote_preview_invoice.rb +1 -1
  42. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +125 -0
  43. data/lib/stripe/resources/shared_payment/issued_token.rb +18 -1
  44. data/lib/stripe/resources/subscription_schedule.rb +125 -0
  45. data/lib/stripe/resources/tax/calculation.rb +1 -1
  46. data/lib/stripe/resources/tax/transaction.rb +1 -1
  47. data/lib/stripe/resources/v2/signals/account_signal.rb +4 -1
  48. data/lib/stripe/resources.rb +0 -2
  49. data/lib/stripe/services/account_person_service.rb +1 -1
  50. data/lib/stripe/services/payment_method_service.rb +1 -1
  51. data/lib/stripe/services/payment_record_service.rb +12 -0
  52. data/lib/stripe/services/v1_services.rb +1 -2
  53. data/lib/stripe/services/v2/signals/account_signal_service.rb +1 -1
  54. data/lib/stripe/services.rb +0 -2
  55. data/lib/stripe/telemetry_id.rb +65 -0
  56. data/lib/stripe/version.rb +1 -1
  57. data/lib/stripe.rb +2 -0
  58. data/rbi/stripe.rbi +985 -384
  59. metadata +4 -8
  60. data/lib/stripe/params/fr_meal_vouchers_onboarding_create_params.rb +0 -25
  61. data/lib/stripe/params/fr_meal_vouchers_onboarding_list_params.rb +0 -22
  62. data/lib/stripe/params/fr_meal_vouchers_onboarding_retrieve_params.rb +0 -13
  63. data/lib/stripe/params/fr_meal_vouchers_onboarding_update_params.rb +0 -16
  64. data/lib/stripe/resources/fr_meal_vouchers_onboarding.rb +0 -153
  65. data/lib/stripe/services/fr_meal_vouchers_onboarding_service.rb +0 -57
@@ -198,6 +198,138 @@ module Stripe
198
198
  end
199
199
  end
200
200
 
201
+ class PauseSchedule < ::Stripe::RequestParams
202
+ class Pause < ::Stripe::RequestParams
203
+ class PauseAt < ::Stripe::RequestParams
204
+ # The Unix timestamp at which to pause the subscription. Required when `type` is `timestamp`.
205
+ attr_accessor :timestamp
206
+ # When to pause the subscription. Use `now` to pause immediately or `timestamp` to pause at a specific time.
207
+ attr_accessor :type
208
+
209
+ def initialize(timestamp: nil, type: nil)
210
+ @timestamp = timestamp
211
+ @type = type
212
+ end
213
+ end
214
+
215
+ class Settings < ::Stripe::RequestParams
216
+ class BillFor < ::Stripe::RequestParams
217
+ class OutstandingUsageThrough < ::Stripe::RequestParams
218
+ # Determines whether to collect metered usage accrued up to the pause date.
219
+ attr_accessor :type
220
+
221
+ def initialize(type: nil)
222
+ @type = type
223
+ end
224
+ end
225
+
226
+ class UnusedTimeFrom < ::Stripe::RequestParams
227
+ # Determines which point in the billing period unused time is credited from.
228
+ attr_accessor :type
229
+
230
+ def initialize(type: nil)
231
+ @type = type
232
+ end
233
+ end
234
+ # Controls whether to collect metered usage accrued up to the pause date.
235
+ attr_accessor :outstanding_usage_through
236
+ # Controls how unused time on subscription items is credited when pausing.
237
+ attr_accessor :unused_time_from
238
+
239
+ def initialize(outstanding_usage_through: nil, unused_time_from: nil)
240
+ @outstanding_usage_through = outstanding_usage_through
241
+ @unused_time_from = unused_time_from
242
+ end
243
+ end
244
+ # Controls what to bill for when pausing the subscription.
245
+ attr_accessor :bill_for
246
+ # Determines whether to generate an invoice for outstanding amounts when pausing.
247
+ attr_accessor :invoicing_behavior
248
+ # The pause type. Currently only `subscription` is supported.
249
+ attr_accessor :type
250
+
251
+ def initialize(bill_for: nil, invoicing_behavior: nil, type: nil)
252
+ @bill_for = bill_for
253
+ @invoicing_behavior = invoicing_behavior
254
+ @type = type
255
+ end
256
+ end
257
+ # When to pause the subscription.
258
+ attr_accessor :pause_at
259
+ # Settings controlling billing behavior during the pause.
260
+ attr_accessor :settings
261
+
262
+ def initialize(pause_at: nil, settings: nil)
263
+ @pause_at = pause_at
264
+ @settings = settings
265
+ end
266
+ end
267
+
268
+ class Resume < ::Stripe::RequestParams
269
+ class ResumeAt < ::Stripe::RequestParams
270
+ class Duration < ::Stripe::RequestParams
271
+ # The time unit for the resume duration. One of `day`, `week`, `month`, or `year`.
272
+ attr_accessor :interval
273
+ # The number of intervals after which the subscription resumes.
274
+ attr_accessor :interval_count
275
+
276
+ def initialize(interval: nil, interval_count: nil)
277
+ @interval = interval
278
+ @interval_count = interval_count
279
+ end
280
+ end
281
+ # The duration after which to resume the subscription. Required when `type` is `duration`.
282
+ attr_accessor :duration
283
+ # The Unix timestamp at which to resume the subscription. Required when `type` is `timestamp`.
284
+ attr_accessor :timestamp
285
+ # When to resume the subscription. Use `now` to resume immediately, `duration` to resume after a set duration, or `timestamp` to resume at a specific time.
286
+ attr_accessor :type
287
+
288
+ def initialize(duration: nil, timestamp: nil, type: nil)
289
+ @duration = duration
290
+ @timestamp = timestamp
291
+ @type = type
292
+ end
293
+ end
294
+
295
+ class Settings < ::Stripe::RequestParams
296
+ # Controls the billing cycle anchor when the subscription resumes.
297
+ attr_accessor :billing_cycle_anchor
298
+ # Controls whether Stripe attempts payment on the resumption invoice and how payment affects the subscription's status. The default is `resume_on_payment_attempt`.
299
+ attr_accessor :payment_behavior
300
+ # Determines how to handle prorations when the subscription resumes. The default is `create_prorations`.
301
+ attr_accessor :proration_behavior
302
+
303
+ def initialize(billing_cycle_anchor: nil, payment_behavior: nil, proration_behavior: nil)
304
+ @billing_cycle_anchor = billing_cycle_anchor
305
+ @payment_behavior = payment_behavior
306
+ @proration_behavior = proration_behavior
307
+ end
308
+ end
309
+ # When to resume the subscription.
310
+ attr_accessor :resume_at
311
+ # Settings controlling how the subscription resumes.
312
+ attr_accessor :settings
313
+
314
+ def initialize(resume_at: nil, settings: nil)
315
+ @resume_at = resume_at
316
+ @settings = settings
317
+ end
318
+ end
319
+ # A unique identifier for this pause schedule entry.
320
+ attr_accessor :key
321
+ # Configuration for when and how the subscription pauses.
322
+ attr_accessor :pause
323
+ # Configuration for when and how the subscription resumes.
324
+ attr_accessor :resume
325
+
326
+ def initialize(key: nil, pause: nil, resume: nil)
327
+ @key = key
328
+ @pause = pause
329
+ @resume = resume
330
+ end
331
+ end
332
+
201
333
  class Phase < ::Stripe::RequestParams
202
334
  class AddInvoiceItem < ::Stripe::RequestParams
203
335
  class Discount < ::Stripe::RequestParams
@@ -927,6 +1059,8 @@ module Stripe
927
1059
  attr_accessor :from_subscription
928
1060
  # Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
929
1061
  attr_accessor :metadata
1062
+ # Sets the pause schedules for the subscription schedule. Each entry configures when and how the subscription pauses and optionally when and how it resumes.
1063
+ attr_accessor :pause_schedules
930
1064
  # List representing phases of the subscription schedule. Each phase can be customized to have different durations, plans, and coupons. If there are multiple phases, the `end_date` of one phase will always equal the `start_date` of the next phase.
931
1065
  attr_accessor :phases
932
1066
  # If specified, the invoicing for the given billing cycle iterations will be processed now.
@@ -945,6 +1079,7 @@ module Stripe
945
1079
  expand: nil,
946
1080
  from_subscription: nil,
947
1081
  metadata: nil,
1082
+ pause_schedules: nil,
948
1083
  phases: nil,
949
1084
  prebilling: nil,
950
1085
  start_date: nil
@@ -959,6 +1094,7 @@ module Stripe
959
1094
  @expand = expand
960
1095
  @from_subscription = from_subscription
961
1096
  @metadata = metadata
1097
+ @pause_schedules = pause_schedules
962
1098
  @phases = phases
963
1099
  @prebilling = prebilling
964
1100
  @start_date = start_date
@@ -178,6 +178,138 @@ module Stripe
178
178
  end
179
179
  end
180
180
 
181
+ class PauseSchedule < ::Stripe::RequestParams
182
+ class Pause < ::Stripe::RequestParams
183
+ class PauseAt < ::Stripe::RequestParams
184
+ # The Unix timestamp at which to pause the subscription. Required when `type` is `timestamp`.
185
+ attr_accessor :timestamp
186
+ # When to pause the subscription. Use `now` to pause immediately or `timestamp` to pause at a specific time.
187
+ attr_accessor :type
188
+
189
+ def initialize(timestamp: nil, type: nil)
190
+ @timestamp = timestamp
191
+ @type = type
192
+ end
193
+ end
194
+
195
+ class Settings < ::Stripe::RequestParams
196
+ class BillFor < ::Stripe::RequestParams
197
+ class OutstandingUsageThrough < ::Stripe::RequestParams
198
+ # Determines whether to collect metered usage accrued up to the pause date.
199
+ attr_accessor :type
200
+
201
+ def initialize(type: nil)
202
+ @type = type
203
+ end
204
+ end
205
+
206
+ class UnusedTimeFrom < ::Stripe::RequestParams
207
+ # Determines which point in the billing period unused time is credited from.
208
+ attr_accessor :type
209
+
210
+ def initialize(type: nil)
211
+ @type = type
212
+ end
213
+ end
214
+ # Controls whether to collect metered usage accrued up to the pause date.
215
+ attr_accessor :outstanding_usage_through
216
+ # Controls how unused time on subscription items is credited when pausing.
217
+ attr_accessor :unused_time_from
218
+
219
+ def initialize(outstanding_usage_through: nil, unused_time_from: nil)
220
+ @outstanding_usage_through = outstanding_usage_through
221
+ @unused_time_from = unused_time_from
222
+ end
223
+ end
224
+ # Controls what to bill for when pausing the subscription.
225
+ attr_accessor :bill_for
226
+ # Determines whether to generate an invoice for outstanding amounts when pausing.
227
+ attr_accessor :invoicing_behavior
228
+ # The pause type. Currently only `subscription` is supported.
229
+ attr_accessor :type
230
+
231
+ def initialize(bill_for: nil, invoicing_behavior: nil, type: nil)
232
+ @bill_for = bill_for
233
+ @invoicing_behavior = invoicing_behavior
234
+ @type = type
235
+ end
236
+ end
237
+ # When to pause the subscription.
238
+ attr_accessor :pause_at
239
+ # Settings controlling billing behavior during the pause.
240
+ attr_accessor :settings
241
+
242
+ def initialize(pause_at: nil, settings: nil)
243
+ @pause_at = pause_at
244
+ @settings = settings
245
+ end
246
+ end
247
+
248
+ class Resume < ::Stripe::RequestParams
249
+ class ResumeAt < ::Stripe::RequestParams
250
+ class Duration < ::Stripe::RequestParams
251
+ # The time unit for the resume duration. One of `day`, `week`, `month`, or `year`.
252
+ attr_accessor :interval
253
+ # The number of intervals after which the subscription resumes.
254
+ attr_accessor :interval_count
255
+
256
+ def initialize(interval: nil, interval_count: nil)
257
+ @interval = interval
258
+ @interval_count = interval_count
259
+ end
260
+ end
261
+ # The duration after which to resume the subscription. Required when `type` is `duration`.
262
+ attr_accessor :duration
263
+ # The Unix timestamp at which to resume the subscription. Required when `type` is `timestamp`.
264
+ attr_accessor :timestamp
265
+ # When to resume the subscription. Use `now` to resume immediately, `duration` to resume after a set duration, or `timestamp` to resume at a specific time.
266
+ attr_accessor :type
267
+
268
+ def initialize(duration: nil, timestamp: nil, type: nil)
269
+ @duration = duration
270
+ @timestamp = timestamp
271
+ @type = type
272
+ end
273
+ end
274
+
275
+ class Settings < ::Stripe::RequestParams
276
+ # Controls the billing cycle anchor when the subscription resumes.
277
+ attr_accessor :billing_cycle_anchor
278
+ # Controls whether Stripe attempts payment on the resumption invoice and how payment affects the subscription's status. The default is `resume_on_payment_attempt`.
279
+ attr_accessor :payment_behavior
280
+ # Determines how to handle prorations when the subscription resumes. The default is `create_prorations`.
281
+ attr_accessor :proration_behavior
282
+
283
+ def initialize(billing_cycle_anchor: nil, payment_behavior: nil, proration_behavior: nil)
284
+ @billing_cycle_anchor = billing_cycle_anchor
285
+ @payment_behavior = payment_behavior
286
+ @proration_behavior = proration_behavior
287
+ end
288
+ end
289
+ # When to resume the subscription.
290
+ attr_accessor :resume_at
291
+ # Settings controlling how the subscription resumes.
292
+ attr_accessor :settings
293
+
294
+ def initialize(resume_at: nil, settings: nil)
295
+ @resume_at = resume_at
296
+ @settings = settings
297
+ end
298
+ end
299
+ # A unique identifier for this pause schedule entry.
300
+ attr_accessor :key
301
+ # Configuration for when and how the subscription pauses.
302
+ attr_accessor :pause
303
+ # Configuration for when and how the subscription resumes.
304
+ attr_accessor :resume
305
+
306
+ def initialize(key: nil, pause: nil, resume: nil)
307
+ @key = key
308
+ @pause = pause
309
+ @resume = resume
310
+ end
311
+ end
312
+
181
313
  class Phase < ::Stripe::RequestParams
182
314
  class AddInvoiceItem < ::Stripe::RequestParams
183
315
  class Discount < ::Stripe::RequestParams
@@ -799,7 +931,7 @@ module Stripe
799
931
  attr_accessor :trial
800
932
  # Specify trial behavior when crossing phase boundaries
801
933
  attr_accessor :trial_continuation
802
- # 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`
934
+ # Sets the phase to trialing from the start date to this date. Must be within the phase. When combined with `trial=true`, it must match the phase end date.
803
935
  attr_accessor :trial_end
804
936
  # Settings related to subscription trials.
805
937
  attr_accessor :trial_settings
@@ -903,6 +1035,8 @@ module Stripe
903
1035
  attr_accessor :expand
904
1036
  # Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
905
1037
  attr_accessor :metadata
1038
+ # Sets the pause schedules for the subscription schedule. Include a `key` to update an existing entry or omit it to add a new one. Pass `""` to clear all entries or `[]` to leave them unchanged.
1039
+ attr_accessor :pause_schedules
906
1040
  # List representing phases of the subscription schedule. Each phase can be customized to have different durations, plans, and coupons. If there are multiple phases, the `end_date` of one phase will always equal the `start_date` of the next phase. Note that past phases can be omitted.
907
1041
  attr_accessor :phases
908
1042
  # If specified, the invoicing for the given billing cycle iterations will be processed now.
@@ -917,6 +1051,7 @@ module Stripe
917
1051
  end_behavior: nil,
918
1052
  expand: nil,
919
1053
  metadata: nil,
1054
+ pause_schedules: nil,
920
1055
  phases: nil,
921
1056
  prebilling: nil,
922
1057
  proration_behavior: nil
@@ -927,6 +1062,7 @@ module Stripe
927
1062
  @end_behavior = end_behavior
928
1063
  @expand = expand
929
1064
  @metadata = metadata
1065
+ @pause_schedules = pause_schedules
930
1066
  @phases = phases
931
1067
  @prebilling = prebilling
932
1068
  @proration_behavior = proration_behavior
@@ -45,7 +45,7 @@ module Stripe
45
45
 
46
46
  class ReportedBreakdown < ::Stripe::RequestParams
47
47
  class Fuel < ::Stripe::RequestParams
48
- # Gross fuel amount that should equal Fuel Volume multipled by Fuel Unit Cost, inclusive of taxes.
48
+ # Gross fuel amount that should equal Fuel Volume multiplied by Fuel Unit Cost, inclusive of taxes.
49
49
  attr_accessor :gross_amount_decimal
50
50
 
51
51
  def initialize(gross_amount_decimal: nil)
@@ -47,7 +47,7 @@ module Stripe
47
47
 
48
48
  class ReportedBreakdown < ::Stripe::RequestParams
49
49
  class Fuel < ::Stripe::RequestParams
50
- # Gross fuel amount that should equal Fuel Volume multipled by Fuel Unit Cost, inclusive of taxes.
50
+ # Gross fuel amount that should equal Fuel Volume multiplied by Fuel Unit Cost, inclusive of taxes.
51
51
  attr_accessor :gross_amount_decimal
52
52
 
53
53
  def initialize(gross_amount_decimal: nil)
@@ -35,7 +35,7 @@ module Stripe
35
35
 
36
36
  class ReportedBreakdown < ::Stripe::RequestParams
37
37
  class Fuel < ::Stripe::RequestParams
38
- # Gross fuel amount that should equal Fuel Volume multipled by Fuel Unit Cost, inclusive of taxes.
38
+ # Gross fuel amount that should equal Fuel Volume multiplied by Fuel Unit Cost, inclusive of taxes.
39
39
  attr_accessor :gross_amount_decimal
40
40
 
41
41
  def initialize(gross_amount_decimal: nil)
@@ -96,7 +96,7 @@ module Stripe
96
96
 
97
97
  class ReportedBreakdown < ::Stripe::RequestParams
98
98
  class Fuel < ::Stripe::RequestParams
99
- # Gross fuel amount that should equal Fuel Volume multipled by Fuel Unit Cost, inclusive of taxes.
99
+ # Gross fuel amount that should equal Fuel Volume multiplied by Fuel Unit Cost, inclusive of taxes.
100
100
  attr_accessor :gross_amount_decimal
101
101
 
102
102
  def initialize(gross_amount_decimal: nil)
@@ -87,7 +87,7 @@ module Stripe
87
87
 
88
88
  class ReportedBreakdown < ::Stripe::RequestParams
89
89
  class Fuel < ::Stripe::RequestParams
90
- # Gross fuel amount that should equal Fuel Volume multipled by Fuel Unit Cost, inclusive of taxes.
90
+ # Gross fuel amount that should equal Fuel Volume multiplied by Fuel Unit Cost, inclusive of taxes.
91
91
  attr_accessor :gross_amount_decimal
92
92
 
93
93
  def initialize(gross_amount_decimal: nil)
@@ -226,6 +226,8 @@ module Stripe
226
226
  # 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.
227
227
  attr_accessor :structure
228
228
  # 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.)
229
+ #
230
+ # Changing this value requires that the account re-accept the [terms of service](/api/accounts/object#account_object-tos_acceptance).
229
231
  attr_accessor :tax_id
230
232
  # The jurisdiction in which the `tax_id` is registered (Germany-based companies only).
231
233
  attr_accessor :tax_id_registrar
@@ -1197,8 +1199,12 @@ module Stripe
1197
1199
  # The person's gender (International regulations require either "male" or "female").
1198
1200
  attr_accessor :gender
1199
1201
  # 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).
1202
+ #
1203
+ # 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).
1200
1204
  attr_accessor :id_number
1201
1205
  # 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).
1206
+ #
1207
+ # 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).
1202
1208
  attr_accessor :id_number_secondary
1203
1209
  # The person's last name.
1204
1210
  attr_accessor :last_name
@@ -1225,6 +1231,8 @@ module Stripe
1225
1231
  # The credit applicant's self-reported monthly housing payment in minor units.
1226
1232
  attr_accessor :self_reported_monthly_housing_payment
1227
1233
  # The last four digits of the person's Social Security number (U.S. only).
1234
+ #
1235
+ # 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).
1228
1236
  attr_accessor :ssn_last_4
1229
1237
  # Demographic data related to the person.
1230
1238
  attr_accessor :us_cfpb_data
data/lib/stripe/params.rb CHANGED
@@ -126,10 +126,6 @@ module Stripe
126
126
  autoload :FileLinkUpdateParams, "stripe/params/file_link_update_params"
127
127
  autoload :FileListParams, "stripe/params/file_list_params"
128
128
  autoload :FileRetrieveParams, "stripe/params/file_retrieve_params"
129
- autoload :FrMealVouchersOnboardingCreateParams, "stripe/params/fr_meal_vouchers_onboarding_create_params"
130
- autoload :FrMealVouchersOnboardingListParams, "stripe/params/fr_meal_vouchers_onboarding_list_params"
131
- autoload :FrMealVouchersOnboardingRetrieveParams, "stripe/params/fr_meal_vouchers_onboarding_retrieve_params"
132
- autoload :FrMealVouchersOnboardingUpdateParams, "stripe/params/fr_meal_vouchers_onboarding_update_params"
133
129
  autoload :FxQuoteCreateParams, "stripe/params/fx_quote_create_params"
134
130
  autoload :FxQuoteListParams, "stripe/params/fx_quote_list_params"
135
131
  autoload :FxQuoteRetrieveParams, "stripe/params/fx_quote_retrieve_params"
@@ -244,6 +240,7 @@ module Stripe
244
240
  autoload :PaymentMethodListParams, "stripe/params/payment_method_list_params"
245
241
  autoload :PaymentMethodRetrieveParams, "stripe/params/payment_method_retrieve_params"
246
242
  autoload :PaymentMethodUpdateParams, "stripe/params/payment_method_update_params"
243
+ autoload :PaymentRecordCreateParams, "stripe/params/payment_record_create_params"
247
244
  autoload :PaymentRecordReportPaymentAttemptCanceledParams,
248
245
  "stripe/params/payment_record_report_payment_attempt_canceled_params"
249
246
  autoload :PaymentRecordReportPaymentAttemptFailedParams,
@@ -1534,10 +1531,6 @@ module Stripe
1534
1531
  stripe/params/forwarding/request_create_params
1535
1532
  stripe/params/forwarding/request_list_params
1536
1533
  stripe/params/forwarding/request_retrieve_params
1537
- stripe/params/fr_meal_vouchers_onboarding_create_params
1538
- stripe/params/fr_meal_vouchers_onboarding_list_params
1539
- stripe/params/fr_meal_vouchers_onboarding_retrieve_params
1540
- stripe/params/fr_meal_vouchers_onboarding_update_params
1541
1534
  stripe/params/fx_quote_create_params
1542
1535
  stripe/params/fx_quote_list_params
1543
1536
  stripe/params/fx_quote_retrieve_params
@@ -1728,6 +1721,7 @@ module Stripe
1728
1721
  stripe/params/payment_method_list_params
1729
1722
  stripe/params/payment_method_retrieve_params
1730
1723
  stripe/params/payment_method_update_params
1724
+ stripe/params/payment_record_create_params
1731
1725
  stripe/params/payment_record_report_payment_attempt_canceled_params
1732
1726
  stripe/params/payment_record_report_payment_attempt_failed_params
1733
1727
  stripe/params/payment_record_report_payment_attempt_guaranteed_params
@@ -296,6 +296,8 @@ module Stripe
296
296
  attr_reader :dispute_management
297
297
  # Whether sending refunds is enabled. This is `true` by default.
298
298
  attr_reader :refund_management
299
+ # Whether to allow connected accounts to submit disputes using Smart Disputes. Defaults to the value of `dispute_management`.
300
+ attr_reader :smart_disputes_management
299
301
 
300
302
  def self.inner_class_types
301
303
  @inner_class_types = {}
@@ -685,6 +687,8 @@ module Stripe
685
687
  attr_reader :dispute_management
686
688
  # Whether sending refunds is enabled. This is `true` by default.
687
689
  attr_reader :refund_management
690
+ # Whether to allow connected accounts to submit disputes using Smart Disputes. Defaults to the value of `dispute_management`.
691
+ attr_reader :smart_disputes_management
688
692
 
689
693
  def self.inner_class_types
690
694
  @inner_class_types = {}
@@ -716,6 +720,8 @@ module Stripe
716
720
  attr_reader :dispute_management
717
721
  # Whether sending refunds is enabled. This is `true` by default.
718
722
  attr_reader :refund_management
723
+ # Whether to allow connected accounts to submit disputes using Smart Disputes. Defaults to the value of `dispute_management`.
724
+ attr_reader :smart_disputes_management
719
725
 
720
726
  def self.inner_class_types
721
727
  @inner_class_types = {}
@@ -749,6 +755,8 @@ module Stripe
749
755
  attr_reader :dispute_management
750
756
  # Whether sending refunds is enabled. This is `true` by default.
751
757
  attr_reader :refund_management
758
+ # Whether to allow connected accounts to submit disputes using Smart Disputes. Defaults to the value of `dispute_management`.
759
+ attr_reader :smart_disputes_management
752
760
 
753
761
  def self.inner_class_types
754
762
  @inner_class_types = {}
@@ -46,7 +46,7 @@ module Stripe
46
46
  attr_reader :currency
47
47
  # An arbitrary string attached to the object. Often useful for displaying to users.
48
48
  attr_reader :description
49
- # If applicable, this transaction uses an exchange rate. If money converts from currency A to currency B, then the `amount` in currency A, multipled by the `exchange_rate`, equals the `amount` in currency B. For example, if you charge a customer 10.00 EUR, the PaymentIntent's `amount` is `1000` and `currency` is `eur`. If this converts to 12.34 USD in your Stripe account, the BalanceTransaction's `amount` is `1234`, its `currency` is `usd`, and the `exchange_rate` is `1.234`.
49
+ # If applicable, this transaction uses an exchange rate. If money converts from currency A to currency B, then the `amount` in currency A, multiplied by the `exchange_rate`, equals the `amount` in currency B. For example, if you charge a customer 10.00 EUR, the PaymentIntent's `amount` is `1000` and `currency` is `eur`. If this converts to 12.34 USD in your Stripe account, the BalanceTransaction's `amount` is `1234`, its `currency` is `usd`, and the `exchange_rate` is `1.234`.
50
50
  attr_reader :exchange_rate
51
51
  # Fees (in cents (or local equivalent)) paid for this transaction. Represented as a positive integer when assessed.
52
52
  attr_reader :fee
@@ -239,7 +239,7 @@ module Stripe
239
239
  attr_reader :business_profile
240
240
  # Time at which the object was created. Measured in seconds since the Unix epoch.
241
241
  attr_reader :created
242
- # 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.
242
+ # 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.
243
243
  attr_reader :default_return_url
244
244
  # Attribute for field features
245
245
  attr_reader :features
@@ -226,7 +226,7 @@ module Stripe
226
226
  end
227
227
 
228
228
  class TaxId < ::Stripe::StripeObject
229
- # The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `pl_nip`, `it_cf`, `fo_vat`, `gi_tin`, `py_ruc`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `lk_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, `aw_tin`, `az_tin`, `bd_bin`, `bj_ifu`, `et_tin`, `kg_tin`, `la_tin`, `cm_niu`, `cv_nif`, `bf_ifu`, or `unknown`
229
+ # The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `pl_nip`, `it_cf`, `fo_vat`, `gi_tin`, `py_ruc`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `lk_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, `aw_tin`, `az_tin`, `bd_bin`, `bj_ifu`, `et_tin`, `kg_tin`, `la_tin`, `cm_niu`, `cv_nif`, `bf_ifu`, `ic_nif`, or `unknown`
230
230
  attr_reader :type
231
231
  # The value of the tax ID.
232
232
  attr_reader :value
@@ -814,7 +814,7 @@ module Stripe
814
814
  end
815
815
 
816
816
  class TaxId < ::Stripe::StripeObject
817
- # The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `pl_nip`, `it_cf`, `fo_vat`, `gi_tin`, `py_ruc`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `lk_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, `aw_tin`, `az_tin`, `bd_bin`, `bj_ifu`, `et_tin`, `kg_tin`, `la_tin`, `cm_niu`, `cv_nif`, `bf_ifu`, or `unknown`
817
+ # The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `pl_nip`, `it_cf`, `fo_vat`, `gi_tin`, `py_ruc`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `lk_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, `aw_tin`, `az_tin`, `bd_bin`, `bj_ifu`, `et_tin`, `kg_tin`, `la_tin`, `cm_niu`, `cv_nif`, `bf_ifu`, `ic_nif`, or `unknown`
818
818
  attr_reader :type
819
819
  # The value of the tax ID.
820
820
  attr_reader :value
@@ -79,6 +79,9 @@ module Stripe
79
79
  end
80
80
 
81
81
  class ManualEntry < ::Stripe::StripeObject
82
+ # Controls how manual entry of bank account details is presented to the user.
83
+ attr_reader :mode
84
+
82
85
  def self.inner_class_types
83
86
  @inner_class_types = {}
84
87
  end
@@ -208,7 +208,7 @@ module Stripe
208
208
  end
209
209
 
210
210
  class CustomerTaxId < ::Stripe::StripeObject
211
- # The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `pl_nip`, `it_cf`, `fo_vat`, `gi_tin`, `py_ruc`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `lk_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, `aw_tin`, `az_tin`, `bd_bin`, `bj_ifu`, `et_tin`, `kg_tin`, `la_tin`, `cm_niu`, `cv_nif`, `bf_ifu`, or `unknown`
211
+ # The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `pl_nip`, `it_cf`, `fo_vat`, `gi_tin`, `py_ruc`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `lk_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, `aw_tin`, `az_tin`, `bd_bin`, `bj_ifu`, `et_tin`, `kg_tin`, `la_tin`, `cm_niu`, `cv_nif`, `bf_ifu`, `ic_nif`, or `unknown`
212
212
  attr_reader :type
213
213
  # The value of the tax ID.
214
214
  attr_reader :value
@@ -146,6 +146,8 @@ module Stripe
146
146
  attr_reader :address
147
147
  # Address validation details for the shipment.
148
148
  attr_reader :address_validation
149
+ # The name of the business at the shipping address, used on the shipping label to ensure delivery when the card is shipped to a cardholder's workplace.
150
+ attr_reader :business_name
149
151
  # The delivery company that shipped a card.
150
152
  attr_reader :carrier
151
153
  # Additional information that may be required for clearing customs.
@@ -215,7 +215,7 @@ module Stripe
215
215
  attr_reader :retrieval_reference_number
216
216
  # The card network over which Stripe received the transaction. This field may differ from the associated card’s primary network.
217
217
  attr_reader :routed_network
218
- # Attribute for field trace_id
218
+ # Mastercard identifier assigned by the card network for the transaction.
219
219
  attr_reader :trace_id
220
220
  # Unique identifier for the authorization assigned by the card network used to match subsequent messages, disputes, and transactions.
221
221
  attr_reader :transaction_id
@@ -254,7 +254,7 @@ module Stripe
254
254
 
255
255
  class ReportedBreakdown < ::Stripe::StripeObject
256
256
  class Fuel < ::Stripe::StripeObject
257
- # Gross fuel amount that should equal Fuel Volume multipled by Fuel Unit Cost, inclusive of taxes.
257
+ # Gross fuel amount that should equal Fuel Volume multiplied by Fuel Unit Cost, inclusive of taxes.
258
258
  attr_reader :gross_amount_decimal
259
259
 
260
260
  def self.inner_class_types
@@ -722,7 +722,7 @@ module Stripe
722
722
 
723
723
  class TaxDetails < ::Stripe::StripeObject
724
724
  class TaxId < ::Stripe::StripeObject
725
- # The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `pl_nip`, `it_cf`, `fo_vat`, `gi_tin`, `py_ruc`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `lk_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, `aw_tin`, `az_tin`, `bd_bin`, `bj_ifu`, `et_tin`, `kg_tin`, `la_tin`, `cm_niu`, `cv_nif`, `bf_ifu`, or `unknown`
725
+ # The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `pl_nip`, `it_cf`, `fo_vat`, `gi_tin`, `py_ruc`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `lk_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, `aw_tin`, `az_tin`, `bd_bin`, `bj_ifu`, `et_tin`, `kg_tin`, `la_tin`, `cm_niu`, `cv_nif`, `bf_ifu`, `ic_nif`, or `unknown`
726
726
  attr_reader :type
727
727
  # The value of the tax ID.
728
728
  attr_reader :value
@@ -1908,7 +1908,7 @@ module Stripe
1908
1908
  request_stripe_object(method: :post, path: "/v1/payment_methods", params: params, opts: opts)
1909
1909
  end
1910
1910
 
1911
- # Detaches a PaymentMethod object from a Customer. After a PaymentMethod is detached, it can no longer be used for a payment or re-attached to a Customer.
1911
+ # Detaches a PaymentMethod object from a Customer. Detachment is permanent and irreversible — once detached, a PaymentMethod can no longer be used for payments or re-attached to a Customer.
1912
1912
  def detach(params = {}, opts = {})
1913
1913
  request_stripe_object(
1914
1914
  method: :post,
@@ -1918,7 +1918,7 @@ module Stripe
1918
1918
  )
1919
1919
  end
1920
1920
 
1921
- # Detaches a PaymentMethod object from a Customer. After a PaymentMethod is detached, it can no longer be used for a payment or re-attached to a Customer.
1921
+ # Detaches a PaymentMethod object from a Customer. Detachment is permanent and irreversible — once detached, a PaymentMethod can no longer be used for payments or re-attached to a Customer.
1922
1922
  def self.detach(payment_method, params = {}, opts = {})
1923
1923
  request_stripe_object(
1924
1924
  method: :post,