<?php

namespace Nitrapi\Order\Pricing;

abstract class DimensionPricing extends Pricing {
    
    public function getPrices($location_id) {
        return $this->nitrapi->dataGet("/order/pricing/" . $this->type, null, [
            'query' => [
                'location' => $location_id
            ]
        ]);
    }
    
}
<?php

namespace Nitrapi\Order\Pricing;

abstract class DimensionPricing extends Pricing {
    
    public function getPrices($location_id) {
        return $this->nitrapi->dataGet("/order/pricing/" . $this->type, null, [
            'query' => [
                'location' => $location_id
            ]
        ])['prices'];
    }
    
}
Update Tue Jun 14 18:16:25 CEST 2016
Update Tue Jun 14 18:16:25 CEST 2016
