This commit is contained in:
2026-09-15 10:26:34 +08:00
commit ecf36afa56
10493 changed files with 1404888 additions and 0 deletions
@@ -0,0 +1,13 @@
<?php
namespace Stemcell\ProductImport\Api;
interface CmsPageImportInterface
{
/**
* Import CMS pages
*
* @param mixed $pageData
* @return \Stemcell\ProductImport\Api\Data\ImportResultInterface
*/
public function importCmsPages($pageData);
}
@@ -0,0 +1,260 @@
<?php
namespace Stemcell\ProductImport\Api\Data;
interface CmsPageDataInterface
{
/**
* Get page title
*
* @return string
*/
public function getTitle();
/**
* Set page title
*
* @param string $title
* @return $this
*/
public function setTitle($title);
/**
* Get page layout
*
* @return string
*/
public function getPageLayout();
/**
* Set page layout
*
* @param string $pageLayout
* @return $this
*/
public function setPageLayout($pageLayout);
/**
* Get meta keywords
*
* @return string
*/
public function getMetaKeywords();
/**
* Set meta keywords
*
* @param string $metaKeywords
* @return $this
*/
public function setMetaKeywords($metaKeywords);
/**
* Get meta description
*
* @return string
*/
public function getMetaDescription();
/**
* Set meta description
*
* @param string $metaDescription
* @return $this
*/
public function setMetaDescription($metaDescription);
/**
* Get identifier
*
* @return string
*/
public function getIdentifier();
/**
* Set identifier
*
* @param string $identifier
* @return $this
*/
public function setIdentifier($identifier);
/**
* Get content heading
*
* @return string
*/
public function getContentHeading();
/**
* Set content heading
*
* @param string $contentHeading
* @return $this
*/
public function setContentHeading($contentHeading);
/**
* Get content
*
* @return string
*/
public function getContent();
/**
* Set content
*
* @param string $content
* @return $this
*/
public function setContent($content);
/**
* Get is active
*
* @return int
*/
public function getIsActive();
/**
* Set is active
*
* @param int $isActive
* @return $this
*/
public function setIsActive($isActive);
/**
* Get sort order
*
* @return int
*/
public function getSortOrder();
/**
* Set sort order
*
* @param int $sortOrder
* @return $this
*/
public function setSortOrder($sortOrder);
/**
* Get layout update xml
*
* @return string
*/
public function getLayoutUpdateXml();
/**
* Set layout update xml
*
* @param string $layoutUpdateXml
* @return $this
*/
public function setLayoutUpdateXml($layoutUpdateXml);
/**
* Get custom theme
*
* @return string
*/
public function getCustomTheme();
/**
* Set custom theme
*
* @param string $customTheme
* @return $this
*/
public function setCustomTheme($customTheme);
/**
* Get custom root template
*
* @return string
*/
public function getCustomRootTemplate();
/**
* Set custom root template
*
* @param string $customRootTemplate
* @return $this
*/
public function setCustomRootTemplate($customRootTemplate);
/**
* Get custom layout update xml
*
* @return string
*/
public function getCustomLayoutUpdateXml();
/**
* Set custom layout update xml
*
* @param string $customLayoutUpdateXml
* @return $this
*/
public function setCustomLayoutUpdateXml($customLayoutUpdateXml);
/**
* Get layout update selected
*
* @return string
*/
public function getLayoutUpdateSelected();
/**
* Set layout update selected
*
* @param string $layoutUpdateSelected
* @return $this
*/
public function setLayoutUpdateSelected($layoutUpdateSelected);
/**
* Get custom theme from
*
* @return string
*/
public function getCustomThemeFrom();
/**
* Set custom theme from
*
* @param string $customThemeFrom
* @return $this
*/
public function setCustomThemeFrom($customThemeFrom);
/**
* Get custom theme to
*
* @return string
*/
public function getCustomThemeTo();
/**
* Set custom theme to
*
* @param string $customThemeTo
* @return $this
*/
public function setCustomThemeTo($customThemeTo);
/**
* Get meta title
*
* @return string
*/
public function getMetaTitle();
/**
* Set meta title
*
* @param string $metaTitle
* @return $this
*/
public function setMetaTitle($metaTitle);
}
@@ -0,0 +1,58 @@
<?php
namespace Stemcell\ProductImport\Api\Data;
interface ImportResultInterface
{
/**
* Get success count
*
* @return int
*/
public function getSuccessCount();
/**
* Set success count
*
* @param int $count
* @return $this
*/
public function setSuccessCount($count);
/**
* Get error count
*
* @return int
*/
public function getErrorCount();
/**
* Set error count
*
* @param int $count
* @return $this
*/
public function setErrorCount($count);
/**
* Get errors
*
* @return string[]
*/
public function getErrors();
/**
* Set errors
*
* @param string[] $errors
* @return $this
*/
public function setErrors(array $errors);
/**
* Add error
*
* @param string $error
* @return $this
*/
public function addError($error);
}
@@ -0,0 +1,16 @@
<?php
namespace Stemcell\ProductImport\Api\Data;
interface ProductDataExtensionInterface extends \Magento\Framework\Api\ExtensionAttributesInterface
{
/**
* @return \Magento\Catalog\Api\Data\ProductExtensionInterface|null
*/
public function getStockItem();
/**
* @param \Magento\Catalog\Api\Data\ProductExtensionInterface $stockItem
* @return $this
*/
public function setStockItem($stockItem);
}
@@ -0,0 +1,200 @@
<?php
namespace Stemcell\ProductImport\Api\Data;
interface ProductDataInterface
{
/**
* Get SKU
*
* @return string
*/
public function getSku();
/**
* Set SKU
*
* @param string $sku
* @return $this
*/
public function setSku($sku);
/**
* Get name
*
* @return string
*/
public function getName();
/**
* Set name
*
* @param string $name
* @return $this
*/
public function setName($name);
/**
* Get description
*
* @return string
*/
public function getDescription();
/**
* Set description
*
* @param string $description
* @return $this
*/
public function setDescription($description);
/**
* Get short description
*
* @return string
*/
public function getShortDescription();
/**
* Set short description
*
* @param string $shortDescription
* @return $this
*/
public function setShortDescription($shortDescription);
/**
* Get price
*
* @return float
*/
public function getPrice();
/**
* Set price
*
* @param float $price
* @return $this
*/
public function setPrice($price);
/**
* Get weight
*
* @return float
*/
public function getWeight();
/**
* Set weight
*
* @param float $weight
* @return $this
*/
public function setWeight($weight);
/**
* Get tax class name
*
* @return string
*/
public function getTaxClassName();
/**
* Set tax class name
*
* @param string $taxClassName
* @return $this
*/
public function setTaxClassName($taxClassName);
/**
* Get product websites
*
* @return string
*/
public function getProductWebsites();
/**
* Set product websites
*
* @param string $productWebsites
* @return $this
*/
public function setProductWebsites($productWebsites);
/**
* Get is in stock
*
* @return int
*/
public function getIsInStock();
/**
* Set is in stock
*
* @param int $isInStock
* @return $this
*/
public function setIsInStock($isInStock);
/**
* Get quantity
*
* @return float
*/
public function getQty();
/**
* Set quantity
*
* @param float $qty
* @return $this
*/
public function setQty($qty);
/**
* Get manage stock
*
* @return int
*/
public function getManageStock();
/**
* Set manage stock
*
* @param int $manageStock
* @return $this
*/
public function setManageStock($manageStock);
/**
* Get min cart qty
*
* @return float
*/
public function getMinCartQty();
/**
* Set min cart qty
*
* @param float $minCartQty
* @return $this
*/
public function setMinCartQty($minCartQty);
/**
* Get max cart qty
*
* @return float
*/
public function getMaxCartQty();
/**
* Set max cart qty
*
* @param float $maxCartQty
* @return $this
*/
public function setMaxCartQty($maxCartQty);
}
@@ -0,0 +1,16 @@
<?php
namespace Stemcell\ProductImport\Api;
use Stemcell\ProductImport\Api\Data\ImportResultInterface;
interface ImportInterface
{
/**
* Import products
*
* @param mixed $productData
* @param string|null $updateOnly
* @return \Stemcell\ProductImport\Api\Data\ImportResultInterface
*/
public function importProducts($productData, $updateOnly = null);
}