Package DE_EPAGES::Shop::API::WebService::ShopService
Provides web service access to shops.
Example |
use DE_EPAGES::WebService::API::Client; my $FactoryService = DE_EPAGES::WebService::API::Client ->uri('urn://epages.de/WebService/FactoryService/2004/08') ->proxy("http://%2fUsers%2f$Login:$Password@localhost:8080/epages/Store.soap"); my $ShopID = $FactoryService->objectByPath( '/Shops/DemoShop' )->result; my $ShopService = DE_EPAGES::WebService::API::Client ->uri('urn://epages.de/WebService/ShopService/2004/08') ->proxy("http://%2fUsers%2f$Login:$Password@localhost:8080/epages/Store.soap"); $ShopService->setFeatureValues( $ShopID, [ { Feature => 'Products', Value => 1000 }, { Feature => 'SlideShow', Value => 1 }, ]); |
Functions
- copyPublicFiles
- create
- getAllFeatures
- getFeatureValues
- getInfoSuperMerchant
- getLastMerchantLogin
- getMerchantEMails
- getShopAddress
- sendSuperMerchantNewPassword
- setFeatureValues
- updateSuperMerchant
copyPublicFiles
Copies all files from the $SourceDir directory to the public shop directory.
Syntax |
my $ShopID = $ShopService->shopID; $ShopService->copyPublicFiles( $ShopID, $SourceDir); |
Input |
|
create
Inserts a new shop object.
Syntax |
$ShopID = $ShopService->create({ 'Alias' => $Alias })->result; |
Example |
$ShopID = $ShopService({ 'Alias' => 'DemoShop' })->result; |
Input |
|
getAllFeatures
Returns informations of feature installed on the store.
Syntax |
$ahFeatures = $ShopService->shopService->getAllFeatures()->result; |
Return |
|
getFeatureValues
Returns the allowed maximum feature values of the features of a shop.
Syntax |
my $ShopID = $ShopService->shopID; $ahFeatureValues = $ShopService->shopService->getFeatureValues( $ShopID )->result; |
Input |
|
Return |
|
getInfoSuperMerchant
Returns login, and email of the primary administrator user.
Syntax |
$hInfo = $ShopService->getInfoSuperMerchant( $ShopID )->result; |
Input |
|
Return |
|
getLastMerchantLogin
Returns the last login time and date of a shop merchant.
Syntax |
my $ShopID = $ShopService->shopID; $String = $ShopService->getLastMerchantLogin( $ShopID )->result; |
Input |
|
Return |
|
getMerchantEMails
Returns logins and emails of merchant member (admins)
Syntax |
my $ShopID = $ShopService->shopID; $ShopAddress = $ShopService->shopService->getMerchantEMails( $ShopID )->result; |
Input |
|
Return |
|
getShopAddress
Returns the shop address as a tle hash.
Syntax |
my $ShopID = $ShopService->shopID; $hShopAddress = $ShopService->shopService->getShopAddress( $ShopID )->result; |
Input |
|
Return |
|
sendSuperMerchantNewPassword
Send a new password to super merchant.
Syntax |
$ShopService->sendSuperMerchantNewPassword( $ShopID, $Alias); |
Input |
|
setFeatureValues
Sets the maximum feature values for a shop.
Syntax |
$ShopService->setFeatureValues( $ShopID, $ahFeatureValues ); |
Example |
$ShopService->setFeatureValues( 32082, [ { Feature => 'Products', MaxValue => 1000 }, { Feature => 'SlideShow', MaxValue => 1}, { Feature => 'Forum', MaxValue => 0, IsVisible=>0 }, ]); |
Input |
|
updateSuperMerchant
Sets login, password and email of the primary administrator user. All keys are optional.
Syntax |
$ShopService->updateSuperMerchant( $ShopID, { 'Alias' => $Alias, 'Password' => $Password, 'EMail' => $EMail, }); |
Input |
|