stripe 19.2.0.pre.beta.2 → 19.3.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 (107) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stripe/api_version.rb +1 -1
  3. data/lib/stripe/events/unknown_event_notification.rb +1 -0
  4. data/lib/stripe/params/account_create_params.rb +26 -0
  5. data/lib/stripe/params/account_update_params.rb +26 -0
  6. data/lib/stripe/params/balance_settings_update_params.rb +42 -2
  7. data/lib/stripe/params/charge_create_params.rb +4 -1
  8. data/lib/stripe/params/checkout/session_create_params.rb +28 -15
  9. data/lib/stripe/params/confirmation_token_create_params.rb +11 -1
  10. data/lib/stripe/params/invoice_create_preview_params.rb +4 -0
  11. data/lib/stripe/params/payment_intent_capture_params.rb +2 -2
  12. data/lib/stripe/params/payment_intent_confirm_params.rb +38 -5
  13. data/lib/stripe/params/payment_intent_create_params.rb +65 -6
  14. data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +2 -2
  15. data/lib/stripe/params/payment_intent_increment_authorization_params.rb +2 -2
  16. data/lib/stripe/params/payment_intent_update_params.rb +58 -5
  17. data/lib/stripe/params/payment_link_create_params.rb +30 -1
  18. data/lib/stripe/params/payment_link_update_params.rb +29 -0
  19. data/lib/stripe/params/payment_method_configuration_create_params.rb +43 -1
  20. data/lib/stripe/params/payment_method_configuration_list_params.rb +4 -0
  21. data/lib/stripe/params/payment_method_configuration_update_params.rb +43 -1
  22. data/lib/stripe/params/payment_method_create_params.rb +11 -1
  23. data/lib/stripe/params/payout_create_params.rb +1 -1
  24. data/lib/stripe/params/setup_intent_confirm_params.rb +18 -2
  25. data/lib/stripe/params/setup_intent_create_params.rb +18 -2
  26. data/lib/stripe/params/setup_intent_update_params.rb +18 -2
  27. data/lib/stripe/params/subscription_create_params.rb +5 -11
  28. data/lib/stripe/params/subscription_item_create_params.rb +1 -7
  29. data/lib/stripe/params/subscription_item_delete_params.rb +1 -7
  30. data/lib/stripe/params/subscription_item_update_params.rb +1 -7
  31. data/lib/stripe/params/subscription_pause_params.rb +50 -0
  32. data/lib/stripe/params/subscription_resume_params.rb +4 -0
  33. data/lib/stripe/params/subscription_schedule_create_params.rb +4 -0
  34. data/lib/stripe/params/subscription_schedule_update_params.rb +4 -0
  35. data/lib/stripe/params/subscription_update_params.rb +6 -8
  36. data/lib/stripe/params/terminal/configuration_create_params.rb +52 -0
  37. data/lib/stripe/params/terminal/configuration_update_params.rb +52 -0
  38. data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +11 -1
  39. data/lib/stripe/params/test_helpers/test_clock_create_params.rb +4 -1
  40. data/lib/stripe/params/v2/core/account_create_params.rb +28 -6
  41. data/lib/stripe/params/v2/core/account_token_create_params.rb +27 -5
  42. data/lib/stripe/params/v2/core/account_update_params.rb +29 -7
  43. data/lib/stripe/params/v2/iam/activity_log_retrieve_params.rb +10 -0
  44. data/lib/stripe/params/v2/money_management/outbound_setup_intent_update_params.rb +1 -0
  45. data/lib/stripe/params.rb +1768 -795
  46. data/lib/stripe/railtie.rb +8 -0
  47. data/lib/stripe/resources/account.rb +4 -0
  48. data/lib/stripe/resources/balance_settings.rb +42 -2
  49. data/lib/stripe/resources/charge.rb +35 -0
  50. data/lib/stripe/resources/checkout/session.rb +23 -7
  51. data/lib/stripe/resources/confirmation_token.rb +26 -0
  52. data/lib/stripe/resources/discount.rb +2 -2
  53. data/lib/stripe/resources/invoice.rb +2 -0
  54. data/lib/stripe/resources/invoice_item.rb +34 -1
  55. data/lib/stripe/resources/issuing/dispute.rb +1 -1
  56. data/lib/stripe/resources/issuing/personalization_design.rb +1 -1
  57. data/lib/stripe/resources/issuing/settlement.rb +1 -1
  58. data/lib/stripe/resources/mandate.rb +13 -0
  59. data/lib/stripe/resources/payment_attempt_record.rb +40 -10
  60. data/lib/stripe/resources/payment_intent.rb +71 -5
  61. data/lib/stripe/resources/payment_link.rb +40 -0
  62. data/lib/stripe/resources/payment_method.rb +26 -0
  63. data/lib/stripe/resources/payment_method_configuration.rb +68 -0
  64. data/lib/stripe/resources/payment_record.rb +40 -10
  65. data/lib/stripe/resources/product_catalog/trial_offer.rb +5 -2
  66. data/lib/stripe/resources/quote_preview_invoice.rb +2 -0
  67. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +2 -0
  68. data/lib/stripe/resources/radar/payment_evaluation.rb +1 -1
  69. data/lib/stripe/resources/refund.rb +13 -0
  70. data/lib/stripe/resources/setup_attempt.rb +13 -0
  71. data/lib/stripe/resources/setup_intent.rb +26 -0
  72. data/lib/stripe/resources/shared_payment/granted_token.rb +26 -0
  73. data/lib/stripe/resources/subscription.rb +74 -4
  74. data/lib/stripe/resources/subscription_schedule.rb +2 -0
  75. data/lib/stripe/resources/terminal/configuration.rb +64 -0
  76. data/lib/stripe/resources/terminal/reader.rb +116 -0
  77. data/lib/stripe/resources/v2/commerce/product_catalog_import.rb +1 -1
  78. data/lib/stripe/resources/v2/core/account.rb +37 -10
  79. data/lib/stripe/resources/v2/core/account_token.rb +1 -1
  80. data/lib/stripe/resources/v2/core/batch_job.rb +2 -6
  81. data/lib/stripe/resources/v2/core/event.rb +1 -0
  82. data/lib/stripe/resources/v2/core/event_notification.rb +1 -0
  83. data/lib/stripe/resources/v2/network/business_profile.rb +3 -3
  84. data/lib/stripe/resources.rb +917 -301
  85. data/lib/stripe/services/account_service.rb +6 -6
  86. data/lib/stripe/services/coupon_service.rb +14 -0
  87. data/lib/stripe/services/credit_note_service.rb +0 -14
  88. data/lib/stripe/services/customer_service.rb +6 -6
  89. data/lib/stripe/services/invoice_service.rb +0 -30
  90. data/lib/stripe/services/payment_intent_service.rb +3 -1
  91. data/lib/stripe/services/promotion_code_service.rb +11 -11
  92. data/lib/stripe/services/subscription_schedule_service.rb +0 -44
  93. data/lib/stripe/services/subscription_service.rb +40 -14
  94. data/lib/stripe/services/v2/core/account_service.rb +1 -1
  95. data/lib/stripe/services/v2/core/account_token_service.rb +5 -1
  96. data/lib/stripe/services/v2/core/event_service.rb +2 -1
  97. data/lib/stripe/services/v2/{datum_service.rb → data_service.rb} +1 -1
  98. data/lib/stripe/services/v2/iam/activity_log_service.rb +11 -0
  99. data/lib/stripe/services/v2/network/business_profile_service.rb +2 -2
  100. data/lib/stripe/services/v2_services.rb +1 -1
  101. data/lib/stripe/services.rb +678 -268
  102. data/lib/stripe/stripe_event_notification_handler.rb +1 -0
  103. data/lib/stripe/version.rb +1 -1
  104. data/lib/stripe.rb +25 -4
  105. data/rbi/stripe/resources/v2/core/event_notification.rbi +3 -0
  106. data/rbi/stripe.rbi +2438 -539
  107. metadata +6 -3
