<?php

namespace App\ThirdParty\Biteship;

use Illuminate\Support\Facades\Log;
use Illuminate\Support\Facades\Http;
use Illuminate\Support\Facades\Cache;

class Biteship
{
    public function __construct() {
        $this->rate = new Rate;
        $this->order = new Order;
        $this->tracking = new Tracking;
    }

    public function trackingByWaybill($params){
        return $this->tracking->byWaybill($params);
    }

    public function rateByPostal($params){
        return $this->rate->byPostal($params);
    }

    public function rateByLatlong($params){
        return $this->rate->byLatLong($params);
    }

    public function orderByPostal($params){
        return $this->order->byPostal($params);
    }

    public function orderByLatLong($params){
        return $this->order->byLatLong($params);
    }

    public function trackingById($params){
        return $this->tracking->byId($params);
    }
}
