stripe 20.1.0.pre.alpha.2 → 20.1.0.pre.alpha.3

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 (56) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stripe/api_version.rb +1 -1
  3. data/lib/stripe/event_types.rb +0 -4
  4. data/lib/stripe/params/account_create_params.rb +9 -9
  5. data/lib/stripe/params/account_update_params.rb +9 -9
  6. data/lib/stripe/params/checkout/session_create_params.rb +52 -1
  7. data/lib/stripe/params/confirmation_token_create_params.rb +22 -0
  8. data/lib/stripe/params/payment_intent_confirm_params.rb +100 -0
  9. data/lib/stripe/params/payment_intent_create_params.rb +100 -0
  10. data/lib/stripe/params/payment_intent_update_params.rb +100 -0
  11. data/lib/stripe/params/payment_method_create_params.rb +22 -0
  12. data/lib/stripe/params/setup_intent_confirm_params.rb +22 -0
  13. data/lib/stripe/params/setup_intent_create_params.rb +22 -0
  14. data/lib/stripe/params/setup_intent_update_params.rb +22 -0
  15. data/lib/stripe/params/subscription_update_params.rb +1 -1
  16. data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +22 -0
  17. data/lib/stripe/params/v2/core/account_evaluation_create_params.rb +4 -1
  18. data/lib/stripe/params/v2/core/account_list_params.rb +3 -1
  19. data/lib/stripe/params/v2/payments/off_session_payment_create_params.rb +0 -13
  20. data/lib/stripe/params/v2/signals/account_activity_create_params.rb +5 -2
  21. data/lib/stripe/params/v2/signals/account_evaluation_create_params.rb +5 -2
  22. data/lib/stripe/params.rb +0 -8
  23. data/lib/stripe/resources/account.rb +6 -6
  24. data/lib/stripe/resources/balance.rb +83 -0
  25. data/lib/stripe/resources/card.rb +1 -1
  26. data/lib/stripe/resources/charge.rb +52 -0
  27. data/lib/stripe/resources/confirmation_token.rb +52 -0
  28. data/lib/stripe/resources/identity/verification_report.rb +34 -0
  29. data/lib/stripe/resources/invoice_item.rb +1 -1
  30. data/lib/stripe/resources/payment_attempt_record.rb +52 -0
  31. data/lib/stripe/resources/payment_intent.rb +72 -0
  32. data/lib/stripe/resources/payment_method.rb +52 -0
  33. data/lib/stripe/resources/payment_record.rb +52 -0
  34. data/lib/stripe/resources/shared_payment/granted_token.rb +3 -3
  35. data/lib/stripe/resources/subscription.rb +2 -2
  36. data/lib/stripe/resources/v2/core/account_evaluation.rb +2 -0
  37. data/lib/stripe/resources/v2/money_management/financial_address.rb +65 -1
  38. data/lib/stripe/resources/v2/money_management/received_credit.rb +66 -0
  39. data/lib/stripe/resources/v2/payments/off_session_payment.rb +0 -20
  40. data/lib/stripe/resources/v2/signals/account_activity.rb +3 -1
  41. data/lib/stripe/resources/v2/signals/account_evaluation.rb +31 -1
  42. data/lib/stripe/resources/v2/signals/account_signal.rb +23 -0
  43. data/lib/stripe/resources.rb +0 -5
  44. data/lib/stripe/services/subscription_service.rb +1 -1
  45. data/lib/stripe/services/test_helpers/shared_payment/granted_token_service.rb +2 -2
  46. data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +0 -28
  47. data/lib/stripe/services/v2/money_management/financial_account_service.rb +1 -1
  48. data/lib/stripe/services/v2/payments/off_session_payment_service.rb +0 -11
  49. data/lib/stripe/stripe_event_notification_handler.rb +0 -4
  50. data/lib/stripe/version.rb +1 -1
  51. data/rbi/stripe.rbi +1460 -429
  52. metadata +2 -6
  53. data/lib/stripe/events/v2_payments_off_session_payment_requires_capture_event.rb +0 -44
  54. data/lib/stripe/params/v2/core/vault/gb_bank_account_acknowledge_confirmation_of_payee_params.rb +0 -12
  55. data/lib/stripe/params/v2/core/vault/gb_bank_account_initiate_confirmation_of_payee_params.rb +0 -22
  56. data/lib/stripe/params/v2/payments/off_session_payment_capture_params.rb +0 -178
