stripe 15.3.0.pre.beta.2 → 15.4.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 (86) hide show
  1. checksums.yaml +4 -4
  2. data/API_VERSION +1 -0
  3. data/CHANGELOG.md +42 -16
  4. data/OPENAPI_VERSION +1 -1
  5. data/README.md +13 -49
  6. data/VERSION +1 -1
  7. data/lib/stripe/api_requestor.rb +2 -2
  8. data/lib/stripe/api_version.rb +1 -1
  9. data/lib/stripe/errors.rb +3 -3
  10. data/lib/stripe/events/v2_core_event_destination_ping_event.rb +1 -1
  11. data/lib/stripe/resources/account.rb +89 -5
  12. data/lib/stripe/resources/account_session.rb +93 -93
  13. data/lib/stripe/resources/billing_portal/session.rb +2 -2
  14. data/lib/stripe/resources/charge.rb +28 -15
  15. data/lib/stripe/resources/checkout/session.rb +53 -7
  16. data/lib/stripe/resources/confirmation_token.rb +19 -11
  17. data/lib/stripe/resources/credit_note.rb +9 -9
  18. data/lib/stripe/resources/customer_session.rb +2 -2
  19. data/lib/stripe/resources/dispute.rb +2 -0
  20. data/lib/stripe/resources/event.rb +1 -1
  21. data/lib/stripe/resources/identity/verification_session.rb +34 -0
  22. data/lib/stripe/resources/invoice.rb +21 -3
  23. data/lib/stripe/resources/invoice_item.rb +1 -4
  24. data/lib/stripe/resources/mandate.rb +3 -0
  25. data/lib/stripe/resources/order.rb +154 -2
  26. data/lib/stripe/resources/payment_attempt_record.rb +30 -17
  27. data/lib/stripe/resources/payment_intent.rb +331 -12
  28. data/lib/stripe/resources/payment_method.rb +17 -9
  29. data/lib/stripe/resources/payment_record.rb +30 -17
  30. data/lib/stripe/resources/quote.rb +15 -1
  31. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +8 -1
  32. data/lib/stripe/resources/setup_attempt.rb +1 -1
  33. data/lib/stripe/resources/setup_intent.rb +285 -3
  34. data/lib/stripe/resources/subscription.rb +27 -10
  35. data/lib/stripe/resources/subscription_schedule.rb +17 -1
  36. data/lib/stripe/resources/tax/registration.rb +20 -0
  37. data/lib/stripe/resources/terminal/configuration.rb +1 -0
  38. data/lib/stripe/resources/terminal/reader.rb +10 -10
  39. data/lib/stripe/resources/token.rb +1 -1
  40. data/lib/stripe/resources/treasury/financial_account.rb +5 -1
  41. data/lib/stripe/resources/v2/core/account.rb +9 -0
  42. data/lib/stripe/resources/v2/money_management/financial_account.rb +3 -3
  43. data/lib/stripe/resources/v2/money_management/outbound_payment.rb +1 -1
  44. data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +1 -1
  45. data/lib/stripe/resources/v2/money_management/received_credit.rb +8 -2
  46. data/lib/stripe/services/account_service.rb +83 -5
  47. data/lib/stripe/services/account_session_service.rb +62 -62
  48. data/lib/stripe/services/billing_portal/session_service.rb +1 -1
  49. data/lib/stripe/services/checkout/session_service.rb +53 -7
  50. data/lib/stripe/services/credit_note_preview_lines_service.rb +3 -3
  51. data/lib/stripe/services/credit_note_service.rb +6 -6
  52. data/lib/stripe/services/customer_session_service.rb +1 -1
  53. data/lib/stripe/services/identity/verification_session_service.rb +16 -0
  54. data/lib/stripe/services/invoice_service.rb +21 -3
  55. data/lib/stripe/services/order_service.rb +154 -2
  56. data/lib/stripe/services/payment_intent_service.rb +315 -9
  57. data/lib/stripe/services/payment_method_service.rb +5 -0
  58. data/lib/stripe/services/quote_service.rb +9 -0
  59. data/lib/stripe/services/setup_intent_service.rb +275 -2
  60. data/lib/stripe/services/subscription_schedule_service.rb +9 -0
  61. data/lib/stripe/services/subscription_service.rb +21 -4
  62. data/lib/stripe/services/tax/registration_service.rb +13 -0
  63. data/lib/stripe/services/terminal/reader_service.rb +4 -4
  64. data/lib/stripe/services/test_helpers/confirmation_token_service.rb +6 -1
  65. data/lib/stripe/services/token_service.rb +1 -1
  66. data/lib/stripe/services/treasury/financial_account_service.rb +5 -1
  67. data/lib/stripe/services/v2/billing_service.rb +2 -2
  68. data/lib/stripe/services/v2/core/account_service.rb +47 -15
  69. data/lib/stripe/services/v2/core/accounts/person_service.rb +9 -10
  70. data/lib/stripe/services/v2/core/event_destination_service.rb +16 -16
  71. data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +4 -5
  72. data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +2 -2
  73. data/lib/stripe/services/v2/core_service.rb +2 -2
  74. data/lib/stripe/services/v2/money_management/financial_address_service.rb +13 -12
  75. data/lib/stripe/services/v2/money_management/inbound_transfer_service.rb +36 -36
  76. data/lib/stripe/services/v2/money_management/outbound_payment_service.rb +44 -45
  77. data/lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb +10 -10
  78. data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +41 -41
  79. data/lib/stripe/services/v2/money_management/payout_method_service.rb +1 -2
  80. data/lib/stripe/services/v2/money_management_service.rb +4 -4
  81. data/lib/stripe/services/v2/payments/off_session_payment_service.rb +9 -10
  82. data/lib/stripe/services/v2_services.rb +3 -3
  83. data/lib/stripe/version.rb +1 -1
  84. data/lib/stripe/webhook.rb +1 -1
  85. data/rbi/stripe.rbi +14445 -12226
  86. metadata +3 -2
