stripe 20.2.0.pre.alpha.1 → 20.2.0.pre.alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stripe/event_types.rb +8 -0
  3. data/lib/stripe/events/v2_extend_object_definition_created_event.rb +61 -0
  4. data/lib/stripe/events/v2_extend_object_definition_version_created_event.rb +65 -0
  5. data/lib/stripe/object_types.rb +4 -0
  6. data/lib/stripe/params/account_session_create_params.rb +200 -0
  7. data/lib/stripe/params/checkout/session_create_params.rb +42 -1
  8. data/lib/stripe/params/confirmation_token_create_params.rb +21 -0
  9. data/lib/stripe/params/customer_tax_exemption_create_params.rb +29 -1
  10. data/lib/stripe/params/invoice_create_params.rb +8 -1
  11. data/lib/stripe/params/invoice_update_params.rb +8 -1
  12. data/lib/stripe/params/payment_attempt_record_report_authenticated_params.rb +49 -1
  13. data/lib/stripe/params/payment_intent_capture_params.rb +57 -1
  14. data/lib/stripe/params/payment_intent_confirm_params.rb +91 -1
  15. data/lib/stripe/params/payment_intent_create_params.rb +91 -1
  16. data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +57 -1
  17. data/lib/stripe/params/payment_intent_increment_authorization_params.rb +57 -1
  18. data/lib/stripe/params/payment_intent_update_params.rb +91 -1
  19. data/lib/stripe/params/payment_method_configuration_create_params.rb +21 -0
  20. data/lib/stripe/params/payment_method_configuration_update_params.rb +21 -0
  21. data/lib/stripe/params/payment_method_create_params.rb +21 -0
  22. data/lib/stripe/params/quote_create_params.rb +1 -1
  23. data/lib/stripe/params/quote_update_params.rb +1 -1
  24. data/lib/stripe/params/radar/payment_evaluation_create_params.rb +13 -1
  25. data/lib/stripe/params/refund_create_params.rb +4 -0
  26. data/lib/stripe/params/setup_intent_confirm_params.rb +37 -0
  27. data/lib/stripe/params/setup_intent_create_params.rb +37 -0
  28. data/lib/stripe/params/setup_intent_update_params.rb +21 -0
  29. data/lib/stripe/params/subscription_create_params.rb +4 -0
  30. data/lib/stripe/params/subscription_list_params.rb +5 -1
  31. data/lib/stripe/params/subscription_update_params.rb +4 -0
  32. data/lib/stripe/params/tax/certificate_create_params.rb +21 -0
  33. data/lib/stripe/params/tax/certificate_delete_params.rb +8 -0
  34. data/lib/stripe/params/tax/certificate_list_params.rb +33 -0
  35. data/lib/stripe/params/tax/certificate_retrieve_params.rb +15 -0
  36. data/lib/stripe/params/tax/form_create_params.rb +504 -0
  37. data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +21 -0
  38. data/lib/stripe/params/v2/core/account_session_create_params.rb +13 -0
  39. data/lib/stripe/params/v2/extend/object_definition_list_params.rb +17 -0
  40. data/lib/stripe/params/v2/extend/object_definition_retrieve_params.rb +10 -0
  41. data/lib/stripe/params/v2/extend/object_definitions/version_list_params.rb +19 -0
  42. data/lib/stripe/params/v2/extend/object_definitions/version_retrieve_params.rb +12 -0
  43. data/lib/stripe/params.rb +21 -0
  44. data/lib/stripe/resources/account_session.rb +81 -0
  45. data/lib/stripe/resources/apps/install.rb +1 -1
  46. data/lib/stripe/resources/charge.rb +354 -2
  47. data/lib/stripe/resources/checkout/session.rb +30 -0
  48. data/lib/stripe/resources/confirmation_token.rb +84 -0
  49. data/lib/stripe/resources/coupon.rb +6 -3
  50. data/lib/stripe/resources/customer_tax_exemption.rb +32 -1
  51. data/lib/stripe/resources/invoice.rb +3 -0
  52. data/lib/stripe/resources/payment_attempt_record.rb +133 -0
  53. data/lib/stripe/resources/payment_intent.rb +100 -2
  54. data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +46 -1
  55. data/lib/stripe/resources/payment_method.rb +84 -0
  56. data/lib/stripe/resources/payment_method_configuration.rb +34 -0
  57. data/lib/stripe/resources/payment_record.rb +133 -0
  58. data/lib/stripe/resources/radar/payment_evaluation.rb +37 -2
  59. data/lib/stripe/resources/refund.rb +38 -0
  60. data/lib/stripe/resources/reporting/report_run.rb +2 -0
  61. data/lib/stripe/resources/setup_attempt.rb +3 -0
  62. data/lib/stripe/resources/setup_intent.rb +19 -1
  63. data/lib/stripe/resources/subscription.rb +3 -1
  64. data/lib/stripe/resources/tax/certificate.rb +81 -0
  65. data/lib/stripe/resources/tax/form.rb +11 -0
  66. data/lib/stripe/resources/tax/form_correction.rb +43 -0
  67. data/lib/stripe/resources/treasury/inbound_transfer.rb +29 -1
  68. data/lib/stripe/resources/treasury/outbound_payment.rb +29 -1
  69. data/lib/stripe/resources/treasury/outbound_transfer.rb +29 -1
  70. data/lib/stripe/resources/v2/core/account_session.rb +27 -0
  71. data/lib/stripe/resources/v2/data/search_result_list.rb +1 -1
  72. data/lib/stripe/resources/v2/extend/object_definition.rb +40 -0
  73. data/lib/stripe/resources/v2/extend/object_definition_version.rb +168 -0
  74. data/lib/stripe/resources/v2/tax/operations_resolve_address_result.rb +1 -1
  75. data/lib/stripe/resources.rb +17 -0
  76. data/lib/stripe/services/apps/install_service.rb +1 -1
  77. data/lib/stripe/services/tax/certificate_service.rb +52 -0
  78. data/lib/stripe/services/tax/form_service.rb +11 -0
  79. data/lib/stripe/services/tax_service.rb +2 -1
  80. data/lib/stripe/services/v2/extend/object_definition_service.rb +39 -0
  81. data/lib/stripe/services/v2/extend/object_definitions/version_service.rb +34 -0
  82. data/lib/stripe/services/v2/extend_service.rb +2 -1
  83. data/lib/stripe/services.rb +9 -0
  84. data/lib/stripe/stripe_event_notification_handler.rb +8 -0
  85. data/lib/stripe/stripe_service.rb +13 -9
  86. data/lib/stripe/version.rb +1 -1
  87. data/lib/stripe/webhook.rb +7 -1
  88. data/lib/stripe/workload_identity_exchange.rb +2 -2
  89. data/rbi/stripe.rbi +4320 -69
  90. metadata +20 -2