@@ -2428,6 +2428,7 @@ module Stripe
2428
2428
  end
2429
2429
  end
2430
2430
 
2431
+ class Carecredit < ::Stripe::RequestParams; end
2431
2432
  class Cashapp < ::Stripe::RequestParams; end
2432
2433
  class Crypto < ::Stripe::RequestParams; end
2433
2434
  class CustomerBalance < ::Stripe::RequestParams; end
@@ -2453,6 +2454,8 @@ module Stripe
2453
2454
  end
2454
2455
  end
2455
2456
 
2457
+ class Getflex < ::Stripe::RequestParams; end
2458
+
2456
2459
  class GiftCard < ::Stripe::RequestParams
2457
2460
  # The gift card ID to redeem
2458
2461
  attr_accessor :gift_card
@@ -2602,6 +2605,8 @@ module Stripe
2602
2605
  end
2603
2606
  end
2604
2607
 
2608
+ class RakutenPay < ::Stripe::RequestParams; end
2609
+
2605
2610
  class Rechnung < ::Stripe::RequestParams
2606
2611
  class Dob < ::Stripe::RequestParams
2607
2612
  # The day of birth, between 1 and 31.
@@ -2640,6 +2645,7 @@ module Stripe
2640
2645
  end
2641
2646
 
2642
2647
  class Sequra < ::Stripe::RequestParams; end
2648
+ class Sezzle < ::Stripe::RequestParams; end
2643
2649
  class Shopeepay < ::Stripe::RequestParams; end
2644
2650
 
2645
2651
  class Sofort < ::Stripe::RequestParams
@@ -2751,6 +2757,8 @@ module Stripe
2751
2757
  attr_accessor :blik
2752
2758
  # If this is a `boleto` PaymentMethod, this hash contains details about the Boleto payment method.
2753
2759
  attr_accessor :boleto
2760
+ # If this is a `carecredit` PaymentMethod, this hash contains details about the CareCredit payment method.
2761
+ attr_accessor :carecredit
2754
2762
  # If this is a `cashapp` PaymentMethod, this hash contains details about the Cash App Pay payment method.
2755
2763
  attr_accessor :cashapp
2756
2764
  # If this is a Crypto PaymentMethod, this hash contains details about the Crypto payment method.
@@ -2761,6 +2769,8 @@ module Stripe
2761
2769
  attr_accessor :eps
2762
2770
  # If this is an `fpx` PaymentMethod, this hash contains details about the FPX payment method.
2763
2771
  attr_accessor :fpx
2772
+ # If this is a `getflex` PaymentMethod, this hash contains details about the GetFlex payment method.
2773
+ attr_accessor :getflex
2764
2774
  # If this is a `gift_card` PaymentMethod, this hash contains details about the gift card payment method.
2765
2775
  attr_accessor :gift_card
2766
2776
  # If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
@@ -2821,6 +2831,8 @@ module Stripe
2821
2831
  attr_accessor :qris
2822
2832
  # Options to configure Radar. See [Radar Session](https://docs.stripe.com/radar/radar-session) for more information.
2823
2833
  attr_accessor :radar_options
2834
+ # If this is a `rakuten_pay` PaymentMethod, this hash contains details about the Rakuten Pay payment method.
2835
+ attr_accessor :rakuten_pay
2824
2836
  # If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
2825
2837
  attr_accessor :rechnung
2826
2838
  # If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
