stripe 19.4.0.pre.beta.1 → 19.5.0.pre.beta.1

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 (124) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stripe/api_requestor.rb +2 -27
  3. data/lib/stripe/api_version.rb +1 -1
  4. data/lib/stripe/error_object.rb +43 -19
  5. data/lib/stripe/params/account_create_params.rb +72 -24
  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_reject_params.rb +4 -1
  9. data/lib/stripe/params/account_session_create_params.rb +20 -4
  10. data/lib/stripe/params/account_unreject_params.rb +13 -0
  11. data/lib/stripe/params/account_update_params.rb +85 -0
  12. data/lib/stripe/params/billing/alert_create_params.rb +1 -1
  13. data/lib/stripe/params/billing_portal/configuration_create_params.rb +1 -1
  14. data/lib/stripe/params/billing_portal/configuration_update_params.rb +1 -1
  15. data/lib/stripe/params/capital/financing_transaction_list_params.rb +2 -2
  16. data/lib/stripe/params/charge_capture_params.rb +12 -12
  17. data/lib/stripe/params/charge_update_params.rb +12 -12
  18. data/lib/stripe/params/checkout/session_create_params.rb +21 -7
  19. data/lib/stripe/params/customer_create_params.rb +1 -1
  20. data/lib/stripe/params/customer_tax_id_create_params.rb +1 -1
  21. data/lib/stripe/params/financial_connections/session_create_params.rb +9 -1
  22. data/lib/stripe/params/invoice_create_preview_params.rb +7 -3
  23. data/lib/stripe/params/issuing/authorization_capture_params.rb +1 -1
  24. data/lib/stripe/params/issuing/authorization_create_params.rb +1 -1
  25. data/lib/stripe/params/issuing/authorization_finalize_amount_params.rb +1 -1
  26. data/lib/stripe/params/issuing/card_create_params.rb +4 -0
  27. data/lib/stripe/params/issuing/card_update_params.rb +4 -0
  28. data/lib/stripe/params/issuing/cardholder_update_params.rb +4 -0
  29. data/lib/stripe/params/issuing/transaction_create_force_capture_params.rb +1 -1
  30. data/lib/stripe/params/issuing/transaction_create_unlinked_refund_params.rb +1 -1
  31. data/lib/stripe/params/order_create_params.rb +1 -1
  32. data/lib/stripe/params/order_update_params.rb +1 -1
  33. data/lib/stripe/params/payment_intent_capture_params.rb +12 -12
  34. data/lib/stripe/params/payment_intent_confirm_params.rb +41 -16
  35. data/lib/stripe/params/payment_intent_create_params.rb +40 -15
  36. data/lib/stripe/params/payment_intent_update_params.rb +36 -14
  37. data/lib/stripe/params/payment_link_update_params.rb +58 -0
  38. data/lib/stripe/params/payment_record_list_params.rb +35 -0
  39. data/lib/stripe/params/product_catalog/trial_offer_list_params.rb +54 -0
  40. data/lib/stripe/params/product_catalog/trial_offer_retrieve_params.rb +15 -0
  41. data/lib/stripe/params/promotion_code_create_params.rb +1 -1
  42. data/lib/stripe/params/promotion_code_update_params.rb +1 -1
  43. data/lib/stripe/params/quote_create_params.rb +28 -1
  44. data/lib/stripe/params/quote_update_params.rb +28 -1
  45. data/lib/stripe/params/setup_intent_confirm_params.rb +4 -0
  46. data/lib/stripe/params/setup_intent_create_params.rb +4 -0
  47. data/lib/stripe/params/setup_intent_update_params.rb +4 -0
  48. data/lib/stripe/params/shared_payment/issued_token_create_params.rb +5 -1
  49. data/lib/stripe/params/subscription_schedule_create_params.rb +60 -4
  50. data/lib/stripe/params/subscription_schedule_list_params.rb +1 -1
  51. data/lib/stripe/params/subscription_schedule_update_params.rb +61 -5
  52. data/lib/stripe/params/subscription_update_params.rb +1 -1
  53. data/lib/stripe/params/tax/calculation_create_params.rb +2 -2
  54. data/lib/stripe/params/tax/registration_create_params.rb +26 -0
  55. data/lib/stripe/params/tax_id_create_params.rb +1 -1
  56. data/lib/stripe/params/test_helpers/issuing/authorization_capture_params.rb +1 -1
  57. data/lib/stripe/params/test_helpers/issuing/authorization_create_params.rb +1 -1
  58. data/lib/stripe/params/test_helpers/issuing/authorization_finalize_amount_params.rb +1 -1
  59. data/lib/stripe/params/test_helpers/issuing/transaction_create_force_capture_params.rb +1 -1
  60. data/lib/stripe/params/test_helpers/issuing/transaction_create_unlinked_refund_params.rb +1 -1
  61. data/lib/stripe/params/token_create_params.rb +78 -0
  62. data/lib/stripe/params/v2/billing/meter_event_create_params.rb +2 -2
  63. data/lib/stripe/params/v2/billing/meter_event_stream_create_params.rb +2 -2
  64. data/lib/stripe/params/v2/core/account_create_params.rb +43 -0
  65. data/lib/stripe/params/v2/core/account_token_create_params.rb +43 -0
  66. data/lib/stripe/params/v2/core/account_update_params.rb +43 -0
  67. data/lib/stripe/params.rb +8 -0
  68. data/lib/stripe/resources/account.rb +86 -6
  69. data/lib/stripe/resources/account_session.rb +8 -0
  70. data/lib/stripe/resources/balance_transaction.rb +1 -1
  71. data/lib/stripe/resources/bank_account.rb +2 -2
  72. data/lib/stripe/resources/billing_portal/configuration.rb +1 -1
  73. data/lib/stripe/resources/capability.rb +2 -2
  74. data/lib/stripe/resources/capital/financing_transaction.rb +1 -1
  75. data/lib/stripe/resources/charge.rb +3 -3
  76. data/lib/stripe/resources/checkout/session.rb +21 -5
  77. data/lib/stripe/resources/confirmation_token.rb +1 -1
  78. data/lib/stripe/resources/dispute.rb +4 -2
  79. data/lib/stripe/resources/financial_connections/session.rb +26 -0
  80. data/lib/stripe/resources/fx_quote.rb +3 -3
  81. data/lib/stripe/resources/invoice.rb +1 -1
  82. data/lib/stripe/resources/issuing/card.rb +2 -0
  83. data/lib/stripe/resources/issuing/transaction.rb +1 -1
  84. data/lib/stripe/resources/order.rb +1 -1
  85. data/lib/stripe/resources/payment_attempt_record.rb +2 -2
  86. data/lib/stripe/resources/payment_intent.rb +27 -9
  87. data/lib/stripe/resources/payment_method.rb +3 -3
  88. data/lib/stripe/resources/payment_record.rb +9 -2
  89. data/lib/stripe/resources/person.rb +2 -2
  90. data/lib/stripe/resources/product_catalog/trial_offer.rb +11 -0
  91. data/lib/stripe/resources/quote.rb +22 -1
  92. data/lib/stripe/resources/quote_preview_invoice.rb +1 -1
  93. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +46 -2
  94. data/lib/stripe/resources/refund.rb +6 -0
  95. data/lib/stripe/resources/setup_intent.rb +2 -0
  96. data/lib/stripe/resources/shared_payment/granted_token.rb +11 -1131
  97. data/lib/stripe/resources/shared_payment/issued_token.rb +20 -1
  98. data/lib/stripe/resources/subscription_schedule.rb +46 -2
  99. data/lib/stripe/resources/tax/calculation.rb +1 -1
  100. data/lib/stripe/resources/tax/location.rb +2 -0
  101. data/lib/stripe/resources/tax/registration.rb +32 -0
  102. data/lib/stripe/resources/tax/transaction.rb +1 -1
  103. data/lib/stripe/resources/tax_id.rb +1 -1
  104. data/lib/stripe/resources/topup.rb +31 -1
  105. data/lib/stripe/resources/v2/billing/meter_event.rb +2 -2
  106. data/lib/stripe/resources/v2/billing/meter_event_adjustment.rb +1 -1
  107. data/lib/stripe/resources/v2/core/account.rb +30 -0
  108. data/lib/stripe/resources/v2/iam/activity_log.rb +2 -0
  109. data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +1 -1
  110. data/lib/stripe/resources/v2/money_management/received_credit.rb +1 -1
  111. data/lib/stripe/resources/v2/money_management/received_debit.rb +2 -1
  112. data/lib/stripe/services/account_person_service.rb +1 -1
  113. data/lib/stripe/services/account_service.rb +17 -2
  114. data/lib/stripe/services/dispute_service.rb +1 -1
  115. data/lib/stripe/services/fx_quote_service.rb +1 -1
  116. data/lib/stripe/services/payment_method_service.rb +1 -1
  117. data/lib/stripe/services/payment_record_service.rb +11 -0
  118. data/lib/stripe/services/product_catalog/trial_offer_service.rb +22 -0
  119. data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +4 -0
  120. data/lib/stripe/telemetry_id.rb +65 -0
  121. data/lib/stripe/version.rb +1 -1
  122. data/lib/stripe.rb +2 -0
  123. data/rbi/stripe.rbi +2079 -1482
  124. metadata +7 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fb584feca4d939e2430e5fe9090bcb72061a1acefd38dd425244b26226ee56a3
