stripe 15.1.0.pre.beta.1 → 15.1.0.pre.beta.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 (104) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +22 -0
  3. data/Gemfile +1 -1
  4. data/OPENAPI_VERSION +1 -1
  5. data/VERSION +1 -1
  6. data/lib/stripe/api_operations/nested_resource.rb +35 -35
  7. data/lib/stripe/api_requestor.rb +1 -1
  8. data/lib/stripe/connection_manager.rb +1 -3
  9. data/lib/stripe/oauth.rb +1 -1
  10. data/lib/stripe/object_types.rb +2 -0
  11. data/lib/stripe/resources/account.rb +51 -2
  12. data/lib/stripe/resources/balance_settings.rb +5 -1
  13. data/lib/stripe/resources/capital/financing_offer.rb +4 -4
  14. data/lib/stripe/resources/capital/financing_summary.rb +6 -6
  15. data/lib/stripe/resources/charge.rb +18 -0
  16. data/lib/stripe/resources/checkout/session.rb +74 -3
  17. data/lib/stripe/resources/confirmation_token.rb +6 -1
  18. data/lib/stripe/resources/coupon.rb +30 -1
  19. data/lib/stripe/resources/funding_instructions.rb +1 -1
  20. data/lib/stripe/resources/fx_quote.rb +184 -0
  21. data/lib/stripe/resources/invoice.rb +0 -52
  22. data/lib/stripe/resources/payment_intent.rb +87 -3
  23. data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +65 -0
  24. data/lib/stripe/resources/payment_method.rb +10 -2
  25. data/lib/stripe/resources/payment_method_configuration.rb +59 -0
  26. data/lib/stripe/resources/person.rb +25 -1
  27. data/lib/stripe/resources/privacy/redaction_job.rb +3 -0
  28. data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +0 -29
  29. data/lib/stripe/resources/refund.rb +2 -0
  30. data/lib/stripe/resources/setup_intent.rb +12 -3
  31. data/lib/stripe/resources/source.rb +1 -1
  32. data/lib/stripe/resources/tax/registration.rb +160 -0
  33. data/lib/stripe/resources/token.rb +61 -0
  34. data/lib/stripe/resources/transfer.rb +6 -0
  35. data/lib/stripe/resources/treasury/outbound_payment.rb +4 -1
  36. data/lib/stripe/resources.rb +2 -0
  37. data/lib/stripe/services/account_person_service.rb +84 -0
  38. data/lib/stripe/services/account_service.rb +39 -1
  39. data/lib/stripe/services/application_fee_service.rb +1 -1
  40. data/lib/stripe/services/apps_service.rb +1 -1
  41. data/lib/stripe/services/billing/meter_service.rb +1 -1
  42. data/lib/stripe/services/billing_portal_service.rb +1 -1
  43. data/lib/stripe/services/billing_service.rb +1 -1
  44. data/lib/stripe/services/capital_service.rb +1 -1
  45. data/lib/stripe/services/charge_service.rb +16 -0
  46. data/lib/stripe/services/checkout/session_service.rb +75 -4
  47. data/lib/stripe/services/checkout_service.rb +1 -1
  48. data/lib/stripe/services/climate_service.rb +1 -1
  49. data/lib/stripe/services/coupon_service.rb +17 -1
  50. data/lib/stripe/services/credit_note_service.rb +1 -1
  51. data/lib/stripe/services/customer_service.rb +1 -1
  52. data/lib/stripe/services/entitlements_service.rb +1 -1
  53. data/lib/stripe/services/financial_connections/account_service.rb +1 -1
  54. data/lib/stripe/services/financial_connections_service.rb +1 -1
  55. data/lib/stripe/services/forwarding_service.rb +1 -1
  56. data/lib/stripe/services/fx_quote_service.rb +123 -0
  57. data/lib/stripe/services/gift_cards_service.rb +1 -1
  58. data/lib/stripe/services/identity_service.rb +1 -1
  59. data/lib/stripe/services/invoice_service.rb +2 -37
  60. data/lib/stripe/services/issuing_service.rb +1 -1
  61. data/lib/stripe/services/order_service.rb +1 -1
  62. data/lib/stripe/services/{invoice_payment_service.rb → payment_intent_amount_details_line_item_service.rb} +4 -24
  63. data/lib/stripe/services/payment_intent_service.rb +63 -3
  64. data/lib/stripe/services/payment_link_service.rb +1 -1
  65. data/lib/stripe/services/payment_method_configuration_service.rb +42 -0
  66. data/lib/stripe/services/payment_method_service.rb +8 -2
  67. data/lib/stripe/services/privacy/redaction_job_service.rb +1 -1
  68. data/lib/stripe/services/privacy_service.rb +1 -1
  69. data/lib/stripe/services/product_service.rb +1 -1
  70. data/lib/stripe/services/quote_service.rb +1 -1
  71. data/lib/stripe/services/radar_service.rb +1 -1
  72. data/lib/stripe/services/reporting_service.rb +1 -1
  73. data/lib/stripe/services/setup_intent_service.rb +12 -3
  74. data/lib/stripe/services/sigma_service.rb +1 -1
  75. data/lib/stripe/services/source_service.rb +1 -1
  76. data/lib/stripe/services/tax/calculation_service.rb +1 -1
  77. data/lib/stripe/services/tax/registration_service.rb +104 -0
  78. data/lib/stripe/services/tax/transaction_service.rb +1 -1
  79. data/lib/stripe/services/tax_service.rb +1 -1
  80. data/lib/stripe/services/terminal_service.rb +1 -1
  81. data/lib/stripe/services/test_helpers/confirmation_token_service.rb +4 -1
  82. data/lib/stripe/services/test_helpers/issuing_service.rb +1 -1
  83. data/lib/stripe/services/test_helpers/terminal_service.rb +1 -1
  84. data/lib/stripe/services/test_helpers/treasury_service.rb +1 -1
  85. data/lib/stripe/services/test_helpers_service.rb +1 -1
  86. data/lib/stripe/services/token_service.rb +61 -0
  87. data/lib/stripe/services/transfer_service.rb +5 -1
  88. data/lib/stripe/services/treasury/financial_account_service.rb +1 -1
  89. data/lib/stripe/services/treasury/outbound_payment_service.rb +4 -1
  90. data/lib/stripe/services/treasury_service.rb +1 -1
  91. data/lib/stripe/services/v1_services.rb +3 -2
  92. data/lib/stripe/services/v2/billing_service.rb +1 -1
  93. data/lib/stripe/services/v2/core/account_service.rb +1 -1
  94. data/lib/stripe/services/v2/core/vault_service.rb +1 -1
  95. data/lib/stripe/services/v2/core_service.rb +1 -1
  96. data/lib/stripe/services/v2/money_management_service.rb +1 -1
  97. data/lib/stripe/services/v2/test_helper_service.rb +1 -1
  98. data/lib/stripe/services/v2_services.rb +1 -1
  99. data/lib/stripe/services.rb +2 -1
  100. data/lib/stripe/version.rb +1 -1
  101. data/lib/stripe.rb +0 -2
  102. data/rbi/stripe.rbi +1675 -239
  103. metadata +6 -4
  104. data/lib/stripe/request_signing_authenticator.rb +0 -79
