View Source ExPipedrive.MailMessage (ex_pipedrive v0.2.0)

A single email inside a Pipedrive mail thread.

Decoded from GET /api/v1/mailbox/mailMessages/:id and GET /api/v1/mailbox/mailThreads/:id/mailMessages responses. :from, :to, :cc, and :bcc are lists of ExPipedrive.MailMessageParty. :body is only present when the request opted in with include_body: 1.

Summary

Types

@type t() :: %ExPipedrive.MailMessage{
  account_id: String.t() | nil,
  add_time: (DateTime.t() | NaiveDateTime.t()) | nil,
  bcc: [ExPipedrive.MailMessageParty.t()],
  body: String.t() | nil,
  body_url: String.t() | nil,
  cc: [ExPipedrive.MailMessageParty.t()],
  deleted_flag: boolean() | nil,
  draft: String.t() | nil,
  from: [ExPipedrive.MailMessageParty.t()],
  has_attachments_flag: boolean() | nil,
  has_body_flag: boolean() | nil,
  has_inline_attachments_flag: boolean() | nil,
  has_real_attachments_flag: boolean() | nil,
  id: pos_integer() | nil,
  mail_link_tracking_enabled_flag: boolean() | nil,
  mail_thread_id: pos_integer() | nil,
  mail_tracking_status: String.t() | nil,
  message_time: (DateTime.t() | NaiveDateTime.t()) | nil,
  original_object: map() | nil,
  read_flag: boolean() | nil,
  sent_flag: boolean() | nil,
  sent_from_pipedrive_flag: boolean() | nil,
  smart_bcc_flag: boolean() | nil,
  snippet: String.t() | nil,
  subject: String.t() | nil,
  synced_flag: boolean() | nil,
  to: [ExPipedrive.MailMessageParty.t()],
  update_time: (DateTime.t() | NaiveDateTime.t()) | nil,
  user_id: pos_integer() | nil
}

Functions