// Angular Core
import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';

// Services
import { ApiService } from '../api/api.service';

@Injectable({
  providedIn: 'root'
})
export class SupplierMinimumsService {

  constructor(private http: HttpClient, public api: ApiService) { }

  /**
   * Get Supplier Shipping Minimums Data
   * @returns {object} promise
   */
  getSupplierMinimums() {
    return this.api.read('/User-SupplierMinimums');
  };

  /**
   * sends respose to api service for handling
   * @param {object} response object
   * @returns {undefined}
   */
  errorCallBack(response: any) {
    this.api.errorCallback(response);
  };

}
