/home/techb158/ileadtechnology.com/vendor/cartalyst/stripe/src/Api
Edit: /home/techb158/ileadtechnology.com/vendor/cartalyst/stripe/src/Api/Orders.php (2000B)
_post('orders', $parameters);
}
/**
* Retrieves an existing order.
*
* @param string $orderId
* @return array
*/
public function find($orderId)
{
return $this->_get("orders/{$orderId}");
}
/**
* Updates an existing order.
*
* @param string $orderId
* @param array $parameters
* @return array
*/
public function update($orderId, array $parameters = [])
{
return $this->_post("orders/{$orderId}", $parameters);
}
/**
* Pays the given order.
*
* @param string $orderId
* @param array $parameters
* @return array
*/
public function pay($orderId, array $parameters = [])
{
return $this->_post("orders/{$orderId}/pay", $parameters);
}
/**
* Returns the given order.
*
* @param string $orderId
* @param array $items
* @return array
*/
public function returnItems($orderId, array $items = [])
{
return $this->_post("orders/{$orderId}/returns", compact('items'));
}
/**
* Returns a list of all the orders.
*
* @param array $parameters
* @return array
*/
public function all(array $parameters = [])
{
return $this->_get('orders', $parameters);
}
}