async createDomain(domainOptions) {
      let postBody = domainOptions;
      // verify the required parameter 'domainOptions' is set
      if (domainOptions === undefined || domainOptions === null) {
        throw new Error("Missing the required parameter 'domainOptions' when calling createDomain");
      }

      let pathParams = {
      };
      let queryParams = {
      };
      let headerParams = {
      };
      let formParams = {
      };

      let authNames = ['API_KEY'];
      let contentTypes = ['application/json'];
      let accepts = ['application/json'];
      let returnType = DomainDto;

      return this.callApi(
        '/domains', 'POST',
        pathParams, queryParams, headerParams, formParams, postBody,
        authNames, contentTypes, accepts, returnType
      );
    }
/**
     * Create Domain
     * Link a domain that you own with MailSlurp so you can create email addresses using it. Endpoint returns DNS records used for validation. You must add these verification records to your host provider's DNS setup to verify the domain.
     * @param {CreateDomainOptions} domainOptions domainOptions
     * @return {Promise<DomainDto>}
     */
Create Domain
Link a domain that you own with MailSlurp so you can create email addresses using it. Endpoint returns DNS records used for validation. You must add these verification records to your host provider's DNS setup to verify the domain.
@param {CreateDomainOptions} domainOptions domainOptions
@return {Promise}
Create Domain Link a domain that you own with MailSlurp so you can create email addresses using it . Endpoint returns DNS records used for validation . You must add these verification records to your host provider ' s DNS setup to verify the domain . @param { CreateDomainOptions } domainOptions domainOptions @return { Promise }
async createDomain(domainOptions) {
      let postBody = domainOptions;
      if (domainOptions === undefined || domainOptions === null) {
        throw new Error("Missing the required parameter 'domainOptions' when calling createDomain");
      }
      let pathParams = {
      };
      let queryParams = {
      };
      let headerParams = {
      };
      let formParams = {
      };
      let authNames = ['API_KEY'];
      let contentTypes = ['application/json'];
      let accepts = ['application/json'];
      let returnType = DomainDto;
      return this.callApi(
        '/domains', 'POST',
        pathParams, queryParams, headerParams, formParams, postBody,
        authNames, contentTypes, accepts, returnType
      );
    }
async createDomain ( domainOptions ) { let postBody = domainOptions ; if ( domainOptions === undefined || domainOptions === null ) { throw new Error ( "Missing the required parameter 'domainOptions' when calling createDomain" ) ; } let pathParams = { } ; let queryParams = { } ; let headerParams = { } ; let formParams = { } ; let authNames = [ 'API_KEY' ] ; let contentTypes = [ 'application/json' ] ; let accepts = [ 'application/json' ] ; let returnType = DomainDto ; return this . callApi ( '/domains' , 'POST' , pathParams , queryParams , headerParams , formParams , postBody , authNames , contentTypes , accepts , returnType ) ; }
Create Domain
 Link a domain that you own with MailSlurp so you can create email addresses using it.
Create Domain Link a domain that you own with MailSlurp so you can create email addresses using it .
// verify the required parameter 'domainOptions' is set