stripe 13.5.0.pre.beta.1 → 13.6.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 (45) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +47 -34
  3. data/Gemfile +4 -0
  4. data/OPENAPI_VERSION +1 -1
  5. data/VERSION +1 -1
  6. data/lib/stripe/api_version.rb +1 -1
  7. data/lib/stripe/resources/billing/credit_grant.rb +8 -2
  8. data/lib/stripe/resources/charge.rb +1 -1
  9. data/lib/stripe/resources/checkout/session.rb +30 -3
  10. data/lib/stripe/resources/identity/verification_session.rb +2 -2
  11. data/lib/stripe/resources/invoice_line_item.rb +1 -1
  12. data/lib/stripe/resources/order.rb +20 -2
  13. data/lib/stripe/resources/payment_intent.rb +89 -16
  14. data/lib/stripe/resources/product.rb +4 -0
  15. data/lib/stripe/resources/tax/calculation.rb +1 -1
  16. data/lib/stripe/resources/tax_rate.rb +1 -1
  17. data/lib/stripe/resources/terminal/reader.rb +61 -0
  18. data/lib/stripe/services/billing/credit_grant_service.rb +6 -2
  19. data/lib/stripe/services/checkout/session_service.rb +20 -3
  20. data/lib/stripe/services/identity/verification_session_service.rb +1 -1
  21. data/lib/stripe/services/order_service.rb +16 -2
  22. data/lib/stripe/services/payment_intent_service.rb +75 -12
  23. data/lib/stripe/services/product_service.rb +4 -0
  24. data/lib/stripe/services/test_helpers/terminal/reader_service.rb +43 -0
  25. data/lib/stripe/version.rb +1 -1
  26. data/rbi/stripe/resources/account.rbi +1 -1
  27. data/rbi/stripe/resources/billing/credit_grant.rbi +10 -3
  28. data/rbi/stripe/resources/charge.rbi +1 -1
  29. data/rbi/stripe/resources/checkout/session.rbi +40 -8
  30. data/rbi/stripe/resources/identity/verification_session.rbi +2 -2
  31. data/rbi/stripe/resources/invoice_line_item.rbi +130 -33
  32. data/rbi/stripe/resources/order.rbi +26 -6
  33. data/rbi/stripe/resources/payment_intent.rbi +94 -28
  34. data/rbi/stripe/resources/product.rbi +5 -1
  35. data/rbi/stripe/resources/tax/calculation.rbi +1 -1
  36. data/rbi/stripe/resources/tax_rate.rbi +1 -1
  37. data/rbi/stripe/resources/terminal/reader.rbi +17 -0
  38. data/rbi/stripe/services/billing/credit_grant_service.rbi +7 -3
  39. data/rbi/stripe/services/checkout/session_service.rbi +25 -8
  40. data/rbi/stripe/services/identity/verification_session_service.rbi +1 -1
  41. data/rbi/stripe/services/order_service.rbi +20 -6
  42. data/rbi/stripe/services/payment_intent_service.rbi +75 -24
  43. data/rbi/stripe/services/product_service.rbi +5 -1
  44. data/rbi/stripe/services/test_helpers/terminal/reader_service.rbi +29 -0
  45. metadata +2 -2
@@ -1468,15 +1468,19 @@ module Stripe
1468
1468
  # If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
1469
1469
  sig { returns(T.nilable(String)) }
1470
1470
  attr_accessor :setup_future_usage
1471
+ # Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
1472
+ sig { returns(String) }
1473
+ attr_accessor :target_date
1471
1474
  # Bank account verification method.
1472
1475
  sig { returns(String) }
1473
1476
  attr_accessor :verification_method
1474
1477
  sig {
1475
- params(mandate_options: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::AcssDebit::MandateOptions, setup_future_usage: T.nilable(String), verification_method: String).void
1478
+ params(mandate_options: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::AcssDebit::MandateOptions, setup_future_usage: T.nilable(String), target_date: String, verification_method: String).void
1476
1479
  }