@@ -0,0 +1,504 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Tax
6
+ class FormCreateParams < ::Stripe::RequestParams
7
+ class PayeeDetails < ::Stripe::RequestParams
8
+ class Address < ::Stripe::RequestParams
9
+ # The city of the payee's address.
10
+ attr_accessor :city
11
+ # The two-letter country code of the payee's address.
12
+ attr_accessor :country
13
+ # The first line of the payee's address.
14
+ attr_accessor :line1
15
+ # The second line of the payee's address. An empty string clears this field.
16
+ attr_accessor :line2
17
+ # The postal code of the payee's address.
18
+ attr_accessor :postal_code
19
+ # The state of the payee's address.
20
+ attr_accessor :state
21
+
22
+ def initialize(
23
+ city: nil,
24
+ country: nil,
25
+ line1: nil,
26
+ line2: nil,
27
+ postal_code: nil,
28
+ state: nil
29
+ )
30
+ @city = city
31
+ @country = country
32
+ @line1 = line1
33
+ @line2 = line2
34
+ @postal_code = postal_code
35
+ @state = state
36
+ end
37
+ end
38
+ # The payee's replacement address fields. Omitted fields remain unchanged.
39
+ attr_accessor :address
40
+ # The payee's merchant category code.
41
+ attr_accessor :merchant_category_code
42
+ # The first line of the payee's name.
43
+ attr_accessor :name_line_1
44
+ # The second line of the payee's name. An empty string clears this field.
45
+ attr_accessor :name_line_2
46
+ # The payee's US taxpayer identification number.
47
+ attr_accessor :tax_id_number
48
+ # The payee's Treasury tipped occupation code, where supported by the reporting year and form type.
49
+ attr_accessor :treasury_tipped_occupation_code
50
+
51
+ def initialize(
52
+ address: nil,
53
+ merchant_category_code: nil,
54
+ name_line_1: nil,
55
+ name_line_2: nil,
56
+ tax_id_number: nil,
57
+ treasury_tipped_occupation_code: nil
58
+ )
59
+ @address = address
60
+ @merchant_category_code = merchant_category_code
61
+ @name_line_1 = name_line_1
62
+ @name_line_2 = name_line_2
63
+ @tax_id_number = tax_id_number
64
+ @treasury_tipped_occupation_code = treasury_tipped_occupation_code
65
+ end
66
+ end
67
+
68
+ class Us1099K < ::Stripe::RequestParams
69
+ class CardNotPresentTransactions < ::Stripe::RequestParams
70
+ # The replacement amount in major currency units, with at most two decimal places. Must be non-negative.
71
+ attr_accessor :volume_decimal
72
+
73
+ def initialize(volume_decimal: nil)
74
+ @volume_decimal = volume_decimal
75
+ end
76
+ end
77
+
78
+ class CashTips < ::Stripe::RequestParams
79
+ # The replacement amount in major currency units, with at most two decimal places. Must be non-negative.
80
+ attr_accessor :volume_decimal
81
+
82
+ def initialize(volume_decimal: nil)
83
+ @volume_decimal = volume_decimal
84
+ end
85
+ end
86
+
87
+ class FederalIncomeTaxWithheld < ::Stripe::RequestParams
88
+ # The replacement amount in major currency units, with at most two decimal places. Must be non-negative.
89
+ attr_accessor :volume_decimal
90
+
91
+ def initialize(volume_decimal: nil)
92
+ @volume_decimal = volume_decimal
93
+ end
94
+ end
95
+
96
+ class MonthlyVolume < ::Stripe::RequestParams
97
+ # The replacement amount in major currency units, with at most two decimal places. Must be non-negative.
98
+ attr_accessor :volume_decimal
99
+
100
+ def initialize(volume_decimal: nil)
101
+ @volume_decimal = volume_decimal
102
+ end
103
+ end
104
+
105
+ class PaymentTransactionsCount < ::Stripe::RequestParams
106
+ # The replacement non-negative transaction count.
107
+ attr_accessor :count
108
+
109
+ def initialize(count: nil)
110
+ @count = count
111
+ end
112
+ end
113
+
114
+ class StateIncomeTaxWithheld < ::Stripe::RequestParams
115
+ # The replacement amount in major currency units, with at most two decimal places. Must be non-negative.
116
+ attr_accessor :volume_decimal
117
+
118
+ def initialize(volume_decimal: nil)
119
+ @volume_decimal = volume_decimal
120
+ end
121
+ end
122
+ # Replacement card-not-present transaction amount.
123
+ attr_accessor :card_not_present_transactions
124
+ # Replacement cash tips, where supported by the reporting year.
125
+ attr_accessor :cash_tips
126
+ # Replacement federal income tax withheld.
127
+ attr_accessor :federal_income_tax_withheld
128
+ # Replacement amounts for all twelve months, from January through December.
129
+ attr_accessor :monthly_volumes
130
+ # Replacement payment transaction count.
131
+ attr_accessor :payment_transactions_count
132
+ # Replacement state income tax withheld.
133
+ attr_accessor :state_income_tax_withheld
134
+
135
+ def initialize(
136
+ card_not_present_transactions: nil,
137
+ cash_tips: nil,
138
+ federal_income_tax_withheld: nil,
139
+ monthly_volumes: nil,
140
+ payment_transactions_count: nil,
141
+ state_income_tax_withheld: nil
142
+ )
143
+ @card_not_present_transactions = card_not_present_transactions
144
+ @cash_tips = cash_tips
145
+ @federal_income_tax_withheld = federal_income_tax_withheld
146
+ @monthly_volumes = monthly_volumes
147
+ @payment_transactions_count = payment_transactions_count
148
+ @state_income_tax_withheld = state_income_tax_withheld
149
+ end
150
+ end
151
+
152
+ class Us1099Misc < ::Stripe::RequestParams
153
+ class CashTips < ::Stripe::RequestParams
154
+ # The replacement amount in major currency units, with at most two decimal places. Must be non-negative.
155
+ attr_accessor :volume_decimal
156
+
157
+ def initialize(volume_decimal: nil)
158
+ @volume_decimal = volume_decimal
159
+ end
160
+ end
161
+
162
+ class CropInsuranceProceeds < ::Stripe::RequestParams
163
+ # The replacement amount in major currency units, with at most two decimal places. Must be non-negative.
164
+ attr_accessor :volume_decimal
165
+
166
+ def initialize(volume_decimal: nil)
167
+ @volume_decimal = volume_decimal
168
+ end
169
+ end
170
+
171
+ class ExcessGoldenParachutePayments < ::Stripe::RequestParams
172
+ # The replacement amount in major currency units, with at most two decimal places. Must be non-negative.
173
+ attr_accessor :volume_decimal
174
+
175
+ def initialize(volume_decimal: nil)
176
+ @volume_decimal = volume_decimal
177
+ end
178
+ end
179
+
180
+ class FederalIncomeTaxWithheld < ::Stripe::RequestParams
181
+ # The replacement amount in major currency units, with at most two decimal places. Must be non-negative.
182
+ attr_accessor :volume_decimal
183
+
184
+ def initialize(volume_decimal: nil)
185
+ @volume_decimal = volume_decimal
186
+ end
187
+ end
188
+
189
+ class FishPurchasedForResale < ::Stripe::RequestParams
190
+ # The replacement amount in major currency units, with at most two decimal places. Must be non-negative.
191
+ attr_accessor :volume_decimal
192
+
193
+ def initialize(volume_decimal: nil)
194
+ @volume_decimal = volume_decimal
195
+ end
196
+ end
197
+
198
+ class FishingBoatProceeds < ::Stripe::RequestParams
199
+ # The replacement amount in major currency units, with at most two decimal places. Must be non-negative.
200
+ attr_accessor :volume_decimal
201
+
202
+ def initialize(volume_decimal: nil)
203
+ @volume_decimal = volume_decimal
204
+ end
205
+ end
206
+
207
+ class GrossProceedsPaidToAnAttorney < ::Stripe::RequestParams
208
+ # The replacement amount in major currency units, with at most two decimal places. Must be non-negative.
209
+ attr_accessor :volume_decimal
210
+
211
+ def initialize(volume_decimal: nil)
212
+ @volume_decimal = volume_decimal
213
+ end
214
+ end
215
+
216
+ class MedicalAndHealthCarePayments < ::Stripe::RequestParams
217
+ # The replacement amount in major currency units, with at most two decimal places. Must be non-negative.
218
+ attr_accessor :volume_decimal
219
+
220
+ def initialize(volume_decimal: nil)
221
+ @volume_decimal = volume_decimal
222
+ end
223
+ end
224
+
225
+ class NonqualifiedDeferredCompensation < ::Stripe::RequestParams
226
+ # The replacement amount in major currency units, with at most two decimal places. Must be non-negative.
227
+ attr_accessor :volume_decimal
228
+
229
+ def initialize(volume_decimal: nil)
230
+ @volume_decimal = volume_decimal
231
+ end
232
+ end
233
+
234
+ class OtherIncome < ::Stripe::RequestParams
235
+ # The replacement amount in major currency units, with at most two decimal places. Must be non-negative.
236
+ attr_accessor :volume_decimal
237
+
238
+ def initialize(volume_decimal: nil)
239
+ @volume_decimal = volume_decimal
240
+ end
241
+ end
242
+
243
+ class OvertimeCompensation < ::Stripe::RequestParams
244
+ # The replacement amount in major currency units, with at most two decimal places. Must be non-negative.
245
+ attr_accessor :volume_decimal
246
+
247
+ def initialize(volume_decimal: nil)
248
+ @volume_decimal = volume_decimal
249
+ end
250
+ end
251
+
252
+ class Rents < ::Stripe::RequestParams
253
+ # The replacement amount in major currency units, with at most two decimal places. Must be non-negative.
254
+ attr_accessor :volume_decimal
255
+
256
+ def initialize(volume_decimal: nil)
257
+ @volume_decimal = volume_decimal
258
+ end
259
+ end
260
+
261
+ class Royalties < ::Stripe::RequestParams
262
+ # The replacement amount in major currency units, with at most two decimal places. Must be non-negative.
263
+ attr_accessor :volume_decimal
264
+
265
+ def initialize(volume_decimal: nil)
266
+ @volume_decimal = volume_decimal
267
+ end
268
+ end
269
+
270
+ class Section409aDeferrals < ::Stripe::RequestParams
271
+ # The replacement amount in major currency units, with at most two decimal places. Must be non-negative.
272
+ attr_accessor :volume_decimal
273
+
274
+ def initialize(volume_decimal: nil)
275
+ @volume_decimal = volume_decimal
276
+ end
277
+ end
278
+
279
+ class StateIncome < ::Stripe::RequestParams
280
+ # The replacement amount in major currency units, with at most two decimal places. Must be non-negative.
281
+ attr_accessor :volume_decimal
282
+
283
+ def initialize(volume_decimal: nil)
284
+ @volume_decimal = volume_decimal
285
+ end
286
+ end
287
+
288
+ class StateTaxWithheld < ::Stripe::RequestParams
289
+ # The replacement amount in major currency units, with at most two decimal places. Must be non-negative.
290
+ attr_accessor :volume_decimal
291
+
292
+ def initialize(volume_decimal: nil)
293
+ @volume_decimal = volume_decimal
294
+ end
295
+ end
296
+
297
+ class SubstitutePayments < ::Stripe::RequestParams
298
+ # The replacement amount in major currency units, with at most two decimal places. Must be non-negative.
299
+ attr_accessor :volume_decimal
300
+
301
+ def initialize(volume_decimal: nil)
302
+ @volume_decimal = volume_decimal
303
+ end
304
+ end
305
+ # Replacement cash tips, where supported by the reporting year.
306
+ attr_accessor :cash_tips
307
+ # Replacement crop insurance proceeds.
308
+ attr_accessor :crop_insurance_proceeds
309
+ # Replacement direct-sales-for-resale indicator.
310
+ attr_accessor :direct_sales_for_resale
311
+ # Replacement excess golden parachute payments, where supported by the reporting year.
312
+ attr_accessor :excess_golden_parachute_payments
313
+ # Replacement FATCA filing requirement; cannot be supplied without a substantive correction.
314
+ attr_accessor :fatca_filing_required
315
+ # Replacement federal income tax withheld.
316
+ attr_accessor :federal_income_tax_withheld
317
+ # Replacement fish purchased for resale.
318
+ attr_accessor :fish_purchased_for_resale
319
+ # Replacement fishing boat proceeds.
320
+ attr_accessor :fishing_boat_proceeds
321
+ # Replacement gross proceeds paid to an attorney.
322
+ attr_accessor :gross_proceeds_paid_to_an_attorney
323
+ # Replacement medical and health care payments.
324
+ attr_accessor :medical_and_health_care_payments
325
+ # Replacement nonqualified deferred compensation.
326
+ attr_accessor :nonqualified_deferred_compensation
327
+ # Replacement other income.
328
+ attr_accessor :other_income
329
+ # Replacement overtime compensation, where supported by the reporting year.
330
+ attr_accessor :overtime_compensation
331
+ # Replacement rents.
332
+ attr_accessor :rents
333
+ # Replacement royalties.
334
+ attr_accessor :royalties
335
+ # Replacement section 409A deferrals.
336
+ attr_accessor :section_409a_deferrals
337
+ # Replacement state income.
338
+ attr_accessor :state_income
339
+ # Replacement state tax withheld.
340
+ attr_accessor :state_tax_withheld
341
+ # Replacement substitute payments.
342
+ attr_accessor :substitute_payments
343
+
344
+ def initialize(
345
+ cash_tips: nil,
346
+ crop_insurance_proceeds: nil,
347
+ direct_sales_for_resale: nil,
348
+ excess_golden_parachute_payments: nil,
349
+ fatca_filing_required: nil,
350
+ federal_income_tax_withheld: nil,
351
+ fish_purchased_for_resale: nil,
352
+ fishing_boat_proceeds: nil,
353
+ gross_proceeds_paid_to_an_attorney: nil,
354
+ medical_and_health_care_payments: nil,
355
+ nonqualified_deferred_compensation: nil,
356
+ other_income: nil,
357
+ overtime_compensation: nil,
358
+ rents: nil,
359
+ royalties: nil,
360
+ section_409a_deferrals: nil,
361
+ state_income: nil,
362
+ state_tax_withheld: nil,
363
+ substitute_payments: nil
364
+ )
365
+ @cash_tips = cash_tips
366
+ @crop_insurance_proceeds = crop_insurance_proceeds
367
+ @direct_sales_for_resale = direct_sales_for_resale
368
+ @excess_golden_parachute_payments = excess_golden_parachute_payments
369
+ @fatca_filing_required = fatca_filing_required
370
+ @federal_income_tax_withheld = federal_income_tax_withheld
371
+ @fish_purchased_for_resale = fish_purchased_for_resale
372
+ @fishing_boat_proceeds = fishing_boat_proceeds
373
+ @gross_proceeds_paid_to_an_attorney = gross_proceeds_paid_to_an_attorney
374
+ @medical_and_health_care_payments = medical_and_health_care_payments
375
+ @nonqualified_deferred_compensation = nonqualified_deferred_compensation
376
+ @other_income = other_income
377
+ @overtime_compensation = overtime_compensation
378
+ @rents = rents
379
+ @royalties = royalties
380
+ @section_409a_deferrals = section_409a_deferrals
381
+ @state_income = state_income
382
+ @state_tax_withheld = state_tax_withheld
383
+ @substitute_payments = substitute_payments
384
+ end
385
+ end
386
+
387
+ class Us1099Nec < ::Stripe::RequestParams
388
+ class CashTips < ::Stripe::RequestParams
389
+ # The replacement amount in major currency units, with at most two decimal places. Must be non-negative.
390
+ attr_accessor :volume_decimal
391
+
392
+ def initialize(volume_decimal: nil)
393
+ @volume_decimal = volume_decimal
394
+ end
395
+ end
396
+
397
+ class FederalIncomeTaxWithheld < ::Stripe::RequestParams
398
+ # The replacement amount in major currency units, with at most two decimal places. Must be non-negative.
399
+ attr_accessor :volume_decimal
400
+
401
+ def initialize(volume_decimal: nil)
402
+ @volume_decimal = volume_decimal
403
+ end
404
+ end
405
+
406
+ class NonemployeeCompensation < ::Stripe::RequestParams
407
+ # The replacement amount in major currency units, with at most two decimal places. Must be non-negative.
408
+ attr_accessor :volume_decimal
409
+
410
+ def initialize(volume_decimal: nil)
411
+ @volume_decimal = volume_decimal
412
+ end
413
+ end
414
+
415
+ class OvertimeCompensation < ::Stripe::RequestParams
416
+ # The replacement amount in major currency units, with at most two decimal places. Must be non-negative.
417
+ attr_accessor :volume_decimal
418
+
419
+ def initialize(volume_decimal: nil)
420
+ @volume_decimal = volume_decimal
421
+ end
422
+ end
423
+
424
+ class StateIncome < ::Stripe::RequestParams
425
+ # The replacement amount in major currency units, with at most two decimal places. Must be non-negative.
426
+ attr_accessor :volume_decimal
427
+
428
+ def initialize(volume_decimal: nil)
429
+ @volume_decimal = volume_decimal
430
+ end
431
+ end
432
+
433
+ class StateTaxWithheld < ::Stripe::RequestParams
434
+ # The replacement amount in major currency units, with at most two decimal places. Must be non-negative.
435
+ attr_accessor :volume_decimal
436
+
437
+ def initialize(volume_decimal: nil)
438
+ @volume_decimal = volume_decimal
439
+ end
440
+ end
441
+ # Replacement cash tips, where supported by the reporting year.
442
+ attr_accessor :cash_tips
443
+ # Replacement direct-sales indicator.
444
+ attr_accessor :direct_sales_indicator
445
+ # Replacement federal income tax withheld.
446
+ attr_accessor :federal_income_tax_withheld
447
+ # Replacement nonemployee compensation.
448
+ attr_accessor :nonemployee_compensation
449
+ # Replacement overtime compensation, where supported by the reporting year.
450
+ attr_accessor :overtime_compensation
451
+ # Replacement state income.
452
+ attr_accessor :state_income
453
+ # Replacement state tax withheld.
454
+ attr_accessor :state_tax_withheld
455
+
456
+ def initialize(
457
+ cash_tips: nil,
458
+ direct_sales_indicator: nil,
459
+ federal_income_tax_withheld: nil,
460
+ nonemployee_compensation: nil,
461
+ overtime_compensation: nil,
462
+ state_income: nil,
463
+ state_tax_withheld: nil
464
+ )
465
+ @cash_tips = cash_tips
466
+ @direct_sales_indicator = direct_sales_indicator
467
+ @federal_income_tax_withheld = federal_income_tax_withheld
468
+ @nonemployee_compensation = nonemployee_compensation
469
+ @overtime_compensation = overtime_compensation
470
+ @state_income = state_income
471
+ @state_tax_withheld = state_tax_withheld
472
+ end
473
+ end
474
+ # Specifies which fields in the response should be expanded.
475
+ attr_accessor :expand
476
+ # Replacement payee details. Cannot be combined with numerical correction fields. Omitted fields remain unchanged.
477
+ attr_accessor :payee_details
478
+ # Whether a second TIN notice was received. Supported for K and MISC forms only; cannot be supplied without a substantive correction.
479
+ attr_accessor :second_tin_notice
480
+ # Replacement numerical values for a 1099-K. Supply only the group matching the original form. Omitted fields remain unchanged.
481
+ attr_accessor :us_1099_k
482
+ # Replacement numerical values for a 1099-MISC. Supply only the group matching the original form. Omitted fields remain unchanged.
483
+ attr_accessor :us_1099_misc
484
+ # Replacement numerical values for a 1099-NEC. Supply only the group matching the original form. Omitted fields remain unchanged.
485
+ attr_accessor :us_1099_nec
486
+
487
+ def initialize(
488
+ expand: nil,
489
+ payee_details: nil,
490
+ second_tin_notice: nil,
491
+ us_1099_k: nil,
492
+ us_1099_misc: nil,
493
+ us_1099_nec: nil
494
+ )
495
+ @expand = expand
496
+ @payee_details = payee_details
497
+ @second_tin_notice = second_tin_notice
498
+ @us_1099_k = us_1099_k
499
+ @us_1099_misc = us_1099_misc
500
+ @us_1099_nec = us_1099_nec
501
+ end
502
+ end
503
+ end
504
+ end
@@ -20,6 +20,7 @@ module Stripe
20
20
  end