@@ -55,6 +55,16 @@ module Stripe
55
55
  attr_reader :type
56
56
  end
57
57
 
58
+ class Aw < Stripe::StripeObject
59
+ # Type of registration in `country`.
60
+ attr_reader :type
61
+ end
62
+
63
+ class Az < Stripe::StripeObject
64
+ # Type of registration in `country`.
65
+ attr_reader :type
66
+ end
67
+
58
68
  class Ba < Stripe::StripeObject
59
69
  # Type of registration in `country`.
60
70
  attr_reader :type
@@ -65,6 +75,11 @@ module Stripe
65
75
  attr_reader :type
66
76
  end
67
77
 
78
+ class Bd < Stripe::StripeObject
79
+ # Type of registration in `country`.
80
+ attr_reader :type
81
+ end
82
+
68
83
  class Be < Stripe::StripeObject
69
84
  class Standard < Stripe::StripeObject
70
85
  # Place of supply scheme used in an EU standard registration.
@@ -92,6 +107,11 @@ module Stripe
92
107
  attr_reader :type
93
108
  end
94
109
 
110
+ class Bj < Stripe::StripeObject
111
+ # Type of registration in `country`.
112
+ attr_reader :type
113
+ end
114
+
95
115
  class Bs < Stripe::StripeObject
96
116
  # Type of registration in `country`.
97
117
  attr_reader :type
@@ -214,6 +234,11 @@ module Stripe
214
234
  attr_reader :type
