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
@@ -898,6 +898,8 @@ module Stripe
898
898
  #
899
899
  # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
900
900
  attr_reader :setup_future_usage
901
+ # 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.
902
+ attr_reader :target_date
901
903
  # Bank account verification method.
902
904
  attr_reader :verification_method
903
905
  end
@@ -971,6 +973,8 @@ module Stripe
971
973
  #
972
974
  # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
973
975
  attr_reader :setup_future_usage
976
+ # 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.
977
+ attr_reader :target_date
974
978
  end
975
979
 
976
980
  class BacsDebit < Stripe::StripeObject
@@ -988,6 +992,8 @@ module Stripe
988
992
  #
989
993
  # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
990
994
  attr_reader :setup_future_usage
995
+ # 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.
996
+ attr_reader :target_date
991
997
  end
992
998
 
993
999
  class Bancontact < Stripe::StripeObject
@@ -1580,6 +1586,8 @@ module Stripe
1580
1586
  #
1581
1587
  # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
1582
1588
  attr_reader :setup_future_usage
1589
+ # 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.
1590
+ attr_reader :target_date
1583
1591
  end
1584
1592
 
1585
1593
  class Shopeepay < Stripe::StripeObject
@@ -1673,6 +1681,8 @@ module Stripe
1673
1681
  #
1674
1682
  # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
1675
1683
  attr_reader :setup_future_usage
1684
+ # 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.
1685
+ attr_reader :target_date
1676
1686
  # Bank account verification method.
1677
1687
  attr_reader :verification_method
1678
1688
  end
@@ -1855,11 +1865,11 @@ module Stripe
1855
1865
  end
1856
1866
 
1857
1867
  class TransferData < Stripe::StripeObject
1858
- # Amount intended to be collected by this PaymentIntent. A positive integer representing how much to charge in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The minimum amount is $0.50 US or [equivalent in charge currency](https://stripe.com/docs/currencies#minimum-and-maximum-charge-amounts). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99).
1868
+ # The amount transferred to the destination account. This transfer will occur automatically after the payment succeeds. If no amount is specified, by default the entire payment amount is transferred to the destination account.
1869
+ # The amount must be less than or equal to the [amount](https://stripe.com/docs/api/payment_intents/object#payment_intent_object-amount), and must be a positive integer
1870
+ # representing how much to transfer in the smallest currency unit (e.g., 100 cents to charge $1.00).
1859
1871
  attr_reader :amount
1860
- # The account (if any) that the payment is attributed to for tax
1861
- # reporting, and where funds from the payment are transferred to after
1862
- # payment success.
1872
+ # The account (if any) that the payment is attributed to for tax reporting, and where funds from the payment are transferred to after payment success.
1863
1873
  attr_reader :destination
1864
1874
  end
1865
1875
 
@@ -3295,12 +3305,20 @@ module Stripe
3295
3305
  #
3296
3306
  # 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`.
3297
3307
  attr_accessor :setup_future_usage
3308
+ # 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.
3309
+ attr_accessor :target_date
3298
3310
  # Bank account verification method.
3299
3311
  attr_accessor :verification_method
3300
3312
 
3301
- def initialize(mandate_options: nil, setup_future_usage: nil, verification_method: nil)
3313
+ def initialize(
3314
+ mandate_options: nil,
3315
+ setup_future_usage: nil,
3316
+ target_date: nil,
3317
+ verification_method: nil
3318
+ )
3302
3319
  @mandate_options = mandate_options
3303
3320
  @setup_future_usage = setup_future_usage
3321
+ @target_date = target_date
3304
3322
  @verification_method = verification_method
3305
3323
  end
3306
3324
  end
@@ -3423,9 +3441,12 @@ module Stripe
3423
3441
  #
3424
3442
  # 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`.
3425
3443
  attr_accessor :setup_future_usage
3444
+ # 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.
3445
+ attr_accessor :target_date
3426
3446
 
