ok

Mini Shell

Direktori : /home2/selectio/www/3-idiots/vendor/seshac/laravel-shiprocket-api/src/Resources/
Upload File :
Current File : /home2/selectio/www/3-idiots/vendor/seshac/laravel-shiprocket-api/src/Resources/PickupResource.php

<?php

namespace Seshac\Shiprocket\Resources;

class PickupResource extends Resource
{
    /**
     * Add a New Pickup Location
     *
     * @param array $location
     * @return mixed
     */
    public function addLocation(array $location)
    {
        $endpoint = 'settings/company/addpickup';

        return $this->postRequest($endpoint, $location);
    }

    /**
     * Get All Pickup Locations
     *
     * @return mixed
     */
    public function getLocations()
    {
        $endpoint = 'settings/company/pickup';

        return $this->getRequest($endpoint);
    }
}

Zerion Mini Shell 1.0