All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.tools.ozone.communication.createTemplate.kt Maven / Gradle / Ivy

The newest version!
@file:Suppress("DEPRECATION")

package tools.ozone.communication

import kotlin.String
import kotlin.Suppress
import kotlinx.serialization.Serializable
import sh.christian.ozone.api.Did
import sh.christian.ozone.api.Language

/**
 * @param name Name of the template.
 * @param contentMarkdown Content of the template, markdown supported, can contain variable
 * placeholders.
 * @param subject Subject of the message, used in emails.
 * @param lang Message language.
 * @param createdBy DID of the user who is creating the template.
 */
@Serializable
public data class CreateTemplateRequest(
  /**
   * Name of the template.
   */
  public val name: String,
  /**
   * Content of the template, markdown supported, can contain variable placeholders.
   */
  public val contentMarkdown: String,
  /**
   * Subject of the message, used in emails.
   */
  public val subject: String,
  /**
   * Message language.
   */
  public val lang: Language? = null,
  /**
   * DID of the user who is creating the template.
   */
  public val createdBy: Did? = null,
)

public typealias CreateTemplateResponse = TemplateView




© 2015 - 2024 Weber Informatics LLC | Privacy Policy