@@ -133,9 +133,9 @@ module Stripe
133
133
  class Shipping < ::Stripe::RequestParams
134
134
  # If a physical good is being shipped, the cost of shipping represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). An integer greater than or equal to 0.
135
135
  attr_accessor :amount
136
- # If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens are allowed.
136
+ # If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens and spaces are allowed.
137
137
  attr_accessor :from_postal_code
138
- # If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens are allowed.
138
+ # If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens and spaces are allowed.
139
139
  attr_accessor :to_postal_code
140
140
 
141
141
  def initialize(amount: nil, from_postal_code: nil, to_postal_code: nil)
@@ -2009,6 +2009,7 @@ module Stripe
2009
2009
  end
2010
2010
  end
2011
2011
 
2012
+ class Bizum < ::Stripe::RequestParams; end
2012
2013
  class Blik < ::Stripe::RequestParams; end
2013
2014
 
2014
2015
  class Boleto < ::Stripe::RequestParams
@@ -2211,6 +2212,7 @@ module Stripe
2211
2212
  class RevolutPay < ::Stripe::RequestParams; end
2212
2213
  class SamsungPay < ::Stripe::RequestParams; end
2213
2214
  class Satispay < ::Stripe::RequestParams; end
2215
+ class Scalapay < ::Stripe::RequestParams; end
2214
2216
 
2215
2217
  class SepaDebit < ::Stripe::RequestParams
2216
2218
  # IBAN of the bank account.
@@ -2324,6 +2326,8 @@ module Stripe
2324
2326
  attr_accessor :billie
2325
2327
  # Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
2326
2328
  attr_accessor :billing_details
2329
+ # If this is a `bizum` PaymentMethod, this hash contains details about the Bizum payment method.
2330
+ attr_accessor :bizum
2327
2331
  # If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method.
2328
2332
  attr_accessor :blik
2329
2333
  # If this is a `boleto` PaymentMethod, this hash contains details about the Boleto payment method.
@@ -2358,7 +2362,7 @@ module Stripe
2358
2362
  attr_accessor :konbini
2359
2363
  # If this is a `kr_card` PaymentMethod, this hash contains details about the Korean Card payment method.
2360
2364
  attr_accessor :kr_card
2361
- # If this is an `Link` PaymentMethod, this hash contains details about the Link payment method.
2365
+ # If this is an `Link` PaymentMethod, this hash contains details about the Link payment method (Link is also known as Onelink in the UK).
2362
2366
  attr_accessor :link