215
235
  end
216
236
 
237
+ class Et < Stripe::StripeObject
238
+ # Type of registration in `country`.
239
+ attr_reader :type
240
+ end
241
+
217
242
  class Fi < Stripe::StripeObject
218
243
  class Standard < Stripe::StripeObject
219
244
  # Place of supply scheme used in an EU standard registration.
@@ -331,6 +356,11 @@ module Stripe
331
356
  attr_reader :type
332
357
  end
333
358
 
359
+ class Kg < Stripe::StripeObject
360
+ # Type of registration in `country`.
361
+ attr_reader :type
362
+ end
363
+
334
364
  class Kh < Stripe::StripeObject
335
365
  # Type of registration in `country`.
336
366
  attr_reader :type
@@ -346,6 +376,11 @@ module Stripe
346
376
  attr_reader :type
347
377
  end
348
378
 
379
+ class La < Stripe::StripeObject
380
+ # Type of registration in `country`.
381
+ attr_reader :type
382
+ end
383
+
349
384
  class Lt < Stripe::StripeObject
350
385
  class Standard < Stripe::StripeObject
351
386
  # Place of supply scheme used in an EU standard registration.
@@ -466,6 +501,11 @@ module Stripe
466
501
  attr_reader :type
467
502
  end
468
503
 
504
+ class Ph < Stripe::StripeObject
505
+ # Type of registration in `country`.
506
+ attr_reader :type
507
+ end
508
+
469
509
  class Pl < Stripe::StripeObject
470
510
  class Standard < Stripe::StripeObject
471
511
  # Place of supply scheme used in an EU standard registration.
@@ -661,16 +701,24 @@ module Stripe
661
701
  attr_reader :at
662
702
  # Attribute for field au
663
703
  attr_reader :au
704
+ # Attribute for field aw
705
+ attr_reader :aw
706
+ # Attribute for field az
707
+ attr_reader :az
664
708
  # Attribute for field ba
665
709
  attr_reader :ba
666
710
  # Attribute for field bb
667
711
  attr_reader :bb
712
+ # Attribute for field bd
713
+ attr_reader :bd
668
714
  # Attribute for field be
669
715
  attr_reader :be
670
716
  # Attribute for field bg
671
717
  attr_reader :bg
672
718
  # Attribute for field bh
673
719
  attr_reader :bh
720
+ # Attribute for field bj
721
+ attr_reader :bj
674
722
  # Attribute for field bs
675
723
  attr_reader :bs
676
724
  # Attribute for field by
@@ -703,6 +751,8 @@ module Stripe
703
751
  attr_reader :eg
704
752
  # Attribute for field es
705
753
  attr_reader :es
754
+ # Attribute for field et
755
+ attr_reader :et
706
756
  # Attribute for field fi
707
757
  attr_reader :fi
708
758
  # Attribute for field fr
@@ -733,12 +783,16 @@ module Stripe
733
783
  attr_reader :jp
734
784
  # Attribute for field ke
735
785
  attr_reader :ke
786
+ # Attribute for field kg
787
+ attr_reader :kg
736
788
  # Attribute for field kh
737
789
  attr_reader :kh
738
790
  # Attribute for field kr
739
791
  attr_reader :kr
740
792
  # Attribute for field kz
741
793
  attr_reader :kz
794
+ # Attribute for field la
795
+ attr_reader :la
742
796
  # Attribute for field lt
743
797
  attr_reader :lt
744
798
  # Attribute for field lu
@@ -775,6 +829,8 @@ module Stripe
775
829
  attr_reader :om
776
830
  # Attribute for field pe
777
831
  attr_reader :pe
832
+ # Attribute for field ph
833
+ attr_reader :ph
778
834
  # Attribute for field pl
779
835
  attr_reader :pl
780
836
  # Attribute for field pt
@@ -919,6 +975,24 @@ module Stripe
919
975
  end
920
976
  end
921
977
 
978
+ class Aw < Stripe::RequestParams
979
+ # Type of registration to be created in `country`.
980
+ attr_accessor :type
981
+
982
+ def initialize(type: nil)
983
+ @type = type
984
+ end
985
+ end
986
+
987
+ class Az < Stripe::RequestParams
988
+ # Type of registration to be created in `country`.
989
+ attr_accessor :type
990
+
991
+ def initialize(type: nil)
992
+ @type = type
993
+ end
994
+ end
995
+
922
996
  class Ba < Stripe::RequestParams
