Skip to content

Commit

Permalink
Fix #5, Fix #7
Browse files Browse the repository at this point in the history
  • Loading branch information
rhysnhall committed Sep 3, 2021
1 parent 1a54bae commit a0eace1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Resources/Listing.php
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ public function getVariationImages() {
*/
public function updateVariationImages(array $data) {
return $this->request(
"PUT",
"POST",
"/application/shops/{$this->shop_id}/listings/{$this->listing_id}/variation-images",
"ListingVariationImage",
$data
Expand Down
4 changes: 2 additions & 2 deletions src/Resources/ShippingUpgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class ShippingUpgrade extends Resource {
*/
public function update(array $data) {
return $this->updateRequest(
"/application/shops/{$this->shop_id}/shipping-profiles/{$this->shipping_profile_id}/upgrades{$this->upgrade_id}",
"/application/shops/{$this->shop_id}/shipping-profiles/{$this->shipping_profile_id}/upgrades/{$this->upgrade_id}",
$data
);
}
Expand All @@ -34,7 +34,7 @@ public function update(array $data) {
*/
public function delete() {
return $this->deleteRequest(
"/application/shops/{$this->shop_id}/shipping-profiles/{$this->shipping_profile_id}/upgrades{$this->upgrade_id}",
"/application/shops/{$this->shop_id}/shipping-profiles/{$this->shipping_profile_id}/upgrades/{$this->upgrade_id}",
);
}
}

0 comments on commit a0eace1

Please sign in to comment.