@@ -2835,6 +2847,8 @@ module Stripe
2835
2847
  attr_accessor :sepa_debit
2836
2848
  # If this is a SeQura PaymentMethod, this hash contains details about the SeQura payment method.
2837
2849
  attr_accessor :sequra
2850
+ # If this is a `sezzle` PaymentMethod, this hash contains details about the Sezzle payment method.
2851
+ attr_accessor :sezzle
2838
2852
  # ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent.
2839
2853
  attr_accessor :shared_payment_granted_token
2840
2854
  # If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
@@ -2880,11 +2894,13 @@ module Stripe
2880
2894
  bizum: nil,
2881
2895
  blik: nil,
2882
2896
  boleto: nil,
2897
+ carecredit: nil,
2883
2898
  cashapp: nil,
2884
2899
  crypto: nil,
2885
2900
  customer_balance: nil,
2886
2901
  eps: nil,
2887
2902
  fpx: nil,
2903
+ getflex: nil,
2888
2904
  gift_card: nil,
2889
2905
  giropay: nil,
2890
2906
  gopay: nil,
@@ -2915,6 +2931,7 @@ module Stripe
2915
2931
  promptpay: nil,
2916
2932
  qris: nil,
2917
2933
  radar_options: nil,
2934
+ rakuten_pay: nil,
2918
2935
  rechnung: nil,
2919
2936
  revolut_pay: nil,
2920
2937
  samsung_pay: nil,
@@ -2922,6 +2939,7 @@ module Stripe
2922
2939
  scalapay: nil,
2923
2940
  sepa_debit: nil,
2924
2941
  sequra: nil,
2942
+ sezzle: nil,
2925
2943
  shared_payment_granted_token: nil,
2926
2944
  shopeepay: nil,
2927
2945
  sofort: nil,
@@ -2952,11 +2970,13 @@ module Stripe
2952
2970
  @bizum = bizum
2953
2971
  @blik = blik
2954
2972
  @boleto = boleto
2973
+ @carecredit = carecredit
2955
2974
  @cashapp = cashapp
2956
2975
  @crypto = crypto
2957
2976
  @customer_balance = customer_balance
2958
2977
  @eps = eps
2959
2978
  @fpx = fpx
2979
+ @getflex = getflex
2960
2980
  @gift_card = gift_card
2961
2981
  @giropay = giropay
2962
2982
  @gopay = gopay
@@ -2987,6 +3007,7 @@ module Stripe
2987
3007
  @promptpay = promptpay
2988
3008
  @qris = qris
2989
3009
  @radar_options = radar_options
3010
+ @rakuten_pay = rakuten_pay
2990
3011
  @rechnung = rechnung
2991
3012
  @revolut_pay = revolut_pay
2992
3013
  @samsung_pay = samsung_pay
@@ -2994,6 +3015,7 @@ module Stripe
2994
3015
  @scalapay = scalapay
2995
3016
  @sepa_debit = sepa_debit
2996
3017
  @sequra = sequra
3018
+ @sezzle = sezzle
2997
3019
  @shared_payment_granted_token = shared_payment_granted_token
2998
3020
  @shopeepay = shopeepay
2999
3021
  @sofort = sofort
@@ -3899,6 +3921,28 @@ module Stripe
3899
3921
  end
3900
3922
  end
3901
3923
 
3924
+ class Carecredit < ::Stripe::RequestParams
3925
+ # Controls when the funds are captured from the customer's account.
3926
+ #
3927
+ # 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.
3928
+ #
3929
+ # 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.
3930
+ attr_accessor :capture_method
3931
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
3932
+ #
3933
+ # 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.
3934
+ #
3935
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
3936
+ #
3937
+ # 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).
3938
+ attr_accessor :setup_future_usage
3939
+
3940
+ def initialize(capture_method: nil, setup_future_usage: nil)
3941
+ @capture_method = capture_method
3942
+ @setup_future_usage = setup_future_usage
3943
+ end
3944
+ end
3945
+
3902
3946
  class Cashapp < ::Stripe::RequestParams
