ePages 6.17.48 - DE_EPAGES/Ebay/API/Tools.pm

Package DE_EPAGES::Ebay::API::Tools

little helper functions for ebay

@EXPORT_OK
GetStoreRuName
ConvertFromEbayDate
GetRecentCategories
GetOldestStartTime
CheckEbayAuctionsFeature
SetNewEbayAuctionsFeatureValue

Functions

CheckEbayAuctionsFeature
ConvertFromEbayDate
GetOldestStartTime
GetRecentCategories
GetStoreRuName
SetNewEbayAuctionsFeatureValue

CheckEbayAuctionsFeature

Checks if the shop has enough feature values of EbayAuctions left

Syntax
CheckEbayAuctionsFeature( $Shop );
Input
$Shop (DE_EPAGES::Shop::API::Object::Shop)
Shop
Return
$newValue (integer)
new feature count

ConvertFromEbayDate

Parses an eBay DateTime string and returns a DateTime object. Converts the time to the local server time zone.

Syntax
ConvertFromEbayDate( $DateString );
Input
$DateString (string)
datetime string in ISO8601
Return
$dt (DateTime object)
converted date

GetOldestStartTime

Gets the StartTime of the oldest still running or ended (not finished) auctions. The value will be in converted to UTC.

Syntax
$oldestStartTime = GetOldestStartTime( $ShopEnvironment );
Input
$ShopEnv (EbayShopEnvironment object)
shop environemnt
Return
$oldestStartTime (DateTime object)
date (undef if no running auction)

GetRecentCategories

Builds a list of the recently used categories. Limited to the last 10 categories.

Syntax
GetRecentCategories( $Auction );
Input
$Auction (EbayAuction object)
auction
Return
$raCategories (ref.array.hash)
tleHash for each category

GetStoreRuName

Gets a global unique name for this store to identify at eBay.

Syntax
GetStoreRuName( $StoreUrl );
Input
$StoreUrl (string)
systems web url
Return
$ruName (string)
ru name for ebay

SetNewEbayAuctionsFeatureValue

Sets EbayAuctions feature value for a shop.

Syntax
SetNewEbayAuctionsFeatureValue( $Shop, $newValue );
Input
$Shop (DE_EPAGES::Shop::API::Object::Shop)
Shop
$newValue (integer)
new feature value