3427
- def initialize(setup_future_usage: nil)
3447
+ def initialize(setup_future_usage: nil, target_date: nil)
3428
3448
  @setup_future_usage = setup_future_usage
3449
+ @target_date = target_date
3429
3450
  end
3430
3451
  end
3431
3452
 
@@ -3450,10 +3471,13 @@ module Stripe
3450
3471
  #
3451
3472
  # 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`.
3452
3473
  attr_accessor :setup_future_usage
3474
+ # 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.
3475
+ attr_accessor :target_date
3453
3476
 
3454
- def initialize(mandate_options: nil, setup_future_usage: nil)
3477
+ def initialize(mandate_options: nil, setup_future_usage: nil, target_date: nil)
3455
3478
  @mandate_options = mandate_options
3456
3479
  @setup_future_usage = setup_future_usage
3480
+ @target_date = target_date
3457
3481
  end
3458
3482
  end
3459
3483
 
@@ -4571,10 +4595,13 @@ module Stripe
4571
4595
  #
4572
4596
  # 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`.
4573
4597
  attr_accessor :setup_future_usage
4598
+ # 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.
4599
+ attr_accessor :target_date
4574
4600
 
4575
- def initialize(mandate_options: nil, setup_future_usage: nil)
4601
+ def initialize(mandate_options: nil, setup_future_usage: nil, target_date: nil)
4576
4602
  @mandate_options = mandate_options
4577
4603
  @setup_future_usage = setup_future_usage
4604
+ @target_date = target_date
4578
4605
  end
4579
4606
  end
4580
4607
 
@@ -4735,6 +4762,8 @@ module Stripe
4735
4762
  #
4736
4763
  # 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`.
4737
4764
  attr_accessor :setup_future_usage
4765
+ # 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.
4766
+ attr_accessor :target_date
4738
4767
  # Bank account verification method.
4739
4768
  attr_accessor :verification_method
4740
4769
 
@@ -4744,6 +4773,7 @@ module Stripe
4744
4773
  networks: nil,
4745
4774
  preferred_settlement_speed: nil,
4746
4775
  setup_future_usage: nil,
4776
+ target_date: nil,
4747
4777
  verification_method: nil
4748
4778
  )
4749
4779
  @financial_connections = financial_connections
@@ -4751,6 +4781,7 @@ module Stripe
4751
4781
  @networks = networks
4752
4782
  @preferred_settlement_speed = preferred_settlement_speed
4753
4783
  @setup_future_usage = setup_future_usage
4784
+ @target_date = target_date
4754
4785
  @verification_method = verification_method
4755
4786
  end
4756
4787
  end
@@ -6630,12 +6661,20 @@ module Stripe
6630
6661
  #
6631
6662
  # 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`.
6632
6663
  attr_accessor :setup_future_usage
6664
+ # 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.
6665
+ attr_accessor :target_date
6633
6666
  # Bank account verification method.
6634
6667
  attr_accessor :verification_method
6635
6668
 
6636
- def initialize(mandate_options: nil, setup_future_usage: nil, verification_method: nil)
6669
+ def initialize(
6670
+ mandate_options: nil,
6671
+ setup_future_usage: nil,
6672
+ target_date: nil,
6673
+ verification_method: nil
6674
+ )
6637
6675
  @mandate_options = mandate_options
6638
6676
  @setup_future_usage = setup_future_usage
6677
+ @target_date = target_date
6639
6678
  @verification_method = verification_method
6640
6679
  end
6641
6680
  end
@@ -6758,9 +6797,12 @@ module Stripe
6758
6797
  #
6759
6798
  # 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`.
6760
6799
  attr_accessor :setup_future_usage
6800
+ # 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.
6801
+ attr_accessor :target_date
6761
6802
 
6762
- def initialize(setup_future_usage: nil)
6803
+ def initialize(setup_future_usage: nil, target_date: nil)
6763
6804
  @setup_future_usage = setup_future_usage
6805
+ @target_date = target_date
6764
6806
  end
