Package DE_EPAGES::Ebay::API::Object::EbayCategoryTree
object interface for EbayCategoryTree.
Base |
DE_EPAGES::Object::API::Object::Object |
Functions
- getAllAttributeSetIDs
- getAllCSMappings
- getAttributeSetIDByExtAttrSetIDAndVersion
- getAttributeSetIDByExternalCategoryID
- getAttributeSetVersionByExternalAttributeSetID
- getAttributeSystemVersion
- getCategoryListCount
- getCategoryListIsUpdating
- getCategoryListUpdateTime
- getCategoryListUpdateTimeEbay
- getCategoryListVersion
- getCategoryPath
- getInfoAttributeSetByAttributeSetId
- getInfoAttributeValidationRulesByAttributeId
- getInfoAttributeValueDependenciesByAttributeId
- getInfoAttributeValuesByAttributeId
- getInfoAttributesByAttributeSetId
- getInfoEbayCategoriesByParentCategoryID
- getInfoEbayCategory
- getInfoEbayCategoryByExternalCategoryId
- getInfoRootCategories
- getPKeyEbayCategoryByExternalCategoryId
- getUnusedAttributeSetIDs
- new
- setAttributeSystemVersion
- setCategoryListCount
- setCategoryListIsUpdating
- setCategoryListUpdateTime
- update
- updateCSMappings
getAllAttributeSetIDs
Returns all AttributeSet IDs from table attributeset .
Syntax |
my $aAllAttributeSetIDs = $EbayCategoryTree->getAllAttributeSetIDs(); |
Return |
|
getAllCSMappings
Get all CategorySet mappings from ebay and update the category database if $AttributeSystemVersion is not defined
Syntax |
$EbayCategoryTree->getAllCSMappings($printOutput,$AttributeSystemVersion); |
Input |
|
getAttributeSetIDByExtAttrSetIDAndVersion
Returns AttributeSetID by EbaySite, AttributeSetVersion and ExtAttrSetID .
Syntax |
my $AttributeSetID = $EbayCategoryTree->getAttributeSetIDByExtAttrSetIDAndVersion($ExtSetID,$AttSetVersion); |
Input |
|
Return |
|
getAttributeSetIDByExternalCategoryID
Returns all used AttributeSet IDs .
Syntax |
my $AttributeSetID = $EbayCategoryTree->getAttributeSetIDByExternalCategoryID($ID); |
Input |
|
Return |
|
getAttributeSetVersionByExternalAttributeSetID
Returns version of the AttributeSet.
Syntax |
my $AttributeSetVersion = $EbayCategoryTree->getAttributeSetVersionByExternalAttributeSetID($ID); |
Input |
|
Return |
|
getAttributeSystemVersion
Returns version of the category CS mappings for the site.
Syntax |
my $AttributeSystemVersion = $EbayCategoryTree->getAttributeSystemVersion; |
Return |
|
getCategoryListCount
Returns total count of categories for an environment.
Syntax |
my $CategoryListCount = $EbayCategoryTree->getCategoryListCount; |
Return |
|
getCategoryListIsUpdating
Returns true if category list is currently updating.
Syntax |
my $CategoryListIsUpdating = $EbayCategoryTree->getCategoryListIsUpdating; |
Return |
|
getCategoryListUpdateTime
Returns time when list was last updated by server.
Syntax |
my $CategoryListUpdateTime = $EbayCategoryTree->getCategoryListUpdateTime; |
Return |
|
getCategoryListUpdateTimeEbay
Returns time when list was last updated by eBay.
Syntax |
my $CategoryListUpdateTimeEbay = $EbayCategoryTree->getCategoryListUpdateTimeEbay; |
Return |
|
getCategoryListVersion
Returns version of an environments category list.
Syntax |
my $CategoryListVersion = $EbayCategoryTree->getCategoryListVersion; |
Return |
|
getCategoryPath
Builds a category path from the given category to the root category.
Syntax |
my $ahPath = $EbayCategoryTree->getCategoryPath( $CategoryID, $MaxDepth ); |
Input |
|
Return |
|
getInfoAttributeSetByAttributeSetId
Returns the attributeset by attributeset id. If no attributeset exists for the given attributeset id then "undef" is returned.
Syntax |
$hAttributeSet = $EbayCategoryTree->getInfoAttributeSetByAttributeSetId($AttributeSetID); |
Input |
|
Return |
|
getInfoAttributeValidationRulesByAttributeId
Returns the attributevalidationrules by attribute id. If no value exists for the given attribute id then "undef" is returned.
Syntax |
$ahAttributeValues = $EbayCategoryTree->getInfoAttributeValidationRulesByAttributeId($AttributeID); |
Input |
|
Return |
|
getInfoAttributeValueDependenciesByAttributeId
Returns the attributevaluedependencies by attribute id. If no value exists for the given attribute id then "undef" is returned.
Syntax |
$ahAttributeValues = $EbayCategoryTree->getInfoAttributeValueDependenciesByAttributeId($AttributeID); |
Input |
|
Return |
|
getInfoAttributeValuesByAttributeId
Returns the attributevalues by attribute id. If no value exists for the given attribute id then "undef" is returned.
Syntax |
$ahAttributeValues = $EbayCategoryTree->getInfoAttributeValuesByAttributeId($AttributeID); |
Input |
|
Return |
|
getInfoAttributesByAttributeSetId
Returns the attributes by attributeset id. If no attribute exists for the given attributeset id then "undef" is returned.
Syntax |
$ahAttributes = $EbayCategoryTree->getInfoAttributesByAttributeSetId($AttributeSetID); |
Input |
|
Return |
|
getInfoEbayCategoriesByParentCategoryID
Returns objects of EbayCategory by alternate key ParentCategoryID.
Syntax |
$ahCategories = $EbayCategoryTree->getInfoEbayCategoriesByParentCategoryID($ParentCategoryID); |
Input |
|
Return |
|
getInfoEbayCategory
Returns the EbayCategory by identifier.
Syntax |
$hEbayCategory = $EbayCategoryTree->getInfoEbayCategory($EbayCategoryID); |
Input |
|
Return |
|
getInfoEbayCategoryByExternalCategoryId
Returns the eBay category by external category id. If no eBay category exists for the given external category id then "undef" is returned.
Syntax |
$hEbayCategory = $EbayCategoryTree->getInfoEbayCategoryByExternalCategoryId($ExternalCategoryId); |
Input |
|
Return |
|
getInfoRootCategories
Returns all eBay root categories.
Syntax |
my $ahCategories = $EbayCategoryTree->getInfoRootCategories(); |
Return |
|
getPKeyEbayCategoryByExternalCategoryId
Returns primary key of EbayCategory by ExternalCategoryId. (generated function GetPKeyEbayCategoryByEbaySiteID).
Syntax |
$EbayCategoryID = $EbayCategoryTree->getPKeyEbayCategoryByExternalCategoryId($ExternalCategoryId); |
Input |
|
Return |
|
getUnusedAttributeSetIDs
Returns all unused AttributeSet IDs for a Site .
Syntax |
my $aAllAttributeSetIDs = $EbayCategoryTree->getUnusedAttributeSetIDs(); |
Return |
|
new
Connects to the EbayCategory database.
Syntax |
$EbayCategoryTree = DE_EPAGES::Ebay::API::Object::EbayCategoryTree->new; |
Return |
|
setAttributeSystemVersion
Sets Attribute AttributeSystemVersion.
Syntax |
$EbayCategoryTree->setAttributeSystemVersion(1234); |
Input |
|
setCategoryListCount
Sets Attribute CategoryListCount.
Syntax |
$EbayCategoryTree->setCategoryListCount(0); |
Input |
|
setCategoryListIsUpdating
Sets Attribute CategoryListIsUpdating true if parameter "1" is passed on to the function.
Syntax |
$EbayCategoryTree->setCategoryListIsUpdating(1); |
Input |
|
setCategoryListUpdateTime
Sets CategoryListUpdateTime.
Syntax |
$EbayCategoryTree->setCategoryListUpdateTime(DateTime->now()); |
Input |
|
update
Updates category list from eBay.
Syntax |
$EbayCategoryTree->update( $printOutput ); |
Input |
|
Return |
|
updateCSMappings
get new CategorySet mappings from ebay and update table ebaycategory
Syntax |
$EbayCategoryTree->updateCSMappings(); |
Input |
|