async sendEmailAndConfirm(inboxId, opts) {
      opts = opts || {};
      let postBody = opts['sendEmailOptions'];
      // verify the required parameter 'inboxId' is set
      if (inboxId === undefined || inboxId === null) {
        throw new Error("Missing the required parameter 'inboxId' when calling sendEmailAndConfirm");
      }

      let pathParams = {
        'inboxId': inboxId
      };
      let queryParams = {
      };
      let headerParams = {
      };
      let formParams = {
      };

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

      return this.callApi(
        '/inboxes/{inboxId}/confirm', 'POST',
        pathParams, queryParams, headerParams, formParams, postBody,
        authNames, contentTypes, accepts, returnType
      );
    }
/**
     * Send email and return sent confirmation
     * Sister method for standard `sendEmail` method with the benefit of returning a `SentEmail` entity confirming the successful sending of the email with link the the sent object created for it.
     * @param {String} inboxId ID of the inbox you want to send the email from
     * @param {Object} opts Optional parameters
     * @param {SendEmailOptions} opts.sendEmailOptions Options for the email
     * @return {Promise<SentEmailDto>}
     */
Send email and return sent confirmation
Sister method for standard `sendEmail` method with the benefit of returning a `SentEmail` entity confirming the successful sending of the email with link the the sent object created for it.
@param {String} inboxId ID of the inbox you want to send the email from
@param {Object} opts Optional parameters
@param {SendEmailOptions} opts.sendEmailOptions Options for the email
@return {Promise}
Send email and return sent confirmation Sister method for standard ` sendEmail ` method with the benefit of returning a ` SentEmail ` entity confirming the successful sending of the email with link the the sent object created for it . @param { String } inboxId ID of the inbox you want to send the email from @param { Object } opts Optional parameters @param { SendEmailOptions } opts . sendEmailOptions Options for the email @return { Promise }
async sendEmailAndConfirm(inboxId, opts) {
      opts = opts || {};
      let postBody = opts['sendEmailOptions'];
      if (inboxId === undefined || inboxId === null) {
        throw new Error("Missing the required parameter 'inboxId' when calling sendEmailAndConfirm");
      }
      let pathParams = {
        'inboxId': inboxId
      };
      let queryParams = {
      };
      let headerParams = {
      };
      let formParams = {
      };
      let authNames = ['API_KEY'];
      let contentTypes = ['application/json'];
      let accepts = ['application/json'];
      let returnType = SentEmailDto;
      return this.callApi(
        '/inboxes/{inboxId}/confirm', 'POST',
        pathParams, queryParams, headerParams, formParams, postBody,
        authNames, contentTypes, accepts, returnType
      );
    }
async sendEmailAndConfirm ( inboxId , opts ) { opts = opts || { } ; let postBody = opts [ 'sendEmailOptions' ] ; if ( inboxId === undefined || inboxId === null ) { throw new Error ( "Missing the required parameter 'inboxId' when calling sendEmailAndConfirm" ) ; } let pathParams = { 'inboxId' : inboxId } ; let queryParams = { } ; let headerParams = { } ; let formParams = { } ; let authNames = [ 'API_KEY' ] ; let contentTypes = [ 'application/json' ] ; let accepts = [ 'application/json' ] ; let returnType = SentEmailDto ; return this . callApi ( '/inboxes/{inboxId}/confirm' , 'POST' , pathParams , queryParams , headerParams , formParams , postBody , authNames , contentTypes , accepts , returnType ) ; }
Send email and return sent confirmation
 Sister method for standard `sendEmail` method with the benefit of returning a `SentEmail` entity confirming the successful sending of the email with link the the sent object created for it.
Send email and return sent confirmation Sister method for standard ` sendEmail ` method with the benefit of returning a ` SentEmail ` entity confirming the successful sending of the email with link the the sent object created for it .
// verify the required parameter 'inboxId' is set