stripe 19.2.0.pre.alpha.2 → 19.2.0.pre.alpha.4

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 (44) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stripe/events/unknown_event_notification.rb +1 -0
  3. data/lib/stripe/object_types.rb +1 -0
  4. data/lib/stripe/params/account_create_params.rb +20 -1
  5. data/lib/stripe/params/account_update_params.rb +20 -1
  6. data/lib/stripe/params/confirmation_token_create_params.rb +13 -0
  7. data/lib/stripe/params/delegated_checkout/requested_session_confirm_params.rb +4 -0
  8. data/lib/stripe/params/payment_intent_confirm_params.rb +13 -0
  9. data/lib/stripe/params/payment_intent_create_params.rb +13 -0
  10. data/lib/stripe/params/payment_intent_update_params.rb +13 -0
  11. data/lib/stripe/params/payment_location_create_params.rb +54 -0
  12. data/lib/stripe/params/payment_location_delete_params.rb +6 -0
  13. data/lib/stripe/params/payment_location_retrieve_params.rb +13 -0
  14. data/lib/stripe/params/payment_location_update_params.rb +54 -0
  15. data/lib/stripe/params/payment_method_create_params.rb +13 -0
  16. data/lib/stripe/params/setup_intent_confirm_params.rb +13 -0
  17. data/lib/stripe/params/setup_intent_create_params.rb +13 -0
  18. data/lib/stripe/params/setup_intent_update_params.rb +13 -0
  19. data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +13 -0
  20. data/lib/stripe/params/v2/core/account_create_params.rb +76 -2
  21. data/lib/stripe/params/v2/core/account_update_params.rb +76 -2
  22. data/lib/stripe/params.rb +4 -0
  23. data/lib/stripe/resources/capability.rb +36 -1
  24. data/lib/stripe/resources/confirmation_token.rb +26 -0
  25. data/lib/stripe/resources/invoice_item.rb +34 -1
  26. data/lib/stripe/resources/issuing/dispute.rb +68 -0
  27. data/lib/stripe/resources/payment_location.rb +159 -0
  28. data/lib/stripe/resources/payment_method.rb +26 -0
  29. data/lib/stripe/resources/shared_payment/granted_token.rb +26 -0
  30. data/lib/stripe/resources/subscription.rb +44 -0
  31. data/lib/stripe/resources/v2/core/account.rb +116 -2
  32. data/lib/stripe/resources/v2/core/event_notification.rb +1 -0
  33. data/lib/stripe/resources.rb +1 -0
  34. data/lib/stripe/services/payment_location_service.rb +50 -0
  35. data/lib/stripe/services/v1_services.rb +2 -1
  36. data/lib/stripe/services.rb +1 -0
  37. data/lib/stripe/stripe_client.rb +8 -1
  38. data/lib/stripe/stripe_event_notification_handler.rb +2478 -0
  39. data/lib/stripe/version.rb +1 -1
  40. data/lib/stripe.rb +1 -0
  41. data/rbi/stripe/resources/v2/core/event_notification.rbi +3 -0
  42. data/rbi/stripe/stripe_client.rbi +13 -0
  43. data/rbi/stripe.rbi +1291 -86
  44. metadata +9 -2
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Stripe
4
- VERSION = "19.2.0-alpha.2"
4
+ VERSION = "19.2.0-alpha.4"
5
5
  end
data/lib/stripe.rb CHANGED
@@ -51,6 +51,7 @@ require "stripe/api_resource"
51
51
  require "stripe/api_resource_test_helpers"
52
52
  require "stripe/singleton_api_resource"
53
53
  require "stripe/webhook"
54
+ require "stripe/stripe_event_notification_handler"
54
55
  require "stripe/stripe_configuration"
55
56
  require "stripe/resources/v2/amount"
56
57
  require "stripe/resources/v2/deleted_object"
@@ -1,3 +1,6 @@
1
+ # File copied from our code generator; changes here will be overwritten.
2
+ # frozen_string_literal: true
3
+
1
4
  # frozen_string_literal: true
2
5
  # typed: true
3
6
 
@@ -13,5 +13,18 @@ module Stripe
13
13
  .returns(::Stripe::V2::Core::EventNotification)
14
14
  end
15
15
  def parse_event_notification(payload, sig_header, secret, tolerance:); end
16
+
17
+ sig do
18
+ params(
19
+ webhook_secret: String,
20
+ blk: T.proc.params(
21
+ event_notification: ::Stripe::V2::Core::EventNotification,
22
+ client: ::Stripe::StripeClient,
23
+ details: ::Stripe::UnhandledNotificationDetails
24
+ ).void
25
+ )
26
+ .returns(::Stripe::StripeEventNotificationHandler)
27
+ end
28
+ def notification_handler(webhook_secret, &blk); end
16
29
  end
17
30
  end