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
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 |
|
getStatesAsWarning
Get the States and create epages warnings from this
Syntax |
getStatesAsWarning( $Input1 ); |
Input |
|
Return |
|
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 |
|
loadAttributes
load all Attributes to the class object
Syntax |
loadAttributes( ); |
new
constructor of AddressValidation
Syntax |
new( $Address, $ExtraAttributDefinitions ); |
Input |
|
Return |
|