stripe 14.1.0.pre.beta.1 → 15.1.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 (53) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +39 -1
  3. data/OPENAPI_VERSION +1 -1
  4. data/README.md +3 -3
  5. data/VERSION +1 -1
  6. data/lib/stripe/api_operations/save.rb +2 -1
  7. data/lib/stripe/api_operations/singleton_save.rb +2 -1
  8. data/lib/stripe/api_requestor.rb +3 -1
  9. data/lib/stripe/api_resource.rb +10 -3
  10. data/lib/stripe/object_types.rb +3 -0
  11. data/lib/stripe/request_options.rb +2 -1
  12. data/lib/stripe/resources/account.rb +10 -0
  13. data/lib/stripe/resources/account_session.rb +52 -0
  14. data/lib/stripe/resources/balance_settings.rb +1 -1
  15. data/lib/stripe/resources/checkout/session.rb +35 -3
  16. data/lib/stripe/resources/confirmation_token.rb +3 -3
  17. data/lib/stripe/resources/invoice.rb +1 -1
  18. data/lib/stripe/resources/login_link.rb +2 -1
  19. data/lib/stripe/resources/payment_attempt_record.rb +4 -4
  20. data/lib/stripe/resources/payment_intent.rb +9 -9
  21. data/lib/stripe/resources/payment_method.rb +3 -3
  22. data/lib/stripe/resources/payment_method_domain.rb +13 -0
  23. data/lib/stripe/resources/payment_record.rb +6 -6
  24. data/lib/stripe/resources/privacy/redaction_job.rb +251 -0
  25. data/lib/stripe/resources/privacy/redaction_job_root_objects.rb +35 -0
  26. data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +54 -0
  27. data/lib/stripe/resources/setup_intent.rb +9 -9
  28. data/lib/stripe/resources/subscription.rb +3 -3
  29. data/lib/stripe/resources/tax/registration.rb +20 -0
  30. data/lib/stripe/resources.rb +3 -0
  31. data/lib/stripe/services/account_service.rb +8 -0
  32. data/lib/stripe/services/account_session_service.rb +52 -0
  33. data/lib/stripe/services/checkout/session_service.rb +23 -2
  34. data/lib/stripe/services/external_account_service.rb +112 -0
  35. data/lib/stripe/services/invoice_service.rb +1 -1
  36. data/lib/stripe/services/payment_intent_service.rb +9 -9
  37. data/lib/stripe/services/payment_method_service.rb +3 -3
  38. data/lib/stripe/services/payment_record_service.rb +2 -2
  39. data/lib/stripe/services/privacy/redaction_job_service.rb +231 -0
  40. data/lib/stripe/services/privacy/redaction_job_validation_error_service.rb +57 -0
  41. data/lib/stripe/services/privacy_service.rb +13 -0
  42. data/lib/stripe/services/setup_intent_service.rb +9 -9
  43. data/lib/stripe/services/subscription_service.rb +2 -2
  44. data/lib/stripe/services/tax/registration_service.rb +13 -0
  45. data/lib/stripe/services/test_helpers/confirmation_token_service.rb +3 -3
  46. data/lib/stripe/services/v1_services.rb +2 -1
  47. data/lib/stripe/services/v2/core/event_service.rb +5 -3
  48. data/lib/stripe/services.rb +3 -0
  49. data/lib/stripe/stripe_object.rb +13 -3
  50. data/lib/stripe/util.rb +11 -0
  51. data/lib/stripe/version.rb +1 -1
  52. data/rbi/stripe.rbi +973 -91
  53. metadata +8 -2
@@ -49,6 +49,17 @@ module Stripe
49
49
  attr_reader :status_details
50
50
  end
51
51
 
52
+ class Klarna < Stripe::StripeObject
53
+ class StatusDetails < Stripe::StripeObject
54
+ # The error message associated with the status of the payment method on the domain.
55
+ attr_reader :error_message
56
+ end
57
+ # The status of the payment method on the domain.
58
+ attr_reader :status
59
+ # Contains additional details about the status of a payment method for a specific payment method domain.
60
+ attr_reader :status_details
61
+ end
62
+
52
63
  class Link < Stripe::StripeObject
53
64
  class StatusDetails < Stripe::StripeObject
54
65
  # The error message associated with the status of the payment method on the domain.
@@ -152,6 +163,8 @@ module Stripe
152
163
  # Unique identifier for the object.