@@ -2272,6 +2272,43 @@ module Stripe
2272
2272
  end
2273
2273
 
2274
2274
  class Klarna < Stripe::RequestParams
2275
+ class Subscription < Stripe::RequestParams
2276
+ class NextBilling < Stripe::RequestParams
2277
+ # The amount of the next charge for the subscription.
2278
+ attr_accessor :amount
2279
+ # The date of the next charge for the subscription in YYYY-MM-DD format.
2280
+ attr_accessor :date
2281
+
2282
+ def initialize(amount: nil, date: nil)
2283
+ @amount = amount
2284
+ @date = date
2285
+ end
2286
+ end
2287
+ # Unit of time between subscription charges.
2288
+ attr_accessor :interval
2289
+ # The number of intervals (specified in the `interval` attribute) between subscription charges. For example, `interval=month` and `interval_count=3` charges every 3 months.
2290
+ attr_accessor :interval_count
2291
+ # Name for subscription.
2292
+ attr_accessor :name
2293
+ # Describes the upcoming charge for this subscription.
2294
+ attr_accessor :next_billing
2295
+ # A non-customer-facing reference to correlate subscription charges in the Klarna app. Use a value that persists across subscription charges.
2296
+ attr_accessor :reference
2297
+
2298
+ def initialize(
2299
+ interval: nil,
2300
+ interval_count: nil,
2301
+ name: nil,
2302
+ next_billing: nil,
2303
+ reference: nil
2304
+ )
2305
+ @interval = interval
2306
+ @interval_count = interval_count
2307
+ @name = name
2308
+ @next_billing = next_billing
2309
+ @reference = reference
2310
+ end
2311
+ end
2275
2312
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2276
2313
  #
2277
2314
  # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
@@ -2280,9 +2317,12 @@ module Stripe
2280
2317
  #
2281
2318
  # 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).
2282
2319
  attr_accessor :setup_future_usage
2320
+ # Subscription details if the Checkout Session sets up a future subscription.
2321
+ attr_accessor :subscriptions
2283
2322
 
2284
- def initialize(setup_future_usage: nil)
2323
+ def initialize(setup_future_usage: nil, subscriptions: nil)
2285
2324
  @setup_future_usage = setup_future_usage
2325
+ @subscriptions = subscriptions
2286
2326
  end
2287
2327
  end
2288
2328
 
@@ -3058,6 +3098,15 @@ module Stripe
3058
3098
  end
3059
3099
 
3060
3100
  class SubscriptionData < Stripe::RequestParams
3101
+ class BillingMode < Stripe::RequestParams
3102
+ # Attribute for param field type
3103
+ attr_accessor :type
3104
+
3105
+ def initialize(type: nil)
3106
+ @type = type
3107
+ end
3108
+ end
3109
+
3061
3110
  class InvoiceSettings < Stripe::RequestParams
