module Mailosaur
  module Models
    class MessageCreateOptions < BaseModel
      def initialize(data = {})
        @to = data['to']
        @send = data['send']
        @subject = data['subject']
        @text = data['text']
        @html = data['html']
      end

      # @return [String] The email address to which the email will be sent.
      # Must be a verified email address.
      attr_accessor :to

      # @return [Boolean] If true, email will be sent upon creation.
      attr_accessor :send

      # @return [String] The email subject line.
      attr_accessor :subject

      # @return [String] The plain text body of the email. Note that only
      # text or html can be supplied, not both.
      attr_accessor :text

      # @return [String] The HTML body of the email. Note that only text
      # or html can be supplied, not both.
      attr_accessor :html
    end
  end
end
