brucealdridge / VendAPI

Class for accessing the api for vend on vendhq.com
Other
36 stars 22 forks source link

Added getCustomer and getProducts to VendSale object #21

Closed gurubobnz closed 9 years ago

gurubobnz commented 9 years ago

Example use:

echo "This sale was made to ".$sale->getCustomer()->email." and contained the following products:\n";
foreach($sale->getProducts() as $product) {
    echo "{$product->sku}: {$product->name}\n";
}
brucealdridge commented 9 years ago

looks good to me. I don't have the class setup at the moment so unable to test, but will trust you :smile: