-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Finalise basics of all methods as per Etsy's API reference. * Add ListingFile * Add ListingImage * Add ListingInventory * Add ListingOffering * Add ListingProduct * Add ListingTranslation * Add ListingVariationImage
- Loading branch information
Showing
11 changed files
with
437 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
|
||
namespace Etsy\Resources; | ||
|
||
use Etsy\Resource; | ||
|
||
/** | ||
* Listing File class. | ||
* | ||
* @link https://developers.etsy.com/documentation/reference#tag/ShopListing-File | ||
* @author Rhys Hall [email protected] | ||
*/ | ||
class ListingFile extends Resource { | ||
|
||
/** | ||
* Delete the listing file. | ||
* | ||
* @link https://developers.etsy.com/documentation/reference#operation/deleteListingFile | ||
* @return boolean | ||
*/ | ||
public function delete() { | ||
return $this->deleteRequest( | ||
"/application/shops/{$this->shop_id}/listings/{$this->listing_id}/files/{$this->listing_file_id}" | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
|
||
namespace Etsy\Resources; | ||
|
||
use Etsy\Resource; | ||
|
||
/** | ||
* Listing Image class. | ||
* | ||
* @link https://developers.etsy.com/documentation/reference#tag/ShopListing-Image | ||
* @author Rhys Hall [email protected] | ||
*/ | ||
class ListingImage extends Resource { | ||
|
||
/** | ||
* Delete the listing image. | ||
* | ||
* @link https://developers.etsy.com/documentation/reference#operation/deleteListingImage | ||
* @return boolean | ||
*/ | ||
public function delete() { | ||
return $this->deleteRequest( | ||
"/application/shops/{$this->shop_id}/listings/{$this->listing_id}/images/{$this->listing_image_id}" | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
|
||
namespace Etsy\Resources; | ||
|
||
use Etsy\Resource; | ||
|
||
/** | ||
* Listing Inventory class. | ||
* | ||
* @link https://developers.etsy.com/documentation/reference#tag/ShopListing-Inventory | ||
* @author Rhys Hall [email protected] | ||
*/ | ||
class ListingInventory extends Resource { | ||
|
||
/** | ||
* @var array | ||
*/ | ||
protected $_associations = [ | ||
"products" => "ListingProduct" | ||
]; | ||
|
||
} |
Oops, something went wrong.