3062
3111
  class Issuer < Stripe::RequestParams
3063
3112
  # The connected account being referenced when `type` is `account`.
@@ -3130,12 +3179,9 @@ module Stripe
3130
3179
  attr_accessor :proration_behavior
3131
3180
  # If specified, the funds from the subscription's invoices will be transferred to the destination and the ID of the resulting transfers will be found on the resulting charges.
3132
3181
  attr_accessor :transfer_data
3133
- # Unix timestamp representing the end of the trial period the customer
3134
- # will get before being charged for the first time. Has to be at least
3135
- # 48 hours in the future.
3182
+ # Unix timestamp representing the end of the trial period the customer will get before being charged for the first time. Has to be at least 48 hours in the future.
3136
3183
  attr_accessor :trial_end
3137
- # Integer representing the number of trial period days before the
3138
- # customer is charged for the first time. Has to be at least 1.
3184
+ # Integer representing the number of trial period days before the customer is charged for the first time. Has to be at least 1.
3139
3185
  attr_accessor :trial_period_days
3140
3186
  # Settings related to subscription trials.
3141
3187
  attr_accessor :trial_settings
@@ -3263,7 +3309,7 @@ module Stripe
3263
3309
  attr_accessor :expires_at
3264
3310
  # Generate a post-purchase Invoice for one-time payments.
3265
3311
  attr_accessor :invoice_creation
3266
- # A list of items the customer is purchasing. Use this parameter to pass one-time or recurring [Prices](https://stripe.com/docs/api/prices).
3312
+ # A list of items the customer is purchasing. Use this parameter to pass one-time or recurring [Prices](https://stripe.com/docs/api/prices). The parameter is required for `payment` and `subscription` mode.
3267
3313
  #
3268
3314
  # For `payment` mode, there is a maximum of 100 line items, however it is recommended to consolidate line items if there are more than a few dozen.
3269
3315
  #
@@ -41,7 +41,7 @@ module Stripe
41
41
  # For `fixed_count` installment plans, this is the interval between installment payments your customer will make to their credit card.
42
42
  # One of `month`.
43
43
  attr_reader :interval
44
- # Type of installment plan, one of `fixed_count`.
44
+ # Type of installment plan, one of `fixed_count`, `bonus`, or `revolving`.
45
45
  attr_reader :type
46
46
  end
47
47
  # Attribute for field plan
@@ -156,9 +156,9 @@ module Stripe
156
156
  class Receipt < Stripe::StripeObject
157
157
  # The type of account being debited or credited
158
158
  attr_reader :account_type
159
- # EMV tag 9F26, cryptogram generated by the integrated circuit chip.
159
+ # The Application Cryptogram, a unique value generated by the card to authenticate the transaction with issuers.
160
160
  attr_reader :application_cryptogram
161
- # Mnenomic of the Application Identifier.
161
+ # The Application Identifier (AID) on the card used to determine which networks are eligible to process the transaction. Referenced from EMV tag 9F12, data encoded on the card's chip.
162
162
  attr_reader :application_preferred_name
163
163
  # Identifier for this transaction.
164
164
  attr_reader :authorization_code
@@ -166,11 +166,11 @@ module Stripe
166
166
  attr_reader :authorization_response_code
167
167
  # Describes the method used by the cardholder to verify ownership of the card. One of the following: `approval`, `failure`, `none`, `offline_pin`, `offline_pin_and_signature`, `online_pin`, or `signature`.
168
168
  attr_reader :cardholder_verification_method
169
- # EMV tag 84. Similar to the application identifier stored on the integrated circuit chip.
169
+ # Similar to the application_preferred_name, identifying the applications (AIDs) available on the card. Referenced from EMV tag 84.
170
170
  attr_reader :dedicated_file_name
171
- # The outcome of a series of EMV functions performed by the card reader.
171
+ # A 5-byte string that records the checks and validations that occur between the card and the terminal. These checks determine how the terminal processes the transaction and what risk tolerance is acceptable. Referenced from EMV Tag 95.
172
172
  attr_reader :terminal_verification_results
173
- # An indication of various EMV functions performed during the transaction.
173
+ # An indication of which steps were completed during the card read process. Referenced from EMV Tag 9B.
174
174
  attr_reader :transaction_status_information
