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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +47 -34
- data/Gemfile +4 -0
- data/OPENAPI_VERSION +1 -1
- data/VERSION +1 -1
- data/lib/stripe/api_version.rb +1 -1
- data/lib/stripe/resources/billing/credit_grant.rb +8 -2
- data/lib/stripe/resources/charge.rb +1 -1
- data/lib/stripe/resources/checkout/session.rb +30 -3
- data/lib/stripe/resources/identity/verification_session.rb +2 -2
- data/lib/stripe/resources/invoice_line_item.rb +1 -1
- data/lib/stripe/resources/order.rb +20 -2
- data/lib/stripe/resources/payment_intent.rb +89 -16
- data/lib/stripe/resources/product.rb +4 -0
- data/lib/stripe/resources/tax/calculation.rb +1 -1
- data/lib/stripe/resources/tax_rate.rb +1 -1
- data/lib/stripe/resources/terminal/reader.rb +61 -0
- data/lib/stripe/services/billing/credit_grant_service.rb +6 -2
- data/lib/stripe/services/checkout/session_service.rb +20 -3
- data/lib/stripe/services/identity/verification_session_service.rb +1 -1
- data/lib/stripe/services/order_service.rb +16 -2
- data/lib/stripe/services/payment_intent_service.rb +75 -12
- data/lib/stripe/services/product_service.rb +4 -0
- data/lib/stripe/services/test_helpers/terminal/reader_service.rb +43 -0
- data/lib/stripe/version.rb +1 -1
- data/rbi/stripe/resources/account.rbi +1 -1
- data/rbi/stripe/resources/billing/credit_grant.rbi +10 -3
- data/rbi/stripe/resources/charge.rbi +1 -1
- data/rbi/stripe/resources/checkout/session.rbi +40 -8
- data/rbi/stripe/resources/identity/verification_session.rbi +2 -2
- data/rbi/stripe/resources/invoice_line_item.rbi +130 -33
- data/rbi/stripe/resources/order.rbi +26 -6
- data/rbi/stripe/resources/payment_intent.rbi +94 -28
- data/rbi/stripe/resources/product.rbi +5 -1
- data/rbi/stripe/resources/tax/calculation.rbi +1 -1
- data/rbi/stripe/resources/tax_rate.rbi +1 -1
- data/rbi/stripe/resources/terminal/reader.rbi +17 -0
- data/rbi/stripe/services/billing/credit_grant_service.rbi +7 -3
- data/rbi/stripe/services/checkout/session_service.rbi +25 -8
- data/rbi/stripe/services/identity/verification_session_service.rbi +1 -1
- data/rbi/stripe/services/order_service.rbi +20 -6
- data/rbi/stripe/services/payment_intent_service.rbi +75 -24
- data/rbi/stripe/services/product_service.rbi +5 -1
- data/rbi/stripe/services/test_helpers/terminal/reader_service.rbi +29 -0
- metadata +2 -2
@@ -1435,12 +1435,20 @@ module Stripe
|
|
1435
1435
|
#
|
1436
1436
|
# 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`.
|
1437
1437
|
attr_accessor :setup_future_usage
|
1438
|
+
# 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.
|
1439
|
+
attr_accessor :target_date
|
1438
1440
|
# Bank account verification method.
|
1439
1441
|
attr_accessor :verification_method
|
1440
1442
|
|
1441
|
-
def initialize(
|
1443
|
+
def initialize(
|
1444
|
+
mandate_options: nil,
|
1445
|
+
setup_future_usage: nil,
|
1446
|
+
target_date: nil,
|
1447
|
+
verification_method: nil
|
1448
|
+
)
|
1442
1449
|
@mandate_options = mandate_options
|
1443
1450
|
@setup_future_usage = setup_future_usage
|
1451
|
+
@target_date = target_date
|
1444
1452
|
@verification_method = verification_method
|
1445
1453
|
end
|
1446
1454
|
end
|
@@ -1563,9 +1571,12 @@ module Stripe
|
|
1563
1571
|
#
|
1564
1572
|
# 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`.
|
1565
1573
|
attr_accessor :setup_future_usage
|
1574
|
+
# 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.
|
1575
|
+
attr_accessor :target_date
|
1566
1576
|
|
1567
|
-
def initialize(setup_future_usage: nil)
|
1577
|
+
def initialize(setup_future_usage: nil, target_date: nil)
|
1568
1578
|
@setup_future_usage = setup_future_usage
|
1579
|
+
@target_date = target_date
|
1569
1580
|
end
|
1570
1581
|
end
|
1571
1582
|
|
@@ -1590,10 +1601,13 @@ module Stripe
|
|
1590
1601
|
#
|
1591
1602
|
# 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`.
|
1592
1603
|
attr_accessor :setup_future_usage
|
1604
|
+
# 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.
|
1605
|
+
attr_accessor :target_date
|
1593
1606
|
|
1594
|
-
def initialize(mandate_options: nil, setup_future_usage: nil)
|
1607
|
+
def initialize(mandate_options: nil, setup_future_usage: nil, target_date: nil)
|
1595
1608
|
@mandate_options = mandate_options
|
1596
1609
|
@setup_future_usage = setup_future_usage
|
1610
|
+
@target_date = target_date
|
1597
1611
|
end
|
1598
1612
|
end
|
1599
1613
|
|
@@ -2711,10 +2725,13 @@ module Stripe
|
|
2711
2725
|
#
|
2712
2726
|
# 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`.
|
2713
2727
|
attr_accessor :setup_future_usage
|
2728
|
+
# 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.
|
2729
|
+
attr_accessor :target_date
|
2714
2730
|
|
2715
|
-
def initialize(mandate_options: nil, setup_future_usage: nil)
|
2731
|
+
def initialize(mandate_options: nil, setup_future_usage: nil, target_date: nil)
|
2716
2732
|
@mandate_options = mandate_options
|
2717
2733
|
@setup_future_usage = setup_future_usage
|
2734
|
+
@target_date = target_date
|
2718
2735
|
end
|
2719
2736
|
end
|
2720
2737
|
|
@@ -2875,6 +2892,8 @@ module Stripe
|
|
2875
2892
|
#
|
2876
2893
|
# 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`.
|
2877
2894
|
attr_accessor :setup_future_usage
|
2895
|
+
# 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.
|
2896
|
+
attr_accessor :target_date
|
2878
2897
|
# Bank account verification method.
|
2879
2898
|
attr_accessor :verification_method
|
2880
2899
|
|
@@ -2884,6 +2903,7 @@ module Stripe
|
|
2884
2903
|
networks: nil,
|
2885
2904
|
preferred_settlement_speed: nil,
|
2886
2905
|
setup_future_usage: nil,
|
2906
|
+
target_date: nil,
|
2887
2907
|
verification_method: nil
|
2888
2908
|
)
|
2889
2909
|
@financial_connections = financial_connections
|
@@ -2891,6 +2911,7 @@ module Stripe
|
|
2891
2911
|
@networks = networks
|
2892
2912
|
@preferred_settlement_speed = preferred_settlement_speed
|
2893
2913
|
@setup_future_usage = setup_future_usage
|
2914
|
+
@target_date = target_date
|
2894
2915
|
@verification_method = verification_method
|
2895
2916
|
end
|
2896
2917
|
end
|
@@ -4770,12 +4791,20 @@ module Stripe
|
|
4770
4791
|
#
|
4771
4792
|
# 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`.
|
4772
4793
|
attr_accessor :setup_future_usage
|
4794
|
+
# 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.
|
4795
|
+
attr_accessor :target_date
|
4773
4796
|
# Bank account verification method.
|
4774
4797
|
attr_accessor :verification_method
|
4775
4798
|
|
4776
|
-
def initialize(
|
4799
|
+
def initialize(
|
4800
|
+
mandate_options: nil,
|
4801
|
+
setup_future_usage: nil,
|
4802
|
+
target_date: nil,
|
4803
|
+
verification_method: nil
|
4804
|
+
)
|
4777
4805
|
@mandate_options = mandate_options
|
4778
4806
|
@setup_future_usage = setup_future_usage
|
4807
|
+
@target_date = target_date
|
4779
4808
|
@verification_method = verification_method
|
4780
4809
|
end
|
4781
4810
|
end
|
@@ -4898,9 +4927,12 @@ module Stripe
|
|
4898
4927
|
#
|
4899
4928
|
# 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`.
|
4900
4929
|
attr_accessor :setup_future_usage
|
4930
|
+
# 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.
|
4931
|
+
attr_accessor :target_date
|
4901
4932
|
|
4902
|
-
def initialize(setup_future_usage: nil)
|
4933
|
+
def initialize(setup_future_usage: nil, target_date: nil)
|
4903
4934
|
@setup_future_usage = setup_future_usage
|
4935
|
+
@target_date = target_date
|
4904
4936
|
end
|
4905
4937
|
end
|
4906
4938
|
|
@@ -4925,10 +4957,13 @@ module Stripe
|
|
4925
4957
|
#
|
4926
4958
|
# 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`.
|
4927
4959
|
attr_accessor :setup_future_usage
|
4960
|
+
# 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.
|
4961
|
+
attr_accessor :target_date
|
4928
4962
|
|
4929
|
-
def initialize(mandate_options: nil, setup_future_usage: nil)
|
4963
|
+
def initialize(mandate_options: nil, setup_future_usage: nil, target_date: nil)
|
4930
4964
|
@mandate_options = mandate_options
|
4931
4965
|
@setup_future_usage = setup_future_usage
|
4966
|
+
@target_date = target_date
|
4932
4967
|
end
|
4933
4968
|
end
|
4934
4969
|
|
@@ -6046,10 +6081,13 @@ module Stripe
|
|
6046
6081
|
#
|
6047
6082
|
# 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`.
|
6048
6083
|
attr_accessor :setup_future_usage
|
6084
|
+
# 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.
|
6085
|
+
attr_accessor :target_date
|
6049
6086
|
|
6050
|
-
def initialize(mandate_options: nil, setup_future_usage: nil)
|
6087
|
+
def initialize(mandate_options: nil, setup_future_usage: nil, target_date: nil)
|
6051
6088
|
@mandate_options = mandate_options
|
6052
6089
|
@setup_future_usage = setup_future_usage
|
6090
|
+
@target_date = target_date
|
6053
6091
|
end
|
6054
6092
|
end
|
6055
6093
|
|
@@ -6210,6 +6248,8 @@ module Stripe
|
|
6210
6248
|
#
|
6211
6249
|
# 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`.
|
6212
6250
|
attr_accessor :setup_future_usage
|
6251
|
+
# 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.
|
6252
|
+
attr_accessor :target_date
|
6213
6253
|
# Bank account verification method.
|
6214
6254
|
attr_accessor :verification_method
|
6215
6255
|
|
@@ -6219,6 +6259,7 @@ module Stripe
|
|
6219
6259
|
networks: nil,
|
6220
6260
|
preferred_settlement_speed: nil,
|
6221
6261
|
setup_future_usage: nil,
|
6262
|
+
target_date: nil,
|
6222
6263
|
verification_method: nil
|
6223
6264
|
)
|
6224
6265
|
@financial_connections = financial_connections
|
@@ -6226,6 +6267,7 @@ module Stripe
|
|
6226
6267
|
@networks = networks
|
6227
6268
|
@preferred_settlement_speed = preferred_settlement_speed
|
6228
6269
|
@setup_future_usage = setup_future_usage
|
6270
|
+
@target_date = target_date
|
6229
6271
|
@verification_method = verification_method
|
6230
6272
|
end
|
6231
6273
|
end
|
@@ -8825,12 +8867,20 @@ module Stripe
|
|
8825
8867
|
#
|
8826
8868
|
# 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`.
|
8827
8869
|
attr_accessor :setup_future_usage
|
8870
|
+
# 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.
|
8871
|
+
attr_accessor :target_date
|
8828
8872
|
# Bank account verification method.
|
8829
8873
|
attr_accessor :verification_method
|
8830
8874
|
|
8831
|
-
def initialize(
|
8875
|
+
def initialize(
|
8876
|
+
mandate_options: nil,
|
8877
|
+
setup_future_usage: nil,
|
8878
|
+
target_date: nil,
|
8879
|
+
verification_method: nil
|
8880
|
+
)
|
8832
8881
|
@mandate_options = mandate_options
|
8833
8882
|
@setup_future_usage = setup_future_usage
|
8883
|
+
@target_date = target_date
|
8834
8884
|
@verification_method = verification_method
|
8835
8885
|
end
|
8836
8886
|
end
|
@@ -8953,9 +9003,12 @@ module Stripe
|
|
8953
9003
|
#
|
8954
9004
|
# 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`.
|
8955
9005
|
attr_accessor :setup_future_usage
|
9006
|
+
# 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.
|
9007
|
+
attr_accessor :target_date
|
8956
9008
|
|
8957
|
-
def initialize(setup_future_usage: nil)
|
9009
|
+
def initialize(setup_future_usage: nil, target_date: nil)
|
8958
9010
|
@setup_future_usage = setup_future_usage
|
9011
|
+
@target_date = target_date
|
8959
9012
|
end
|
8960
9013
|
end
|
8961
9014
|
|
@@ -8980,10 +9033,13 @@ module Stripe
|
|
8980
9033
|
#
|
8981
9034
|
# 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`.
|
8982
9035
|
attr_accessor :setup_future_usage
|
9036
|
+
# 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.
|
9037
|
+
attr_accessor :target_date
|
8983
9038
|
|
8984
|
-
def initialize(mandate_options: nil, setup_future_usage: nil)
|
9039
|
+
def initialize(mandate_options: nil, setup_future_usage: nil, target_date: nil)
|
8985
9040
|
@mandate_options = mandate_options
|
8986
9041
|
@setup_future_usage = setup_future_usage
|
9042
|
+
@target_date = target_date
|
8987
9043
|
end
|
8988
9044
|
end
|
8989
9045
|
|
@@ -10101,10 +10157,13 @@ module Stripe
|
|
10101
10157
|
#
|
10102
10158
|
# 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`.
|
10103
10159
|
attr_accessor :setup_future_usage
|
10160
|
+
# 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.
|
10161
|
+
attr_accessor :target_date
|
10104
10162
|
|
10105
|
-
def initialize(mandate_options: nil, setup_future_usage: nil)
|
10163
|
+
def initialize(mandate_options: nil, setup_future_usage: nil, target_date: nil)
|
10106
10164
|
@mandate_options = mandate_options
|
10107
10165
|
@setup_future_usage = setup_future_usage
|
10166
|
+
@target_date = target_date
|
10108
10167
|
end
|
10109
10168
|
end
|
10110
10169
|
|
@@ -10265,6 +10324,8 @@ module Stripe
|
|
10265
10324
|
#
|
10266
10325
|
# 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`.
|
10267
10326
|
attr_accessor :setup_future_usage
|
10327
|
+
# 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.
|
10328
|
+
attr_accessor :target_date
|
10268
10329
|
# Bank account verification method.
|
10269
10330
|
attr_accessor :verification_method
|
10270
10331
|
|
@@ -10274,6 +10335,7 @@ module Stripe
|
|
10274
10335
|
networks: nil,
|
10275
10336
|
preferred_settlement_speed: nil,
|
10276
10337
|
setup_future_usage: nil,
|
10338
|
+
target_date: nil,
|
10277
10339
|
verification_method: nil
|
10278
10340
|
)
|
10279
10341
|
@financial_connections = financial_connections
|
@@ -10281,6 +10343,7 @@ module Stripe
|
|
10281
10343
|
@networks = networks
|
10282
10344
|
@preferred_settlement_speed = preferred_settlement_speed
|
10283
10345
|
@setup_future_usage = setup_future_usage
|
10346
|
+
@target_date = target_date
|
10284
10347
|
@verification_method = verification_method
|
10285
10348
|
end
|
10286
10349
|
end
|
@@ -286,6 +286,8 @@ module Stripe
|
|
286
286
|
attr_accessor :currency_options
|
287
287
|
# When set, provides configuration for the amount to be adjusted by the customer during Checkout Sessions and Payment Links.
|
288
288
|
attr_accessor :custom_unit_amount
|
289
|
+
# 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`.
|
290
|
+
attr_accessor :metadata
|
289
291
|
# The recurring components of a price such as `interval` and `interval_count`.
|
290
292
|
attr_accessor :recurring
|
291
293
|
# 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.
|
@@ -299,6 +301,7 @@ module Stripe
|
|
299
301
|
currency: nil,
|
300
302
|
currency_options: nil,
|
301
303
|
custom_unit_amount: nil,
|
304
|
+
metadata: nil,
|
302
305
|
recurring: nil,
|
303
306
|
tax_behavior: nil,
|
304
307
|
unit_amount: nil,
|
@@ -307,6 +310,7 @@ module Stripe
|
|
307
310
|
@currency = currency
|
308
311
|
@currency_options = currency_options
|
309
312
|
@custom_unit_amount = custom_unit_amount
|
313
|
+
@metadata = metadata
|
310
314
|
@recurring = recurring
|
311
315
|
@tax_behavior = tax_behavior
|
312
316
|
@unit_amount = unit_amount
|
@@ -49,6 +49,27 @@ module Stripe
|
|
49
49
|
end
|
50
50
|
end
|
51
51
|
|
52
|
+
class SucceedInputCollectionParams < Stripe::RequestParams
|
53
|
+
# Specifies which fields in the response should be expanded.
|
54
|
+
attr_accessor :expand
|
55
|
+
# Skip behavior for input collection.
|
56
|
+
attr_accessor :skip_non_required_inputs
|
57
|
+
|
58
|
+
def initialize(expand: nil, skip_non_required_inputs: nil)
|
59
|
+
@expand = expand
|
60
|
+
@skip_non_required_inputs = skip_non_required_inputs
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
class TimeoutInputCollectionParams < Stripe::RequestParams
|
65
|
+
# Specifies which fields in the response should be expanded.
|
66
|
+
attr_accessor :expand
|
67
|
+
|
68
|
+
def initialize(expand: nil)
|
69
|
+
@expand = expand
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
52
73
|
# Presents a payment method on a simulated reader. Can be used to simulate accepting a payment, saving a card or refunding a transaction.
|
53
74
|
def present_payment_method(reader, params = {}, opts = {})
|
54
75
|
request(
|
@@ -59,6 +80,28 @@ module Stripe
|
|
59
80
|
base_address: :api
|
60
81
|
)
|
61
82
|
end
|
83
|
+
|
84
|
+
# Succeeds an input collection on a simulated reader. Can be used to simulate collecting inputs.
|
85
|
+
def succeed_input_collection(reader, params = {}, opts = {})
|
86
|
+
request(
|
87
|
+
method: :post,
|
88
|
+
path: format("/v1/test_helpers/terminal/readers/%<reader>s/succeed_input_collection", { reader: CGI.escape(reader) }),
|
89
|
+
params: params,
|
90
|
+
opts: opts,
|
91
|
+
base_address: :api
|
92
|
+
)
|
93
|
+
end
|
94
|
+
|
95
|
+
# Completes an input collection with a timeout error on a simulated reader.
|
96
|
+
def timeout_input_collection(reader, params = {}, opts = {})
|
97
|
+
request(
|
98
|
+
method: :post,
|
99
|
+
path: format("/v1/test_helpers/terminal/readers/%<reader>s/timeout_input_collection", { reader: CGI.escape(reader) }),
|
100
|
+
params: params,
|
101
|
+
opts: opts,
|
102
|
+
base_address: :api
|
103
|
+
)
|
104
|
+
end
|
62
105
|
end
|
63
106
|
end
|
64
107
|
end
|
data/lib/stripe/version.rb
CHANGED
@@ -632,7 +632,7 @@ module Stripe
|
|
632
632
|
sig { returns(Payouts) }
|
633
633
|
attr_reader :payouts
|
634
634
|
# Represents the rejected reason of the account. Empty if account is not rejected, or rejected by Stripe. Please see [this page for more details](https://stripe.com/docs/connect/)
|
635
|
-
sig { returns(String) }
|
635
|
+
sig { returns(T.nilable(String)) }
|
636
636
|
attr_reader :rejected_reason
|
637
637
|
end
|
638
638
|
class Settings < Stripe::StripeObject
|
@@ -78,6 +78,9 @@ module Stripe
|
|
78
78
|
# String representing the object's type. Objects of the same type share the same value.
|
79
79
|
sig { returns(String) }
|
80
80
|
attr_reader :object
|
81
|
+
# The priority for applying this credit grant. The highest priority is 0 and the lowest is 100.
|
82
|
+
sig { returns(T.nilable(Integer)) }
|
83
|
+
attr_reader :priority
|
81
84
|
# ID of the test clock this credit grant belongs to.
|
82
85
|
sig { returns(T.nilable(T.any(String, Stripe::TestHelpers::TestClock))) }
|
83
86
|
attr_reader :test_clock
|
@@ -170,7 +173,7 @@ module Stripe
|
|
170
173
|
# Amount of this credit grant.
|
171
174
|
sig { returns(::Stripe::Billing::CreditGrant::CreateParams::Amount) }
|
172
175
|
attr_accessor :amount
|
173
|
-
# Configuration specifying what this credit grant applies to.
|
176
|
+
# 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.
|
174
177
|
sig { returns(::Stripe::Billing::CreditGrant::CreateParams::ApplicabilityConfig) }
|
175
178
|
attr_accessor :applicability_config
|
176
179
|
# The category of this credit grant.
|
@@ -194,8 +197,11 @@ module Stripe
|
|
194
197
|
# A descriptive name shown in the Dashboard.
|
195
198
|
sig { returns(String) }
|
196
199
|
attr_accessor :name
|
200
|
+
# 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.
|
201
|
+
sig { returns(Integer) }
|
202
|
+
attr_accessor :priority
|
197
203
|
sig {
|
198
|
-
params(amount: ::Stripe::Billing::CreditGrant::CreateParams::Amount, applicability_config: ::Stripe::Billing::CreditGrant::CreateParams::ApplicabilityConfig, category: String, customer: String, effective_at: Integer, expand: T::Array[String], expires_at: Integer, metadata: T::Hash[String, String], name: String).void
|
204
|
+
params(amount: ::Stripe::Billing::CreditGrant::CreateParams::Amount, applicability_config: ::Stripe::Billing::CreditGrant::CreateParams::ApplicabilityConfig, category: String, customer: String, effective_at: Integer, expand: T::Array[String], expires_at: Integer, metadata: T::Hash[String, String], name: String, priority: Integer).void
|
199
205
|
}
|
200
206
|
def initialize(
|
201
207
|
amount: nil,
|
@@ -206,7 +212,8 @@ module Stripe
|
|
206
212
|
expand: nil,
|
207
213
|
expires_at: nil,
|
208
214
|
metadata: nil,
|
209
|
-
name: nil
|
215
|
+
name: nil,
|
216
|
+
priority: nil
|
210
217
|
); end
|
211
218
|
end
|
212
219
|
class RetrieveParams < Stripe::RequestParams
|
@@ -1497,7 +1497,7 @@ module Stripe
|
|
1497
1497
|
# Attribute for field twint
|
1498
1498
|
sig { returns(Twint) }
|
1499
1499
|
attr_reader :twint
|
1500
|
-
# The type of transaction-specific details of the payment method used in the payment
|
1500
|
+
# The type of transaction-specific details of the payment method used in the payment. See [PaymentMethod.type](https://stripe.com/docs/api/payment_methods/object#payment_method_object-type) for the full list of possible types.
|
1501
1501
|
# An additional hash is included on `payment_method_details` with a name matching this value.
|
1502
1502
|
# It contains information specific to the payment method.
|
1503
1503
|
sig { returns(String) }
|
@@ -432,6 +432,9 @@ module Stripe
|
|
432
432
|
# 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).
|
433
433
|
sig { returns(String) }
|
434
434
|
attr_reader :setup_future_usage
|
435
|
+
# 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.
|
436
|
+
sig { returns(String) }
|
437
|
+
attr_reader :target_date
|
435
438
|
# Bank account verification method.
|
436
439
|
sig { returns(String) }
|
437
440
|
attr_reader :verification_method
|
@@ -490,6 +493,9 @@ module Stripe
|
|
490
493
|
# 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).
|
491
494
|
sig { returns(String) }
|
492
495
|
attr_reader :setup_future_usage
|
496
|
+
# 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.
|
497
|
+
sig { returns(String) }
|
498
|
+
attr_reader :target_date
|
493
499
|
end
|
494
500
|
class BacsDebit < Stripe::StripeObject
|
495
501
|
class MandateOptions < Stripe::StripeObject
|
@@ -509,6 +515,9 @@ module Stripe
|
|
509
515
|
# 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).
|
510
516
|
sig { returns(String) }
|
511
517
|
attr_reader :setup_future_usage
|
518
|
+
# 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.
|
519
|
+
sig { returns(String) }
|
520
|
+
attr_reader :target_date
|
512
521
|
end
|
513
522
|
class Bancontact < Stripe::StripeObject
|
514
523
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
@@ -918,6 +927,9 @@ module Stripe
|
|
918
927
|
# 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).
|
919
928
|
sig { returns(String) }
|
920
929
|
attr_reader :setup_future_usage
|
930
|
+
# 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.
|
931
|
+
sig { returns(String) }
|
932
|
+
attr_reader :target_date
|
921
933
|
end
|
922
934
|
class Sofort < Stripe::StripeObject
|
923
935
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
@@ -978,6 +990,9 @@ module Stripe
|
|
978
990
|
# 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).
|
979
991
|
sig { returns(String) }
|
980
992
|
attr_reader :setup_future_usage
|
993
|
+
# 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.
|
994
|
+
sig { returns(String) }
|
995
|
+
attr_reader :target_date
|
981
996
|
# Bank account verification method.
|
982
997
|
sig { returns(String) }
|
983
998
|
attr_reader :verification_method
|
@@ -2223,16 +2238,20 @@ module Stripe
|
|
2223
2238
|
# 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).
|
2224
2239
|
sig { returns(String) }
|
2225
2240
|
attr_accessor :setup_future_usage
|
2241
|
+
# 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.
|
2242
|
+
sig { returns(String) }
|
2243
|
+
attr_accessor :target_date
|
2226
2244
|
# Verification method for the intent
|
2227
2245
|
sig { returns(String) }
|
2228
2246
|
attr_accessor :verification_method
|
2229
2247
|
sig {
|
2230
|
-
params(currency: String, mandate_options: ::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions::AcssDebit::MandateOptions, setup_future_usage: String, verification_method: String).void
|
2248
|
+
params(currency: String, mandate_options: ::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions::AcssDebit::MandateOptions, setup_future_usage: String, target_date: String, verification_method: String).void
|
2231
2249
|
}
|
2232
2250
|
def initialize(
|
2233
2251
|
currency: nil,
|
2234
2252
|
mandate_options: nil,
|
2235
2253
|
setup_future_usage: nil,
|
2254
|
+
target_date: nil,
|
2236
2255
|
verification_method: nil
|
2237
2256
|
); end
|
2238
2257
|
end
|
@@ -2298,8 +2317,11 @@ module Stripe
|
|
2298
2317
|
# 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).
|
2299
2318
|
sig { returns(String) }
|
2300
2319
|
attr_accessor :setup_future_usage
|
2301
|
-
|
2302
|
-
|
2320
|
+
# 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.
|
2321
|
+
sig { returns(String) }
|
2322
|
+
attr_accessor :target_date
|
2323
|
+
sig { params(setup_future_usage: String, target_date: String).void }
|
2324
|
+
def initialize(setup_future_usage: nil, target_date: nil); end
|
2303
2325
|
end
|
2304
2326
|
class BacsDebit < Stripe::RequestParams
|
2305
2327
|
class MandateOptions < Stripe::RequestParams
|
@@ -2323,10 +2345,13 @@ module Stripe
|
|
2323
2345
|
# 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).
|
2324
2346
|
sig { returns(String) }
|
2325
2347
|
attr_accessor :setup_future_usage
|
2348
|
+
# 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.
|
2349
|
+
sig { returns(String) }
|
2350
|
+
attr_accessor :target_date
|
2326
2351
|
sig {
|
2327
|
-
params(mandate_options: ::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions::BacsDebit::MandateOptions, setup_future_usage: String).void
|
2352
|
+
params(mandate_options: ::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions::BacsDebit::MandateOptions, setup_future_usage: String, target_date: String).void
|
2328
2353
|
}
|
2329
|
-
def initialize(mandate_options: nil, setup_future_usage: nil); end
|
2354
|
+
def initialize(mandate_options: nil, setup_future_usage: nil, target_date: nil); end
|
2330
2355
|
end
|
2331
2356
|
class Bancontact < Stripe::RequestParams
|
2332
2357
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
@@ -2878,10 +2903,13 @@ module Stripe
|
|
2878
2903
|
# 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).
|
2879
2904
|
sig { returns(String) }
|
2880
2905
|
attr_accessor :setup_future_usage
|
2906
|
+
# 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.
|
2907
|
+
sig { returns(String) }
|
2908
|
+
attr_accessor :target_date
|
2881
2909
|
sig {
|
2882
|
-
params(mandate_options: ::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions::SepaDebit::MandateOptions, setup_future_usage: String).void
|
2910
|
+
params(mandate_options: ::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions::SepaDebit::MandateOptions, setup_future_usage: String, target_date: String).void
|
2883
2911
|
}
|
2884
|
-
def initialize(mandate_options: nil, setup_future_usage: nil); end
|
2912
|
+
def initialize(mandate_options: nil, setup_future_usage: nil, target_date: nil); end
|
2885
2913
|
end
|
2886
2914
|
class Sofort < Stripe::RequestParams
|
2887
2915
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
@@ -2928,15 +2956,19 @@ module Stripe
|
|
2928
2956
|
# 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).
|
2929
2957
|
sig { returns(String) }
|
2930
2958
|
attr_accessor :setup_future_usage
|
2959
|
+
# 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.
|
2960
|
+
sig { returns(String) }
|
2961
|
+
attr_accessor :target_date
|
2931
2962
|
# Verification method for the intent
|
2932
2963
|
sig { returns(String) }
|
2933
2964
|
attr_accessor :verification_method
|
2934
2965
|
sig {
|
2935
|
-
params(financial_connections: ::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions::UsBankAccount::FinancialConnections, setup_future_usage: String, verification_method: String).void
|
2966
|
+
params(financial_connections: ::Stripe::Checkout::Session::CreateParams::PaymentMethodOptions::UsBankAccount::FinancialConnections, setup_future_usage: String, target_date: String, verification_method: String).void
|
2936
2967
|
}
|
2937
2968
|
def initialize(
|
2938
2969
|
financial_connections: nil,
|
2939
2970
|
setup_future_usage: nil,
|
2971
|
+
target_date: nil,
|
2940
2972
|
verification_method: nil
|
2941
2973
|
); end
|
2942
2974
|
end
|
@@ -169,7 +169,7 @@ module Stripe
|
|
169
169
|
# Redaction status of this VerificationSession. If the VerificationSession is not redacted, this field will be null.
|
170
170
|
sig { returns(T.nilable(Redaction)) }
|
171
171
|
attr_reader :redaction
|
172
|
-
#
|
172
|
+
# Customer ID
|
173
173
|
sig { returns(T.nilable(String)) }
|
174
174
|
attr_reader :related_customer
|
175
175
|
# Status of this VerificationSession. [Learn more about the lifecycle of sessions](https://stripe.com/docs/identity/how-sessions-work).
|
@@ -304,7 +304,7 @@ module Stripe
|
|
304
304
|
# Details provided about the user being verified. These details may be shown to the user.
|
305
305
|
sig { returns(::Stripe::Identity::VerificationSession::CreateParams::ProvidedDetails) }
|
306
306
|
attr_accessor :provided_details
|
307
|
-
#
|
307
|
+
# Customer ID
|
308
308
|
sig { returns(String) }
|
309
309
|
attr_accessor :related_customer
|
310
310
|
# The URL that the user will be redirected to upon completing the verification flow.
|