21
21
  end
22
22
 
23
+ class AeonPay < ::Stripe::RequestParams; end
23
24
  class Affirm < ::Stripe::RequestParams; end
24
25
  class AfterpayClearpay < ::Stripe::RequestParams; end
25
26
  class Alipay < ::Stripe::RequestParams; end
@@ -38,6 +39,8 @@ module Stripe
38
39
  end
39
40
  end
40
41
 
42
+ class AuPay < ::Stripe::RequestParams; end
43
+
41
44
  class BacsDebit < ::Stripe::RequestParams
42
45
  # Account number of the bank account that the funds will be debited from.
43
46
  attr_accessor :account_number
@@ -120,6 +123,7 @@ module Stripe
120
123
  class Cashapp < ::Stripe::RequestParams; end
121
124
  class Crypto < ::Stripe::RequestParams; end
122
125
  class CustomerBalance < ::Stripe::RequestParams; end
126
+ class Dbarai < ::Stripe::RequestParams; end
123
127
 
124
128
  class Eps < ::Stripe::RequestParams
125
129
  # The customer's bank.
@@ -205,6 +209,7 @@ module Stripe
205
209
  class KrCard < ::Stripe::RequestParams; end
206
210
  class Link < ::Stripe::RequestParams; end
207
211
  class MbWay < ::Stripe::RequestParams; end
