ePages 6.10 - DE_EPAGES/ThirdPartyConfigProvider/API/Object/Remote.pm

Package DE_EPAGES::ThirdPartyConfigProvider::API::Object::Remote

Provides the ThirdPartyConfig webservice.

Base
DE_EPAGES::ShopConfiguration::API::Object::RemoteObject
Example
my $Remote = DE_EPAGES::ThirdPartyConfigProvider::API::Object::Remote->new('Store' => $Store);
$Remote->getConfigAttributes(...);
$Remote->setConfigAttributes(...);

Functions

getConfigAttributes
new
setConfigAttributes
store
thirdPartyConfigService

getConfigAttributes

calls the webservice function getConfigAttributes and returns its result

Syntax
my $ahAttributes = $ThirdPartyConfigService->getConfigAttributes({
    'AttributesCategory' => 'ProductPortal',
    'LanguageCode'       => 'es'
});
Input
$hOptions (ref.hash)
options for the webserivce request
  • AttributesCategory - one of 'Payment', 'ProductPortal', 'Seal', 'Statistic' - string
  • LanguageCode - Code2 or Code3 of the language to get the localized names for - string
Return
$ahAttributes (ref.array.hash)
result of webservice function (see DE_EPAGES::ThirdPartyConfig::API::WebService::ThirdPartyConfigService::getConfigAttributes)

new

creates a remote object from a Store object

Syntax
$Remote = DE_EPAGES::ThirdPartyConfigProvider::API::Object::Remote->new(
    'Store' => $Store
);
Input
$Store (object)
store object
Return
$Remote (object)
remote object

setConfigAttributes

calls the webservice function setConfigAttributes and returns its result

Syntax
$ThirdPartyConfigService->setConfigAttributes({
    'AttributesCategory' => 'ProductPortal',
    'Attributes'         => $ahAttributes
});
Input
$hOptions (ref.hash)
options for the webserivce request

store

returns the store database object

Syntax
$Store = $self->store;
Return
$Store (object)
Store object

thirdPartyConfigService

returns a web service client of the ThirdPartyConfigService.

Syntax
$ThirdPartyConfigService = $self->thirdPartyConfigService;
$ThirdPartyConfigService = $self->thirdPartyConfigService($Store);
Input
$Store (object)
(optional) Store object
Return
$ThirdPartyConfigService (object)
web service client