ePages 6.17.9 - DE_EPAGES/DHLIntraship/API/ServiceBuilder.pm

Package DE_EPAGES::DHLIntraship::API::ServiceBuilder

encasulate the building of a service knot

Example
my $Obj =DE_EPAGES::DHLIntraship::API::ServiceBuilder->new('newName');
$Obj->setServiceElement($aOptions, $SelectedOption);
$Obj->setValueElement( $hAmountInfo, $UserAmount );
my $hKnotElement = $Obj->getServiveKnot();
# no critic (Tics::ProhibitLongLines)

Functions

createValueElement
getServiveKnot
setServiceElement
setValueElement

createValueElement

write a service element to the class, based on $hAmountInfo, $UserAmount

Syntax
createValueElement( $hAmountInfo, $UserAmount );

getServiveKnot

return a service knot as a hash

Syntax
getServiveKnot( );
Return
$self->{'ServiceKnot'} (refhash)
service knot as a hash

setServiceElement

set data to class

Syntax
setServiceElement($aOptions, $SelectedOption);
Input
$aOptions (refarray)
All possible service options
$SelectedOption (String)
the selected options

setValueElement

set data to class

Syntax
$Obj->setValueElement( $hAmountInfo, $UserAmount );
Input
$hAmountInfo (ref_hash)
Hash with definitions of max or min Amount and if it is a
max or min
$UserAmount (float)
Amount which the have set