212
+ class Merpay < ::Stripe::RequestParams; end
208
213
  class Mobilepay < ::Stripe::RequestParams; end
209
214
  class Multibanco < ::Stripe::RequestParams; end
210
215
 
@@ -433,6 +438,8 @@ module Stripe
433
438
  class Zip < ::Stripe::RequestParams; end
434
439
  # If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method.
435
440
  attr_accessor :acss_debit
441
+ # If this is a `aeon_pay` PaymentMethod, this hash contains details about the AEON Pay payment method.
442
+ attr_accessor :aeon_pay
436
443
  # If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method.
437
444
  attr_accessor :affirm
438
445
  # If this is an `AfterpayClearpay` PaymentMethod, this hash contains details about the AfterpayClearpay payment method.
@@ -447,6 +454,8 @@ module Stripe
447
454
  attr_accessor :amazon_pay
448
455
  # If this is an `au_becs_debit` PaymentMethod, this hash contains details about the bank account.
449
456
  attr_accessor :au_becs_debit
457
+ # If this is a `au_pay` PaymentMethod, this hash contains details about the au PAY payment method.
458
+ attr_accessor :au_pay
450
459
  # If this is a `bacs_debit` PaymentMethod, this hash contains details about the Bacs Direct Debit bank account.
451
460
  attr_accessor :bacs_debit
