text: import http from './http';
  
  /**
   * Returns an unity's details
   *
   * @method
   * @memberof module:Services
   *
   * @example
   * // Request
   * getUnityDetails(5583)
   *
   * // Response
   * // https://jsonbin.io/5d92364649cc216d8c9019e4
   *
   * @returns {Object}
   *
   * @param {number} id - Unity id
   */
  const getUnityDetails = id =>
    http().get(`/unities/${id}`, {
      params: {
        style: 'gastronomy',
      },
    });
  
  /**
   * Returns an unity's catalog
   *
   * @method
   * @memberof module:Services
   *
   * @example
   * // Request
   * getUnityCatalog(5583)
   *
   * // Response
   * // https://jsonbin.io/5d9b664710274c40df20f0f0
   *
   * @returns {Object[]}
   *
   * @param {number} id - Unity id
   */
  const getUnityCatalog = id =>
    http().get('/menus', {
      params: {
        idUnity: id,
        orderTypes: '[1]',
      },
    });
  
  export { getUnityDetails, getUnityCatalog };
  