2363
2367
  # If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.
2364
2368
  attr_accessor :mb_way
@@ -2404,6 +2408,8 @@ module Stripe
2404
2408
  attr_accessor :samsung_pay
2405
2409
  # If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method.
2406
2410
  attr_accessor :satispay
2411
+ # If this is a Scalapay PaymentMethod, this hash contains details about the Scalapay payment method.
2412
+ attr_accessor :scalapay
2407
2413
  # If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
2408
2414
  attr_accessor :sepa_debit
2409
2415
  # ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent.
@@ -2444,6 +2450,7 @@ module Stripe
2444
2450
  bancontact: nil,
2445
2451
  billie: nil,
2446
2452
  billing_details: nil,
2453
+ bizum: nil,
2447
2454
  blik: nil,
2448
2455
  boleto: nil,
2449
2456
  cashapp: nil,
@@ -2484,6 +2491,7 @@ module Stripe
2484
2491
  revolut_pay: nil,
2485
2492
  samsung_pay: nil,
2486
2493
  satispay: nil,
2494
+ scalapay: nil,
2487
2495
  sepa_debit: nil,
2488
2496
  shared_payment_granted_token: nil,
2489
2497
  shopeepay: nil,
@@ -2510,6 +2518,7 @@ module Stripe
2510
2518
  @bancontact = bancontact
2511
2519
  @billie = billie
2512
2520
  @billing_details = billing_details
2521
+ @bizum = bizum
2513
2522
  @blik = blik
2514
2523
  @boleto = boleto
2515
2524
  @cashapp = cashapp
@@ -2550,6 +2559,7 @@ module Stripe
2550
2559
  @revolut_pay = revolut_pay
2551
2560
  @samsung_pay = samsung_pay
2552
2561
  @satispay = satispay
2562
+ @scalapay = scalapay
2553
2563
  @sepa_debit = sepa_debit
2554
2564
  @shared_payment_granted_token = shared_payment_granted_token
2555
2565
  @shopeepay = shopeepay
@@ -2813,6 +2823,8 @@ module Stripe
2813
2823
  end
2814
2824
  end
2815
2825
 
2826
+ class Bizum < ::Stripe::RequestParams; end
2827
+
2816
2828
  class Blik < ::Stripe::RequestParams
2817
2829
  # The 6-digit BLIK code that a customer has generated using their banking application. Can only be set on confirmation.
2818
2830
  attr_accessor :code
@@ -5024,6 +5036,19 @@ module Stripe
5024
5036
  end
5025
5037
  end
5026
5038
 
5039
+ class Scalapay < ::Stripe::RequestParams
5040
+ # Controls when the funds are captured from the customer's account.
5041
+ #
5042
+ # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
5043
+ #
5044
+ # If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
5045
+ attr_accessor :capture_method
5046
+
5047
+ def initialize(capture_method: nil)
5048
+ @capture_method = capture_method
5049
+ end
5050
+ end
5051
+
5027
5052
  class SepaDebit < ::Stripe::RequestParams
5028
5053
  class MandateOptions < ::Stripe::RequestParams
5029
5054
  # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'.
@@ -5341,6 +5366,8 @@ module Stripe
5341
5366
  attr_accessor :bancontact
5342
5367
  # If this is a `billie` PaymentMethod, this sub-hash contains details about the Billie payment method options.
5343
5368
  attr_accessor :billie
5369
+ # If this is a `bizum` PaymentMethod, this sub-hash contains details about the Bizum payment method options.
5370
+ attr_accessor :bizum
5344
5371
  # If this is a `blik` PaymentMethod, this sub-hash contains details about the BLIK payment method options.
5345
5372
  attr_accessor :blik
5346
5373
  # If this is a `boleto` PaymentMethod, this sub-hash contains details about the Boleto payment method options.
@@ -5379,7 +5406,7 @@ module Stripe
5379
5406
  attr_accessor :konbini
5380
5407
  # If this is a `kr_card` PaymentMethod, this sub-hash contains details about the KR Card payment method options.
5381
5408
  attr_accessor :kr_card
5382
- # If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options.
5409
+ # If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options (Link is also known as Onelink in the UK).
5383
5410
  attr_accessor :link
5384
5411
  # If this is a `mb_way` PaymentMethod, this sub-hash contains details about the MB WAY payment method options.
5385
5412
  attr_accessor :mb_way
@@ -5421,6 +5448,8 @@ module Stripe
5421
5448
  attr_accessor :samsung_pay
5422
5449
  # If this is a `satispay` PaymentMethod, this sub-hash contains details about the Satispay payment method options.
5423
5450
  attr_accessor :satispay
5451
+ # If this is a `scalapay` PaymentMethod, this sub-hash contains details about the ScalaPay payment method options.
5452
+ attr_accessor :scalapay
5424
5453
  # If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options.
5425
5454
  attr_accessor :sepa_debit
5426
5455
  # If this is a `shopeepay` PaymentMethod, this sub-hash contains details about the ShopeePay payment method options.
@@ -5453,6 +5482,7 @@ module Stripe
5453
5482
  bacs_debit: nil,