452
461
  # If this is a `bancontact` PaymentMethod, this hash contains details about the Bancontact payment method.
@@ -469,6 +478,8 @@ module Stripe
469
478
  attr_accessor :crypto
470
479
  # If this is a `customer_balance` PaymentMethod, this hash contains details about the CustomerBalance payment method.
471
480
  attr_accessor :customer_balance
481
+ # If this is a `dbarai` PaymentMethod, this hash contains details about the d-Barai payment method.
482
+ attr_accessor :dbarai
472
483
  # If this is an `eps` PaymentMethod, this hash contains details about the EPS payment method.
473
484
  attr_accessor :eps
474
485
  # If this is an `fpx` PaymentMethod, this hash contains details about the FPX payment method.
@@ -501,6 +512,8 @@ module Stripe
501
512
  attr_accessor :link
502
513
  # If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.
503
514
  attr_accessor :mb_way
515
+ # If this is a `merpay` PaymentMethod, this hash contains details about the Merpay payment method.
516
+ attr_accessor :merpay
504
517
  # 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`.
505
518
  attr_accessor :metadata
506
519
  # If this is a `mobilepay` PaymentMethod, this hash contains details about the MobilePay payment method.
@@ -586,6 +599,7 @@ module Stripe
586
599
 
587
600
  def initialize(
588
601
  acss_debit: nil,
602
+ aeon_pay: nil,
589
603
  affirm: nil,
590
604
  afterpay_clearpay: nil,
591
605
  alipay: nil,
@@ -593,6 +607,7 @@ module Stripe
593
607
  alma: nil,
594
608
  amazon_pay: nil,
595
609
  au_becs_debit: nil,
610
+ au_pay: nil,
596
611
  bacs_debit: nil,
597
612
  bancontact: nil,
598
613
  billie: nil,
@@ -604,6 +619,7 @@ module Stripe
604
619
  cashapp: nil,
605
620
  crypto: nil,
606
621
  customer_balance: nil,
622
+ dbarai: nil,
607
623
  eps: nil,
608
624
  fpx: nil,
609
625
  getflex: nil,
@@ -620,6 +636,7 @@ module Stripe
620
636
  kr_card: nil,
621
637
  link: nil,
622
638
  mb_way: nil,
639
+ merpay: nil,
623
640
  metadata: nil,
624
641
  mobilepay: nil,
625
642
  multibanco: nil,
@@ -663,6 +680,7 @@ module Stripe
663
680
  zip: nil
664
681
  )
