ePages 7.21.0 - 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
GetAuctionsSellerProfiles

Functions

CheckEbayAuctionsFeature
ConvertFromEbayDate
GetAuctionsSellerProfiles
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

GetAuctionsSellerProfiles

Creates a Hash of seller Profiles for a given auction list This is an optimization for if there are many auctions with the same sellerprofiles (should be mostly the case). We avoid to do an ebay call for every auction which improves the performance.

Syntax
GetAuctionsSellerProfiles( $aAuctionList );
Input
$aAuctions (ref.array)
array of auctions
Return
$hhBusinessPolicySellerProfiles (ref.hash)
hash with seller profiles

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
$NumbersOfCategories (Number of Category depth)
number
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