5454
5483
  bancontact: nil,
5455
5484
  billie: nil,
5485
+ bizum: nil,
5456
5486
  blik: nil,
5457
5487
  boleto: nil,
5458
5488
  card: nil,
@@ -5493,6 +5523,7 @@ module Stripe
5493
5523
  revolut_pay: nil,
5494
5524
  samsung_pay: nil,
5495
5525
  satispay: nil,
5526
+ scalapay: nil,
5496
5527
  sepa_debit: nil,
5497
5528
  shopeepay: nil,
5498
5529
  sofort: nil,
@@ -5514,6 +5545,7 @@ module Stripe
5514
5545
  @bacs_debit = bacs_debit
5515
5546
  @bancontact = bancontact
5516
5547
  @billie = billie
5548
+ @bizum = bizum
5517
5549
  @blik = blik
5518
5550
  @boleto = boleto
5519
5551
  @card = card
@@ -5554,6 +5586,7 @@ module Stripe
5554
5586
  @revolut_pay = revolut_pay
5555
5587
  @samsung_pay = samsung_pay
5556
5588
  @satispay = satispay
5589
+ @scalapay = scalapay
5557
5590
  @sepa_debit = sepa_debit
5558
5591
  @shopeepay = shopeepay
5559
5592
  @sofort = sofort
@@ -5652,7 +5685,7 @@ module Stripe
5652
5685
  attr_accessor :mandate
5653
5686
  # Attribute for param field mandate_data
5654
5687
  attr_accessor :mandate_data
5655
- # Set to `true` to indicate that the customer isn't in your checkout flow during this payment attempt and can't authenticate. Use this parameter in scenarios where you collect card details and [charge them later](https://docs.stripe.com/payments/cards/charging-saved-cards).
5688
+ # Set to `true` to indicate that the customer isn't in your checkout flow during this payment attempt and can't authenticate. Use this parameter in scenarios where you collect payment method details and [charge them later](https://docs.stripe.com/payments/save-during-payment).
5656
5689
  attr_accessor :off_session
5657
5690
  # Provides industry-specific information about the charge.
5658
5691
  attr_accessor :payment_details
@@ -133,9 +133,9 @@ module Stripe
133
133
  class Shipping < ::Stripe::RequestParams
134
134
  # If a physical good is being shipped, the cost of shipping represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). An integer greater than or equal to 0.
135
135
  attr_accessor :amount
136
- # If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens are allowed.
136
+ # If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens and spaces are allowed.
137
137
  attr_accessor :from_postal_code
138
- # If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens are allowed.
138
+ # If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens and spaces are allowed.
139
139
  attr_accessor :to_postal_code
140
140
 
141
141
  def initialize(amount: nil, from_postal_code: nil, to_postal_code: nil)
@@ -2023,6 +2023,7 @@ module Stripe
2023
2023
  end
2024
2024
  end
2025
2025
 
2026
+ class Bizum < ::Stripe::RequestParams; end
2026
2027
  class Blik < ::Stripe::RequestParams; end
2027
2028
 
2028
2029
  class Boleto < ::Stripe::RequestParams
@@ -2225,6 +2226,7 @@ module Stripe
2225
2226
  class RevolutPay < ::Stripe::RequestParams; end
2226
2227
  class SamsungPay < ::Stripe::RequestParams; end
2227
2228
  class Satispay < ::Stripe::RequestParams; end
2229
+ class Scalapay < ::Stripe::RequestParams; end
2228
2230
 
2229
2231
  class SepaDebit < ::Stripe::RequestParams
2230
2232
  # IBAN of the bank account.
@@ -2338,6 +2340,8 @@ module Stripe
2338
2340
  attr_accessor :billie
2339
2341
  # Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
2340
2342
  attr_accessor :billing_details
2343
+ # If this is a `bizum` PaymentMethod, this hash contains details about the Bizum payment method.
2344
+ attr_accessor :bizum
2341
2345
  # If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method.
2342
2346
  attr_accessor :blik
2343
2347
  # If this is a `boleto` PaymentMethod, this hash contains details about the Boleto payment method.
@@ -2372,7 +2376,7 @@ module Stripe
2372
2376
  attr_accessor :konbini
2373
2377
  # If this is a `kr_card` PaymentMethod, this hash contains details about the Korean Card payment method.
2374
2378
  attr_accessor :kr_card
2375
- # If this is an `Link` PaymentMethod, this hash contains details about the Link payment method.
2379
+ # If this is an `Link` PaymentMethod, this hash contains details about the Link payment method (Link is also known as Onelink in the UK).
2376
2380
  attr_accessor :link
2377
2381
  # If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.
2378
2382
  attr_accessor :mb_way
@@ -2418,6 +2422,8 @@ module Stripe
2418
2422
  attr_accessor :samsung_pay
2419
2423
  # If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method.
2420
2424
  attr_accessor :satispay
2425
+ # If this is a Scalapay PaymentMethod, this hash contains details about the Scalapay payment method.
2426
+ attr_accessor :scalapay
2421
2427
  # If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
2422
2428
  attr_accessor :sepa_debit
2423
2429
  # ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent.
@@ -2458,6 +2464,7 @@ module Stripe
2458
2464
  bancontact: nil,