153
164
  attr_reader :id
154
165
  # Indicates the status of a specific payment method on a payment method domain.
166
+ attr_reader :klarna
167
+ # Indicates the status of a specific payment method on a payment method domain.
155
168
  attr_reader :link
156
169
  # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
157
170
  attr_reader :livemode
@@ -15,28 +15,28 @@ module Stripe
15
15
  class AmountCanceled < Stripe::StripeObject
16
16
  # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
17
17
  attr_reader :currency
18
- # A positive integer representing the amount in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) e.g., 100 cents for $1.00 or 100 for ¥100, a zero-decimal currency).
18
+ # A positive integer representing the amount in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) for example, 100 cents for 1 USD or 100 for 100 JPY, a zero-decimal currency.
19
19
  attr_reader :value
20
20
  end
21
21
 
22
22
  class AmountFailed < Stripe::StripeObject
23
23
  # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
24
24
  attr_reader :currency
25
- # A positive integer representing the amount in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) e.g., 100 cents for $1.00 or 100 for ¥100, a zero-decimal currency).
25
+ # A positive integer representing the amount in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) for example, 100 cents for 1 USD or 100 for 100 JPY, a zero-decimal currency.
26
26
  attr_reader :value
27
27
  end
28
28
 
29
29
  class AmountGuaranteed < Stripe::StripeObject
30
30
  # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
31
31
  attr_reader :currency
32
- # A positive integer representing the amount in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) e.g., 100 cents for $1.00 or 100 for ¥100, a zero-decimal currency).
32
+ # A positive integer representing the amount in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) for example, 100 cents for 1 USD or 100 for 100 JPY, a zero-decimal currency.
33
33
  attr_reader :value
34
34
  end
35
35
 
36
36
  class AmountRequested < Stripe::StripeObject
37
37
  # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
38
38
  attr_reader :currency
39
- # A positive integer representing the amount in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) e.g., 100 cents for $1.00 or 100 for ¥100, a zero-decimal currency).
39
+ # A positive integer representing the amount in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) for example, 100 cents for 1 USD or 100 for 100 JPY, a zero-decimal currency.
40
40
  attr_reader :value
41
41
  end
42
42
 
@@ -1248,7 +1248,7 @@ module Stripe
1248
1248
  class AmountRequested < Stripe::RequestParams
1249
1249
  # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
1250
1250
  attr_accessor :currency
1251
- # A positive integer representing the amount in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) e.g., 100 cents for $1.00 or 100 for ¥100, a zero-decimal currency).
1251
+ # A positive integer representing the amount in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) for example, 100 cents for 1 USD or 100 for 100 JPY, a zero-decimal currency.
1252
1252
  attr_accessor :value
1253
1253
 
1254
1254
  def initialize(currency: nil, value: nil)
@@ -1414,7 +1414,7 @@ module Stripe
1414
1414
  @phone = phone
1415
1415
  end
1416
1416
  end
1417
- # The amount you intend to collect for this payment.
1417
+ # The amount you initially requested for this payment.
1418
1418
  attr_accessor :amount_requested
1419
1419
  # Customer information for this payment.
1420
1420
  attr_accessor :customer_details
