-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPostalValidationService.java
28 lines (18 loc) · 1.1 KB
/
PostalValidationService.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package net.intermedia.uav.postal;
import net.intermedia.uav.cache.UavPostalCachedObject;
import net.intermedia.uav.context.ValidationContext;
import net.intermedia.uav.pojo.postal.PostalRequest;
import net.intermedia.uav.pojo.postal.PostalValidationRequest;
import net.intermedia.uav.pojo.postal.SearchAddressType;
import net.intermedia.uav.pojo.postal.SearchCustomAddressesResponse;
/**
* Business logic for postal validation
*/
public interface PostalValidationService {
<T extends PostalRequest> UavPostalValidationResult validate(ValidationContext validationContext, T postalRequest);
UavPostalCachedObject lookup(ValidationContext validationContext, PostalValidationRequest postalValidationRequest);
UavPostalCachedObject lookupByUid(String uid);
SearchCustomAddressesResponse searchCustomByParams(Integer pageSize, Integer pageNumber, SearchAddressType searchAddressType, String country, String state, String city, String zip, String fullStreetAddress);
UavPostalCachedObject deleteAddress(PostalRequest postalValidationRequest);
UavPostalCachedObject deleteAddressByUID(String uid);
}