2459
2465
  billie: nil,
2460
2466
  billing_details: nil,
2467
+ bizum: nil,
2461
2468
  blik: nil,
2462
2469
  boleto: nil,
2463
2470
  cashapp: nil,
@@ -2498,6 +2505,7 @@ module Stripe
2498
2505
  revolut_pay: nil,
2499
2506
  samsung_pay: nil,
2500
2507
  satispay: nil,
2508
+ scalapay: nil,
2501
2509
  sepa_debit: nil,
2502
2510
  shared_payment_granted_token: nil,
2503
2511
  shopeepay: nil,
@@ -2524,6 +2532,7 @@ module Stripe
2524
2532
  @bancontact = bancontact
2525
2533
  @billie = billie
2526
2534
  @billing_details = billing_details
2535
+ @bizum = bizum
2527
2536
  @blik = blik
2528
2537
  @boleto = boleto
2529
2538
  @cashapp = cashapp
@@ -2564,6 +2573,7 @@ module Stripe
2564
2573
  @revolut_pay = revolut_pay
2565
2574
  @samsung_pay = samsung_pay
2566
2575
  @satispay = satispay
2576
+ @scalapay = scalapay
2567
2577
  @sepa_debit = sepa_debit
2568
2578
  @shared_payment_granted_token = shared_payment_granted_token
2569
2579
  @shopeepay = shopeepay
@@ -2827,6 +2837,8 @@ module Stripe
2827
2837
  end
2828
2838
  end
2829
2839
 
2840
+ class Bizum < ::Stripe::RequestParams; end
2841
+
2830
2842
  class Blik < ::Stripe::RequestParams
2831
2843
  # The 6-digit BLIK code that a customer has generated using their banking application. Can only be set on confirmation.
2832
2844
  attr_accessor :code
@@ -5038,6 +5050,19 @@ module Stripe
5038
5050
  end
5039
5051
  end
5040
5052
 
5053
+ class Scalapay < ::Stripe::RequestParams
5054
+ # Controls when the funds are captured from the customer's account.
5055
+ #
5056
+ # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
5057
+ #
5058
+ # If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
5059
+ attr_accessor :capture_method
5060
+
5061
+ def initialize(capture_method: nil)
5062
+ @capture_method = capture_method
5063
+ end
5064
+ end
5065
+
5041
5066
  class SepaDebit < ::Stripe::RequestParams
5042
5067
  class MandateOptions < ::Stripe::RequestParams
5043
5068
  # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'.
@@ -5355,6 +5380,8 @@ module Stripe
5355
5380
  attr_accessor :bancontact
5356
5381
  # If this is a `billie` PaymentMethod, this sub-hash contains details about the Billie payment method options.
5357
5382
  attr_accessor :billie
5383
+ # If this is a `bizum` PaymentMethod, this sub-hash contains details about the Bizum payment method options.
5384
+ attr_accessor :bizum
5358
5385
  # If this is a `blik` PaymentMethod, this sub-hash contains details about the BLIK payment method options.
5359
5386
  attr_accessor :blik
5360
5387
  # If this is a `boleto` PaymentMethod, this sub-hash contains details about the Boleto payment method options.
@@ -5393,7 +5420,7 @@ module Stripe
5393
5420
  attr_accessor :konbini
5394
5421
  # If this is a `kr_card` PaymentMethod, this sub-hash contains details about the KR Card payment method options.
5395
5422
  attr_accessor :kr_card
5396
- # If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options.
5423
+ # If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options (Link is also known as Onelink in the UK).
5397
5424
  attr_accessor :link
5398
5425
  # If this is a `mb_way` PaymentMethod, this sub-hash contains details about the MB WAY payment method options.
5399
5426
  attr_accessor :mb_way
@@ -5435,6 +5462,8 @@ module Stripe
5435
5462
  attr_accessor :samsung_pay
5436
5463
  # If this is a `satispay` PaymentMethod, this sub-hash contains details about the Satispay payment method options.
5437
5464
  attr_accessor :satispay
5465
+ # If this is a `scalapay` PaymentMethod, this sub-hash contains details about the ScalaPay payment method options.
5466
+ attr_accessor :scalapay
5438
5467
  # If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options.
5439
5468
  attr_accessor :sepa_debit
5440
5469
  # If this is a `shopeepay` PaymentMethod, this sub-hash contains details about the ShopeePay payment method options.
@@ -5467,6 +5496,7 @@ module Stripe
5467
5496
  bacs_debit: nil,
5468
5497
  bancontact: nil,
5469
5498
  billie: nil,
5499
+ bizum: nil,
5470
5500
  blik: nil,
5471
5501
  boleto: nil,
5472
5502
  card: nil,
@@ -5507,6 +5537,7 @@ module Stripe
5507
5537
  revolut_pay: nil,
5508
5538
  samsung_pay: nil,
5509
5539
  satispay: nil,
5540
+ scalapay: nil,
5510
5541
  sepa_debit: nil,
5511
5542
  shopeepay: nil,
5512
5543
  sofort: nil,
@@ -5528,6 +5559,7 @@ module Stripe
5528
5559
  @bacs_debit = bacs_debit
5529
5560
  @bancontact = bancontact