665
682
  @acss_debit = acss_debit
683
+ @aeon_pay = aeon_pay
666
684
  @affirm = affirm
667
685
  @afterpay_clearpay = afterpay_clearpay
668
686
  @alipay = alipay
@@ -670,6 +688,7 @@ module Stripe
670
688
  @alma = alma
671
689
  @amazon_pay = amazon_pay
672
690
  @au_becs_debit = au_becs_debit
691
+ @au_pay = au_pay
673
692
  @bacs_debit = bacs_debit
674
693
  @bancontact = bancontact
675
694
  @billie = billie
@@ -681,6 +700,7 @@ module Stripe
681
700
  @cashapp = cashapp
682
701
  @crypto = crypto
683
702
  @customer_balance = customer_balance
703
+ @dbarai = dbarai
684
704
  @eps = eps
685
705
  @fpx = fpx
686
706
  @getflex = getflex
@@ -697,6 +717,7 @@ module Stripe
697
717
  @kr_card = kr_card
698
718
  @link = link
699
719
  @mb_way = mb_way
720
+ @merpay = merpay
700
721
  @metadata = metadata
701
722
  @mobilepay = mobilepay
702
723
  @multibanco = multibanco
@@ -78,6 +78,15 @@ module Stripe
78
78
  end
79
79
  end