175
175
  end
176
176
 
@@ -222,7 +222,7 @@ module Stripe
222
222
  attr_reader :offline
223
223
  # Defines whether the authorized amount can be over-captured or not
224
224
  attr_reader :overcapture_supported
225
- # EMV tag 5F2D. Preferred languages specified by the integrated circuit chip.
225
+ # The languages that the issuing bank recommends using for localizing any customer-facing text, as read from the card. Referenced from EMV tag 5F2D, data encoded on the card's chip.
226
226
  attr_reader :preferred_locales
227
227
  # How card details were read in this transaction.
228
228
  attr_reader :read_method
@@ -449,7 +449,7 @@ module Stripe
449
449
  attr_reader :networks
450
450
  # Details about payment methods collected offline.
451
451
  attr_reader :offline
452
- # EMV tag 5F2D. Preferred languages specified by the integrated circuit chip.
452
+ # The languages that the issuing bank recommends using for localizing any customer-facing text, as read from the card. Referenced from EMV tag 5F2D, data encoded on the card's chip.
453
453
  attr_reader :preferred_locales
454
454
  # How card details were read in this transaction.
455
455
  attr_reader :read_method
@@ -464,6 +464,7 @@ module Stripe
464
464
  attr_reader :cashtag
465
465
  end
466
466
 
467
+ class Crypto < Stripe::StripeObject; end
467
468
  class CustomerBalance < Stripe::StripeObject; end
468
469
 
469
470
  class Eps < Stripe::StripeObject
@@ -494,7 +495,7 @@ module Stripe
494
495
  end
495
496
 
496
497
  class Ideal < Stripe::StripeObject
497
- # The customer's bank, if provided. Can be one of `abn_amro`, `asn_bank`, `bunq`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`.
498
+ # The customer's bank, if provided. Can be one of `abn_amro`, `asn_bank`, `bunq`, `buut`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`.
498
499
  attr_reader :bank
499
500
  # The Bank Identifier Code of the customer's bank, if the bank was provided.
500
501
  attr_reader :bic
@@ -533,7 +534,7 @@ module Stripe
533
534
  attr_reader :last4
534
535
  # Contains information about card networks that can be used to process the payment.
535
536
  attr_reader :networks
536
- # EMV tag 5F2D. Preferred languages specified by the integrated circuit chip.
537
+ # The languages that the issuing bank recommends using for localizing any customer-facing text, as read from the card. Referenced from EMV tag 5F2D, data encoded on the card's chip.
537
538
  attr_reader :preferred_locales
538
539
  # How card details were read in this transaction.
539
540
  attr_reader :read_method
@@ -766,6 +767,8 @@ module Stripe
766
767
  attr_reader :card_present
767
768
  # Attribute for field cashapp
768
769
  attr_reader :cashapp
770
+ # Attribute for field crypto
771
+ attr_reader :crypto
769
772
  # The ID of the Customer to which this PaymentMethod is saved. This will not be set when the PaymentMethod has not been saved to a Customer.
770
773
  attr_reader :customer
771
774
  # Attribute for field customer_account
@@ -994,6 +997,7 @@ module Stripe
994
997
  end
995
998
 
996
999
  class Cashapp < Stripe::RequestParams; end
1000
+ class Crypto < Stripe::RequestParams; end
997
1001
  class CustomerBalance < Stripe::RequestParams; end
998
1002
 
999
1003
  class Eps < Stripe::RequestParams
@@ -1277,6 +1281,8 @@ module Stripe
1277
1281
  attr_accessor :boleto
1278
1282
  # If this is a `cashapp` PaymentMethod, this hash contains details about the Cash App Pay payment method.
1279
1283
  attr_accessor :cashapp
1284
+ # If this is a Crypto PaymentMethod, this hash contains details about the Crypto payment method.
1285
+ attr_accessor :crypto
1280
1286
  # If this is a `customer_balance` PaymentMethod, this hash contains details about the CustomerBalance payment method.
1281
1287
  attr_accessor :customer_balance
1282
1288
  # If this is an `eps` PaymentMethod, this hash contains details about the EPS payment method.
@@ -1384,6 +1390,7 @@ module Stripe
1384
1390
  blik: nil,
1385
1391
  boleto: nil,
1386
1392
  cashapp: nil,
1393
+ crypto: nil,
1387
1394
  customer_balance: nil,