6765
6807
  end
6766
6808
 
@@ -6785,10 +6827,13 @@ module Stripe
6785
6827
  #
6786
6828
  # 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`.
6787
6829
  attr_accessor :setup_future_usage
6830
+ # 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.
6831
+ attr_accessor :target_date
6788
6832
 
6789
- def initialize(mandate_options: nil, setup_future_usage: nil)
6833
+ def initialize(mandate_options: nil, setup_future_usage: nil, target_date: nil)
6790
6834
  @mandate_options = mandate_options
6791
6835
  @setup_future_usage = setup_future_usage
6836
+ @target_date = target_date
6792
6837
  end
6793
6838
  end
6794
6839
 
@@ -7906,10 +7951,13 @@ module Stripe
7906
7951
  #
7907
7952
  # 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`.
7908
7953
  attr_accessor :setup_future_usage
7954
+ # 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.
7955
+ attr_accessor :target_date
7909
7956
 
7910
- def initialize(mandate_options: nil, setup_future_usage: nil)
7957
+ def initialize(mandate_options: nil, setup_future_usage: nil, target_date: nil)
7911
7958
  @mandate_options = mandate_options
7912
7959
  @setup_future_usage = setup_future_usage
7960
+ @target_date = target_date
7913
7961
  end
7914
7962
  end
7915
7963
 
@@ -8070,6 +8118,8 @@ module Stripe
8070
8118
  #
8071
8119
  # 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`.
8072
8120
  attr_accessor :setup_future_usage
8121
+ # 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.
8122
+ attr_accessor :target_date
8073
8123
  # Bank account verification method.
8074
8124
  attr_accessor :verification_method
8075
8125
 
@@ -8079,6 +8129,7 @@ module Stripe
8079
8129
  networks: nil,
8080
8130
  preferred_settlement_speed: nil,
8081
8131
  setup_future_usage: nil,
8132
+ target_date: nil,
8082
8133
  verification_method: nil
8083
8134
  )
8084
8135
  @financial_connections = financial_connections
@@ -8086,6 +8137,7 @@ module Stripe
8086
8137
  @networks = networks
8087
8138
  @preferred_settlement_speed = preferred_settlement_speed
8088
8139
  @setup_future_usage = setup_future_usage
8140
+ @target_date = target_date
8089
8141
  @verification_method = verification_method
8090
8142
  end
8091
8143
  end
@@ -10685,12 +10737,20 @@ module Stripe
10685
10737
  #
10686
10738
  # 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`.
10687
10739
  attr_accessor :setup_future_usage
10740
+ # 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.
10741
+ attr_accessor :target_date
10688
10742
  # Bank account verification method.
10689
10743
  attr_accessor :verification_method
10690
10744
 
10691
- def initialize(mandate_options: nil, setup_future_usage: nil, verification_method: nil)
10745
+ def initialize(
10746
+ mandate_options: nil,
10747
+ setup_future_usage: nil,
10748
+ target_date: nil,
10749
+ verification_method: nil
10750
+ )
10692
10751
  @mandate_options = mandate_options
10693
10752
  @setup_future_usage = setup_future_usage
10753
+ @target_date = target_date
10694
10754
  @verification_method = verification_method
10695
10755
  end
10696
10756
  end
@@ -10813,9 +10873,12 @@ module Stripe
10813
10873
  #
10814
10874
  # 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`.
10815
10875
  attr_accessor :setup_future_usage
10876
+ # 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.
10877
+ attr_accessor :target_date
10816
10878
 
10817
- def initialize(setup_future_usage: nil)
10879
+ def initialize(setup_future_usage: nil, target_date: nil)
10818
10880
  @setup_future_usage = setup_future_usage
10881
+ @target_date = target_date
10819
10882
  end
10820
10883
  end
10821
10884
 
@@ -10840,10 +10903,13 @@ module Stripe
10840
10903
  #
10841
10904
  # 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`.
10842
10905
  attr_accessor :setup_future_usage
