Package DE_EPAGES::USPS::API::WebServices::Extensions::TrackingDeliveryConfirmationLabelInternalConditionsValidator
It contains validation methods required to test conformance on USPS Tracking/Delivery Confirmation Label requests.
Functions
- areInternalConditionsMetOrError
- areParcelDimensionsAndContainerAndSizeDependenciesValidOrError
- isAddressServiceAndImageParameterDependencyValidOrError
- isLabelDateWithinRangeEmptyOrError
areInternalConditionsMetOrError
It checks validity of the request's internal conditions (the ones between different request parameters). It returns 1 (true) or it throws an error.
Syntax |
$isValid = $self->areInternalConditionsMetOrError(); |
Return |
|
areParcelDimensionsAndContainerAndSizeDependenciesValidOrError
parcel dimension mandatory requirements change on Container and Size values.
Syntax |
$isValid = $self->areParcelDimensionsAndContainerAndSizeDependenciesValidOrError(); |
Return |
|
isAddressServiceAndImageParameterDependencyValidOrError
AddressServiceRequested is not available with the "Barcode Only" label option.
Syntax |
$isValid = $self->isAddressServiceAndImageParameterDependencyValidOrError(); |
Return |
|
isLabelDateWithinRangeEmptyOrError
It checks validity of LabelDate. It must be between 0 to 3 days from today or empty. It throws an error otherwise.
Syntax |
$isValid = $self->isLabelDateWithinRangeEmptyOrError(); |
Return |
|