923
997
  # Type of registration to be created in `country`.
924
998
  attr_accessor :type
@@ -937,6 +1011,15 @@ module Stripe
937
1011
  end
938
1012
  end
939
1013
 
1014
+ class Bd < Stripe::RequestParams
1015
+ # Type of registration to be created in `country`.
1016
+ attr_accessor :type
1017
+
1018
+ def initialize(type: nil)
1019
+ @type = type
1020
+ end
1021
+ end
1022
+
940
1023
  class Be < Stripe::RequestParams
941
1024
  class Standard < Stripe::RequestParams
942
1025
  # Place of supply scheme used in an EU standard registration.
@@ -986,6 +1069,15 @@ module Stripe
986
1069
  end
987
1070
  end
988
1071
 
1072
+ class Bj < Stripe::RequestParams
1073
+ # Type of registration to be created in `country`.
1074
+ attr_accessor :type
1075
+
1076
+ def initialize(type: nil)
1077
+ @type = type
1078
+ end
1079
+ end
1080
+
989
1081
  class Bs < Stripe::RequestParams
990
1082
  # Type of registration to be created in `country`.
991
1083
  attr_accessor :type
@@ -1207,6 +1299,15 @@ module Stripe
1207
1299
  end
1208
1300
  end
1209
1301
 
1302
+ class Et < Stripe::RequestParams
1303
+ # Type of registration to be created in `country`.
1304
+ attr_accessor :type
1305
+
1306
+ def initialize(type: nil)
1307
+ @type = type
1308
+ end
1309
+ end
1310
+
1210
1311
  class Fi < Stripe::RequestParams
1211
1312
  class Standard < Stripe::RequestParams
1212
1313
  # Place of supply scheme used in an EU standard registration.
@@ -1419,6 +1520,15 @@ module Stripe
1419
1520
  end
1420
1521
  end
1421
1522
 
1523
+ class Kg < Stripe::RequestParams
1524
+ # Type of registration to be created in `country`.
1525
+ attr_accessor :type
1526
+
1527
+ def initialize(type: nil)
1528
+ @type = type
1529
+ end
1530
+ end
1531
+
1422
1532
  class Kh < Stripe::RequestParams
1423
1533
  # Type of registration to be created in `country`.
1424
1534
  attr_accessor :type
@@ -1446,6 +1556,15 @@ module Stripe
1446
1556
  end
1447
1557
  end
1448
1558
 
1559
+ class La < Stripe::RequestParams
1560
+ # Type of registration to be created in `country`.
1561
+ attr_accessor :type
1562
+
1563
+ def initialize(type: nil)
1564
+ @type = type
1565
+ end
1566
+ end
1567
+
1449
1568
  class Lt < Stripe::RequestParams
1450
1569
  class Standard < Stripe::RequestParams
1451
1570
  # Place of supply scheme used in an EU standard registration.
@@ -1663,6 +1782,15 @@ module Stripe
1663
1782
  end
1664
1783
  end
1665
1784
 
1785
+ class Ph < Stripe::RequestParams
1786
+ # Type of registration to be created in `country`.
1787
+ attr_accessor :type
1788
+
1789
+ def initialize(type: nil)
1790
+ @type = type
1791
+ end
1792
+ end
1793
+
1666
1794
  class Pl < Stripe::RequestParams
1667
1795
  class Standard < Stripe::RequestParams
1668
1796
  # Place of supply scheme used in an EU standard registration.
@@ -2011,16 +2139,24 @@ module Stripe
2011
2139
  attr_accessor :at
2012
2140
  # Options for the registration in AU.
2013
2141
  attr_accessor :au
2142
+ # Options for the registration in AW.
2143
+ attr_accessor :aw
2144
+ # Options for the registration in AZ.
2145
+ attr_accessor :az
2014
2146
  # Options for the registration in BA.
2015
2147
  attr_accessor :ba
2016
2148
  # Options for the registration in BB.
2017
2149
  attr_accessor :bb
2150
+ # Options for the registration in BD.
2151
+ attr_accessor :bd
2018
2152
  # Options for the registration in BE.
2019
2153
  attr_accessor :be
2020
2154
  # Options for the registration in BG.
2021
2155
  attr_accessor :bg
2022
2156
  # Options for the registration in BH.
2023
2157
  attr_accessor :bh