1388
1395
  eps: nil,
1389
1396
  fpx: nil,
@@ -1445,6 +1452,7 @@ module Stripe
1445
1452
  @blik = blik
1446
1453
  @boleto = boleto
1447
1454
  @cashapp = cashapp
1455
+ @crypto = crypto
1448
1456
  @customer_balance = customer_balance
1449
1457
  @eps = eps
1450
1458
  @fpx = fpx
@@ -1502,7 +1510,7 @@ module Stripe
1502
1510
  # For `fixed_count` installment plans, this is required. It represents the interval between installment payments your customer will make to their credit card.
1503
1511
  # One of `month`.
1504
1512
  attr_accessor :interval
1505
- # Type of installment plan, one of `fixed_count`.
1513
+ # Type of installment plan, one of `fixed_count`, `bonus`, or `revolving`.
1506
1514
  attr_accessor :type
1507
1515
 
1508
1516
  def initialize(count: nil, interval: nil, type: nil)
@@ -218,7 +218,7 @@ module Stripe
218
218
  @shipping_rate = shipping_rate
219
219
  end
220
220
  end
221
- # The integer amount in cents (or local equivalent) representing the total amount of the credit note.
221
+ # The integer amount in cents (or local equivalent) representing the total amount of the credit note. One of `amount`, `lines`, or `shipping_cost` must be provided.
222
222
  attr_accessor :amount
223
223
  # The integer amount in cents (or local equivalent) representing the amount to credit the customer's balance, which will be automatically applied to their next invoice.
224
224
  attr_accessor :credit_amount
@@ -230,7 +230,7 @@ module Stripe
230
230
  attr_accessor :expand
231
231
  # ID of the invoice.
232
232
  attr_accessor :invoice
233
- # Line items that make up the credit note.
233
+ # Line items that make up the credit note. One of `amount`, `lines`, or `shipping_cost` must be provided.
234
234
  attr_accessor :lines
235
235
  # The credit note's memo appears on the credit note PDF.
236
236
  attr_accessor :memo
@@ -244,7 +244,7 @@ module Stripe
244
244
  attr_accessor :refund_amount
245
245
  # Refunds to link to this credit note.
246
246
  attr_accessor :refunds
247
- # When shipping_cost contains the shipping_rate from the invoice, the shipping_cost is included in the credit note.
247
+ # When shipping_cost contains the shipping_rate from the invoice, the shipping_cost is included in the credit note. One of `amount`, `lines`, or `shipping_cost` must be provided.
248
248
  attr_accessor :shipping_cost
249
249
 