5530
5561
  @billie = billie
5562
+ @bizum = bizum
5531
5563
  @blik = blik
5532
5564
  @boleto = boleto
5533
5565
  @card = card
@@ -5568,6 +5600,7 @@ module Stripe
5568
5600
  @revolut_pay = revolut_pay
5569
5601
  @samsung_pay = samsung_pay
5570
5602
  @satispay = satispay
5603
+ @scalapay = scalapay
5571
5604
  @sepa_debit = sepa_debit
5572
5605
  @shopeepay = shopeepay
5573
5606
  @sofort = sofort
@@ -5642,6 +5675,17 @@ module Stripe
5642
5675
  end
5643
5676
 
5644
5677
  class TransferData < ::Stripe::RequestParams
5678
+ class PaymentData < ::Stripe::RequestParams
5679
+ # An arbitrary string attached to the destination payment. Often useful for displaying to users.
5680
+ attr_accessor :description
5681
+ # Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
5682
+ attr_accessor :metadata
5683
+
5684
+ def initialize(description: nil, metadata: nil)
5685
+ @description = description
5686
+ @metadata = metadata
5687
+ end
5688
+ end
5645
5689
  # The amount that will be transferred automatically when a charge succeeds.
5646
5690
  # The amount is capped at the total transaction amount and if no amount is set,
5647
5691
  # the full amount is transferred.
@@ -5650,15 +5694,30 @@ module Stripe
5650
5694
  # [application_fee_amount](https://docs.stripe.com/api/payment_intents/create#create_payment_intent-application_fee_amount)
5651
5695
  # might be a better fit for your integration.
5652
5696
  attr_accessor :amount
5697
+ # An arbitrary string attached to the transfer. Often useful for displaying to users.
5698
+ attr_accessor :description
5653
5699
  # If specified, successful charges will be attributed to the destination
5654
5700
  # account for tax reporting, and the funds from charges will be transferred
5655
5701
  # to the destination account. The ID of the resulting transfer will be
5656
5702
  # returned on the successful charge's `transfer` field.
5657
5703
  attr_accessor :destination
5704
+ # Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
5705
+ attr_accessor :metadata
5706
+ # The data with which to populate the destination payment.
5707
+ attr_accessor :payment_data
5658
5708
 
5659
- def initialize(amount: nil, destination: nil)
5709
+ def initialize(
5710
+ amount: nil,
5711
+ description: nil,
5712
+ destination: nil,
5713
+ metadata: nil,
5714
+ payment_data: nil
5715
+ )
5660
5716
  @amount = amount
5717
+ @description = description
5661
5718
  @destination = destination
5719
+ @metadata = metadata
5720
+ @payment_data = payment_data
5662
5721
  end
5663
5722
  end
5664
5723
  # Amount intended to be collected by this PaymentIntent. A positive integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/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://docs.stripe.com/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).
@@ -5711,7 +5770,7 @@ module Stripe
5711
5770
  attr_accessor :mandate_data
5712
5771
  # Set of [key-value pairs](https://docs.stripe.com/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`.
5713
5772
  attr_accessor :metadata
5714
- # Set to `true` to indicate that the customer isn't in your checkout flow during this payment attempt and can't authenticate. Use this parameter in scenarios where you collect card details and [charge them later](https://docs.stripe.com/payments/cards/charging-saved-cards). This parameter can only be used with [`confirm=true`](https://docs.stripe.com/api/payment_intents/create#create_payment_intent-confirm).
5773
+ # Set to `true` to indicate that the customer isn't in your checkout flow during this payment attempt and can't authenticate. Use this parameter in scenarios where you collect payment method details and [charge them later](https://docs.stripe.com/payments/save-during-payment). This parameter can only be used with [`confirm=true`](https://docs.stripe.com/api/payment_intents/create#create_payment_intent-confirm).
5715
5774
  attr_accessor :off_session
5716
5775
  # The Stripe account ID that these funds are intended for. Learn more about the [use case for connected accounts](https://docs.stripe.com/payments/connected-accounts).
5717
5776
  attr_accessor :on_behalf_of
@@ -133,9 +133,9 @@ module Stripe
133
133
  class Shipping < ::Stripe::RequestParams
134
134
  # If a physical good is being shipped, the cost of shipping represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). An integer greater than or equal to 0.
135
135
  attr_accessor :amount
136
- # If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens are allowed.
136
+ # If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens and spaces are allowed.
137
137
  attr_accessor :from_postal_code
138
- # If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens are allowed.
138
+ # If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens and spaces are allowed.
139
139
  attr_accessor :to_postal_code
140
140
 
141
141
  def initialize(amount: nil, from_postal_code: nil, to_postal_code: nil)
@@ -133,9 +133,9 @@ module Stripe
133
133
  class Shipping < ::Stripe::RequestParams
134
134
  # If a physical good is being shipped, the cost of shipping represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). An integer greater than or equal to 0.
135
135
  attr_accessor :amount
136
- # If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens are allowed.
136
+ # If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens and spaces are allowed.
137
137
  attr_accessor :from_postal_code
138
- # If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens are allowed.
138
+ # If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens and spaces are allowed.
139
139
  attr_accessor :to_postal_code