3903
3947
  # Controls when the funds are captured from the customer's account.
3904
3948
  #
@@ -4071,6 +4115,28 @@ module Stripe
4071
4115
  end
4072
4116
  end
4073
4117
 
4118
+ class Getflex < ::Stripe::RequestParams
4119
+ # Controls when the funds are captured from the customer's account.
4120
+ #
4121
+ # 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.
4122
+ #
4123
+ # 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.
4124
+ attr_accessor :capture_method
4125
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
4126
+ #
4127
+ # 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.
4128
+ #
4129
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
4130
+ #
4131
+ # 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).
4132
+ attr_accessor :setup_future_usage
4133
+
4134
+ def initialize(capture_method: nil, setup_future_usage: nil)
4135
+ @capture_method = capture_method
4136
+ @setup_future_usage = setup_future_usage
4137
+ end
4138
+ end
4139
+
4074
4140
  class GiftCard < ::Stripe::RequestParams
4075
4141
  # Set to `yes` to ignore the application fee on the PaymentIntent when redeeming this gift card.
4076
4142
  attr_accessor :ignore_application_fee
@@ -5915,6 +5981,28 @@ module Stripe
5915
5981
  end
5916
5982
  end
5917
5983
 
5984
+ class Sezzle < ::Stripe::RequestParams
5985
+ # Controls when the funds are captured from the customer's account.
5986
+ #
5987
+ # 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.
5988
+ #
5989
+ # 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.
5990
+ attr_accessor :capture_method
5991
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
5992
+ #
5993
+ # 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.
5994
+ #
5995
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
5996
+ #
5997
+ # 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).
5998
+ attr_accessor :setup_future_usage
5999
+
6000
+ def initialize(capture_method: nil, setup_future_usage: nil)
6001
+ @capture_method = capture_method
6002
+ @setup_future_usage = setup_future_usage
6003
+ end
6004
+ end
6005
+
5918
6006
  class Shopeepay < ::Stripe::RequestParams
5919
6007
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
5920
6008
  #
@@ -6298,6 +6386,8 @@ module Stripe
6298
6386
  attr_accessor :card
6299
6387
  # If this is a `card_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options.
6300
6388
  attr_accessor :card_present
6389
+ # If this is a `carecredit` PaymentMethod, this sub-hash contains details about the CareCredit payment method options.
6390
+ attr_accessor :carecredit
6301
6391
  # If this is a `cashapp` PaymentMethod, this sub-hash contains details about the Cash App Pay payment method options.
6302
6392
  attr_accessor :cashapp
6303
6393
  # If this is a `crypto` PaymentMethod, this sub-hash contains details about the Crypto payment method options.
@@ -6308,6 +6398,8 @@ module Stripe
6308
6398
  attr_accessor :eps
6309
6399
  # If this is a `fpx` PaymentMethod, this sub-hash contains details about the FPX payment method options.
6310
6400
  attr_accessor :fpx
6401
+ # If this is a `getflex` PaymentMethod, this sub-hash contains details about the GetFlex payment method options.
6402
+ attr_accessor :getflex
6311
6403
  # If this is a `gift_card` PaymentMethod, this sub-hash contains details about the gift card payment method options.
6312
6404
  attr_accessor :gift_card
6313
6405
  # If this is a `giropay` PaymentMethod, this sub-hash contains details about the Giropay payment method options.
@@ -6378,6 +6470,8 @@ module Stripe
6378
6470
  attr_accessor :sepa_debit
6379
6471
  # If this is a `sequra` PaymentMethod, this sub-hash contains details about the SeQura payment method options.
6380
6472
  attr_accessor :sequra