80
80
 
81
+ class BusinessProfileManagement < ::Stripe::RequestParams
82
+ # Whether this embedded component is enabled.
83
+ attr_accessor :enabled
84
+
85
+ def initialize(enabled: nil)
86
+ @enabled = enabled
87
+ end
88
+ end
89
+
81
90
  class CapitalFinancing < ::Stripe::RequestParams
82
91
  # Whether this embedded component is enabled.
83
92
  attr_accessor :enabled
@@ -372,6 +381,8 @@ module Stripe
372
381
  attr_accessor :balances
373
382
  # Settings for the Bills embedded component.
374
383
  attr_accessor :bills
384
+ # Settings for the Business Profile Management embedded component.
385
+ attr_accessor :business_profile_management
375
386
  # Settings for the Capital Financing embedded component.
376
387
  attr_accessor :capital_financing
377
388
  # Settings for the Capital Financing Application embedded component.
@@ -444,6 +455,7 @@ module Stripe
444
455
  balance_report: nil,
445
456
  balances: nil,
446
457
  bills: nil,
458
+ business_profile_management: nil,
447
459
  capital_financing: nil,
448
460
  capital_financing_application: nil,
449
461
  capital_financing_promotion: nil,
@@ -484,6 +496,7 @@ module Stripe
484
496
  @balance_report = balance_report
485
497
  @balances = balances
486
498
  @bills = bills
499
+ @business_profile_management = business_profile_management
487
500
  @capital_financing = capital_financing
488
501
  @capital_financing_application = capital_financing_application
489
502
  @capital_financing_promotion = capital_financing_promotion
@@ -0,0 +1,17 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module V2
6
+ module Extend
7
+ class ObjectDefinitionListParams < ::Stripe::RequestParams
8
+ # Maximum page size.
9
+ attr_accessor :limit
10
+
11
+ def initialize(limit: nil)
12
+ @limit = limit
13
+ end
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,10 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module V2
6
+ module Extend
7
+ class ObjectDefinitionRetrieveParams < ::Stripe::RequestParams; end
8
+ end
9
+ end
10
+ end