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
@@ -205,6 +205,20 @@ module Stripe
205
205
  end
206
206
  end
207
207
 
208
+ class ExportTaxTransactions < Stripe::RequestParams
209
+ class Features < Stripe::RequestParams
210
+ end
211
+ # Whether the embedded component is enabled.
212
+ attr_accessor :enabled
213
+ # The list of features enabled in the embedded component.
214
+ attr_accessor :features
215
+
216
+ def initialize(enabled: nil, features: nil)
217
+ @enabled = enabled
218
+ @features = features
219
+ end
220
+ end
221
+
208
222
  class FinancialAccount < Stripe::RequestParams
209
223
  class Features < Stripe::RequestParams
210
224
  # Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don’t set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false.
@@ -391,6 +405,36 @@ module Stripe
391
405
  end
392
406
  end
393
407
 
408
+ class PaymentDisputes < Stripe::RequestParams
409
+ class Features < Stripe::RequestParams
410
+ # Whether to allow connected accounts to manage destination charges that are created on behalf of them. This is `false` by default.
411
+ attr_accessor :destination_on_behalf_of_charge_management
412
+ # Whether to allow responding to disputes, including submitting evidence and accepting disputes. This is `true` by default.
413
+ attr_accessor :dispute_management
414
+ # Whether to allow sending refunds. This is `true` by default.
415
+ attr_accessor :refund_management
416
+
417
+ def initialize(
418
+ destination_on_behalf_of_charge_management: nil,
419
+ dispute_management: nil,
420
+ refund_management: nil
421
+ )
422
+ @destination_on_behalf_of_charge_management = destination_on_behalf_of_charge_management
423
+ @dispute_management = dispute_management
424
+ @refund_management = refund_management
425
+ end
426
+ end
427
+ # Whether the embedded component is enabled.
428
+ attr_accessor :enabled
429
+ # The list of features enabled in the embedded component.
430
+ attr_accessor :features
431
+
432
+ def initialize(enabled: nil, features: nil)
433
+ @enabled = enabled
434
+ @features = features
435
+ end
436
+ end
437
+
394
438
  class PaymentMethodSettings < Stripe::RequestParams
395
439
  class Features < Stripe::RequestParams
396
440
  end
@@ -600,6 +644,8 @@ module Stripe
600
644
  attr_accessor :capital_overview
601
645
  # Configuration for the documents embedded component.
602
646
  attr_accessor :documents
647
+ # Configuration for the export tax transactions embedded component.
648
+ attr_accessor :export_tax_transactions
603
649
  # Configuration for the financial account embedded component.
604
650
  attr_accessor :financial_account
605
651
  # Configuration for the financial account transactions embedded component.
@@ -612,6 +658,8 @@ module Stripe
612
658
  attr_accessor :notification_banner
613
659
  # Configuration for the payment details embedded component.
614
660
  attr_accessor :payment_details
661
+ # Configuration for the payment disputes embedded component.
662
+ attr_accessor :payment_disputes
615
663
  # Configuration for the payment method settings embedded component.
616
664
  attr_accessor :payment_method_settings
617
665
  # Configuration for the payments embedded component.
@@ -644,12 +692,14 @@ module Stripe
644
692
  capital_financing_promotion: nil,
645
693
  capital_overview: nil,
646
694
  documents: nil,
695
+ export_tax_transactions: nil,
647
696
  financial_account: nil,
648
697
  financial_account_transactions: nil,
649
698
  issuing_card: nil,
650
699
  issuing_cards_list: nil,
651
700
  notification_banner: nil,
652
701
  payment_details: nil,
702
+ payment_disputes: nil,
653
703
  payment_method_settings: nil,
654
704
  payments: nil,
655
705
  payouts: nil,
@@ -671,12 +721,14 @@ module Stripe
671
721
  @capital_financing_promotion = capital_financing_promotion
672
722
  @capital_overview = capital_overview
673
723
  @documents = documents
724
+ @export_tax_transactions = export_tax_transactions
674
725
  @financial_account = financial_account
675
726
  @financial_account_transactions = financial_account_transactions
676
727
  @issuing_card = issuing_card
677
728
  @issuing_cards_list = issuing_cards_list