250
250
  def initialize(
@@ -373,7 +373,7 @@ module Stripe
373
373
  @shipping_rate = shipping_rate
374
374
  end
375
375
  end
376
- # The integer amount in cents (or local equivalent) representing the total amount of the credit note.
376
+ # The integer amount in cents (or local equivalent) representing the total amount of the credit note. One of `amount`, `lines`, or `shipping_cost` must be provided.
377
377
  attr_accessor :amount
378
378
  # The integer amount in cents (or local equivalent) representing the amount to credit the customer's balance, which will be automatically applied to their next invoice.
379
379
  attr_accessor :credit_amount
@@ -385,7 +385,7 @@ module Stripe
385
385
  attr_accessor :expand
386
386
  # ID of the invoice.
387
387
  attr_accessor :invoice
388
- # Line items that make up the credit note.
388
+ # Line items that make up the credit note. One of `amount`, `lines`, or `shipping_cost` must be provided.
389
389
  attr_accessor :lines
390
390
  # The credit note's memo appears on the credit note PDF.
391
391
  attr_accessor :memo
@@ -399,7 +399,7 @@ module Stripe
399
399
  attr_accessor :refund_amount
400
400
  # Refunds to link to this credit note.
401
401
  attr_accessor :refunds
402
- # When shipping_cost contains the shipping_rate from the invoice, the shipping_cost is included in the credit note.
402
+ # When shipping_cost contains the shipping_rate from the invoice, the shipping_cost is included in the credit note. One of `amount`, `lines`, or `shipping_cost` must be provided.
403
403
  attr_accessor :shipping_cost
404
404
 
405
405
  def initialize(
@@ -513,7 +513,7 @@ module Stripe
513
513
  @shipping_rate = shipping_rate
514
514
  end
515
515
  end
516
- # The integer amount in cents (or local equivalent) representing the total amount of the credit note.
516
+ # The integer amount in cents (or local equivalent) representing the total amount of the credit note. One of `amount`, `lines`, or `shipping_cost` must be provided.
517
517
  attr_accessor :amount
518
518
  # The integer amount in cents (or local equivalent) representing the amount to credit the customer's balance, which will be automatically applied to their next invoice.
519
519
  attr_accessor :credit_amount
@@ -529,7 +529,7 @@ module Stripe
529
529
  attr_accessor :invoice
530
530
  # A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
531
531
  attr_accessor :limit
532
- # Line items that make up the credit note.
532
+ # Line items that make up the credit note. One of `amount`, `lines`, or `shipping_cost` must be provided.
533
533
  attr_accessor :lines
534
534
  # The credit note's memo appears on the credit note PDF.
535
535
  attr_accessor :memo
@@ -543,7 +543,7 @@ module Stripe
543
543
  attr_accessor :refund_amount
544
544
  # Refunds to link to this credit note.
545
545
  attr_accessor :refunds
546
- # When shipping_cost contains the shipping_rate from the invoice, the shipping_cost is included in the credit note.
546
+ # When shipping_cost contains the shipping_rate from the invoice, the shipping_cost is included in the credit note. One of `amount`, `lines`, or `shipping_cost` must be provided.
547
547
  attr_accessor :shipping_cost
548
548
  # A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
549
549
  attr_accessor :starting_after
@@ -30,7 +30,7 @@ module Stripe
30
30
  attr_reader :payment_method_allow_redisplay_filters
31
31
  # Controls whether or not the Payment Element shows saved payment methods. This parameter defaults to `disabled`.
32
32
  attr_reader :payment_method_redisplay
33
- # Determines the max number of saved payment methods for the Payment Element to display. This parameter defaults to `3`.
33
+ # Determines the max number of saved payment methods for the Payment Element to display. This parameter defaults to `3`. The maximum redisplay limit is `10`.
34
34
  attr_reader :payment_method_redisplay_limit
35
35
  # Controls whether the Payment Element displays the option to remove a saved payment method. This parameter defaults to `disabled`.
36
36
  #
@@ -82,7 +82,7 @@ module Stripe
82
82
  attr_accessor :payment_method_allow_redisplay_filters
83
83
  # Controls whether or not the Payment Element shows saved payment methods. This parameter defaults to `disabled`.
84
84
  attr_accessor :payment_method_redisplay
85
- # Determines the max number of saved payment methods for the Payment Element to display. This parameter defaults to `3`.
85
+ # Determines the max number of saved payment methods for the Payment Element to display. This parameter defaults to `3`. The maximum redisplay limit is `10`.
86
86
  attr_accessor :payment_method_redisplay_limit
87
87
  # Controls whether the Payment Element displays the option to remove a saved payment method. This parameter defaults to `disabled`.
88
88
  #
@@ -185,6 +185,8 @@ module Stripe
185
185
  attr_reader :past_due
186
186
  # The number of times evidence has been submitted. Typically, you may only submit evidence once.
187
187
  attr_reader :submission_count
188
+ # Whether the dispute was submitted manually, with Smart Disputes, or not submitted.
189
+ attr_reader :submission_method
188
190
  end
189
191
 
190
192
  class PaymentMethodDetails < Stripe::StripeObject
@@ -140,7 +140,7 @@ module Stripe
140
140
  end
141
141
  # The connected account that originates the event.
142
142
  attr_reader :account
143
- # The Stripe API version used to render `data`. This property is populated only for events on or after October 31, 2014.
143
+ # The Stripe API version used to render `data` when the event was created. The contents of `data` never change, so this value remains static regardless of the API version currently in use. This property is populated only for events created on or after October 31, 2014.
144
144
  attr_reader :api_version
145
145
  # Authentication context needed to fetch the event or related object.
146
146
  attr_reader :context
@@ -50,6 +50,13 @@ module Stripe
50
50
 
51
51
  class IdNumber < Stripe::StripeObject; end
52
52
 
53
+ class Matching < Stripe::StripeObject
54
+ # Strictness of the DOB matching policy to apply.
55
+ attr_reader :dob
56
+ # Strictness of the name matching policy to apply.
57
+ attr_reader :name
58
+ end
59
+
53
60
  class Phone < Stripe::StripeObject
54
61
  # Request one time password verification of `provided_details.phone`.
55
62
  attr_reader :require_verification
@@ -60,6 +67,8 @@ module Stripe
60
67
  attr_reader :email
61
68
  # Attribute for field id_number
62
69
  attr_reader :id_number
70
+ # Attribute for field matching
71
+ attr_reader :matching
63
72
  # Attribute for field phone
64
73
  attr_reader :phone
65
74
  end
@@ -76,6 +85,13 @@ module Stripe
76
85
  attr_reader :status
77
86
  end
78
87
 
88
+ class RelatedPerson < Stripe::StripeObject
89
+ # Token referencing the associated Account of the related Person resource.
90
+ attr_reader :account
91
+ # Token referencing the related Person resource.
92
+ attr_reader :person
93
+ end
94
+
79
95
  class VerifiedOutputs < Stripe::StripeObject
80
96
  class Address < Stripe::StripeObject
81
97
  # City, district, suburb, town, or village.
@@ -227,6 +243,18 @@ module Stripe
227
243
  @phone = phone
228
244
  end
229
245
  end
246
+
247
+ class RelatedPerson < Stripe::RequestParams
248
+ # A token representing a connected account. If provided, the person parameter is also required and must be associated with the account.
249
+ attr_accessor :account
250
+ # A token referencing a Person resource that this verification is being used to verify.
251
+ attr_accessor :person
252
+
253
+ def initialize(account: nil, person: nil)
254
+ @account = account
255
+ @person = person
256
+ end
257
+ end
230
258
  # A string to reference this user. This can be a customer ID, a session ID, or similar, and can be used to reconcile this verification with your internal systems.
231
259
  attr_accessor :client_reference_id
232
260
  # Specifies which fields in the response should be expanded.
@@ -241,6 +269,8 @@ module Stripe
241
269
  attr_accessor :related_customer
242
270
  # Token referencing a Customer Account resource.
243
271
  attr_accessor :related_customer_account
272
+ # Tokens referencing a Person resource and it's associated account.
273
+ attr_accessor :related_person
244
274
  # The URL that the user will be redirected to upon completing the verification flow.
245
275
  attr_accessor :return_url
246
276
  # The type of [verification check](https://stripe.com/docs/identity/verification-checks) to be performed. You must provide a `type` if not passing `verification_flow`.
@@ -256,6 +286,7 @@ module Stripe
256
286
  provided_details: nil,
257
287
  related_customer: nil,
258
288
  related_customer_account: nil,
289
+ related_person: nil,
259
290
  return_url: nil,
260
291
  type: nil,
261
292
  verification_flow: nil
@@ -267,6 +298,7 @@ module Stripe
267
298
  @provided_details = provided_details
268
299
  @related_customer = related_customer
269
300
  @related_customer_account = related_customer_account
301
+ @related_person = related_person
270
302
  @return_url = return_url
271
303
  @type = type
272
304
  @verification_flow = verification_flow
@@ -381,6 +413,8 @@ module Stripe
381
413
  attr_reader :related_customer
382
414
  # Token referencing a Customer Account resource.
383
415
  attr_reader :related_customer_account
416
+ # Attribute for field related_person
417
+ attr_reader :related_person
384
418
  # Status of this VerificationSession. [Learn more about the lifecycle of sessions](https://stripe.com/docs/identity/how-sessions-work).
385
419
  attr_reader :status
386
420
  # The type of [verification check](https://stripe.com/docs/identity/verification-checks) to be performed.
@@ -646,7 +646,7 @@ module Stripe
646
646
  # For `fixed_count` installment plans, this is required. It represents the interval between installment payments your customer will make to their credit card.
647
647
  # One of `month`.
648
648
  attr_accessor :interval
649
- # Type of installment plan, one of `fixed_count`.
649
+ # Type of installment plan, one of `fixed_count`, `bonus`, or `revolving`.
650
650
  attr_accessor :type
651
651
 
652
652
  def initialize(count: nil, interval: nil, type: nil)
@@ -1359,7 +1359,7 @@ module Stripe
1359
1359
  # For `fixed_count` installment plans, this is required. It represents the interval between installment payments your customer will make to their credit card.
1360
1360
  # One of `month`.
1361
1361
  attr_accessor :interval
1362
- # Type of installment plan, one of `fixed_count`.
1362
+ # Type of installment plan, one of `fixed_count`, `bonus`, or `revolving`.
1363
1363
  attr_accessor :type
1364
1364
 
1365
1365
  def initialize(count: nil, interval: nil, type: nil)
@@ -3336,6 +3336,15 @@ module Stripe
3336
3336
  end
3337
3337
  end
3338
3338
 
3339
+ class BillingMode < Stripe::RequestParams
3340
+ # Attribute for param field type
3341
+ attr_accessor :type
3342
+
3343
+ def initialize(type: nil)
3344
+ @type = type
3345
+ end
3346
+ end
3347
+
3339
3348
  class Phase < Stripe::RequestParams
3340
3349
  class AddInvoiceItem < Stripe::RequestParams
3341
3350
  class Discount < Stripe::RequestParams
@@ -3911,6 +3920,15 @@ module Stripe
3911
3920
  end
3912
3921
 
3913
3922
  class SubscriptionDetails < Stripe::RequestParams
3923
+ class BillingMode < Stripe::RequestParams
3924
+ # Attribute for param field type
3925
+ attr_accessor :type
3926
+
3927
+ def initialize(type: nil)
3928
+ @type = type
3929
+ end
3930
+ end
3931
+
3914
3932
  class Item < Stripe::RequestParams
3915
3933
  class BillingThresholds < Stripe::RequestParams
3916
3934
  # Number of units that meets the billing threshold to advance the subscription to a new billing period (e.g., it takes 10 $5 units to meet a $50 [monetary threshold](https://stripe.com/docs/api/subscriptions/update#update_subscription-billing_thresholds-amount_gte))
@@ -4069,7 +4087,7 @@ module Stripe
4069
4087
  attr_accessor :billing_mode
4070
4088
  # A timestamp at which the subscription should cancel. If set to a date before the current period ends, this will cause a proration if prorations have been enabled using `proration_behavior`. If set during a future period, this will always cause a proration for that period.
4071
4089
  attr_accessor :cancel_at
4072
- # Indicate whether this subscription should cancel at the end of the current period (`current_period_end`). Defaults to `false`. This param will be removed in a future API version. Please use `cancel_at` instead.
4090
+ # Indicate whether this subscription should cancel at the end of the current period (`current_period_end`). Defaults to `false`.
4073
4091
  attr_accessor :cancel_at_period_end
4074
4092
  # This simulates the subscription being canceled or expired immediately.
4075
4093
  attr_accessor :cancel_now
@@ -2,10 +2,7 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Stripe
5
- # Invoice Items represent the component lines of an [invoice](https://stripe.com/docs/api/invoices). An invoice item is added to an
6
- # invoice by creating or updating it with an `invoice` field, at which point it will be included as
7
- # [an invoice line item](https://stripe.com/docs/api/invoices/line_item) within
8
- # [invoice.lines](https://stripe.com/docs/api/invoices/object#invoice_object-lines).
5
+ # Invoice Items represent the component lines of an [invoice](https://stripe.com/docs/api/invoices). When you create an invoice item with an `invoice` field, it is attached to the specified invoice and included as [an invoice line item](https://stripe.com/docs/api/invoices/line_item) within [invoice.lines](https://stripe.com/docs/api/invoices/object#invoice_object-lines).
9
6
  #
10
7
  # Invoice Items can be created before you are ready to actually send the invoice. This can be particularly useful when combined
11
8
  # with a [subscription](https://stripe.com/docs/api/subscriptions). Sometimes you want to add a charge or credit to a customer, but actually charge
@@ -63,6 +63,7 @@ module Stripe
63
63
  class Card < Stripe::StripeObject; end
64
64
  class Cashapp < Stripe::StripeObject; end
65
65
  class KakaoPay < Stripe::StripeObject; end
66
+ class Klarna < Stripe::StripeObject; end
66
67
  class KrCard < Stripe::StripeObject; end
67
68
  class Link < Stripe::StripeObject; end
68
69
  class NaverPay < Stripe::StripeObject; end
@@ -124,6 +125,8 @@ module Stripe
124
125
  attr_reader :cashapp
125
126
  # Attribute for field kakao_pay
126
127
  attr_reader :kakao_pay
128
+ # Attribute for field klarna
129
+ attr_reader :klarna
127
130
  # Attribute for field kr_card
128
131
  attr_reader :kr_card
129
132
  # Attribute for field link