10906
+ # 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.
10907
+ attr_accessor :target_date
10843
10908
 
10844
- def initialize(mandate_options: nil, setup_future_usage: nil)
10909
+ def initialize(mandate_options: nil, setup_future_usage: nil, target_date: nil)
10845
10910
  @mandate_options = mandate_options
10846
10911
  @setup_future_usage = setup_future_usage
10912
+ @target_date = target_date
10847
10913
  end
10848
10914
  end
10849
10915
 
@@ -11961,10 +12027,13 @@ module Stripe
11961
12027
  #
11962
12028
  # 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`.
11963
12029
  attr_accessor :setup_future_usage
12030
+ # 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.
12031
+ attr_accessor :target_date
11964
12032
 
11965
- def initialize(mandate_options: nil, setup_future_usage: nil)
12033
+ def initialize(mandate_options: nil, setup_future_usage: nil, target_date: nil)
11966
12034
  @mandate_options = mandate_options
11967
12035
  @setup_future_usage = setup_future_usage
12036
+ @target_date = target_date
11968
12037
  end
11969
12038
  end
11970
12039
 
@@ -12125,6 +12194,8 @@ module Stripe
12125
12194
  #
12126
12195
  # 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`.
12127
12196
  attr_accessor :setup_future_usage
12197
+ # 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.
12198
+ attr_accessor :target_date
12128
12199
  # Bank account verification method.
12129
12200
  attr_accessor :verification_method
12130
12201
 
@@ -12134,6 +12205,7 @@ module Stripe
12134
12205
  networks: nil,
12135
12206
  preferred_settlement_speed: nil,
12136
12207
  setup_future_usage: nil,
12208
+ target_date: nil,
12137
12209
  verification_method: nil
12138
12210
  )
12139
12211
  @financial_connections = financial_connections
@@ -12141,6 +12213,7 @@ module Stripe
12141
12213
  @networks = networks
12142
12214
  @preferred_settlement_speed = preferred_settlement_speed
12143
12215
  @setup_future_usage = setup_future_usage
12216
+ @target_date = target_date
12144
12217
  @verification_method = verification_method
12145
12218
  end
12146
12219
  end
@@ -336,6 +336,8 @@ module Stripe
336
336
  attr_accessor :currency_options
337
337
  # When set, provides configuration for the amount to be adjusted by the customer during Checkout Sessions and Payment Links.
338
338
  attr_accessor :custom_unit_amount
339
+ # 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`.
340
+ attr_accessor :metadata
339
341
  # The recurring components of a price such as `interval` and `interval_count`.
340
342
  attr_accessor :recurring
341
343
  # Only required if a [default tax behavior](https://stripe.com/docs/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
@@ -349,6 +351,7 @@ module Stripe
349
351
  currency: nil,
350
352
  currency_options: nil,
351
353
  custom_unit_amount: nil,
354
+ metadata: nil,
352
355
  recurring: nil,
353
356
  tax_behavior: nil,
354
357
  unit_amount: nil,
@@ -357,6 +360,7 @@ module Stripe
357
360
  @currency = currency
358
361
  @currency_options = currency_options
359
362
  @custom_unit_amount = custom_unit_amount
363
+ @metadata = metadata
360
364
  @recurring = recurring
361
365
  @tax_behavior = tax_behavior
362
366
  @unit_amount = unit_amount
@@ -129,7 +129,7 @@ module Stripe
129
129
  attr_reader :flat_amount
130
130
  # The tax rate percentage as a string. For example, 8.5% is represented as `"8.5"`.
131
131
  attr_reader :percentage_decimal
132
- # Indicates the type of tax rate applied to the taxable amount. This value can be `null` when no tax applies to the location.
132
+ # Indicates the type of tax rate applied to the taxable amount. This value can be `null` when no tax applies to the location. This field is only present for TaxRates created by Stripe Tax.
133
133
  attr_reader :rate_type
134
134
  # State, county, province, or region.
