def create(domain, options = {})
      fail(ParameterError, 'No domain given to add on Mailgun', caller) unless domain
      options = { smtp_password: nil, spam_action: 'disabled', wildcard: false }.merge(options)
      options[:name] = domain
      @client.post('domains', options).to_h
    end
def create(domain, options = {})
      fail(ParameterError, 'No domain given to add on Mailgun', caller) unless domain
      options = { smtp_password: nil, spam_action: 'disabled', wildcard: false }.merge(options)
      options[:name] = domain
      @client.post('domains', options).to_h
    end
Public: Add domain

 domain  - [String] Name of the domain (ex. domain.com)
 options - [Hash] of
     smtp_password - [String] Password for SMTP authentication
     spam_action   - [String] disabled or tag
       Disable, no spam filtering will occur for inbound messages.
       Tag, messages will be tagged wtih a spam header. See Spam Filter.
     wildcard      - [Boolean] true or false Determines whether the domain will accept email for sub-domains.

 Returns [Hash] of created domain