4
- data.tar.gz: 2a6468a740e65a6f7e2df844f1ee954f951f2e058316733a003f589a0014055f
3
+ metadata.gz: 6a7fe8d96b3b0b81fc78fa1aa88704d0132e6a9ee36e96b4f91531a95fe43e79
4
+ data.tar.gz: 40aa82021f8d6aefaa3059cc0df9876f08f35787884db346146f43d63b2ba66a
5
5
  SHA512:
6
- metadata.gz: 3fb14fff4045a430d6dd852aa58c20626da40c184456553f149b05055c0bd8787a0c0d6b3a57a36c975a45db5a1e74b7e4109dc5ba009680f0752aea548cfc8c
7
- data.tar.gz: c938e2337db24d0d904bb4d4f93a34ca9c00d076ffc2bb4e1439348ca3bbfdf1cbb942e1f7cca66ee576b094d1095a8006c1b6411c4bdc0476f19bb169be3c13
6
+ metadata.gz: 75d1adc0f03920db8d6240afb1bff1f4d6a16b1529052678af4c073264713f5fb6f051e35daf42e91d6d4bd63009bdfc6a3f1f5fac3fc637dd5cdad24ef7be29
7
+ data.tar.gz: 2bead6c950151f8abcf17f91a758087501a29e2bda0d67b39435d0032d69bed5a278711f4b8f6866f1235e4f75b9e181c8d329deb75d02311116f5ca78b2e68d
@@ -1,6 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "digest"
4
3
  require "socket"
