<?php

class ShippingEasy_Order extends ShippingEasy_Object
{
  public function __construct($store_api_key=null, $values=null) {
    $this->store_api_key = $store_api_key;
    $this->values = $values;
  }

  public function create()
  {
    return $this->request("post", "/api/stores/$this->store_api_key/orders", null, array("order" => $this->values));
  }

  public function find($id)
  {
    return $this->request("get", "/api/orders/$id");
  }

  public function findAllByStore($params=array())
  {
    return $this->request("get", "/api/stores/$this->store_api_key/orders", $params);
  }

  public function findAll($params=array())
  {
    print_r($params);
    return $this->request("get", "/api/orders", $params);
  }
}

<?php

class ShippingEasy_Order extends ShippingEasy_Object
{
  public function __construct($store_api_key=null, $values=null) {
    $this->store_api_key = $store_api_key;
    $this->values = $values;
  }

  public function create()
  {
    return $this->request("post", "/api/stores/$this->store_api_key/orders", null, array("order" => $this->values));
  }

  public function find($id)
  {
    return $this->request("get", "/api/orders/$id");
  }

  public function findByStore($id)
    {
      return $this->request("get", "/api/stores/$this->store_api_key/orders/$id");
    }

  public function findAllByStore($params=array())
  {
    return $this->request("get", "/api/stores/$this->store_api_key/orders", $params);
  }

  public function findAll($params=array())
  {
    print_r($params);
    return $this->request("get", "/api/orders", $params);
  }
}

Add ability to find an order by order number.
Add ability to find an order by order number.