2158
+ # Options for the registration in BJ.
2159
+ attr_accessor :bj
2024
2160
  # Options for the registration in BS.
2025
2161
  attr_accessor :bs
2026
2162
  # Options for the registration in BY.
@@ -2053,6 +2189,8 @@ module Stripe
2053
2189
  attr_accessor :eg
2054
2190
  # Options for the registration in ES.
2055
2191
  attr_accessor :es
2192
+ # Options for the registration in ET.
2193
+ attr_accessor :et
2056
2194
  # Options for the registration in FI.
2057
2195
  attr_accessor :fi
2058
2196
  # Options for the registration in FR.
@@ -2083,12 +2221,16 @@ module Stripe
2083
2221
  attr_accessor :jp
2084
2222
  # Options for the registration in KE.
2085
2223
  attr_accessor :ke
2224
+ # Options for the registration in KG.
2225
+ attr_accessor :kg
2086
2226
  # Options for the registration in KH.
2087
2227
  attr_accessor :kh
2088
2228
  # Options for the registration in KR.
2089
2229
  attr_accessor :kr
2090
2230
  # Options for the registration in KZ.
2091
2231
  attr_accessor :kz
2232
+ # Options for the registration in LA.
2233
+ attr_accessor :la
2092
2234
  # Options for the registration in LT.
2093
2235
  attr_accessor :lt
2094
2236
  # Options for the registration in LU.
@@ -2125,6 +2267,8 @@ module Stripe
2125
2267
  attr_accessor :om
2126
2268
  # Options for the registration in PE.
2127
2269
  attr_accessor :pe
2270
+ # Options for the registration in PH.
2271
+ attr_accessor :ph
2128
2272
  # Options for the registration in PL.
2129
2273
  attr_accessor :pl
2130
2274
  # Options for the registration in PT.
@@ -2181,11 +2325,15 @@ module Stripe
2181
2325
  ao: nil,
2182
2326
  at: nil,
2183
2327
  au: nil,
2328
+ aw: nil,
2329
+ az: nil,
2184
2330
  ba: nil,
2185
2331
  bb: nil,
2332
+ bd: nil,
2186
2333
  be: nil,
2187
2334
  bg: nil,
2188
2335
  bh: nil,
2336
+ bj: nil,
2189
2337
  bs: nil,
2190
2338
  by: nil,
2191
2339
  ca: nil,
@@ -2202,6 +2350,7 @@ module Stripe
2202
2350
  ee: nil,
2203
2351
  eg: nil,
2204
2352
  es: nil,
2353
+ et: nil,
2205
2354
  fi: nil,
2206
2355
  fr: nil,
2207
2356
  gb: nil,
@@ -2217,9 +2366,11 @@ module Stripe
2217
2366
  it: nil,
2218
2367
  jp: nil,
2219
2368
  ke: nil,
2369
+ kg: nil,
2220
2370
  kh: nil,
2221
2371
  kr: nil,
2222
2372
  kz: nil,
2373
+ la: nil,
2223
2374
  lt: nil,
2224
2375
  lu: nil,
2225
2376
  lv: nil,
@@ -2238,6 +2389,7 @@ module Stripe
2238
2389
  nz: nil,
2239
2390
  om: nil,
2240
2391
  pe: nil,
2392
+ ph: nil,
2241
2393
  pl: nil,
2242
2394
  pt: nil,
2243
2395
  ro: nil,
@@ -2269,11 +2421,15 @@ module Stripe
2269
2421
  @ao = ao
2270
2422
  @at = at
2271
2423
  @au = au
2424
+ @aw = aw
2425
+ @az = az
2272
2426
  @ba = ba
2273
2427
  @bb = bb
2428
+ @bd = bd
2274
2429
  @be = be
2275
2430
  @bg = bg
2276
2431
  @bh = bh
2432
+ @bj = bj
2277
2433
  @bs = bs
2278
2434
  @by = by
2279
2435
  @ca = ca
@@ -2290,6 +2446,7 @@ module Stripe
2290
2446
  @ee = ee
2291
2447
  @eg = eg
2292
2448
  @es = es
2449
+ @et = et
2293
2450
  @fi = fi
2294
2451
  @fr = fr
2295
2452
  @gb = gb
@@ -2305,9 +2462,11 @@ module Stripe
2305
2462
  @it = it
2306
2463
  @jp = jp