5
4
  require "stripe/instrumentation"
6
5
 
@@ -1104,31 +1103,6 @@ module Stripe
1104
1103
  # in so that we can generate a rich user agent header to help debug
1105
1104
  # integrations.
1106
1105
  class SystemProfiler
1107
- UNAME_HASH = begin
1108
- parts = []
1109
- parts << if RUBY_PLATFORM.match?(/mswin|mingw|cygwin/)
1110
- begin
1111
- `ver 2>NUL`.strip
1112
- rescue StandardError
1113
- ""
1114
- end
1115
- else
1116
- begin
1117
- `uname -a 2>/dev/null`.strip
1118
- rescue StandardError
1119
- ""
1120
- end
1121
- end
1122
- parts << begin
1123
- Socket.gethostname
1124
- rescue StandardError
1125
- ""
1126
- end
1127
- Digest::MD5.hexdigest(parts.join(" "))
1128
- rescue StandardError
1129
- ""
1130
- end
1131
-
1132
1106
  AI_AGENTS = [
1133
1107
  # aiAgents: The beginning of the section generated from our OpenAPI spec
1134
1108
  %w[ANTIGRAVITY_CLI_ALIAS antigravity],
@@ -1166,7 +1140,8 @@ module Stripe
1166
1140
 
1167
1141
  if Stripe.enable_telemetry?
1168
1142
  ua[:platform] = RUBY_PLATFORM
1169
- ua[:source] = UNAME_HASH unless UNAME_HASH.empty?
1143
+ tid = TelemetryId.get
1144
+ ua[:telemetry_id] = tid if tid
1170
1145
  end
1171
1146
 
1172
1147
  ai_agent = detect_ai_agent
@@ -3,6 +3,6 @@
3
3
 
4
4
  module Stripe
5
5
  module ApiVersion
6
- CURRENT = "2026-06-24.preview"
6
+ CURRENT = "2026-07-29.preview"
7
7
  end
8
8
  end
@@ -11,69 +11,93 @@ module Stripe
11
11
  # methods would cause users to run into `NoMethodError` exceptions and
12
12
  # get in the way of generic error handling.
13
13
 
14
+ # errorFields: The beginning of the section generated from our OpenAPI spec
15
+ # For card errors resulting from a card issuer decline, a short string indicating [how to proceed with an error](https://docs.stripe.com/declines#retrying-issuer-declines) if they provide one.
16
+ def advice_code
17
+ @values[:advice_code]
18
+ end
19
+
14
20
  # For card errors, the ID of the failed charge.
15
21
  def charge
16
22
  @values[:charge]
17
23
  end
18
24
 
19
- # For some errors that could be handled programmatically, a short string
20
- # indicating the error code reported.
25
+ # For some errors that could be handled programmatically, a short string indicating the [error code](https://docs.stripe.com/error-codes) reported.
21
26
  def code
22
27
  @values[:code]
23
28
  end
24
29
 
25
- # For card errors resulting from a card issuer decline, a short string
26
- # indicating the card issuer's reason for the decline if they provide one.
30
+ # For card errors resulting from a card issuer decline, a short string indicating the [card issuer's reason for the decline](https://docs.stripe.com/declines#issuer-declines) if they provide one.
27
31
  def decline_code
28
32
  @values[:decline_code]
29
33
  end
30
34
 
31
- # A URL to more information about the error code reported.
35
+ # A URL to more information about the [error code](https://docs.stripe.com/error-codes) reported.
32
36
  def doc_url
33
37
  @values[:doc_url]
34
38
  end
35
39
 
36
- # A human-readable message providing more details about the error. For card
37
- # errors, these messages can be shown to your users.
40
+ # A human-readable message providing more details about the error. For card errors, these messages can be shown to your users.
38
41
  def message
39
42
  @values[:message]
40
43
  end
41
44
 
42
- # If the error is parameter-specific, the parameter related to the error.
43
- # For example, you can use this to display a message near the correct form
44
- # field.
45
+ # For card errors resulting from a card issuer decline, a 2 digit code which indicates the advice given to merchant by the card network on how to proceed with an error.
46
+ def network_advice_code
47
+ @values[:network_advice_code]
48
+ end
49
+
50
+ # For payments declined by the network, an alphanumeric code which indicates the reason the payment failed.
51
+ def network_decline_code
52
+ @values[:network_decline_code]
53
+ end
54
+
55
+ # If the error is parameter-specific, the parameter related to the error. For example, you can use this to display a message near the correct form field.
45
56
  def param
46
57
  @values[:param]
47
58
  end
48
59
 
49
- # The PaymentIntent object for errors returned on a request involving a
50
- # PaymentIntent.
60
+ # The PaymentIntent object for errors returned on a request involving a PaymentIntent.
51
61
  def payment_intent
52
62
  @values[:payment_intent]
53
63
  end
54
64
 
55
- # The PaymentMethod object for errors returned on a request involving a
56
- # PaymentMethod.
65
+ # The PaymentMethod object for errors returned on a request involving a PaymentMethod.
57
66
  def payment_method
58
67
  @values[:payment_method]
59
68
  end
60
69
 
61
- # The SetupIntent object for errors returned on a request involving a
62
- # SetupIntent.
70
+ # If the error is specific to the type of payment method, the payment method type that had a problem. This field is only populated for invoice-related errors.
71
+ def payment_method_type
72
+ @values[:payment_method_type]
73
+ end
74
+
75
+ # A URL to the request log entry in your dashboard.
76
+ def request_log_url
77
+ @values[:request_log_url]
78
+ end
79
+
80
+ # The SetupIntent object for errors returned on a request involving a SetupIntent.
63
81
  def setup_intent
64
82
  @values[:setup_intent]
65
83
  end
66
84
 
67
- # The source object for errors returned on a request involving a source.
85
+ # The PaymentSource object for errors returned on a request involving a PaymentSource.
68
86
  def source
69
87
  @values[:source]
70
88
  end
71
89
 
72
- # The type of error returned. One of `api_error`, `card_error`,
73
- # `idempotency_error`, or `invalid_request_error`.
90
+ # The type of error returned. One of `api_error`, `card_error`, `idempotency_error`, or `invalid_request_error`
74
91
  def type
75
92
  @values[:type]
76
93
  end
94
+
95
+ # The user message associated with the error.
96
+ def user_message
97
+ @values[:user_message]
98
+ end
99
+
100
+ # errorFields: The end of the section generated from our OpenAPI spec
77
101
  end
78
102
 
79
103
  # Represents on OAuth error returned by the OAuth API.
@@ -1371,6 +1371,37 @@ module Stripe
1371
1371
  end
1372
1372
  end
1373
1373
 
1374
+ class AdministrativeAddress < ::Stripe::RequestParams
1375
+ # City, district, suburb, town, or village.
1376
+ attr_accessor :city
1377
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1378
+ attr_accessor :country
1379
+ # Address line 1, such as the street, PO Box, or company name.
1380
+ attr_accessor :line1
1381
+ # Address line 2, such as the apartment, suite, unit, or building.
1382
+ attr_accessor :line2
1383
+ # ZIP or postal code.
1384
+ attr_accessor :postal_code
1385
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
1386
+ attr_accessor :state
1387
+
1388
+ def initialize(
1389
+ city: nil,
1390
+ country: nil,
1391
+ line1: nil,
1392
+ line2: nil,
1393
+ postal_code: nil,
1394
+ state: nil
1395
+ )
1396
+ @city = city
1397
+ @country = country
1398
+ @line1 = line1
1399
+ @line2 = line2
1400
+ @postal_code = postal_code
1401
+ @state = state
1402
+ end
1403
+ end
1404
+
1374
1405
  class DirectorshipDeclaration < ::Stripe::RequestParams
1375
1406
  # The Unix timestamp marking when the directorship declaration attestation was made.
1376
1407
  attr_accessor :date
@@ -1401,6 +1432,37 @@ module Stripe
1401
1432
  end
1402
1433
  end
1403
1434
 
1435
+ class PrincipalPlaceOfBusiness < ::Stripe::RequestParams
1436
+ # City, district, suburb, town, or village.
1437
+ attr_accessor :city
1438
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1439
+ attr_accessor :country
1440
+ # Address line 1, such as the street, PO Box, or company name.
1441
+ attr_accessor :line1
1442
+ # Address line 2, such as the apartment, suite, unit, or building.
1443
+ attr_accessor :line2
1444
+ # ZIP or postal code.
1445
+ attr_accessor :postal_code
1446
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
1447
+ attr_accessor :state
1448
+
1449
+ def initialize(
1450
+ city: nil,
1451
+ country: nil,
1452
+ line1: nil,
1453
+ line2: nil,
1454
+ postal_code: nil,
1455
+ state: nil
1456
+ )
1457
+ @city = city
1458
+ @country = country
1459
+ @line1 = line1
1460
+ @line2 = line2
1461
+ @postal_code = postal_code
1462
+ @state = state
1463
+ end
1464
+ end
1465
+
1404
1466
  class RegistrationDate < ::Stripe::RequestParams
1405
1467
  # The day of registration, between 1 and 31.
1406
1468
  attr_accessor :day
@@ -1456,6 +1518,8 @@ module Stripe
1456
1518
  attr_accessor :address_kana
1457
1519
  # The Kanji variation of the company's primary address (Japan only).
1458
1520
  attr_accessor :address_kanji
1521
+ # Attribute for param field administrative_address
1522
+ attr_accessor :administrative_address
1459
1523
  # Whether the company's directors have been provided. Set this Boolean to `true` after creating all the company's directors with [the Persons API](/api/persons) for accounts with a `relationship.director` requirement. This value is not automatically set to `true` after creating directors, so it needs to be updated to indicate all directors have been provided.
1460
1524
  attr_accessor :directors_provided
1461
1525
  # This hash is used to attest that the directors information provided to Stripe is both current and correct.
@@ -1480,6 +1544,8 @@ module Stripe
1480
1544
  attr_accessor :ownership_exemption_reason
1481
1545
  # The company's phone number (used for verification).
1482
1546
  attr_accessor :phone
1547
+ # Attribute for param field principal_place_of_business
1548
+ attr_accessor :principal_place_of_business
1483
1549
  # When the business was incorporated or registered.
1484
1550
  attr_accessor :registration_date
1485
1551
  # 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).
@@ -1489,6 +1555,8 @@ module Stripe
1489
1555
  # 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.
1490
1556
  attr_accessor :structure
1491
1557
  # 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.)
1558
+ #
1559
+ # Changing this value requires that the account re-accept the [terms of service](/api/accounts/object#account_object-tos_acceptance).
1492
1560
  attr_accessor :tax_id
1493
1561
  # The jurisdiction in which the `tax_id` is registered (Germany-based companies only).
1494
1562
  attr_accessor :tax_id_registrar
@@ -1501,6 +1569,7 @@ module Stripe
1501
1569
  address: nil,
1502
1570
  address_kana: nil,
1503
1571
  address_kanji: nil,
1572
+ administrative_address: nil,
1504
1573
  directors_provided: nil,
1505
1574
  directorship_declaration: nil,
1506
1575
  executives_provided: nil,
@@ -1513,6 +1582,7 @@ module Stripe
1513
1582
  ownership_declaration: nil,
1514
1583
  ownership_exemption_reason: nil,
1515
1584
  phone: nil,
1585
+ principal_place_of_business: nil,
1516
1586
  registration_date: nil,
1517
1587
  registration_number: nil,
1518
1588
  representative_declaration: nil,
@@ -1525,6 +1595,7 @@ module Stripe
1525
1595
  @address = address
1526
1596
  @address_kana = address_kana
1527
1597
  @address_kanji = address_kanji
1598
+ @administrative_address = administrative_address
1528
1599
  @directors_provided = directors_provided
1529
1600
  @directorship_declaration = directorship_declaration
1530
1601
  @executives_provided = executives_provided
@@ -1537,6 +1608,7 @@ module Stripe
1537
1608
  @ownership_declaration = ownership_declaration
1538
1609
  @ownership_exemption_reason = ownership_exemption_reason
1539
1610
  @phone = phone
1611
+ @principal_place_of_business = principal_place_of_business
1540
1612
  @registration_date = registration_date
1541
1613
  @registration_number = registration_number
1542
1614
  @representative_declaration = representative_declaration
@@ -1693,26 +1765,6 @@ module Stripe
1693
1765
  end
1694
1766
  end
1695
1767
 
1696
- class ProofOfRegistration < ::Stripe::RequestParams
1697
- class Signer < ::Stripe::RequestParams
1698
- # The token of the person signing the document, if applicable.
1699
- attr_accessor :person
1700
-
1701
- def initialize(person: nil)
1702
- @person = person
1703
- end
1704
- end
1705
- # One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`.
1706
- attr_accessor :files
1707
- # Information regarding the person signing the document if applicable.
1708
- attr_accessor :signer
1709
-
1710
- def initialize(files: nil, signer: nil)
1711
- @files = files
1712
- @signer = signer
1713
- end
1714
- end
1715
-
1716
1768
  class ProofOfUltimateBeneficialOwnership < ::Stripe::RequestParams
1717
1769
  class Signer < ::Stripe::RequestParams
1718
1770
  # The token of the person signing the document, if applicable.
@@ -1746,8 +1798,6 @@ module Stripe
1746
1798
  attr_accessor :company_tax_id_verification
1747
1799
  # One or more documents that demonstrate proof of address.
1748
1800
  attr_accessor :proof_of_address
1749
- # One or more documents showing the company’s proof of registration with the national business registry.
1750
- attr_accessor :proof_of_registration
1751
1801
  # One or more documents that demonstrate proof of ultimate beneficial ownership.
1752
1802
  attr_accessor :proof_of_ultimate_beneficial_ownership
1753
1803
 
@@ -1759,7 +1809,6 @@ module Stripe
1759
1809
  company_registration_verification: nil,
1760
1810
  company_tax_id_verification: nil,
1761
1811
  proof_of_address: nil,
1762
- proof_of_registration: nil,
1763
1812
  proof_of_ultimate_beneficial_ownership: nil
1764
1813
  )