@@ -0,0 +1,251 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Privacy
6
+ # Redaction Jobs store the status of a redaction request. They are created
7
+ # when a redaction request is made and track the redaction validation and execution.
8
+ class RedactionJob < APIResource
9
+ extend Stripe::APIOperations::Create
10
+ extend Stripe::APIOperations::List
11
+ include Stripe::APIOperations::Save
12
+
13
+ OBJECT_NAME = "privacy.redaction_job"
14
+ def self.object_name
15
+ "privacy.redaction_job"
16
+ end
17
+
18
+ class ListParams < Stripe::RequestParams
19
+ # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
20
+ attr_accessor :ending_before
21
+ # Specifies which fields in the response should be expanded.
22
+ attr_accessor :expand
23
+ # A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
24
+ attr_accessor :limit
25
+ # A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
26
+ attr_accessor :starting_after
27
+ # Attribute for param field status
28
+ attr_accessor :status
29
+
30
+ def initialize(
31
+ ending_before: nil,
32
+ expand: nil,
33
+ limit: nil,
34
+ starting_after: nil,
35
+ status: nil
36
+ )
37
+ @ending_before = ending_before
38
+ @expand = expand
39
+ @limit = limit
40
+ @starting_after = starting_after
41
+ @status = status
42
+ end
43
+ end
44
+
45
+ class CreateParams < Stripe::RequestParams
46
+ class Objects < Stripe::RequestParams
47
+ # Attribute for param field charges
48
+ attr_accessor :charges
49
+ # Attribute for param field checkout_sessions
50
+ attr_accessor :checkout_sessions
51
+ # Attribute for param field customers
52
+ attr_accessor :customers
53
+ # Attribute for param field identity_verification_sessions
54
+ attr_accessor :identity_verification_sessions
55
+ # Attribute for param field invoices
56
+ attr_accessor :invoices
57
+ # Attribute for param field issuing_cardholders
58
+ attr_accessor :issuing_cardholders
59
+ # Attribute for param field issuing_cards
60
+ attr_accessor :issuing_cards
61
+ # Attribute for param field payment_intents
62
+ attr_accessor :payment_intents
63
+ # Attribute for param field radar_value_list_items
64
+ attr_accessor :radar_value_list_items
65
+ # Attribute for param field setup_intents
66
+ attr_accessor :setup_intents
67
+
68
+ def initialize(
69
+ charges: nil,
70
+ checkout_sessions: nil,
71
+ customers: nil,
72
+ identity_verification_sessions: nil,
73
+ invoices: nil,
74
+ issuing_cardholders: nil,
75
+ issuing_cards: nil,
76
+ payment_intents: nil,
77
+ radar_value_list_items: nil,
78
+ setup_intents: nil
79
+ )
80
+ @charges = charges
81
+ @checkout_sessions = checkout_sessions
82
+ @customers = customers
83
+ @identity_verification_sessions = identity_verification_sessions
84
+ @invoices = invoices
85
+ @issuing_cardholders = issuing_cardholders
86
+ @issuing_cards = issuing_cards
87
+ @payment_intents = payment_intents
88
+ @radar_value_list_items = radar_value_list_items
89
+ @setup_intents = setup_intents
90
+ end
91
+ end
92
+ # Specifies which fields in the response should be expanded.
93
+ attr_accessor :expand
94
+ # The objects at the root level that are subject to redaction.
95
+ attr_accessor :objects
96
+ # Default is "error". If "error", we will make sure all objects in the graph are
97
+ # redactable in the 1st traversal, otherwise error. If "fix", where possible, we will
98
+ # auto-fix any validation errors (e.g. by auto-transitioning objects to a terminal
99
+ # state, etc.) in the 2nd traversal before redacting
100
+ attr_accessor :validation_behavior
101
+
102
+ def initialize(expand: nil, objects: nil, validation_behavior: nil)
103
+ @expand = expand
104
+ @objects = objects
105
+ @validation_behavior = validation_behavior
106
+ end
107
+ end
108
+
109
+ class UpdateParams < Stripe::RequestParams
110
+ # Specifies which fields in the response should be expanded.
111
+ attr_accessor :expand
112
+ # Attribute for param field validation_behavior
113
+ attr_accessor :validation_behavior
114
+
115
+ def initialize(expand: nil, validation_behavior: nil)
116
+ @expand = expand
117
+ @validation_behavior = validation_behavior
118
+ end
119
+ end
120
+
121
+ class CancelParams < Stripe::RequestParams
122
+ # Specifies which fields in the response should be expanded.
123
+ attr_accessor :expand
124
+
125
+ def initialize(expand: nil)
126
+ @expand = expand
127
+ end
128
+ end
129
+
130
+ class RunParams < Stripe::RequestParams
131
+ # Specifies which fields in the response should be expanded.
132
+ attr_accessor :expand
133
+
134
+ def initialize(expand: nil)
135
+ @expand = expand
136
+ end
137
+ end
138
+
139
+ class ValidateParams < Stripe::RequestParams
140
+ # Specifies which fields in the response should be expanded.
141
+ attr_accessor :expand
142
+
143
+ def initialize(expand: nil)
144
+ @expand = expand
145
+ end
146
+ end
147
+ # Time at which the object was created. Measured in seconds since the Unix epoch.
148
+ attr_reader :created
149
+ # Unique identifier for the object.
150
+ attr_reader :id
151
+ # String representing the object's type. Objects of the same type share the same value.
152
+ attr_reader :object
153
+ # The objects at the root level that are subject to redaction.
154
+ attr_reader :objects
155
+ # The status field represents the current state of the redaction job. It can take on any of the following values: VALIDATING, READY, REDACTING, SUCCEEDED, CANCELED, FAILED.
156
+ attr_reader :status
157
+ # Default is "error". If "error", we will make sure all objects in the graph are redactable in the 1st traversal, otherwise error. If "fix", where possible, we will auto-fix any validation errors (e.g. by auto-transitioning objects to a terminal state, etc.) in the 2nd traversal before redacting
158
+ attr_reader :validation_behavior
159
+
160
+ # Cancel redaction job method
161
+ def cancel(params = {}, opts = {})
162
+ request_stripe_object(
163
+ method: :post,
164
+ path: format("/v1/privacy/redaction_jobs/%<job>s/cancel", { job: CGI.escape(self["id"]) }),
165
+ params: params,
166
+ opts: opts
167
+ )
168
+ end
169
+
170
+ # Cancel redaction job method
171
+ def self.cancel(job, params = {}, opts = {})
172
+ request_stripe_object(
173
+ method: :post,
174
+ path: format("/v1/privacy/redaction_jobs/%<job>s/cancel", { job: CGI.escape(job) }),
175
+ params: params,
176
+ opts: opts
177
+ )
178
+ end
179
+
180
+ # Create redaction job method
181
+ def self.create(params = {}, opts = {})
182
+ request_stripe_object(
183
+ method: :post,
184
+ path: "/v1/privacy/redaction_jobs",
185
+ params: params,
186
+ opts: opts
187
+ )
188
+ end
189
+
190
+ # List redaction jobs method...
191
+ def self.list(params = {}, opts = {})
192
+ request_stripe_object(
193
+ method: :get,
194
+ path: "/v1/privacy/redaction_jobs",
195
+ params: params,
196
+ opts: opts
197
+ )
198
+ end
199
+
200
+ # Run redaction job method
201
+ def run(params = {}, opts = {})
202
+ request_stripe_object(
203
+ method: :post,
204
+ path: format("/v1/privacy/redaction_jobs/%<job>s/run", { job: CGI.escape(self["id"]) }),
205
+ params: params,
206
+ opts: opts
207
+ )
208
+ end
209
+
210
+ # Run redaction job method
211
+ def self.run(job, params = {}, opts = {})
212
+ request_stripe_object(
213
+ method: :post,
214
+ path: format("/v1/privacy/redaction_jobs/%<job>s/run", { job: CGI.escape(job) }),
215
+ params: params,
216
+ opts: opts
217
+ )
218
+ end
219
+
220
+ # Update redaction job method
221
+ def self.update(job, params = {}, opts = {})
222
+ request_stripe_object(
223
+ method: :post,
224
+ path: format("/v1/privacy/redaction_jobs/%<job>s", { job: CGI.escape(job) }),
225
+ params: params,
226
+ opts: opts
227
+ )
228
+ end
229
+
230
+ # Validate redaction job method
231
+ def validate(params = {}, opts = {})
232
+ request_stripe_object(
233
+ method: :post,
234
+ path: format("/v1/privacy/redaction_jobs/%<job>s/validate", { job: CGI.escape(self["id"]) }),
235
+ params: params,
236
+ opts: opts
237
+ )
238
+ end
239
+
240
+ # Validate redaction job method
241
+ def self.validate(job, params = {}, opts = {})
242
+ request_stripe_object(
243
+ method: :post,
244
+ path: format("/v1/privacy/redaction_jobs/%<job>s/validate", { job: CGI.escape(job) }),
245
+ params: params,
246
+ opts: opts
247
+ )
248
+ end
249
+ end
250
+ end
251
+ end
@@ -0,0 +1,35 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Privacy
6
+ # The objects to redact, grouped by type. All redactable objects associated with these objects will be redacted as well.
7
+ class RedactionJobRootObjects < APIResource
8
+ OBJECT_NAME = "privacy.redaction_job_root_objects"
9
+ def self.object_name
10
+ "privacy.redaction_job_root_objects"
11
+ end
12
+
13
+ # Attribute for field charges
14
+ attr_reader :charges
15
+ # Attribute for field checkout_sessions
16
+ attr_reader :checkout_sessions
17
+ # Attribute for field customers
18
+ attr_reader :customers
19
+ # Attribute for field identity_verification_sessions
20
+ attr_reader :identity_verification_sessions
21
+ # Attribute for field invoices
22
+ attr_reader :invoices
23
+ # Attribute for field issuing_cardholders
24
+ attr_reader :issuing_cardholders
25
+ # String representing the object's type. Objects of the same type share the same value.
26
+ attr_reader :object
27
+ # Attribute for field payment_intents
28
+ attr_reader :payment_intents
29
+ # Attribute for field radar_value_list_items
30
+ attr_reader :radar_value_list_items
31
+ # Attribute for field setup_intents
32
+ attr_reader :setup_intents
33
+ end
34
+ end
35
+ end
@@ -0,0 +1,54 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Privacy
6
+ # Validation errors
7
+ class RedactionJobValidationError < APIResource
8
+ extend Stripe::APIOperations::List
9
+
10
+ OBJECT_NAME = "privacy.redaction_job_validation_error"
11
+ def self.object_name
12
+ "privacy.redaction_job_validation_error"
13
+ end
14
+
15
+ class ListParams < Stripe::RequestParams
16
+ # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
17
+ attr_accessor :ending_before
18
+ # Specifies which fields in the response should be expanded.
19
+ attr_accessor :expand
20
+ # A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
21
+ attr_accessor :limit
22
+ # A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
23
+ attr_accessor :starting_after
24
+
25
+ def initialize(ending_before: nil, expand: nil, limit: nil, starting_after: nil)
26
+ @ending_before = ending_before
27
+ @expand = expand
28
+ @limit = limit
29
+ @starting_after = starting_after
30
+ end
31
+ end
32
+ # Attribute for field code
33
+ attr_reader :code
34
+ # Attribute for field erroring_object
35
+ attr_reader :erroring_object
36
+ # Unique identifier for the object.
37
+ attr_reader :id
38
+ # Attribute for field message
39
+ attr_reader :message
40
+ # String representing the object's type. Objects of the same type share the same value.
41
+ attr_reader :object
42
+
43
+ # List validation errors method
44
+ def self.list(job, params = {}, opts = {})
45
+ request_stripe_object(
46
+ method: :get,
47
+ path: format("/v1/privacy/redaction_jobs/%<job>s/validation_errors", { job: CGI.escape(job) }),
48
+ params: params,
49
+ opts: opts
50
+ )
51
+ end
52
+ end
53
+ end
54
+ end
@@ -890,7 +890,7 @@ module Stripe
890
890
  attr_accessor :bacs_debit
