class Lithic::Resources::Events::Subscriptions

def create(params)

Returns:
  • (Lithic::Models::EventSubscription) -

Options Hash: (**params)
  • :request_options (Lithic::RequestOptions, Hash{Symbol=>Object}, nil) --
  • :event_types (Array) -- Indicates types of events that will be sent to this subscription. If left blank,
  • :disabled (Boolean) -- Whether the event subscription is active (false) or inactive (true).
  • :description (String) -- Event subscription description.
  • :url (String) -- URL to which event webhooks will be sent. URL must be a valid HTTPS address.

Parameters:
  • params (Lithic::Models::Events::SubscriptionCreateParams, Hash{Symbol=>Object}) -- .
def create(params)
  parsed, options = Lithic::Models::Events::SubscriptionCreateParams.dump_request(params)
  @client.request(
    method: :post,
    path: "v1/event_subscriptions",
    body: parsed,
    model: Lithic::Models::EventSubscription,
    options: options
  )
end