1765
1814
  @bank_account_ownership_verification = bank_account_ownership_verification
@@ -1769,7 +1818,6 @@ module Stripe
1769
1818
  @company_registration_verification = company_registration_verification
1770
1819
  @company_tax_id_verification = company_tax_id_verification
1771
1820
  @proof_of_address = proof_of_address
1772
- @proof_of_registration = proof_of_registration
1773
1821
  @proof_of_ultimate_beneficial_ownership = proof_of_ultimate_beneficial_ownership
1774
1822
  end
1775
1823
  end
@@ -338,8 +338,12 @@ module Stripe
338
338
  # The person's gender (International regulations require either "male" or "female").
339
339
  attr_accessor :gender
340
340
  # 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).
341
+ #
342
+ # 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).
341
343
  attr_accessor :id_number
342
344
  # 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).
345
+ #
346
+ # 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).
343
347
  attr_accessor :id_number_secondary
344
348
  # The person's last name.
345
349
  attr_accessor :last_name
@@ -364,6 +368,8 @@ module Stripe
364
368
  # The relationship that this person has with the account's legal entity.
365
369
  attr_accessor :relationship
366
370
  # The last four digits of the person's Social Security number (U.S. only).
371
+ #
372
+ # 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).
367
373
  attr_accessor :ssn_last_4