891
891
  # If this is a `bancontact` PaymentMethod, this hash contains details about the Bancontact payment method.
892
892
  attr_accessor :bancontact
893
- # If this is a `billie` PaymentMethod, this hash contains details about the billie payment method.
893
+ # If this is a `billie` PaymentMethod, this hash contains details about the Billie payment method.
894
894
  attr_accessor :billie
895
895
  # Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
896
896
  attr_accessor :billing_details
@@ -964,11 +964,11 @@ module Stripe
964
964
  attr_accessor :radar_options
965
965
  # If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
966
966
  attr_accessor :rechnung
967
- # If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
967
+ # If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
968
968
  attr_accessor :revolut_pay
969
969
  # If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
970
970
  attr_accessor :samsung_pay
971
- # If this is a `satispay` PaymentMethod, this hash contains details about the satispay payment method.
971
+ # If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method.
972
972
  attr_accessor :satispay
973
973
  # If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
974
974
  attr_accessor :sepa_debit
@@ -2103,7 +2103,7 @@ module Stripe
2103
2103
  attr_accessor :bacs_debit
2104
2104
  # If this is a `bancontact` PaymentMethod, this hash contains details about the Bancontact payment method.
2105
2105
  attr_accessor :bancontact
2106
- # If this is a `billie` PaymentMethod, this hash contains details about the billie payment method.
2106
+ # If this is a `billie` PaymentMethod, this hash contains details about the Billie payment method.
2107
2107
  attr_accessor :billie