678
729
  @notification_banner = notification_banner
679
730
  @payment_details = payment_details
731
+ @payment_disputes = payment_disputes
680
732
  @payment_method_settings = payment_method_settings
681
733
  @payments = payments
682
734
  @payouts = payouts
@@ -2073,6 +2073,23 @@ module Stripe
2073
2073
  @required = required
2074
2074
  end
2075
2075
  end
2076
+
2077
+ class WalletOptions < Stripe::RequestParams
2078
+ class Link < Stripe::RequestParams
2079
+ # Specifies whether Checkout should display Link as a payment option. By default, Checkout will display all the supported wallets that the Checkout Session was created with. This is the `auto` behavior, and it is the default choice.
2080
+ attr_accessor :display
2081
+
2082
+ def initialize(display: nil)
2083
+ @display = display
2084
+ end
2085
+ end
2086
+ # contains details about the Link wallet options.
2087
+ attr_accessor :link
2088
+
2089
+ def initialize(link: nil)
2090
+ @link = link
2091
+ end
2092
+ end
2076
2093
  # Settings for price localization with [Adaptive Pricing](https://docs.stripe.com/payments/checkout/adaptive-pricing).
2077
2094
  attr_accessor :adaptive_pricing
2078
2095
  # Configure actions after a Checkout Session has expired.
@@ -2186,7 +2203,7 @@ module Stripe
2186
2203
  attr_accessor :payment_method_types
2187
2204
  # This property is used to set up permissions for various actions (e.g., update) on the CheckoutSession object.
2188
2205
  #
2189
- # For specific permissions, please refer to their dedicated subsections, such as `permissions.update.shipping_details`.
2206
+ # For specific permissions, please refer to their dedicated subsections, such as `permissions.update_shipping_details`.
2190
2207
  attr_accessor :permissions
2191
2208
  # Controls phone number collection settings for the session.
2192
2209
  #
@@ -2224,6 +2241,8 @@ module Stripe
2224
2241
  attr_accessor :tax_id_collection
2225
2242
  # The UI mode of the Session. Defaults to `hosted`.
2226
2243
  attr_accessor :ui_mode
2244
+ # Wallet-specific configuration.
2245
+ attr_accessor :wallet_options
2227
2246
 
2228
2247
  def initialize(
2229
2248
  adaptive_pricing: nil,
@@ -2269,7 +2288,8 @@ module Stripe
2269
2288
  subscription_data: nil,
2270
2289
  success_url: nil,
2271
2290
  tax_id_collection: nil,
2272
- ui_mode: nil
2291
+ ui_mode: nil,
2292
+ wallet_options: nil
2273
2293
  )
2274
2294
  @adaptive_pricing = adaptive_pricing
2275
2295
  @after_expiration = after_expiration
@@ -2315,6 +2335,7 @@ module Stripe
2315
2335
  @success_url = success_url
2316
2336
  @tax_id_collection = tax_id_collection
2317
2337
  @ui_mode = ui_mode
2338
+ @wallet_options = wallet_options
2318
2339
  end
2319
2340
  end
2320
2341
 
@@ -124,6 +124,118 @@ module Stripe
124
124
  end
125
125
 
126
126
  class CreateParams < Stripe::RequestParams