368
374
  # Demographic data related to the person.
369
375
  attr_accessor :us_cfpb_data
@@ -338,8 +338,12 @@ module Stripe
338
338
  # The person's gender (International regulations require either "male" or "female").
339
339
  attr_accessor :gender
340
340
  # 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).
341
+ #
342
+ # 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).
341
343
  attr_accessor :id_number
342
344
  # 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).
345
+ #
346
+ # 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).
343
347
  attr_accessor :id_number_secondary
344
348
  # The person's last name.
345
349
  attr_accessor :last_name
@@ -364,6 +368,8 @@ module Stripe
364
368
  # The relationship that this person has with the account's legal entity.
365
369
  attr_accessor :relationship
366
370
  # The last four digits of the person's Social Security number (U.S. only).
371
+ #
372
+ # 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).
367
373
  attr_accessor :ssn_last_4
368
374
  # Demographic data related to the person.
369
375
  attr_accessor :us_cfpb_data
@@ -5,11 +5,14 @@ module Stripe
5
5
  class AccountRejectParams < ::Stripe::RequestParams
6
6
  # Specifies which fields in the response should be expanded.
7
7
  attr_accessor :expand
8
+ # Whether to pause payouts on the account as part of the rejection. Defaults to `pause`. Use `none` to leave payouts enabled.
9
+ attr_accessor :payouts_action
8
10
  # The reason for rejecting the account. Can be `fraud`, `terms_of_service`, or `other`.
