package sihl

  1. Overview
  2. Docs
type t = {
  1. id : string;
  2. label : string;
  3. text : string;
  4. html : string option;
  5. created_at : Ptime.t;
  6. updated_at : Ptime.t;
}
val name : string
module type Sig = sig ... end
val to_sexp : t -> Sexplib0.Sexp.t
val pp : Format.formatter -> t -> unit
val of_yojson : Yojson__Safe.t -> t option
val to_yojson : t -> [> `Assoc of (string * [> `Null | `String of string ]) list ]
val set_label : string -> t -> t
val set_text : string -> t -> t
val set_html : string option -> t -> t
val replace_element : string -> string -> string -> string
val render : (string * string) list -> string -> string option -> string * string option
val email_of_template : ?template:t -> Sihl__.Contract_email.t -> (string * string) list -> Sihl__.Contract_email.t Lwt.t
val create_email_of_template : ?cc:string list -> ?bcc:string list -> sender:string -> recipient:string -> subject:string -> t -> (string * string) list -> Sihl__.Contract_email.t
val render_email_with_data : (string * string) list -> Sihl__.Contract_email.t -> Sihl__.Contract_email.t
OCaml

Innovation. Community. Security.