diff --git a/src/Bigcommerce/Api/Client.php b/src/Bigcommerce/Api/Client.php index 1cd61e9..415549d 100644 --- a/src/Bigcommerce/Api/Client.php +++ b/src/Bigcommerce/Api/Client.php @@ -2116,4 +2116,16 @@ public static function getRulesByProduct($productId, $filter = array()) $filter = Filter::create($filter); return self::getCollection('/products/'.$productId.'/rules' . $filter->toQuery(), 'Rule'); } + + + /** + * Get collection of taxes by OrderId + * + * @param int $orderId + * @return mixed array|string list of taxes or XML string if useXml is true + */ + public static function getOrderTaxes($orderId) + { + return self::getCollection('/orders/' . $orderId . '/taxes?details=true', 'OrderTax'); + } } diff --git a/src/Bigcommerce/Api/Resources/OrderTax.php b/src/Bigcommerce/Api/Resources/OrderTax.php new file mode 100644 index 0000000..56e4fd9 --- /dev/null +++ b/src/Bigcommerce/Api/Resources/OrderTax.php @@ -0,0 +1,19 @@ +