6473
+ # If this is a `sezzle` PaymentMethod, this sub-hash contains details about the Sezzle payment method options.
6474
+ attr_accessor :sezzle
6381
6475
  # If this is a `shopeepay` PaymentMethod, this sub-hash contains details about the ShopeePay payment method options.
6382
6476
  attr_accessor :shopeepay
6383
6477
  # If this is a `sofort` PaymentMethod, this sub-hash contains details about the SOFORT payment method options.
@@ -6417,11 +6511,13 @@ module Stripe
6417
6511
  boleto: nil,
6418
6512
  card: nil,
6419
6513
  card_present: nil,
6514
+ carecredit: nil,
6420
6515
  cashapp: nil,
6421
6516
  crypto: nil,
6422
6517
  customer_balance: nil,
6423
6518
  eps: nil,
6424
6519
  fpx: nil,
6520
+ getflex: nil,
6425
6521
  gift_card: nil,
6426
6522
  giropay: nil,
6427
6523
  gopay: nil,
@@ -6457,6 +6553,7 @@ module Stripe
6457
6553
  scalapay: nil,
6458
6554
  sepa_debit: nil,
6459
6555
  sequra: nil,
6556
+ sezzle: nil,
6460
6557
  shopeepay: nil,
6461
6558
  sofort: nil,
6462
6559
  stripe_balance: nil,
@@ -6484,11 +6581,13 @@ module Stripe
6484
6581
  @boleto = boleto
6485
6582
  @card = card
6486
6583
  @card_present = card_present
6584
+ @carecredit = carecredit
6487
6585
  @cashapp = cashapp
6488
6586
  @crypto = crypto
6489
6587
  @customer_balance = customer_balance
6490
6588
  @eps = eps
6491
6589
  @fpx = fpx
6590
+ @getflex = getflex
6492
6591
  @gift_card = gift_card
6493
6592
  @giropay = giropay
6494
6593
  @gopay = gopay
@@ -6524,6 +6623,7 @@ module Stripe
6524
6623
  @scalapay = scalapay
6525
6624
  @sepa_debit = sepa_debit
6526
6625
  @sequra = sequra
6626
+ @sezzle = sezzle
6527
6627
  @shopeepay = shopeepay
6528
6628
  @sofort = sofort
6529
6629
  @stripe_balance = stripe_balance
@@ -2406,6 +2406,7 @@ module Stripe
2406
2406
  end
2407
2407
  end
2408
2408
 
2409
+ class Carecredit < ::Stripe::RequestParams; end
2409
2410
  class Cashapp < ::Stripe::RequestParams; end
2410
2411
  class Crypto < ::Stripe::RequestParams; end
2411
2412
  class CustomerBalance < ::Stripe::RequestParams; end
@@ -2431,6 +2432,8 @@ module Stripe
2431
2432
  end
2432
2433
  end
2433
2434
 
2435
+ class Getflex < ::Stripe::RequestParams; end
2436
+
2434
2437
  class GiftCard < ::Stripe::RequestParams
2435
2438
  # The gift card ID to redeem
2436
2439
  attr_accessor :gift_card
@@ -2580,6 +2583,8 @@ module Stripe
2580
2583
  end
2581
2584
  end
2582
2585
 
2586
+ class RakutenPay < ::Stripe::RequestParams; end
2587
+
2583
2588
  class Rechnung < ::Stripe::RequestParams
2584
2589
  class Dob < ::Stripe::RequestParams
2585
2590
  # The day of birth, between 1 and 31.
@@ -2618,6 +2623,7 @@ module Stripe
2618
2623
  end
2619
2624
 
2620
2625
  class Sequra < ::Stripe::RequestParams; end
2626
+ class Sezzle < ::Stripe::RequestParams; end
2621
2627
  class Shopeepay < ::Stripe::RequestParams; end
2622
2628
 
2623
2629
  class Sofort < ::Stripe::RequestParams
@@ -2729,6 +2735,8 @@ module Stripe
2729
2735
  attr_accessor :blik