127
+ class BankAccount < Stripe::RequestParams
128
+ # Attribute for param field object
129
+ attr_accessor :object
130
+ # The name of the person or business that owns the bank account.This field is required when attaching the bank account to a `Customer` object.
131
+ attr_accessor :account_holder_name
132
+ # The type of entity that holds the account. It can be `company` or `individual`. This field is required when attaching the bank account to a `Customer` object.
133
+ attr_accessor :account_holder_type
134
+ # The account number for the bank account, in string form. Must be a checking account.
135
+ attr_accessor :account_number
136
+ # The country in which the bank account is located.
137
+ attr_accessor :country
138
+ # The currency the bank account is in. This must be a country/currency pairing that [Stripe supports.](docs/payouts)
139
+ attr_accessor :currency
140
+ # The routing number, sort code, or other country-appropriateinstitution number for the bank account. For US bank accounts, this is required and should bethe ACH routing number, not the wire routing number. If you are providing an IBAN for`account_number`, this field is not required.
141
+ attr_accessor :routing_number
142
+
143
+ def initialize(
144
+ object: nil,
145
+ account_holder_name: nil,
146
+ account_holder_type: nil,
147
+ account_number: nil,
148
+ country: nil,
149
+ currency: nil,
150
+ routing_number: nil
151
+ )
152
+ @object = object
153
+ @account_holder_name = account_holder_name
154
+ @account_holder_type = account_holder_type
155
+ @account_number = account_number
156
+ @country = country
157
+ @currency = currency
158
+ @routing_number = routing_number
159
+ end
160
+ end
161
+
162
+ class Card < Stripe::RequestParams
163
+ # Attribute for param field object
164
+ attr_accessor :object
165
+ # Attribute for param field address_city
166
+ attr_accessor :address_city
167
+ # Attribute for param field address_country
168
+ attr_accessor :address_country
169
+ # Attribute for param field address_line1
170
+ attr_accessor :address_line1
171
+ # Attribute for param field address_line2
172
+ attr_accessor :address_line2
173
+ # Attribute for param field address_state
174
+ attr_accessor :address_state
175
+ # Attribute for param field address_zip
176
+ attr_accessor :address_zip
177
+ # Attribute for param field currency
178
+ attr_accessor :currency
179
+ # Attribute for param field cvc
180
+ attr_accessor :cvc
181
+ # Attribute for param field exp_month
182
+ attr_accessor :exp_month
183
+ # Attribute for param field exp_year
184
+ attr_accessor :exp_year
185
+ # Attribute for param field name
186
+ attr_accessor :name
187
+ # Attribute for param field number
188
+ attr_accessor :number
189
+ # 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.
190
+ attr_accessor :metadata
191
+
192
+ def initialize(
193
+ object: nil,
194
+ address_city: nil,
195
+ address_country: nil,
196
+ address_line1: nil,
197
+ address_line2: nil,
198
+ address_state: nil,
199
+ address_zip: nil,
200
+ currency: nil,
201
+ cvc: nil,
202
+ exp_month: nil,
203
+ exp_year: nil,
204
+ name: nil,
205
+ number: nil,
206
+ metadata: nil
207
+ )
208
+ @object = object
209
+ @address_city = address_city
210
+ @address_country = address_country
211
+ @address_line1 = address_line1
212
+ @address_line2 = address_line2
213
+ @address_state = address_state
214
+ @address_zip = address_zip
215
+ @currency = currency
216
+ @cvc = cvc
217
+ @exp_month = exp_month
218
+ @exp_year = exp_year
219
+ @name = name
220
+ @number = number
221
+ @metadata = metadata
222
+ end
223
+ end
224
+
225
+ class CardToken < Stripe::RequestParams
226
+ # Attribute for param field object
227
+ attr_accessor :object
228
+ # Attribute for param field currency
229
+ attr_accessor :currency
230
+ # Attribute for param field token
231
+ attr_accessor :token
232
+
233
+ def initialize(object: nil, currency: nil, token: nil)
234
+ @object = object
235
+ @currency = currency
236
+ @token = token
237
+ end
238
+ end
127
239
  # When set to true, or if this is the first external account added in this currency, this account becomes the default external account for its currency.
128
240
  attr_accessor :default_for_currency
129
241
  # Specifies which fields in the response should be expanded.
@@ -685,7 +685,7 @@ module Stripe
685
685
  attr_accessor :created
686
686
  # Only return invoices for the customer specified by this customer ID.
687
687
  attr_accessor :customer
688
- # Attribute for param field customer_account
688
+ # Only return invoices for the account specified by this account ID.
689
689
  attr_accessor :customer_account
690
690
  # Attribute for param field due_date
691
691
  attr_accessor :due_date
@@ -1240,7 +1240,7 @@ module Stripe
1240
1240
  attr_accessor :bacs_debit
1241
1241
  # If this is a `bancontact` PaymentMethod, this hash contains details about the Bancontact payment method.
1242
1242
  attr_accessor :bancontact
1243
- # If this is a `billie` PaymentMethod, this hash contains details about the billie payment method.
1243
+ # If this is a `billie` PaymentMethod, this hash contains details about the Billie payment method.
1244
1244
  attr_accessor :billie