1477
1480
  def initialize(
1478
1481
  mandate_options: nil,
1479
1482
  setup_future_usage: nil,
1483
+ target_date: nil,
1480
1484
  verification_method: nil
1481
1485
  ); end
1482
1486
  end
@@ -1595,8 +1599,11 @@ module Stripe
1595
1599
  # If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
1596
1600
  sig { returns(T.nilable(String)) }
1597
1601
  attr_accessor :setup_future_usage
1598
- sig { params(setup_future_usage: T.nilable(String)).void }
1599
- def initialize(setup_future_usage: nil); end
1602
+ # Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
1603
+ sig { returns(String) }
1604
+ attr_accessor :target_date
1605
+ sig { params(setup_future_usage: T.nilable(String), target_date: String).void }
1606
+ def initialize(setup_future_usage: nil, target_date: nil); end
1600
1607
  end
1601
1608
  class BacsDebit < Stripe::RequestParams
1602
1609
  class MandateOptions < Stripe::RequestParams
@@ -1622,10 +1629,13 @@ module Stripe
1622
1629
  # If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
1623
1630
  sig { returns(T.nilable(String)) }
1624
1631
  attr_accessor :setup_future_usage
1632
+ # Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
1633
+ sig { returns(String) }
1634
+ attr_accessor :target_date
1625
1635
  sig {
1626
- params(mandate_options: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::BacsDebit::MandateOptions, setup_future_usage: T.nilable(String)).void
1636
+ params(mandate_options: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::BacsDebit::MandateOptions, setup_future_usage: T.nilable(String), target_date: String).void
1627
1637
  }
1628
- def initialize(mandate_options: nil, setup_future_usage: nil); end
1638
+ def initialize(mandate_options: nil, setup_future_usage: nil, target_date: nil); end
1629
1639
  end
1630
1640
  class Bancontact < Stripe::RequestParams
1631
1641
  # Preferred language of the Bancontact authorization page that the customer is redirected to.
@@ -2733,10 +2743,13 @@ module Stripe
2733
2743
  # If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
2734
2744
  sig { returns(T.nilable(String)) }
2735
2745
  attr_accessor :setup_future_usage
2746
+ # Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
2747
+ sig { returns(String) }
2748
+ attr_accessor :target_date
2736
2749
  sig {
2737
- params(mandate_options: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::SepaDebit::MandateOptions, setup_future_usage: T.nilable(String)).void
2750
+ params(mandate_options: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::SepaDebit::MandateOptions, setup_future_usage: T.nilable(String), target_date: String).void
2738
2751
  }
2739
- def initialize(mandate_options: nil, setup_future_usage: nil); end
2752
+ def initialize(mandate_options: nil, setup_future_usage: nil, target_date: nil); end
2740
2753
  end
2741
2754
  class Shopeepay < Stripe::RequestParams
2742
2755
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -2898,11 +2911,14 @@ module Stripe
2898
2911
  # If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
2899
2912
  sig { returns(T.nilable(String)) }
2900
2913
  attr_accessor :setup_future_usage
2914
+ # Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
2915
+ sig { returns(String) }
2916
+ attr_accessor :target_date
2901
2917
  # Bank account verification method.
2902
2918
  sig { returns(String) }
2903
2919
  attr_accessor :verification_method
2904
2920
  sig {
2905
- params(financial_connections: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::UsBankAccount::FinancialConnections, mandate_options: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::UsBankAccount::MandateOptions, networks: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::UsBankAccount::Networks, preferred_settlement_speed: T.nilable(String), setup_future_usage: T.nilable(String), verification_method: String).void
2921
+ params(financial_connections: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::UsBankAccount::FinancialConnections, mandate_options: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::UsBankAccount::MandateOptions, networks: ::Stripe::PaymentIntentService::CreateParams::PaymentMethodOptions::UsBankAccount::Networks, preferred_settlement_speed: T.nilable(String), setup_future_usage: T.nilable(String), target_date: String, verification_method: String).void
2906
2922
  }
