Package com.skava.addressapp.model
Class AppAddressRequest
java.lang.Object
com.skava.core.validation.InputModel
com.skava.addressapp.model.AppAddressRequest
- All Implemented Interfaces:
Serializable
public class AppAddressRequest
extends com.skava.core.validation.InputModel
This class represents an address request in the application.
It extends the InputModel class and includes various properties related to an address.
It is used to interact with the microservice and app end process.
Fields:
- id: Identifier of the address
- requestType: Type of validation request (e.g., physicaladdressvalidation, digitaladdressvalidation)
- showRecommendation: Flag to show recommendation
- firstName: First name of the user
- middleName: Middle name of the user
- lastName: Last name of the user
- addressLine1: Door no/ Flat no of the user (e.g., 26)
- addressLine2: Street of the user (e.g., second street)
- addressLine3: Street of the user (e.g., third street)
- city: City of the user (e.g., New York)
- state: State of the user (e.g., Texas)
- zip: Zip code of the user (e.g., 99501)
- country: Country of the user (e.g., USA)
- county: County of the user (e.g., Denver)
- companyName: Company name (useful for B2B)
- email: Email of the user (e.g., mail@gmail.com)
- phone: Phone number of the user (e.g., 9950185)
- mobileNumber: Mobile number of the user (e.g., 9950186725)
- canReceiveSMS: Flag indicating whether the user can receive SMS
- cacheName: Name of the cache where the collection level cache will be present
Example JSON representation of this class:
{ "id": 123456, "requestType": "physicaladdressvalidation", "showRecommendation": true, "firstName": "John", "middleName": "Doe", "lastName": "Smith", "addressLine1": "26", "addressLine2": "Second Street", "addressLine3": "Third Street", "city": "New York", "state": "New York", "zip": "10001", "country": "USA", "county": "Denver", "companyName": "Acme Corp", "email": "john.doe@example.com", "phone": "1234567890", "mobileNumber": "0987654321", "canReceiveSMS": true, "cacheName": "userCache" }
- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
AppAddressRequest
public AppAddressRequest()
-