2307
2464
  @ke = ke
2465
+ @kg = kg
2308
2466
  @kh = kh
2309
2467
  @kr = kr
2310
2468
  @kz = kz
2469
+ @la = la
2311
2470
  @lt = lt
2312
2471
  @lu = lu
2313
2472
  @lv = lv
@@ -2326,6 +2485,7 @@ module Stripe
2326
2485
  @nz = nz
2327
2486
  @om = om
2328
2487
  @pe = pe
2488
+ @ph = ph
2329
2489
  @pl = pl
2330
2490
  @pt = pt
2331
2491
  @ro = ro
@@ -164,6 +164,21 @@ module Stripe
164
164
  end
165
165
  end
166
166
 
167
+ class RegistrationDate < Stripe::RequestParams
168
+ # The day of registration, between 1 and 31.
169
+ attr_accessor :day
170
+ # The month of registration, between 1 and 12.
171
+ attr_accessor :month
172
+ # The four-digit year of registration.
173
+ attr_accessor :year
174
+
175
+ def initialize(day: nil, month: nil, year: nil)
176
+ @day = day
177
+ @month = month
178
+ @year = year
179
+ end
180
+ end
181
+
167
182
  class Verification < Stripe::RequestParams
168
183
  class Document < Stripe::RequestParams
169
184
  # The back of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `additional_verification`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size.
@@ -215,6 +230,8 @@ module Stripe
215
230
  attr_accessor :ownership_exemption_reason
216
231
  # The company's phone number (used for verification).
217
232
  attr_accessor :phone
233
+ # Attribute for param field registration_date
234
+ attr_accessor :registration_date
218
235
  # The identification number given to a company when it is registered or incorporated, if distinct from the identification number used for filing taxes. (Examples are the CIN for companies and LLP IN for partnerships in India, and the Company Registration Number in Hong Kong).
219
236
  attr_accessor :registration_number
220
237
  # 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.
@@ -245,6 +262,7 @@ module Stripe
245
262
  ownership_declaration_shown_and_signed: nil,
246
263
  ownership_exemption_reason: nil,
247
264
  phone: nil,
265
+ registration_date: nil,
248
266
  registration_number: nil,
249
267
  structure: nil,
250
268
  tax_id: nil,
@@ -268,6 +286,7 @@ module Stripe
268
286
  @ownership_declaration_shown_and_signed = ownership_declaration_shown_and_signed
269
287
  @ownership_exemption_reason = ownership_exemption_reason
270
288
  @phone = phone
289
+ @registration_date = registration_date
271
290
  @registration_number = registration_number
272
291
  @structure = structure
273
292
  @tax_id = tax_id
@@ -971,6 +990,44 @@ module Stripe
971
990
  end
972
991
  end
973
992
 
993
+ class UsCfpbData < Stripe::RequestParams
994
+ class EthnicityDetails < Stripe::RequestParams
995
+ # The persons ethnicity
996
+ attr_accessor :ethnicity
997
+ # Please specify your origin, when other is selected.
998
+ attr_accessor :ethnicity_other
999
+
1000
+ def initialize(ethnicity: nil, ethnicity_other: nil)
1001
+ @ethnicity = ethnicity
1002
+ @ethnicity_other = ethnicity_other
1003
+ end
1004
+ end
1005
+
1006
+ class RaceDetails < Stripe::RequestParams
1007
+ # The persons race.
1008
+ attr_accessor :race
1009
+ # Please specify your race, when other is selected.
1010
+ attr_accessor :race_other
1011
+
1012
+ def initialize(race: nil, race_other: nil)
1013
+ @race = race
1014
+ @race_other = race_other
1015
+ end
1016
+ end
1017
+ # The persons ethnicity details
1018
+ attr_accessor :ethnicity_details
1019
+ # The persons race details
1020
+ attr_accessor :race_details
1021
+ # The persons self-identified gender
1022
+ attr_accessor :self_identified_gender
1023
+
1024
+ def initialize(ethnicity_details: nil, race_details: nil, self_identified_gender: nil)
1025
+ @ethnicity_details = ethnicity_details
1026
+ @race_details = race_details
1027
+ @self_identified_gender = self_identified_gender
1028
+ end
1029
+ end
1030
+
974
1031
  class Verification < Stripe::RequestParams
975
1032
  class AdditionalDocument < Stripe::RequestParams
976
1033
  # The back of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size.