2907
2923
  def initialize(
2908
2924
  financial_connections: nil,
@@ -2910,6 +2926,7 @@ module Stripe
2910
2926
  networks: nil,
2911
2927
  preferred_settlement_speed: nil,
2912
2928
  setup_future_usage: nil,
2929
+ target_date: nil,
2913
2930
  verification_method: nil
2914
2931
  ); end
2915
2932
  end
@@ -4920,15 +4937,19 @@ module Stripe
4920
4937
  # If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
4921
4938
  sig { returns(T.nilable(String)) }
4922
4939
  attr_accessor :setup_future_usage
4940
+ # Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
4941
+ sig { returns(String) }
4942
+ attr_accessor :target_date
4923
4943
  # Bank account verification method.
4924
4944
  sig { returns(String) }
4925
4945
  attr_accessor :verification_method
4926
4946
  sig {
4927
- params(mandate_options: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::AcssDebit::MandateOptions, setup_future_usage: T.nilable(String), verification_method: String).void
4947
+ params(mandate_options: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::AcssDebit::MandateOptions, setup_future_usage: T.nilable(String), target_date: String, verification_method: String).void
4928
4948
  }
4929
4949
  def initialize(
4930
4950
  mandate_options: nil,
4931
4951
  setup_future_usage: nil,
4952
+ target_date: nil,
4932
4953
  verification_method: nil
4933
4954
  ); end
4934
4955
  end
@@ -5047,8 +5068,11 @@ module Stripe
5047
5068
  # If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
5048
5069
  sig { returns(T.nilable(String)) }
5049
5070
  attr_accessor :setup_future_usage
5050
- sig { params(setup_future_usage: T.nilable(String)).void }
5051
- def initialize(setup_future_usage: nil); end
5071
+ # Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
5072
+ sig { returns(String) }
5073
+ attr_accessor :target_date
5074
+ sig { params(setup_future_usage: T.nilable(String), target_date: String).void }
5075
+ def initialize(setup_future_usage: nil, target_date: nil); end
5052
5076
  end
5053
5077
  class BacsDebit < Stripe::RequestParams
5054
5078
  class MandateOptions < Stripe::RequestParams
@@ -5074,10 +5098,13 @@ module Stripe
5074
5098
  # If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
5075
5099
  sig { returns(T.nilable(String)) }
5076
5100
  attr_accessor :setup_future_usage
5101
+ # Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
5102
+ sig { returns(String) }
5103
+ attr_accessor :target_date
5077
5104
  sig {
5078
- params(mandate_options: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::BacsDebit::MandateOptions, setup_future_usage: T.nilable(String)).void
5105
+ params(mandate_options: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::BacsDebit::MandateOptions, setup_future_usage: T.nilable(String), target_date: String).void
5079
5106
  }
5080
- def initialize(mandate_options: nil, setup_future_usage: nil); end
5107
+ def initialize(mandate_options: nil, setup_future_usage: nil, target_date: nil); end
5081
5108
  end
5082
5109
  class Bancontact < Stripe::RequestParams
5083
5110
  # Preferred language of the Bancontact authorization page that the customer is redirected to.
@@ -6185,10 +6212,13 @@ module Stripe
6185
6212
  # If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
6186
6213
  sig { returns(T.nilable(String)) }
6187
6214
  attr_accessor :setup_future_usage
6215
+ # Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
6216
+ sig { returns(String) }
6217
+ attr_accessor :target_date
6188
6218
  sig {
6189
- params(mandate_options: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::SepaDebit::MandateOptions, setup_future_usage: T.nilable(String)).void
6219
+ params(mandate_options: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::SepaDebit::MandateOptions, setup_future_usage: T.nilable(String), target_date: String).void
6190
6220
  }