2730
2736
  # If this is a `boleto` PaymentMethod, this hash contains details about the Boleto payment method.
2731
2737
  attr_accessor :boleto
2738
+ # If this is a `carecredit` PaymentMethod, this hash contains details about the CareCredit payment method.
2739
+ attr_accessor :carecredit
2732
2740
  # If this is a `cashapp` PaymentMethod, this hash contains details about the Cash App Pay payment method.
2733
2741
  attr_accessor :cashapp
2734
2742
  # If this is a Crypto PaymentMethod, this hash contains details about the Crypto payment method.
@@ -2739,6 +2747,8 @@ module Stripe
2739
2747
  attr_accessor :eps
2740
2748
  # If this is an `fpx` PaymentMethod, this hash contains details about the FPX payment method.
2741
2749
  attr_accessor :fpx
2750
+ # If this is a `getflex` PaymentMethod, this hash contains details about the GetFlex payment method.
2751
+ attr_accessor :getflex
2742
2752
  # If this is a `gift_card` PaymentMethod, this hash contains details about the gift card payment method.
2743
2753
  attr_accessor :gift_card
2744
2754
  # If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
@@ -2799,6 +2809,8 @@ module Stripe
2799
2809
  attr_accessor :qris
2800
2810
  # Options to configure Radar. See [Radar Session](https://docs.stripe.com/radar/radar-session) for more information.
2801
2811
  attr_accessor :radar_options
2812
+ # If this is a `rakuten_pay` PaymentMethod, this hash contains details about the Rakuten Pay payment method.
2813
+ attr_accessor :rakuten_pay
2802
2814
  # If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
2803
2815
  attr_accessor :rechnung
2804
2816
  # If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
@@ -2813,6 +2825,8 @@ module Stripe
2813
2825
  attr_accessor :sepa_debit
2814
2826
  # If this is a SeQura PaymentMethod, this hash contains details about the SeQura payment method.
2815
2827
  attr_accessor :sequra
2828
+ # If this is a `sezzle` PaymentMethod, this hash contains details about the Sezzle payment method.
2829
+ attr_accessor :sezzle
2816
2830
  # ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent.
2817
2831
  attr_accessor :shared_payment_granted_token
2818
2832
  # If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
@@ -2858,11 +2872,13 @@ module Stripe
2858
2872
  bizum: nil,
2859
2873
  blik: nil,
2860
2874
  boleto: nil,
2875
+ carecredit: nil,
2861
2876
  cashapp: nil,
2862
2877
  crypto: nil,
2863
2878
  customer_balance: nil,
2864
2879
  eps: nil,
2865
2880
  fpx: nil,
2881
+ getflex: nil,
2866
2882
  gift_card: nil,
2867
2883
  giropay: nil,
2868
2884
  gopay: nil,
@@ -2893,6 +2909,7 @@ module Stripe
2893
2909
  promptpay: nil,
2894
2910
  qris: nil,
2895
2911
  radar_options: nil,
2912
+ rakuten_pay: nil,
2896
2913
  rechnung: nil,
2897
2914
  revolut_pay: nil,
2898
2915
  samsung_pay: nil,
@@ -2900,6 +2917,7 @@ module Stripe
2900
2917
  scalapay: nil,
2901
2918
  sepa_debit: nil,
2902
2919
  sequra: nil,
2920
+ sezzle: nil,
2903
2921
  shared_payment_granted_token: nil,
2904
2922
  shopeepay: nil,
2905
2923
  sofort: nil,
@@ -2930,11 +2948,13 @@ module Stripe
2930
2948
  @bizum = bizum
2931
2949
  @blik = blik
2932
2950
  @boleto = boleto
2951
+ @carecredit = carecredit
2933
2952
  @cashapp = cashapp
2934
2953
  @crypto = crypto
2935
2954
  @customer_balance = customer_balance
2936
2955
  @eps = eps
