/**
  *
  * @param $href
  * @param array $options
  * @return \CodesWholesale\Resource\Product
  */
 public static function get($href, array $options = array())
 {
     return Client::get($href, CodesWholesale::PRODUCT, self::PATH, $options);
 }
 /**
  *
  */
 public static function getCodes(ProductOrdered $productOrdered, array $options = array())
 {
     $url = '/orders/' . $productOrdered->getOrderId() . '/productsOrdered/' . $productOrdered->getProductOrderedId() . '/codes';
     return Client::getInstance()->get($url, CodesWholesale::CODE_LIST, $options);
 }
 public static function get($href, array $options = array())
 {
     return Client::get($href, CodesWholesale::CODE, null, $options);
 }
Esempio n. 4
0
 /**
  *
  * @param Product $product
  * @param array $options
  * @return CodeList
  */
 public static function createBatchOrder(Product $product, array $options = array())
 {
     return Client::getInstance()->create($product->getBuyHref(), new CodeList(), $options);
 }