6191
- def initialize(mandate_options: nil, setup_future_usage: nil); end
6221
+ def initialize(mandate_options: nil, setup_future_usage: nil, target_date: nil); end
6192
6222
  end
6193
6223
  class Shopeepay < Stripe::RequestParams
6194
6224
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -6350,11 +6380,14 @@ module Stripe
6350
6380
  # If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
6351
6381
  sig { returns(T.nilable(String)) }
6352
6382
  attr_accessor :setup_future_usage
6383
+ # Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
6384
+ sig { returns(String) }
6385
+ attr_accessor :target_date
6353
6386
  # Bank account verification method.
6354
6387
  sig { returns(String) }
6355
6388
  attr_accessor :verification_method
6356
6389
  sig {
6357
- params(financial_connections: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::UsBankAccount::FinancialConnections, mandate_options: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::UsBankAccount::MandateOptions, networks: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::UsBankAccount::Networks, preferred_settlement_speed: T.nilable(String), setup_future_usage: T.nilable(String), verification_method: String).void
6390
+ params(financial_connections: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::UsBankAccount::FinancialConnections, mandate_options: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::UsBankAccount::MandateOptions, networks: ::Stripe::PaymentIntentService::UpdateParams::PaymentMethodOptions::UsBankAccount::Networks, preferred_settlement_speed: T.nilable(String), setup_future_usage: T.nilable(String), target_date: String, verification_method: String).void
6358
6391
  }
6359
6392
  def initialize(
6360
6393
  financial_connections: nil,
@@ -6362,6 +6395,7 @@ module Stripe
6362
6395
  networks: nil,
6363
6396
  preferred_settlement_speed: nil,
6364
6397
  setup_future_usage: nil,
6398
+ target_date: nil,
6365
6399
  verification_method: nil
6366
6400
  ); end
6367
6401
  end
@@ -9131,15 +9165,19 @@ module Stripe
9131
9165
  # If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
9132
9166
  sig { returns(T.nilable(String)) }
9133
9167
  attr_accessor :setup_future_usage
9168
+ # Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
9169
+ sig { returns(String) }
9170
+ attr_accessor :target_date
9134
9171
  # Bank account verification method.
9135
9172
  sig { returns(String) }
9136
9173
  attr_accessor :verification_method
9137
9174
  sig {
9138
- params(mandate_options: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::AcssDebit::MandateOptions, setup_future_usage: T.nilable(String), verification_method: String).void
9175
+ params(mandate_options: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::AcssDebit::MandateOptions, setup_future_usage: T.nilable(String), target_date: String, verification_method: String).void
9139
9176
  }
9140
9177
  def initialize(
9141
9178
  mandate_options: nil,
9142
9179
  setup_future_usage: nil,
9180
+ target_date: nil,
9143
9181
  verification_method: nil
9144
9182
  ); end
9145
9183
  end
@@ -9258,8 +9296,11 @@ module Stripe
9258
9296
  # If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
9259
9297
  sig { returns(T.nilable(String)) }
9260
9298
  attr_accessor :setup_future_usage
9261
- sig { params(setup_future_usage: T.nilable(String)).void }
9262
- def initialize(setup_future_usage: nil); end
9299
+ # Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
9300
+ sig { returns(String) }
9301
+ attr_accessor :target_date
9302
+ sig { params(setup_future_usage: T.nilable(String), target_date: String).void }
9303
+ def initialize(setup_future_usage: nil, target_date: nil); end
9263
9304
  end
9264
9305
  class BacsDebit < Stripe::RequestParams
9265
9306
  class MandateOptions < Stripe::RequestParams
@@ -9285,10 +9326,13 @@ module Stripe
9285
9326
  # If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
9286
9327
  sig { returns(T.nilable(String)) }
9287
9328
  attr_accessor :setup_future_usage