1245
1245
  # Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
1246
1246
  attr_accessor :billing_details
@@ -1314,11 +1314,11 @@ module Stripe
1314
1314
  attr_accessor :radar_options
1315
1315
  # If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
1316
1316
  attr_accessor :rechnung
1317
- # If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
1317
+ # If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
1318
1318
  attr_accessor :revolut_pay
1319
1319
  # If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
1320
1320
  attr_accessor :samsung_pay
1321
- # If this is a `satispay` PaymentMethod, this hash contains details about the satispay payment method.
1321
+ # If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method.
1322
1322
  attr_accessor :satispay
1323
1323
  # If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
1324
1324
  attr_accessor :sepa_debit
@@ -4740,7 +4740,7 @@ module Stripe
4740
4740
  attr_accessor :bacs_debit
4741
4741
  # If this is a `bancontact` PaymentMethod, this hash contains details about the Bancontact payment method.
4742
4742
  attr_accessor :bancontact
4743
- # If this is a `billie` PaymentMethod, this hash contains details about the billie payment method.
4743
+ # If this is a `billie` PaymentMethod, this hash contains details about the Billie payment method.
4744
4744
  attr_accessor :billie
4745
4745
  # Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
4746
4746
  attr_accessor :billing_details
@@ -4814,11 +4814,11 @@ module Stripe
4814
4814
  attr_accessor :radar_options
4815
4815
  # If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
4816
4816
  attr_accessor :rechnung
4817
- # If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
4817
+ # If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
4818
4818
  attr_accessor :revolut_pay
4819
4819
  # If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
4820
4820
  attr_accessor :samsung_pay
4821
- # If this is a `satispay` PaymentMethod, this hash contains details about the satispay payment method.
4821
+ # If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method.
4822
4822
  attr_accessor :satispay
4823
4823
  # If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
4824
4824
  attr_accessor :sepa_debit
@@ -8960,7 +8960,7 @@ module Stripe
8960
8960
  attr_accessor :bacs_debit
8961
8961
  # If this is a `bancontact` PaymentMethod, this hash contains details about the Bancontact payment method.
8962
8962
  attr_accessor :bancontact
8963
- # If this is a `billie` PaymentMethod, this hash contains details about the billie payment method.
8963
+ # If this is a `billie` PaymentMethod, this hash contains details about the Billie payment method.
8964
8964
  attr_accessor :billie
8965
8965
  # Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
8966
8966
  attr_accessor :billing_details
@@ -9034,11 +9034,11 @@ module Stripe
9034
9034
  attr_accessor :radar_options
9035
9035
  # If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
9036
9036
  attr_accessor :rechnung
9037
- # If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
9037
+ # If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
9038
9038
  attr_accessor :revolut_pay
9039
9039
  # If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
9040
9040
  attr_accessor :samsung_pay
9041
- # If this is a `satispay` PaymentMethod, this hash contains details about the satispay payment method.
9041
+ # If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method.
9042
9042
  attr_accessor :satispay
9043
9043
  # If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
9044
9044
  attr_accessor :sepa_debit
@@ -515,7 +515,7 @@ module Stripe
515
515
  attr_accessor :bacs_debit
516
516
  # If this is a `bancontact` PaymentMethod, this hash contains details about the Bancontact payment method.
517
517
  attr_accessor :bancontact
518
- # If this is a `billie` PaymentMethod, this hash contains details about the billie payment method.
518
+ # If this is a `billie` PaymentMethod, this hash contains details about the Billie payment method.
519
519
  attr_accessor :billie
520
520
  # Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
521
521
  attr_accessor :billing_details
@@ -597,11 +597,11 @@ module Stripe
597
597
  attr_accessor :radar_options
598
598
  # If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
599
599
  attr_accessor :rechnung
600
- # If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
600
+ # If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
601
601
  attr_accessor :revolut_pay
602
602
  # If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
603
603
  attr_accessor :samsung_pay
604
- # If this is a `satispay` PaymentMethod, this hash contains details about the satispay payment method.
604
+ # If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method.
605
605
  attr_accessor :satispay
606
606
  # If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
607
607
  attr_accessor :sepa_debit