2108
2108
  # Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
2109
2109
  attr_accessor :billing_details
@@ -2177,11 +2177,11 @@ module Stripe
2177
2177
  attr_accessor :radar_options
2178
2178
  # If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
2179
2179
  attr_accessor :rechnung
2180
- # If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
2180
+ # If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
2181
2181
  attr_accessor :revolut_pay
2182
2182
  # If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
2183
2183
  attr_accessor :samsung_pay
2184
- # If this is a `satispay` PaymentMethod, this hash contains details about the satispay payment method.
2184
+ # If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method.
2185
2185
  attr_accessor :satispay
2186
2186
  # If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
2187
2187
  attr_accessor :sepa_debit
@@ -3316,7 +3316,7 @@ module Stripe
3316
3316
  attr_accessor :bacs_debit
3317
3317
  # If this is a `bancontact` PaymentMethod, this hash contains details about the Bancontact payment method.
3318
3318
  attr_accessor :bancontact
3319
- # If this is a `billie` PaymentMethod, this hash contains details about the billie payment method.
3319
+ # If this is a `billie` PaymentMethod, this hash contains details about the Billie payment method.
3320
3320
  attr_accessor :billie
3321
3321
  # Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
3322
3322
  attr_accessor :billing_details
@@ -3390,11 +3390,11 @@ module Stripe
3390
3390
  attr_accessor :radar_options
