Class: Lithic::Resources::Events::EventSubscriptions
- Inherits:
-
Object
- Object
- Lithic::Resources::Events::EventSubscriptions
- Defined in:
- lib/lithic/resources/events/event_subscriptions.rb
Instance Method Summary collapse
-
#initialize(client:) ⇒ EventSubscriptions
constructor
private
A new instance of EventSubscriptions.
-
#resend(event_subscription_token, event_token:, request_options: {}) ⇒ nil
Resend an event to an event subscription.
Constructor Details
#initialize(client:) ⇒ EventSubscriptions
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of EventSubscriptions.
35 36 37 |
# File 'lib/lithic/resources/events/event_subscriptions.rb', line 35 def initialize(client:) @client = client end |
Instance Method Details
#resend(event_subscription_token, event_token:, request_options: {}) ⇒ nil
Resend an event to an event subscription.
18 19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/lithic/resources/events/event_subscriptions.rb', line 18 def resend(event_subscription_token, params) parsed, = Lithic::Events::EventSubscriptionResendParams.dump_request(params) event_token = parsed.delete(:event_token) do raise ArgumentError.new("missing required path argument #{_1}") end @client.request( method: :post, path: ["v1/events/%1$s/event_subscriptions/%2$s/resend", event_token, event_subscription_token], model: NilClass, options: ) end |