lib/mail_slurp_api/model/webhook_email_opened_payload.ex

# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.

defmodule MailSlurpAPI.Model.WebhookEmailOpenedPayload do
  @moduledoc """
  EMAIL_OPENED webhook payload. Sent to your webhook url endpoint via HTTP POST when an email containing a tracking pixel is opened and the pixel image is loaded by a reader.
  """

  @derive [Poison.Encoder]
  defstruct [
    :"messageId",
    :"webhookId",
    :"eventName",
    :"webhookName",
    :"inboxId",
    :"pixelId",
    :"sentEmailId",
    :"recipient",
    :"createdAt"
  ]

  @type t :: %__MODULE__{
    :"messageId" => String.t,
    :"webhookId" => String.t,
    :"eventName" => String.t,
    :"webhookName" => String.t | nil,
    :"inboxId" => String.t,
    :"pixelId" => String.t,
    :"sentEmailId" => String.t,
    :"recipient" => String.t,
    :"createdAt" => DateTime.t
  }
end

defimpl Poison.Decoder, for: MailSlurpAPI.Model.WebhookEmailOpenedPayload do
  def decode(value, _options) do
    value
  end
end