3391
3391
  # If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
3392
3392
  attr_accessor :rechnung
3393
- # If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
3393
+ # If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
3394
3394
  attr_accessor :revolut_pay
3395
3395
  # If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
3396
3396
  attr_accessor :samsung_pay
3397
- # If this is a `satispay` PaymentMethod, this hash contains details about the satispay payment method.
3397
+ # If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method.
3398
3398
  attr_accessor :satispay
3399
3399
  # If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
3400
3400
  attr_accessor :sepa_debit
@@ -1059,7 +1059,7 @@ module Stripe
1059
1059
  attr_accessor :current_period_start
1060
1060
  # The ID of the customer whose subscriptions will be retrieved.
1061
1061
  attr_accessor :customer
1062
- # Attribute for param field customer_account
1062
+ # The ID of the account whose subscriptions will be retrieved.
1063
1063
  attr_accessor :customer_account
1064
1064
  # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
1065
1065
  attr_accessor :ending_before
@@ -1714,7 +1714,7 @@ module Stripe
1714
1714
  attr_accessor :currency
1715
1715
  # The identifier of the customer to subscribe.
1716
1716
  attr_accessor :customer
1717
- # Attribute for param field customer_account
1717
+ # The identifier of the account to subscribe.
1718
1718
  attr_accessor :customer_account
1719
1719
  # Number of days a customer has to pay invoices generated by this subscription. Valid only for subscriptions where `collection_method` is set to `send_invoice`.
1720
1720
  attr_accessor :days_until_due
@@ -1910,7 +1910,7 @@ module Stripe
1910
1910
  attr_reader :currency
1911
1911
  # ID of the customer who owns the subscription.
1912
1912
  attr_reader :customer
1913
- # Attribute for field customer_account
1913
+ # ID of the account who owns the subscription.
1914
1914
  attr_reader :customer_account
1915
1915
  # Number of days a customer has to pay invoices generated by this subscription. This value will be `null` for subscriptions where `collection_method=charge_automatically`.
1916
1916
  attr_reader :days_until_due
@@ -300,6 +300,11 @@ module Stripe
300
300
  attr_reader :type
301
301
  end
302
302
 
303
+ class In < Stripe::StripeObject
304
+ # Type of registration in `country`.
305
+ attr_reader :type
306
+ end
307
+
303
308
  class Is < Stripe::StripeObject
304
309
  # Type of registration in `country`.
305
310
  attr_reader :type
@@ -718,6 +723,8 @@ module Stripe
718
723
  attr_reader :id
719
724
  # Attribute for field ie
720
725
  attr_reader :ie
726
+ # Attribute for field in
727
+ attr_reader :in
721
728
  # Attribute for field is
722
729
  attr_reader :is
723
730
  # Attribute for field it
@@ -1356,6 +1363,15 @@ module Stripe
1356
1363
  end
1357
1364
  end
1358
1365
 
1366
+ class In < Stripe::RequestParams
1367
+ # Type of registration to be created in `country`.
1368
+ attr_accessor :type
1369
+
1370
+ def initialize(type: nil)
1371
+ @type = type
1372
+ end
1373
+ end
1374
+
1359
1375
  class Is < Stripe::RequestParams
1360
1376
  # Type of registration to be created in `country`.
1361
1377
  attr_accessor :type
@@ -2057,6 +2073,8 @@ module Stripe
2057
2073
  attr_accessor :id