@@ -1055,6 +1112,8 @@ module Stripe
1055
1112
  attr_accessor :relationship
1056
1113
  # The last four digits of the person's Social Security number (U.S. only).
1057
1114
  attr_accessor :ssn_last_4
1115
+ # Demographic data related to the person.
1116
+ attr_accessor :us_cfpb_data
1058
1117
  # The person's verification status.
1059
1118
  attr_accessor :verification
1060
1119
 
@@ -1084,6 +1143,7 @@ module Stripe
1084
1143
  registered_address: nil,
1085
1144
  relationship: nil,
1086
1145
  ssn_last_4: nil,
1146
+ us_cfpb_data: nil,
1087
1147
  verification: nil
1088
1148
  )
1089
1149
  @additional_tos_acceptances = additional_tos_acceptances
@@ -1111,6 +1171,7 @@ module Stripe
1111
1171
  @registered_address = registered_address
1112
1172
  @relationship = relationship
1113
1173
  @ssn_last_4 = ssn_last_4
1174
+ @us_cfpb_data = us_cfpb_data
1114
1175
  @verification = verification
1115
1176
  end
1116
1177
  end
@@ -88,6 +88,8 @@ module Stripe
88
88
  attr_accessor :destination
89
89
  # Specifies which fields in the response should be expanded.
90
90
  attr_accessor :expand
91
+ # The FX rate in the quote is validated and used to convert the transfer amount to the destination currency.
92
+ attr_accessor :fx_quote
91
93
  # Set of [key-value pairs](https://stripe.com/docs/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`.
92
94
  attr_accessor :metadata
93
95
  # You can use this parameter to transfer funds from a charge before they are added to your available balance. A pending balance will transfer immediately but the funds will not become available until the original charge becomes available. [See the Connect documentation](https://stripe.com/docs/connect/separate-charges-and-transfers#transfer-availability) for details.
@@ -103,6 +105,7 @@ module Stripe
103
105
  description: nil,
104
106
  destination: nil,
105
107
  expand: nil,
108
+ fx_quote: nil,
106
109
  metadata: nil,
107
110
  source_transaction: nil,
108
111
  source_type: nil,
@@ -113,6 +116,7 @@ module Stripe
113
116
  @description = description
114
117
  @destination = destination
115
118
  @expand = expand
119
+ @fx_quote = fx_quote
116
120
  @metadata = metadata
117
121
  @source_transaction = source_transaction
118
122
  @source_type = source_type
@@ -150,6 +154,8 @@ module Stripe
150
154
  attr_reader :destination
151
155
  # If the destination is a Stripe account, this will be the ID of the payment that the destination account received for the transfer.
152
156
  attr_reader :destination_payment
157
+ # The FX Quote used for the transfer.
158
+ attr_reader :fx_quote
153
159
  # Unique identifier for the object.
154
160
  attr_reader :id
155
161
  # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
@@ -220,12 +220,15 @@ module Stripe
220
220
  attr_accessor :name
221
221
  # Billing phone number (including extension).
222
222
  attr_accessor :phone
223
+ # Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.
224
+ attr_accessor :tax_id
223
225
 
224
- def initialize(address: nil, email: nil, name: nil, phone: nil)
226
+ def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil)
225
227
  @address = address
226
228
  @email = email
227
229
  @name = name
228
230
  @phone = phone
231
+ @tax_id = tax_id
229
232
  end
230
233
  end
231
234
 
@@ -66,6 +66,7 @@ require "stripe/resources/financial_connections/session"
66
66
  require "stripe/resources/financial_connections/transaction"
67
67
  require "stripe/resources/forwarding/request"
68
68
  require "stripe/resources/funding_instructions"
69
+ require "stripe/resources/fx_quote"
69
70
  require "stripe/resources/gift_cards/card"
70
71
  require "stripe/resources/gift_cards/transaction"
71
72
  require "stripe/resources/identity/verification_report"
@@ -94,6 +95,7 @@ require "stripe/resources/margin"
94
95
  require "stripe/resources/order"
95
96
  require "stripe/resources/payment_attempt_record"
96
97
  require "stripe/resources/payment_intent"
98
+ require "stripe/resources/payment_intent_amount_details_line_item"
97
99
  require "stripe/resources/payment_link"
98
100
  require "stripe/resources/payment_method"
99
101
  require "stripe/resources/payment_method_configuration"