Class: Lithic::Resources::Events::EventSubscriptions

Inherits:
Object
  • Object
show all
Defined in:
lib/lithic/resources/events/event_subscriptions.rb

Instance Method Summary collapse

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.

Parameters:



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.

Parameters:

  • event_subscription_token (String)
  • event_token (String)
  • request_options (Lithic::RequestOptions, Hash{Symbol=>Object}, nil)

Returns:

  • (nil)

See Also:



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, options = 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: options
  )
end