9329
+ # Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
9330
+ sig { returns(String) }
9331
+ attr_accessor :target_date
9288
9332
  sig {
9289
- params(mandate_options: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::BacsDebit::MandateOptions, setup_future_usage: T.nilable(String)).void
9333
+ params(mandate_options: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::BacsDebit::MandateOptions, setup_future_usage: T.nilable(String), target_date: String).void
9290
9334
  }
9291
- def initialize(mandate_options: nil, setup_future_usage: nil); end
9335
+ def initialize(mandate_options: nil, setup_future_usage: nil, target_date: nil); end
9292
9336
  end
9293
9337
  class Bancontact < Stripe::RequestParams
9294
9338
  # Preferred language of the Bancontact authorization page that the customer is redirected to.
@@ -10396,10 +10440,13 @@ module Stripe
10396
10440
  # If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
10397
10441
  sig { returns(T.nilable(String)) }
10398
10442
  attr_accessor :setup_future_usage
10443
+ # Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
10444
+ sig { returns(String) }
10445
+ attr_accessor :target_date
10399
10446
  sig {
10400
- params(mandate_options: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::SepaDebit::MandateOptions, setup_future_usage: T.nilable(String)).void
10447
+ params(mandate_options: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::SepaDebit::MandateOptions, setup_future_usage: T.nilable(String), target_date: String).void
10401
10448
  }
10402
- def initialize(mandate_options: nil, setup_future_usage: nil); end
10449
+ def initialize(mandate_options: nil, setup_future_usage: nil, target_date: nil); end
10403
10450
  end
10404
10451
  class Shopeepay < Stripe::RequestParams
10405
10452
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -10561,11 +10608,14 @@ module Stripe
10561
10608
  # If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
10562
10609
  sig { returns(T.nilable(String)) }
10563
10610
  attr_accessor :setup_future_usage
10611
+ # Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
10612
+ sig { returns(String) }
10613
+ attr_accessor :target_date
10564
10614
  # Bank account verification method.
10565
10615
  sig { returns(String) }
10566
10616
  attr_accessor :verification_method
10567
10617
  sig {
10568
- params(financial_connections: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::UsBankAccount::FinancialConnections, mandate_options: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::UsBankAccount::MandateOptions, networks: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::UsBankAccount::Networks, preferred_settlement_speed: T.nilable(String), setup_future_usage: T.nilable(String), verification_method: String).void
10618
+ params(financial_connections: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::UsBankAccount::FinancialConnections, mandate_options: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::UsBankAccount::MandateOptions, networks: ::Stripe::PaymentIntentService::ConfirmParams::PaymentMethodOptions::UsBankAccount::Networks, preferred_settlement_speed: T.nilable(String), setup_future_usage: T.nilable(String), target_date: String, verification_method: String).void
10569
10619
  }
10570
10620
  def initialize(
10571
10621
  financial_connections: nil,
@@ -10573,6 +10623,7 @@ module Stripe
10573
10623
  networks: nil,
10574
10624
  preferred_settlement_speed: nil,
10575
10625
  setup_future_usage: nil,
10626
+ target_date: nil,
10576
10627
  verification_method: nil
10577
10628
  ); end
10578
10629
  end
@@ -284,6 +284,9 @@ module Stripe
284
284
  # When set, provides configuration for the amount to be adjusted by the customer during Checkout Sessions and Payment Links.
285
285
  sig { returns(::Stripe::ProductService::CreateParams::DefaultPriceData::CustomUnitAmount) }
286
286
  attr_accessor :custom_unit_amount
287
+ # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
288
+ sig { returns(T::Hash[String, String]) }
289
+ attr_accessor :metadata
287
290
  # The recurring components of a price such as `interval` and `interval_count`.
288
291
  sig { returns(::Stripe::ProductService::CreateParams::DefaultPriceData::Recurring) }
289
292
  attr_accessor :recurring