135
135
  attr_reader :state
@@ -208,7 +208,7 @@ module Stripe
208
208
  attr_reader :object
209
209
  # Tax rate percentage out of 100. For tax calculations with automatic_tax[enabled]=true, this percentage includes the statutory tax rate of non-taxable jurisdictions.
210
210
  attr_reader :percentage
211
- # Indicates the type of tax rate applied to the taxable amount. This value can be `null` when no tax applies to the location.
211
+ # Indicates the type of tax rate applied to the taxable amount. This value can be `null` when no tax applies to the location. This field is only present for TaxRates created by Stripe Tax.
212
212
  attr_reader :rate_type
213
213
  # [ISO 3166-2 subdivision code](https://en.wikipedia.org/wiki/ISO_3166-2), without country prefix. For example, "NY" for New York, United States.
214
214
  attr_reader :state
@@ -704,6 +704,27 @@ module Stripe
704
704
  @type = type
705
705
  end
706
706
  end
707
+
708
+ class SucceedInputCollectionParams < Stripe::RequestParams
709
+ # Specifies which fields in the response should be expanded.
710
+ attr_accessor :expand
711
+ # Skip behavior for input collection.
712
+ attr_accessor :skip_non_required_inputs
713
+
714
+ def initialize(expand: nil, skip_non_required_inputs: nil)
715
+ @expand = expand
716
+ @skip_non_required_inputs = skip_non_required_inputs
717
+ end
718
+ end
719
+
720
+ class TimeoutInputCollectionParams < Stripe::RequestParams
721
+ # Specifies which fields in the response should be expanded.
722
+ attr_accessor :expand
723
+
724
+ def initialize(expand: nil)
725
+ @expand = expand
726
+ end
727
+ end
707
728
  # The most recent action performed by the reader.
708
729
  attr_reader :action
709
730
  # The current software version of the reader.
@@ -970,6 +991,46 @@ module Stripe
970
991
  opts: opts
971
992
  )
972
993
  end
994
+
995
+ # Succeeds an input collection on a simulated reader. Can be used to simulate collecting inputs.
996
+ def self.succeed_input_collection(reader, params = {}, opts = {})
997
+ request_stripe_object(
998
+ method: :post,
999
+ path: format("/v1/test_helpers/terminal/readers/%<reader>s/succeed_input_collection", { reader: CGI.escape(reader) }),
1000
+ params: params,
1001
+ opts: opts
1002
+ )
1003
+ end
1004
+
1005
+ # Succeeds an input collection on a simulated reader. Can be used to simulate collecting inputs.
1006
+ def succeed_input_collection(params = {}, opts = {})
1007
+ @resource.request_stripe_object(
1008
+ method: :post,
1009
+ path: format("/v1/test_helpers/terminal/readers/%<reader>s/succeed_input_collection", { reader: CGI.escape(@resource["id"]) }),
1010
+ params: params,
1011
+ opts: opts
1012
+ )
1013
+ end
1014
+
1015
+ # Completes an input collection with a timeout error on a simulated reader.
1016
+ def self.timeout_input_collection(reader, params = {}, opts = {})
1017
+ request_stripe_object(
1018
+ method: :post,
1019
+ path: format("/v1/test_helpers/terminal/readers/%<reader>s/timeout_input_collection", { reader: CGI.escape(reader) }),
1020
+ params: params,
1021
+ opts: opts
1022
+ )
1023
+ end
1024
+
1025
+ # Completes an input collection with a timeout error on a simulated reader.
1026
+ def timeout_input_collection(params = {}, opts = {})
1027
+ @resource.request_stripe_object(
1028
+ method: :post,
1029
+ path: format("/v1/test_helpers/terminal/readers/%<reader>s/timeout_input_collection", { reader: CGI.escape(@resource["id"]) }),
1030
+ params: params,
1031
+ opts: opts
1032
+ )
1033
+ end
973
1034
  end
974
1035
  end
975
1036
  end