9
11
  attr_accessor :reason
10
12
 
11
- def initialize(expand: nil, reason: nil)
13
+ def initialize(expand: nil, payouts_action: nil, reason: nil)
12
14
  @expand = expand
15
+ @payouts_action = payouts_action
13
16
  @reason = reason
14
17
  end
15
18
  end
@@ -203,17 +203,21 @@ module Stripe
203
203
  attr_accessor :dispute_management
204
204
  # Whether sending refunds is enabled. This is `true` by default.
205
205
  attr_accessor :refund_management
206
+ # Whether to allow connected accounts to submit disputes using Smart Disputes. Defaults to the value of `dispute_management`.
207
+ attr_accessor :smart_disputes_management
206
208
 
207
209
  def initialize(
208
210
  capture_payments: nil,
209
211
  destination_on_behalf_of_charge_management: nil,
210
212
  dispute_management: nil,
211
- refund_management: nil
213
+ refund_management: nil,
214
+ smart_disputes_management: nil
212
215
  )
213
216
  @capture_payments = capture_payments
214
217
  @destination_on_behalf_of_charge_management = destination_on_behalf_of_charge_management
215
218
  @dispute_management = dispute_management
216
219
  @refund_management = refund_management
220
+ @smart_disputes_management = smart_disputes_management
217
221
  end