140
140
 
141
141
  def initialize(amount: nil, from_postal_code: nil, to_postal_code: nil)
@@ -133,9 +133,9 @@ module Stripe
133
133
  class Shipping < ::Stripe::RequestParams
134
134
  # If a physical good is being shipped, the cost of shipping represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). An integer greater than or equal to 0.
135
135
  attr_accessor :amount
136
- # If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens are allowed.
136
+ # If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens and spaces are allowed.
137
137
  attr_accessor :from_postal_code
138
- # If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens are allowed.
138
+ # If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens and spaces are allowed.
139
139
  attr_accessor :to_postal_code
140
140
 
141
141
  def initialize(amount: nil, from_postal_code: nil, to_postal_code: nil)
@@ -2001,6 +2001,7 @@ module Stripe
2001
2001
  end
2002
2002
  end
2003
2003
 
2004
+ class Bizum < ::Stripe::RequestParams; end
2004
2005
  class Blik < ::Stripe::RequestParams; end
2005
2006
 
2006
2007
  class Boleto < ::Stripe::RequestParams
@@ -2203,6 +2204,7 @@ module Stripe
2203
2204
  class RevolutPay < ::Stripe::RequestParams; end
2204
2205
  class SamsungPay < ::Stripe::RequestParams; end
2205
2206
  class Satispay < ::Stripe::RequestParams; end
2207
+ class Scalapay < ::Stripe::RequestParams; end
2206
2208
 
2207
2209
  class SepaDebit < ::Stripe::RequestParams
2208
2210
  # IBAN of the bank account.
@@ -2316,6 +2318,8 @@ module Stripe
2316
2318
  attr_accessor :billie
2317
2319
  # Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
2318
2320
  attr_accessor :billing_details
2321
+ # If this is a `bizum` PaymentMethod, this hash contains details about the Bizum payment method.
2322
+ attr_accessor :bizum
2319
2323
  # If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method.
2320
2324
  attr_accessor :blik
2321
2325
  # If this is a `boleto` PaymentMethod, this hash contains details about the Boleto payment method.
@@ -2350,7 +2354,7 @@ module Stripe
2350
2354
  attr_accessor :konbini
2351
2355
  # If this is a `kr_card` PaymentMethod, this hash contains details about the Korean Card payment method.
2352
2356
  attr_accessor :kr_card
2353
- # If this is an `Link` PaymentMethod, this hash contains details about the Link payment method.
2357
+ # If this is an `Link` PaymentMethod, this hash contains details about the Link payment method (Link is also known as Onelink in the UK).
2354
2358
  attr_accessor :link
2355
2359
  # If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.
2356
2360
  attr_accessor :mb_way
@@ -2396,6 +2400,8 @@ module Stripe
2396
2400
  attr_accessor :samsung_pay
2397
2401
  # If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method.
2398
2402
  attr_accessor :satispay
2403
+ # If this is a Scalapay PaymentMethod, this hash contains details about the Scalapay payment method.
2404
+ attr_accessor :scalapay
2399
2405
  # If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
2400
2406
  attr_accessor :sepa_debit
2401
2407
  # ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent.
@@ -2436,6 +2442,7 @@ module Stripe
2436
2442
  bancontact: nil,
2437
2443
  billie: nil,
2438
2444
  billing_details: nil,
2445
+ bizum: nil,
2439
2446
  blik: nil,
2440
2447
  boleto: nil,
2441
2448
  cashapp: nil,
@@ -2476,6 +2483,7 @@ module Stripe
2476
2483
  revolut_pay: nil,
2477
2484
  samsung_pay: nil,
2478
2485
  satispay: nil,
2486
+ scalapay: nil,
2479
2487
  sepa_debit: nil,
2480
2488
  shared_payment_granted_token: nil,
2481
2489
  shopeepay: nil,
@@ -2502,6 +2510,7 @@ module Stripe
2502
2510
  @bancontact = bancontact
2503
2511
  @billie = billie
2504
2512
  @billing_details = billing_details
2513
+ @bizum = bizum
2505
2514
  @blik = blik
2506
2515
  @boleto = boleto
2507
2516
  @cashapp = cashapp
@@ -2542,6 +2551,7 @@ module Stripe
2542
2551
  @revolut_pay = revolut_pay
2543
2552
  @samsung_pay = samsung_pay
2544
2553
  @satispay = satispay
2554
+ @scalapay = scalapay
2545
2555
  @sepa_debit = sepa_debit
2546
2556
  @shared_payment_granted_token = shared_payment_granted_token
2547
2557
  @shopeepay = shopeepay
@@ -2805,6 +2815,8 @@ module Stripe
2805
2815
  end
2806
2816
  end
2807
2817
 
2818
+ class Bizum < ::Stripe::RequestParams; end
2819
+
2808
2820
  class Blik < ::Stripe::RequestParams
2809
2821
  # The 6-digit BLIK code that a customer has generated using their banking application. Can only be set on confirmation.
2810
2822
  attr_accessor :code
@@ -5016,6 +5028,19 @@ module Stripe
5016
5028
  end
5017
5029
  end
5018
5030
 
