text: /**
   * FactSet Procure to Pay API
   * Allows for Provisioning and Entitlement of FactSet accounts.     Authentication is provided via FactSet's [API Key System](https://developer.factset.com/authentication)    Please note that the on-page \"Try it out\" features do not function. You must authorize against our API and make requests directly againt the endpoints.    
   *
   * The version of the OpenAPI document: 1S
   * 
   *
   * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
   * https://openapi-generator.tech
   * Do not edit the class manually.
   *
   */
  
  
  import ApiClient from "../ApiClient";
  import TransactionStatus from '../model/TransactionStatus';
  
  /**
  * OrderStatus service.
  * @module api/OrderStatusApi
  * @version 0.9.1
  */
  export default class OrderStatusApi {
  
      /**
      * Constructs a new OrderStatusApi. 
      * @alias module:api/OrderStatusApi
      * @class
      * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
      * default to {@link module:ApiClient#instance} if unspecified.
      */
      constructor(apiClient) {
          this.apiClient = apiClient || ApiClient.instance;
      }
  
  
  
      /**
       * Check status of order by transactionCode
       * @param {String} transactioncode Transaction Code to query
       * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/TransactionStatus} and HTTP response
       */
      transactionStatusGetWithHttpInfo(transactioncode, opts) {
        opts = opts || {};
        let postBody = null;
        // verify the required parameter 'transactioncode' is set
        if (transactioncode === undefined || transactioncode === null) {
          throw new Error("Missing the required parameter 'transactioncode' when calling transactionStatusGet");
        }
  
        let pathParams = {
        };
        let queryParams = {
          'transactioncode': transactioncode
        };
        let headerParams = {
        };
        let formParams = {
        };
  
        let authNames = ['FactSetApiKey', 'FactSetOAuth2'];
        let contentTypes = [];
        let accepts = ['application/json; charset=utf-8', 'text/plain'];
        let returnType = TransactionStatus;
        let basePaths = ['https://api.factset.com/procuretopay/provisioning/'];
        let basePath = basePaths[0]; // by default use the first one in "servers" defined in OpenAPI
        if (typeof opts['_base_path_index'] !== 'undefined') {
          if (opts['_base_path_index']  >= basePaths.length || opts['_base_path_index'] <  0) {
            throw new Error("Invalid index " + opts['_base_path_index'] + " when selecting the host settings. Must be less than " + basePaths.length);
          }
          basePath = basePaths[opts['_base_path_index']];
        }
  
        return this.apiClient.callApi(
          '/transactionStatus', 'GET',
          pathParams, queryParams, headerParams, formParams, postBody,
          authNames, contentTypes, accepts, returnType, basePath
        );
      }
  
      /**
       * Check status of order by transactionCode
       * @param {String} transactioncode Transaction Code to query
       * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/TransactionStatus}
       */
      transactionStatusGet(transactioncode, opts) {
        return this.transactionStatusGetWithHttpInfo(transactioncode, opts)
          .then(function(response_and_data) {
            return response_and_data.data;
          });
      }
  
  
  }
  