java.lang.Object
com.logicommerce.sdk.models.AddressValidated
AddressValidated for Address Service
- Since:
- 1.3.0
- Author:
- Logicommerce
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the address validatedReturns the messages if anyReturns the valid addressesbooleanisValid()Returns true if the address is validvoidsetAddress(Address address) Sets the address validatedvoidsetMessages(List<AddressValidatedMessage> message) Sets the messagesvoidsetValid(boolean valid) Sets the address validityvoidsetValidAddresses(List<Address> validAddresses) Sets the valid addresses
-
Constructor Details
-
AddressValidated
public AddressValidated()
-
-
Method Details
-
isValid
public boolean isValid()Returns true if the address is valid- Returns:
- a boolean
-
setValid
public void setValid(boolean valid) Sets the address validity- Parameters:
valid- a boolean
-
getAddress
Returns the address validated- Returns:
- a
Addressobject
-
setAddress
Sets the address validated- Parameters:
address- aAddressobject
-
getValidAddresses
Returns the valid addresses- Returns:
- a
Listobject - Since:
- 1.3.2
-
setValidAddresses
Sets the valid addresses- Parameters:
validAddresses- aListobject- Since:
- 1.3.1
-
getMessages
Returns the messages if any- Returns:
- a
AddressValidatedMessageobject
-
setMessages
Sets the messages- Parameters:
message- aListobject
-