5031
+ class Scalapay < ::Stripe::RequestParams
5032
+ # Controls when the funds are captured from the customer's account.
5033
+ #
5034
+ # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
5035
+ #
5036
+ # If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
5037
+ attr_accessor :capture_method
5038
+
5039
+ def initialize(capture_method: nil)
5040
+ @capture_method = capture_method
5041
+ end
5042
+ end
5043
+
5019
5044
  class SepaDebit < ::Stripe::RequestParams
5020
5045
  class MandateOptions < ::Stripe::RequestParams
5021
5046
  # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'.
@@ -5333,6 +5358,8 @@ module Stripe
5333
5358
  attr_accessor :bancontact
5334
5359
  # If this is a `billie` PaymentMethod, this sub-hash contains details about the Billie payment method options.
5335
5360
  attr_accessor :billie
5361
+ # If this is a `bizum` PaymentMethod, this sub-hash contains details about the Bizum payment method options.
5362
+ attr_accessor :bizum
5336
5363
  # If this is a `blik` PaymentMethod, this sub-hash contains details about the BLIK payment method options.
5337
5364
  attr_accessor :blik
5338
5365
  # If this is a `boleto` PaymentMethod, this sub-hash contains details about the Boleto payment method options.
@@ -5371,7 +5398,7 @@ module Stripe
5371
5398
  attr_accessor :konbini
5372
5399
  # If this is a `kr_card` PaymentMethod, this sub-hash contains details about the KR Card payment method options.
5373
5400
  attr_accessor :kr_card
5374
- # If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options.
5401
+ # If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options (Link is also known as Onelink in the UK).
5375
5402
  attr_accessor :link
5376
5403
  # If this is a `mb_way` PaymentMethod, this sub-hash contains details about the MB WAY payment method options.
5377
5404
  attr_accessor :mb_way
@@ -5413,6 +5440,8 @@ module Stripe
5413
5440
  attr_accessor :samsung_pay
5414
5441
  # If this is a `satispay` PaymentMethod, this sub-hash contains details about the Satispay payment method options.
5415
5442
  attr_accessor :satispay
5443
+ # If this is a `scalapay` PaymentMethod, this sub-hash contains details about the ScalaPay payment method options.
5444
+ attr_accessor :scalapay
5416
5445
  # If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options.
5417
5446
  attr_accessor :sepa_debit
5418
5447
  # If this is a `shopeepay` PaymentMethod, this sub-hash contains details about the ShopeePay payment method options.
@@ -5445,6 +5474,7 @@ module Stripe
5445
5474
  bacs_debit: nil,
5446
5475
  bancontact: nil,
5447
5476
  billie: nil,
5477
+ bizum: nil,
5448
5478
  blik: nil,
5449
5479
  boleto: nil,
5450
5480
  card: nil,
@@ -5485,6 +5515,7 @@ module Stripe
5485
5515
  revolut_pay: nil,
5486
5516
  samsung_pay: nil,
5487
5517
  satispay: nil,
5518
+ scalapay: nil,
5488
5519
  sepa_debit: nil,
5489
5520
  shopeepay: nil,
5490
5521
  sofort: nil,
@@ -5506,6 +5537,7 @@ module Stripe
5506
5537
  @bacs_debit = bacs_debit
5507
5538
  @bancontact = bancontact
5508
5539
  @billie = billie
5540
+ @bizum = bizum
5509
5541
  @blik = blik
5510
5542
  @boleto = boleto
5511
5543
  @card = card
@@ -5546,6 +5578,7 @@ module Stripe
5546
5578
  @revolut_pay = revolut_pay
5547
5579
  @samsung_pay = samsung_pay
5548
5580
  @satispay = satispay
5581
+ @scalapay = scalapay
5549
5582
  @sepa_debit = sepa_debit
5550
5583
  @shopeepay = shopeepay
5551
5584
  @sofort = sofort
@@ -5611,11 +5644,31 @@ module Stripe
5611
5644
  end
5612
5645
 
5613
5646
  class TransferData < ::Stripe::RequestParams
5647
+ class PaymentData < ::Stripe::RequestParams
5648
+ # An arbitrary string attached to the destination payment. Often useful for displaying to users.
5649
+ attr_accessor :description
5650
+ # Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
5651
+ attr_accessor :metadata
5652
+
5653
+ def initialize(description: nil, metadata: nil)
5654
+ @description = description
5655
+ @metadata = metadata
5656
+ end
5657
+ end
5614
5658
  # The amount that will be transferred automatically when a charge succeeds.
5615
5659
  attr_accessor :amount
5660
+ # An arbitrary string attached to the transfer. Often useful for displaying to users.
5661
+ attr_accessor :description
5662
+ # Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
5663
+ attr_accessor :metadata
5664
+ # The data with which to populate the destination payment.
5665
+ attr_accessor :payment_data
5616
5666
 
5617
- def initialize(amount: nil)
5667
+ def initialize(amount: nil, description: nil, metadata: nil, payment_data: nil)
5618
5668
  @amount = amount
5669
+ @description = description
5670
+ @metadata = metadata
5671
+ @payment_data = payment_data
5619
5672
  end
5620
5673
  end
5621
5674
  # Amount intended to be collected by this PaymentIntent. A positive integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/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://docs.stripe.com/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).