@@ -84,7 +84,7 @@ module Stripe
84
84
  end
85
85
  # Amount of this credit grant.
86
86
  attr_accessor :amount
87
- # Configuration specifying what this credit grant applies to.
87
+ # Configuration specifying what this credit grant applies to. We currently only support `metered` prices that have a [Billing Meter](https://docs.stripe.com/api/billing/meter) attached to them.
88
88
  attr_accessor :applicability_config
89
89
  # The category of this credit grant.
90
90
  attr_accessor :category
@@ -100,6 +100,8 @@ module Stripe
100
100
  attr_accessor :metadata
101
101
  # A descriptive name shown in the Dashboard.
102
102
  attr_accessor :name
103
+ # The desired priority for applying this credit grant. If not specified, it will be set to the default value of 50. The highest priority is 0 and the lowest is 100.
104
+ attr_accessor :priority
103
105
 
104
106
  def initialize(
105
107
  amount: nil,
@@ -110,7 +112,8 @@ module Stripe
110
112
  expand: nil,
111
113
  expires_at: nil,
112
114
  metadata: nil,
113
- name: nil
115
+ name: nil,
116
+ priority: nil
114
117
  )
115
118
  @amount = amount
116
119
  @applicability_config = applicability_config
@@ -121,6 +124,7 @@ module Stripe
121
124
  @expires_at = expires_at
122
125
  @metadata = metadata
123
126
  @name = name
127
+ @priority = priority
124
128
  end
125
129
  end
126
130
 
@@ -751,6 +751,8 @@ module Stripe
751
751
  #
752
752
  # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
753
753
  attr_accessor :setup_future_usage
754
+ # 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.
755
+ attr_accessor :target_date
754
756
  # Verification method for the intent
755
757
  attr_accessor :verification_method
756
758
 
@@ -758,11 +760,13 @@ module Stripe
758
760
  currency: nil,
759
761
  mandate_options: nil,
760
762
  setup_future_usage: nil,
763
+ target_date: nil,
761
764
  verification_method: nil
762
765
  )
763
766
  @currency = currency
764
767
  @mandate_options = mandate_options
765
768
  @setup_future_usage = setup_future_usage
769
+ @target_date = target_date
766
770
  @verification_method = verification_method
767
771
  end
768
772
  end
@@ -836,9 +840,12 @@ module Stripe
836
840
  #
837
841
  # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
838
842
  attr_accessor :setup_future_usage
843
+ # 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.
844
+ attr_accessor :target_date
839
845
 
840
- def initialize(setup_future_usage: nil)
846
+ def initialize(setup_future_usage: nil, target_date: nil)
841
847
  @setup_future_usage = setup_future_usage
848
+ @target_date = target_date
842
849
  end
843
850
  end
844
851
 
@@ -861,10 +868,13 @@ module Stripe
861
868
  #
862
869
  # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
863
870
  attr_accessor :setup_future_usage
871
+ # 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.
872
+ attr_accessor :target_date
864
873
 
865
- def initialize(mandate_options: nil, setup_future_usage: nil)
874
+ def initialize(mandate_options: nil, setup_future_usage: nil, target_date: nil)
866
875
  @mandate_options = mandate_options
867
876
  @setup_future_usage = setup_future_usage
877
+ @target_date = target_date
868
878
  end
869
879
  end
870
880
 
@@ -1453,10 +1463,13 @@ module Stripe
1453
1463
  #
1454
1464
  # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
1455
1465
  attr_accessor :setup_future_usage
1466
+ # 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.
1467
+ attr_accessor :target_date
1456
1468
 
1457
- def initialize(mandate_options: nil, setup_future_usage: nil)
1469
+ def initialize(mandate_options: nil, setup_future_usage: nil, target_date: nil)
1458
1470
  @mandate_options = mandate_options
1459
1471
  @setup_future_usage = setup_future_usage
1472
+ @target_date = target_date
1460
1473
  end
1461
1474
  end
1462
1475
 