218
222
  end
219
223
  # Whether the embedded component is enabled.
@@ -442,17 +446,21 @@ module Stripe
442
446
  attr_accessor :dispute_management
443
447
  # Whether sending refunds is enabled. This is `true` by default.
444
448
  attr_accessor :refund_management
449
+ # Whether to allow connected accounts to submit disputes using Smart Disputes. Defaults to the value of `dispute_management`.
450
+ attr_accessor :smart_disputes_management
445
451
 
446
452
  def initialize(
447
453
  capture_payments: nil,
448
454
  destination_on_behalf_of_charge_management: nil,
449
455
  dispute_management: nil,
450
- refund_management: nil
456
+ refund_management: nil,
457
+ smart_disputes_management: nil
451
458
  )
452
459
  @capture_payments = capture_payments
453
460
  @destination_on_behalf_of_charge_management = destination_on_behalf_of_charge_management
454
461
  @dispute_management = dispute_management
455
462
  @refund_management = refund_management
463
+ @smart_disputes_management = smart_disputes_management
456
464
  end
457
465
  end
458
466
  # Whether the embedded component is enabled.
@@ -474,15 +482,19 @@ module Stripe
474
482
  attr_accessor :dispute_management
475
483
  # Whether sending refunds is enabled. This is `true` by default.