2937
2956
  @fpx = fpx
2957
+ @getflex = getflex
2938
2958
  @gift_card = gift_card
2939
2959
  @giropay = giropay
2940
2960
  @gopay = gopay
@@ -2965,6 +2985,7 @@ module Stripe
2965
2985
  @promptpay = promptpay
2966
2986
  @qris = qris
2967
2987
  @radar_options = radar_options
2988
+ @rakuten_pay = rakuten_pay
2968
2989
  @rechnung = rechnung
2969
2990
  @revolut_pay = revolut_pay
2970
2991
  @samsung_pay = samsung_pay
@@ -2972,6 +2993,7 @@ module Stripe
2972
2993
  @scalapay = scalapay
2973
2994
  @sepa_debit = sepa_debit
2974
2995
  @sequra = sequra
2996
+ @sezzle = sezzle
2975
2997
  @shared_payment_granted_token = shared_payment_granted_token
2976
2998
  @shopeepay = shopeepay
2977
2999
  @sofort = sofort
@@ -3877,6 +3899,28 @@ module Stripe
3877
3899
  end
3878
3900
  end
3879
3901
 
3902
+ class Carecredit < ::Stripe::RequestParams
3903
+ # Controls when the funds are captured from the customer's account.
3904
+ #
3905
+ # 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.
3906
+ #
3907
+ # 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.
3908
+ attr_accessor :capture_method
3909
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
3910
+ #
3911
+ # 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.
3912
+ #
3913
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
3914
+ #
3915
+ # 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).
3916
+ attr_accessor :setup_future_usage
3917
+
3918
+ def initialize(capture_method: nil, setup_future_usage: nil)
3919
+ @capture_method = capture_method
3920
+ @setup_future_usage = setup_future_usage
3921
+ end
3922
+ end
3923
+
3880
3924
  class Cashapp < ::Stripe::RequestParams
3881
3925
  # Controls when the funds are captured from the customer's account.
3882
3926
  #
@@ -4049,6 +4093,28 @@ module Stripe
4049
4093
  end
4050
4094
  end
4051
4095
 
4096
+ class Getflex < ::Stripe::RequestParams
4097
+ # Controls when the funds are captured from the customer's account.
4098
+ #
4099
+ # 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.
4100
+ #
4101
+ # 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.
4102
+ attr_accessor :capture_method
4103
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
4104
+ #
4105
+ # 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.
4106
+ #
4107
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
4108
+ #
4109
+ # 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).
4110
+ attr_accessor :setup_future_usage
4111
+
4112
+ def initialize(capture_method: nil, setup_future_usage: nil)
4113
+ @capture_method = capture_method
4114
+ @setup_future_usage = setup_future_usage
4115
+ end
4116
+ end
4117
+
4052
4118
  class GiftCard < ::Stripe::RequestParams
4053
4119
  # Set to `yes` to ignore the application fee on the PaymentIntent when redeeming this gift card.
4054
4120
  attr_accessor :ignore_application_fee
@@ -5893,6 +5959,28 @@ module Stripe
5893
5959
  end
5894
5960
  end
5895
5961
 
5962
+ class Sezzle < ::Stripe::RequestParams
5963
+ # Controls when the funds are captured from the customer's account.
5964
+ #
5965
+ # 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.
5966
+ #
5967
+ # 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.
5968
+ attr_accessor :capture_method
5969
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
5970
+ #
5971
+ # 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.
5972
+ #
5973
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
5974
+ #
5975
+ # 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).
5976
+ attr_accessor :setup_future_usage
5977
+
5978
+ def initialize(capture_method: nil, setup_future_usage: nil)
5979
+ @capture_method = capture_method
5980
+ @setup_future_usage = setup_future_usage
5981
+ end
5982
+ end
5983
+
5896
5984
  class Shopeepay < ::Stripe::RequestParams
5897
5985
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
5898
5986
  #
