public class DefaultCisAddressVerificationService extends java.lang.Object implements AddressVerificationService<AddressVerificationDecision,AddressFieldErrorData<AddressFieldType,AddressErrorCode>>
AddressVerificationService using CIS webservices.| Constructor and Description |
|---|
DefaultCisAddressVerificationService() |
public DefaultCisAddressVerificationService()
public AddressVerificationResultData<AddressVerificationDecision,AddressFieldErrorData<AddressFieldType,AddressErrorCode>> verifyAddress(AddressModel addressModel)
AddressVerificationServiceverifyAddress in interface AddressVerificationService<AddressVerificationDecision,AddressFieldErrorData<AddressFieldType,AddressErrorCode>>addressModel - the address to be verified.protected void removeVerifiedAddressFromSuggestedAddresses(CisAddress veryfiedAddress, java.util.List<CisAddress> suggestedAddressesList)
protected boolean areAddressesEqual(CisAddress veryfiedAddress, CisAddress suggestedAddress)
protected boolean equalsIgnoreNullAndEmpty(java.lang.String str1,
java.lang.String str2)
public boolean isCustomerAllowedToIgnoreSuggestions()
AddressVerificationServiceisCustomerAllowedToIgnoreSuggestions in interface AddressVerificationService<AddressVerificationDecision,AddressFieldErrorData<AddressFieldType,AddressErrorCode>>protected AddressVerificationResultData<AddressVerificationDecision,AddressFieldErrorData<AddressFieldType,AddressErrorCode>> createVerificationResult()
protected java.lang.String getClientRef()
protected RegionModel getRegionForCountryIsoCode(CisAddress address)
protected CisClientAvsService getCisClientAvsService()
public void setCisClientAvsService(CisClientAvsService cisClientAvsService)
protected CartService getCartService()
public void setCartService(CartService cartService)
protected CheckVerificationRequiredStrategy getApplyVerificationStrategy()
public void setApplyVerificationStrategy(CheckVerificationRequiredStrategy applyVerificationStrategy)
protected BaseStoreService getBaseStoreService()
public void setBaseStoreService(BaseStoreService baseStoreService)
protected Converter<AddressModel,CisAddress> getCisAvsAddressConverter()
public void setCisAvsAddressConverter(Converter<AddressModel,CisAddress> cisAvsAddressConverter)
protected Converter<AvsResult,AddressVerificationResultData> getCisAvsResultAddressVerificationResultDataConverter()
public void setCisAvsResultAddressVerificationResultDataConverter(Converter<AvsResult,AddressVerificationResultData> cisAvsResultAddressVerificationResultDataConverter)
protected Populator<AddressModel,AddressVerificationResultData<AddressVerificationDecision,AddressFieldErrorData<AddressFieldType,AddressErrorCode>>> getCisAvsAddressMatchingPopulator()
public void setCisAvsAddressMatchingPopulator(Populator<AddressModel,AddressVerificationResultData<AddressVerificationDecision,AddressFieldErrorData<AddressFieldType,AddressErrorCode>>> cisAvsAddressMatchingPopulator)
protected CommonI18NService getCommonI18NService()
public void setCommonI18NService(CommonI18NService commonI18NService)
protected java.lang.String getTenantId()
public void setTenantId(java.lang.String tenantId)
protected java.lang.String getDefaultClientRef()
public void setDefaultClientRef(java.lang.String defaultClientRef)
Copyright © 2018 SAP SE. All Rights Reserved.