@@ -243,7 +243,7 @@ module Stripe
243
243
  class AmountRequested < Stripe::RequestParams
244
244
  # 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).
245
245
  attr_accessor :currency
246
- # 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).
246
+ # 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.
247
247
  attr_accessor :value
248
248
 
249
249
  def initialize(currency: nil, value: nil)
@@ -409,7 +409,7 @@ module Stripe
409
409
  @phone = phone
410
410
  end
411
411
  end
412
- # The amount you intend to collect for this payment.
412
+ # The amount you initially requested for this payment.
413
413
  attr_accessor :amount_requested
414
414
  # Customer information for this payment.
415
415
  attr_accessor :customer_details
@@ -0,0 +1,231 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Privacy
6
+ class RedactionJobService < StripeService
7
+ attr_reader :validation_errors
8
+
9
+ def initialize(requestor)
10
+ super(requestor)
11
+ @validation_errors = Stripe::Privacy::RedactionJobValidationErrorService.new(@requestor)
12
+ end
13
+
14
+ class ListParams < Stripe::RequestParams
15
+ # 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.
16
+ attr_accessor :ending_before
17
+ # Specifies which fields in the response should be expanded.
18
+ attr_accessor :expand
19
+ # A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
20
+ attr_accessor :limit
21
+ # 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.
22
+ attr_accessor :starting_after
23
+ # Attribute for param field status
24
+ attr_accessor :status
25
+
26
+ def initialize(
27
+ ending_before: nil,
28
+ expand: nil,
29
+ limit: nil,
30
+ starting_after: nil,
31
+ status: nil
32
+ )
33
+ @ending_before = ending_before
34
+ @expand = expand
35
+ @limit = limit
36
+ @starting_after = starting_after
37
+ @status = status
38
+ end
39
+ end
40
+
41
+ class CreateParams < Stripe::RequestParams
42
+ class Objects < Stripe::RequestParams
43
+ # Attribute for param field charges
44
+ attr_accessor :charges
45
+ # Attribute for param field checkout_sessions
46
+ attr_accessor :checkout_sessions
47
+ # Attribute for param field customers
48
+ attr_accessor :customers
49
+ # Attribute for param field identity_verification_sessions
50
+ attr_accessor :identity_verification_sessions
51
+ # Attribute for param field invoices
52
+ attr_accessor :invoices
53
+ # Attribute for param field issuing_cardholders
54
+ attr_accessor :issuing_cardholders
55
+ # Attribute for param field issuing_cards
56
+ attr_accessor :issuing_cards
57
+ # Attribute for param field payment_intents
58
+ attr_accessor :payment_intents
59
+ # Attribute for param field radar_value_list_items
60
+ attr_accessor :radar_value_list_items
61
+ # Attribute for param field setup_intents
62
+ attr_accessor :setup_intents
63
+
64
+ def initialize(
65
+ charges: nil,
66
+ checkout_sessions: nil,
67
+ customers: nil,
68
+ identity_verification_sessions: nil,
69
+ invoices: nil,
70
+ issuing_cardholders: nil,
71
+ issuing_cards: nil,
72
+ payment_intents: nil,
73
+ radar_value_list_items: nil,
74
+ setup_intents: nil
75
+ )
76
+ @charges = charges
77
+ @checkout_sessions = checkout_sessions
78
+ @customers = customers
79
+ @identity_verification_sessions = identity_verification_sessions
80
+ @invoices = invoices
81
+ @issuing_cardholders = issuing_cardholders
82
+ @issuing_cards = issuing_cards
83
+ @payment_intents = payment_intents
84
+ @radar_value_list_items = radar_value_list_items
85
+ @setup_intents = setup_intents
86
+ end
87
+ end
88
+ # Specifies which fields in the response should be expanded.
89
+ attr_accessor :expand
90
+ # The objects at the root level that are subject to redaction.
91
+ attr_accessor :objects
92
+ # Default is "error". If "error", we will make sure all objects in the graph are
93
+ # redactable in the 1st traversal, otherwise error. If "fix", where possible, we will
94
+ # auto-fix any validation errors (e.g. by auto-transitioning objects to a terminal
95
+ # state, etc.) in the 2nd traversal before redacting
96
+ attr_accessor :validation_behavior
97
+
98
+ def initialize(expand: nil, objects: nil, validation_behavior: nil)
99
+ @expand = expand
100
+ @objects = objects
101
+ @validation_behavior = validation_behavior
102
+ end
103
+ end
104
+
105
+ class RetrieveParams < Stripe::RequestParams
106
+ # Specifies which fields in the response should be expanded.
107
+ attr_accessor :expand
108
+
109
+ def initialize(expand: nil)
110
+ @expand = expand
111
+ end
112
+ end
113
+
114
+ class UpdateParams < Stripe::RequestParams
115
+ # Specifies which fields in the response should be expanded.
116
+ attr_accessor :expand
117
+ # Attribute for param field validation_behavior
118
+ attr_accessor :validation_behavior
119
+
120
+ def initialize(expand: nil, validation_behavior: nil)
121
+ @expand = expand
122
+ @validation_behavior = validation_behavior
123
+ end
124
+ end
125
+
126
+ class CancelParams < Stripe::RequestParams
127
+ # Specifies which fields in the response should be expanded.
128
+ attr_accessor :expand
129
+
130
+ def initialize(expand: nil)
131
+ @expand = expand
132
+ end
133
+ end
134
+
135
+ class RunParams < Stripe::RequestParams
136
+ # Specifies which fields in the response should be expanded.
137
+ attr_accessor :expand
138
+
139
+ def initialize(expand: nil)
140
+ @expand = expand
141
+ end
142
+ end
143
+
144
+ class ValidateParams < Stripe::RequestParams
145
+ # Specifies which fields in the response should be expanded.
146
+ attr_accessor :expand
147
+
148
+ def initialize(expand: nil)
149
+ @expand = expand
150
+ end
151
+ end
152
+
153
+ # Cancel redaction job method
154
+ def cancel(job, params = {}, opts = {})
155
+ request(
156
+ method: :post,
157
+ path: format("/v1/privacy/redaction_jobs/%<job>s/cancel", { job: CGI.escape(job) }),
158
+ params: params,
159
+ opts: opts,
160
+ base_address: :api
161
+ )
162
+ end
163
+
164
+ # Create redaction job method
165
+ def create(params = {}, opts = {})
166
+ request(
167
+ method: :post,
168
+ path: "/v1/privacy/redaction_jobs",
169
+ params: params,
170
+ opts: opts,
171
+ base_address: :api
172
+ )
173
+ end
174
+
175
+ # List redaction jobs method...
176
+ def list(params = {}, opts = {})
177
+ request(
178
+ method: :get,
179
+ path: "/v1/privacy/redaction_jobs",
180
+ params: params,
181
+ opts: opts,
182
+ base_address: :api
183
+ )
184
+ end
185
+
186
+ # Retrieve redaction job method
187
+ def retrieve(job, params = {}, opts = {})
188
+ request(
189
+ method: :get,
190
+ path: format("/v1/privacy/redaction_jobs/%<job>s", { job: CGI.escape(job) }),
191
+ params: params,
192
+ opts: opts,
193
+ base_address: :api
194
+ )
195
+ end
196
+
197
+ # Run redaction job method
198
+ def run(job, params = {}, opts = {})
199
+ request(
200
+ method: :post,
201
+ path: format("/v1/privacy/redaction_jobs/%<job>s/run", { job: CGI.escape(job) }),
202
+ params: params,
203
+ opts: opts,
204
+ base_address: :api
205
+ )
206
+ end
207
+
208
+ # Update redaction job method
209
+ def update(job, params = {}, opts = {})
210
+ request(
211
+ method: :post,
212
+ path: format("/v1/privacy/redaction_jobs/%<job>s", { job: CGI.escape(job) }),
213
+ params: params,
214
+ opts: opts,
215
+ base_address: :api
216
+ )
217
+ end
218
+
219
+ # Validate redaction job method
220
+ def validate(job, params = {}, opts = {})
221
+ request(
222
+ method: :post,
223
+ path: format("/v1/privacy/redaction_jobs/%<job>s/validate", { job: CGI.escape(job) }),
224
+ params: params,
225
+ opts: opts,
226
+ base_address: :api
227
+ )
228
+ end
229
+ end
230
+ end
231
+ end