2058
2074
  # Options for the registration in IE.
2059
2075
  attr_accessor :ie
2076
+ # Options for the registration in IN.
2077
+ attr_accessor :in
2060
2078
  # Options for the registration in IS.
2061
2079
  attr_accessor :is
2062
2080
  # Options for the registration in IT.
@@ -2194,6 +2212,7 @@ module Stripe
2194
2212
  hu: nil,
2195
2213
  id: nil,
2196
2214
  ie: nil,
2215
+ in_: nil,
2197
2216
  is: nil,
2198
2217
  it: nil,
2199
2218
  jp: nil,
@@ -2281,6 +2300,7 @@ module Stripe
2281
2300
  @hu = hu
2282
2301
  @id = id
2283
2302
  @ie = ie
2303
+ @in = in_
2284
2304
  @is = is
2285
2305
  @it = it
2286
2306
  @jp = jp
@@ -103,6 +103,9 @@ require "stripe/resources/payout"
103
103
  require "stripe/resources/person"
104
104
  require "stripe/resources/plan"
105
105
  require "stripe/resources/price"
106
+ require "stripe/resources/privacy/redaction_job"
107
+ require "stripe/resources/privacy/redaction_job_root_objects"
108
+ require "stripe/resources/privacy/redaction_job_validation_error"
106
109
  require "stripe/resources/product"
107
110
  require "stripe/resources/product_feature"
108
111
  require "stripe/resources/promotion_code"
@@ -125,6 +125,8 @@ module Stripe
125
125
  attr_accessor :estimated_worker_count
126
126
  # [The merchant category code for the account](/connect/setting-mcc). MCCs are used to classify businesses based on the goods or services they provide.
127
127
  attr_accessor :mcc
128
+ # Whether the business is a minority-owned, women-owned, and/or LGBTQI+-owned business.
129
+ attr_accessor :minority_owned_business_designation
128
130
  # An estimate of the monthly revenue of the business. Only accepted for accounts in Brazil and India.
129
131
  attr_accessor :monthly_estimated_revenue
130
132
  # The customer-facing business name.
@@ -146,6 +148,7 @@ module Stripe
146
148
  annual_revenue: nil,
147
149
  estimated_worker_count: nil,
148
150
  mcc: nil,
151
+ minority_owned_business_designation: nil,
149
152
  monthly_estimated_revenue: nil,
150
153
  name: nil,
151
154
  product_description: nil,
@@ -158,6 +161,7 @@ module Stripe
158
161
  @annual_revenue = annual_revenue
159
162
  @estimated_worker_count = estimated_worker_count
160
163
  @mcc = mcc
164
+ @minority_owned_business_designation = minority_owned_business_designation
161
165
  @monthly_estimated_revenue = monthly_estimated_revenue
162
166
  @name = name
163
167
  @product_description = product_description
@@ -2372,6 +2376,8 @@ module Stripe
2372
2376
  attr_accessor :estimated_worker_count
2373
2377
  # [The merchant category code for the account](/connect/setting-mcc). MCCs are used to classify businesses based on the goods or services they provide.
2374
2378
  attr_accessor :mcc
2379
+ # Whether the business is a minority-owned, women-owned, and/or LGBTQI+-owned business.
2380
+ attr_accessor :minority_owned_business_designation
2375
2381
  # An estimate of the monthly revenue of the business. Only accepted for accounts in Brazil and India.
2376
2382
  attr_accessor :monthly_estimated_revenue
2377
2383
  # The customer-facing business name.
@@ -2393,6 +2399,7 @@ module Stripe
2393
2399
  annual_revenue: nil,
2394
2400
  estimated_worker_count: nil,
2395
2401
  mcc: nil,
2402
+ minority_owned_business_designation: nil,
2396
2403
  monthly_estimated_revenue: nil,
2397
2404
  name: nil,
2398
2405
  product_description: nil,
@@ -2405,6 +2412,7 @@ module Stripe
2405
2412
  @annual_revenue = annual_revenue
2406
2413
  @estimated_worker_count = estimated_worker_count
2407
2414
  @mcc = mcc
2415
+ @minority_owned_business_designation = minority_owned_business_designation
2408
2416
  @monthly_estimated_revenue = monthly_estimated_revenue
2409
2417
  @name = name
2410
2418
  @product_description = product_description