ePages 7.25.0 - DE_EPAGES/DHLIntraship/API/AddressValidation.pm

Package DE_EPAGES::DHLIntraship::API::AddressValidation

do DHLIntraship related Address validation

Example
my $AddressValidation = DE_EPAGES::DHLIntraship::API::AddressValidation->new( $AddressObject )
if ($AddressValidation->hasWarningStates()) { DoSomething() };

Functions

getNotProcessableWarningStates
getStatesAsWarning
hasWarningStates
loadAttributes
new

getNotProcessableWarningStates

generates a list of warnings for DHLVersenden web service not processable attributes (mandatory as well as length conditions for specific attributes).

Syntax
my $NotProcessableWarningStates = $self->getNotProcessableWarningStates( );
Return
$NotProcessableWarningStates (arrayref)
list of not processable states

getStatesAsWarning

Get the States and create epages warnings from this

Syntax
getStatesAsWarning( $Input1 );
Input
$aWarningsToProcess (refarray)
warnings array to process or undefined
Return
$Warnigs (refarray)
epages warnings

hasWarningStates

generates an internal list of warnings for not met mandatory as well as length conditions and returns a boolean specifying if all conditions are met or not.

Syntax
my $ValidationResult = $self->hasWarningStates( );
Return
$ValidationResult (boolean)
if all Attributes are fine

loadAttributes

load all Attributes to the class object

Syntax
loadAttributes( );

new

constructor of AddressValidation

Syntax
new( $Address, $ExtraAttributDefinitions );
Input
$Address (object)
ePages AddressObject
$ExtraAttributDefinitions (hash_ref)
extra Attributes definitions
Return
$self (object)
AddressValidation object