@@ -297,12 +300,13 @@ module Stripe
297
300
  sig { returns(String) }
298
301
  attr_accessor :unit_amount_decimal
299
302
  sig {
300
- params(currency: String, currency_options: T::Hash[String, ::Stripe::ProductService::CreateParams::DefaultPriceData::CurrencyOptions], custom_unit_amount: ::Stripe::ProductService::CreateParams::DefaultPriceData::CustomUnitAmount, recurring: ::Stripe::ProductService::CreateParams::DefaultPriceData::Recurring, tax_behavior: String, unit_amount: Integer, unit_amount_decimal: String).void
303
+ params(currency: String, currency_options: T::Hash[String, ::Stripe::ProductService::CreateParams::DefaultPriceData::CurrencyOptions], custom_unit_amount: ::Stripe::ProductService::CreateParams::DefaultPriceData::CustomUnitAmount, metadata: T::Hash[String, String], recurring: ::Stripe::ProductService::CreateParams::DefaultPriceData::Recurring, tax_behavior: String, unit_amount: Integer, unit_amount_decimal: String).void
301
304
  }
302
305
  def initialize(
303
306
  currency: nil,
304
307
  currency_options: nil,
305
308
  custom_unit_amount: nil,
309
+ metadata: nil,
306
310
  recurring: nil,
307
311
  tax_behavior: nil,
308
312
  unit_amount: nil,
@@ -51,11 +51,40 @@ module Stripe
51
51
  type: nil
52
52
  ); end
53
53
  end
54
+ class SucceedInputCollectionParams < Stripe::RequestParams
55
+ # Specifies which fields in the response should be expanded.
56
+ sig { returns(T::Array[String]) }
57
+ attr_accessor :expand
58
+ # Skip behavior for input collection.
59
+ sig { returns(String) }
60
+ attr_accessor :skip_non_required_inputs
61
+ sig { params(expand: T::Array[String], skip_non_required_inputs: String).void }
62
+ def initialize(expand: nil, skip_non_required_inputs: nil); end
63
+ end
64
+ class TimeoutInputCollectionParams < Stripe::RequestParams
65
+ # Specifies which fields in the response should be expanded.
66
+ sig { returns(T::Array[String]) }
67
+ attr_accessor :expand
68
+ sig { params(expand: T::Array[String]).void }
69
+ def initialize(expand: nil); end
70
+ end
54
71
  # Presents a payment method on a simulated reader. Can be used to simulate accepting a payment, saving a card or refunding a transaction.
55
72
  sig {
56
73
  params(reader: String, params: T.any(::Stripe::TestHelpers::Terminal::ReaderService::PresentPaymentMethodParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Reader)
57
74
  }
58
75
  def present_payment_method(reader, params = {}, opts = {}); end
76
+
77
+ # Succeeds an input collection on a simulated reader. Can be used to simulate collecting inputs.
78
+ sig {
79
+ params(reader: String, params: T.any(::Stripe::TestHelpers::Terminal::ReaderService::SucceedInputCollectionParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Reader)
80
+ }
81
+ def succeed_input_collection(reader, params = {}, opts = {}); end
82
+
83
+ # Completes an input collection with a timeout error on a simulated reader.
84
+ sig {
85
+ params(reader: String, params: T.any(::Stripe::TestHelpers::Terminal::ReaderService::TimeoutInputCollectionParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Reader)
86
+ }
87
+ def timeout_input_collection(reader, params = {}, opts = {}); end
59
88
  end
60
89
  end
61
90
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stripe
3
3
  version: !ruby/object:Gem::Version
4
- version: 13.5.0.pre.beta.1
4
+ version: 13.6.0.pre.beta.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stripe
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-02-07 00:00:00.000000000 Z
11
+ date: 2025-03-18 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Stripe is the easiest way to accept payments online. See https://stripe.com
14
14
  for details.