@@ -6276,6 +6364,8 @@ module Stripe
6276
6364
  attr_accessor :card
6277
6365
  # If this is a `card_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options.
6278
6366
  attr_accessor :card_present
6367
+ # If this is a `carecredit` PaymentMethod, this sub-hash contains details about the CareCredit payment method options.
6368
+ attr_accessor :carecredit
6279
6369
  # If this is a `cashapp` PaymentMethod, this sub-hash contains details about the Cash App Pay payment method options.
6280
6370
  attr_accessor :cashapp
6281
6371
  # If this is a `crypto` PaymentMethod, this sub-hash contains details about the Crypto payment method options.
@@ -6286,6 +6376,8 @@ module Stripe
6286
6376
  attr_accessor :eps
6287
6377
  # If this is a `fpx` PaymentMethod, this sub-hash contains details about the FPX payment method options.
6288
6378
  attr_accessor :fpx
6379
+ # If this is a `getflex` PaymentMethod, this sub-hash contains details about the GetFlex payment method options.
6380
+ attr_accessor :getflex
6289
6381
  # If this is a `gift_card` PaymentMethod, this sub-hash contains details about the gift card payment method options.
6290
6382
  attr_accessor :gift_card
6291
6383
  # If this is a `giropay` PaymentMethod, this sub-hash contains details about the Giropay payment method options.
@@ -6356,6 +6448,8 @@ module Stripe
6356
6448
  attr_accessor :sepa_debit
6357
6449
  # If this is a `sequra` PaymentMethod, this sub-hash contains details about the SeQura payment method options.
6358
6450
  attr_accessor :sequra
6451
+ # If this is a `sezzle` PaymentMethod, this sub-hash contains details about the Sezzle payment method options.
6452
+ attr_accessor :sezzle
6359
6453
  # If this is a `shopeepay` PaymentMethod, this sub-hash contains details about the ShopeePay payment method options.
6360
6454
  attr_accessor :shopeepay
6361
6455
  # If this is a `sofort` PaymentMethod, this sub-hash contains details about the SOFORT payment method options.
@@ -6395,11 +6489,13 @@ module Stripe
6395
6489
  boleto: nil,
6396
6490
  card: nil,
6397
6491
  card_present: nil,
6492
+ carecredit: nil,
6398
6493
  cashapp: nil,
6399
6494
  crypto: nil,
6400
6495
  customer_balance: nil,
6401
6496
  eps: nil,
6402
6497
  fpx: nil,
6498
+ getflex: nil,
6403
6499
  gift_card: nil,
6404
6500
  giropay: nil,
6405
6501
  gopay: nil,
@@ -6435,6 +6531,7 @@ module Stripe
6435
6531
  scalapay: nil,
6436
6532
  sepa_debit: nil,
6437
6533
  sequra: nil,
6534
+ sezzle: nil,
6438
6535
  shopeepay: nil,
6439
6536
  sofort: nil,
6440
6537
  stripe_balance: nil,
@@ -6462,11 +6559,13 @@ module Stripe
6462
6559
  @boleto = boleto
6463
6560
  @card = card
6464
6561
  @card_present = card_present
6562
+ @carecredit = carecredit
6465
6563
  @cashapp = cashapp
6466
6564
  @crypto = crypto
6467
6565
  @customer_balance = customer_balance
6468
6566
  @eps = eps
6469
6567
  @fpx = fpx
6568
+ @getflex = getflex
6470
6569
  @gift_card = gift_card
6471
6570
  @giropay = giropay
6472
6571
  @gopay = gopay
@@ -6502,6 +6601,7 @@ module Stripe
6502
6601
  @scalapay = scalapay
6503
6602
  @sepa_debit = sepa_debit
6504
6603
  @sequra = sequra
6604
+ @sezzle = sezzle
6505
6605
  @shopeepay = shopeepay
6506
6606
  @sofort = sofort
6507
6607
  @stripe_balance = stripe_balance