@@ -1506,16 +1519,20 @@ module Stripe
1506
1519
  #
1507
1520
  # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
1508
1521
  attr_accessor :setup_future_usage
1522
+ # 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.
1523
+ attr_accessor :target_date
1509
1524
  # Verification method for the intent
1510
1525
  attr_accessor :verification_method
1511
1526
 
1512
1527
  def initialize(
1513
1528
  financial_connections: nil,
1514
1529
  setup_future_usage: nil,
1530
+ target_date: nil,
1515
1531
  verification_method: nil
1516
1532
  )
1517
1533
  @financial_connections = financial_connections
1518
1534
  @setup_future_usage = setup_future_usage
1535
+ @target_date = target_date
1519
1536
  @verification_method = verification_method
1520
1537
  end
1521
1538
  end
@@ -113,7 +113,7 @@ module Stripe
113
113
  attr_accessor :options
114
114
  # Details provided about the user being verified. These details may be shown to the user.
115
115
  attr_accessor :provided_details
116
- # Token referencing a Customer resource.
116
+ # Customer ID
117
117
  attr_accessor :related_customer
118
118
  # The URL that the user will be redirected to upon completing the verification flow.
119
119
  attr_accessor :return_url
@@ -315,16 +315,20 @@ module Stripe
315
315
  #
316
316
  # 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`.
317
317
  attr_accessor :setup_future_usage
318
+ # 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.
319
+ attr_accessor :target_date
318
320
  # Bank account verification method.
319
321
  attr_accessor :verification_method
320
322
 
321
323
  def initialize(
322
324
  mandate_options: nil,
323
325
  setup_future_usage: nil,
326
+ target_date: nil,
324
327
  verification_method: nil
325
328
  )
326
329
  @mandate_options = mandate_options
327
330
  @setup_future_usage = setup_future_usage
331
+ @target_date = target_date
328
332
  @verification_method = verification_method
329
333
  end
330
334
  end
@@ -684,10 +688,13 @@ module Stripe
684
688
  #
685
689
  # 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`.
686
690
  attr_accessor :setup_future_usage
691
+ # 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.
692
+ attr_accessor :target_date
687
693
 
688
- def initialize(mandate_options: nil, setup_future_usage: nil)
694
+ def initialize(mandate_options: nil, setup_future_usage: nil, target_date: nil)
689
695
  @mandate_options = mandate_options
690
696
  @setup_future_usage = setup_future_usage
697
+ @target_date = target_date
691
698
  end
692
699
  end
693
700
 
@@ -1381,16 +1388,20 @@ module Stripe
1381
1388
  #
1382
1389
  # 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`.
1383
1390
  attr_accessor :setup_future_usage
1391
+ # 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.
1392
+ attr_accessor :target_date
1384
1393
  # Bank account verification method.
1385
1394
  attr_accessor :verification_method
1386
1395
 
1387
1396
  def initialize(
1388
1397
  mandate_options: nil,
1389
1398
  setup_future_usage: nil,
1399
+ target_date: nil,
1390
1400
  verification_method: nil
1391
1401
  )
1392
1402
  @mandate_options = mandate_options
1393
1403
  @setup_future_usage = setup_future_usage
1404
+ @target_date = target_date
1394
1405
  @verification_method = verification_method
1395
1406
  end
1396
1407
  end
@@ -1750,10 +1761,13 @@ module Stripe
1750
1761
  #
1751
1762
  # 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`.
1752
1763
  attr_accessor :setup_future_usage
1764
+ # 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.
1765
+ attr_accessor :target_date
1753
1766
 
1754
- def initialize(mandate_options: nil, setup_future_usage: nil)
1767
+ def initialize(mandate_options: nil, setup_future_usage: nil, target_date: nil)
1755
1768
  @mandate_options = mandate_options
1756
1769
  @setup_future_usage = setup_future_usage
1770
+ @target_date = target_date
1757
1771
  end
1758
1772
  end
1759
1773