File tree Expand file tree Collapse file tree
src/Bigcommerce/Api/Resources Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,16 +24,16 @@ class ProductImage extends Resource
2424
2525 public function create ()
2626 {
27- return Client::createResource ( ' /products/ ' . $ this ->fields -> product_id . ' /images ' , $ this ->getCreateFields ());
27+ return Client::createProductImage ( $ this ->product_id , $ this ->getCreateFields ());
2828 }
2929
3030 public function update ()
3131 {
32- return Client::updateResource ( ' /products/ ' . $ this ->fields -> product_id . ' /images/ ' . $ this ->id , $ this ->getUpdateFields ());
32+ return Client::updateProductImage ( $ this ->product_id , $ this ->id , $ this ->getUpdateFields ());
3333 }
3434
3535 public function delete ()
3636 {
37- return Client::deleteResource ( ' /products/ ' . $ this ->fields -> product_id . ' /images/ ' . $ this ->id );
37+ return Client::deleteProductImage ( $ this ->product_id , $ this ->id );
3838 }
3939}
You can’t perform that action at this time.
0 commit comments