476
484
  attr_accessor :refund_management
485
+ # Whether to allow connected accounts to submit disputes using Smart Disputes. Defaults to the value of `dispute_management`.
486
+ attr_accessor :smart_disputes_management
477
487
 
478
488
  def initialize(
479
489
  destination_on_behalf_of_charge_management: nil,
480
490
  dispute_management: nil,
481
- refund_management: nil
491
+ refund_management: nil,
492
+ smart_disputes_management: nil
482
493
  )
483
494
  @destination_on_behalf_of_charge_management = destination_on_behalf_of_charge_management
484
495
  @dispute_management = dispute_management
485
496
  @refund_management = refund_management
497
+ @smart_disputes_management = smart_disputes_management
486
498
  end
487
499
  end
488
500
  # Whether the embedded component is enabled.
@@ -519,17 +531,21 @@ module Stripe
519
531
  attr_accessor :dispute_management
520
532
  # Whether sending refunds is enabled. This is `true` by default.
521
533
  attr_accessor :refund_management
534
+ # Whether to allow connected accounts to submit disputes using Smart Disputes. Defaults to the value of `dispute_management`.
535
+ attr_accessor :smart_disputes_management
522
536
 
523
537
  def initialize(
524
538
  capture_payments: nil,
525
539
  destination_on_behalf_of_charge_management: nil,
526
540
  dispute_management: nil,
527
- refund_management: nil
541
+ refund_management: nil,
542
+ smart_disputes_management: nil
528
543
  )
529
544
  @capture_payments = capture_payments
530
545
  @destination_on_behalf_of_charge_management = destination_on_behalf_of_charge_management
531
546
  @dispute_management = dispute_management
532
547
  @refund_management = refund_management
548
+ @smart_disputes_management = smart_disputes_management
533
549
  end
534
550
  end
535
551
  # Whether the embedded component is enabled.
@@ -0,0 +1,13 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ class AccountUnrejectParams < ::Stripe::RequestParams
6
+ # Specifies which fields in the response should be expanded.
7
+ attr_accessor :expand
8
+
9
+ def initialize(expand: nil)
10
+ @expand = expand
11
+ end
12
+ end
13
+ end