Class ShippingInfo
java.lang.Object
com.needleandstitch.pavuk.model.ShippingInfo
An entity class for shipping info.
This class serves as a model for the shipping info table in the database.
- Since:
- 15.12.2024
- Version:
- 1.0.0
- Author:
- Needle & Stitch
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.ShippingInfo
(String country, String region, String city, String postalCode, PostService postService) Constructor to create a new shipping information record. -
Method Summary
Modifier and TypeMethodDescriptiongetCity()
Gets the city of the shipping address.Gets the country of the shipping address.getId()
Gets the unique identifier for the shipping information.Gets the postal code of the shipping address.Gets the post service used for shipping.Gets the region (state) of the shipping address.void
Sets the city of the shipping address.void
setCountry
(String country) Sets the country of the shipping address.void
Sets the unique identifier for the shipping information.void
setPostalCode
(String postalCode) Sets the postal code of the shipping address.void
setPostService
(PostService postService) Sets the post service used for shipping.void
Sets the region (state) of the shipping address.
-
Constructor Details
-
ShippingInfo
public ShippingInfo()Default constructor. -
ShippingInfo
public ShippingInfo(String country, String region, String city, String postalCode, PostService postService) Constructor to create a new shipping information record.- Parameters:
country
- The country of the shipping addressregion
- The region (state) of the shipping addresscity
- The city of the shipping addresspostalCode
- The postal code of the shipping addresspostService
- The post service used for shipping
-
-
Method Details
-
getId
Gets the unique identifier for the shipping information.- Returns:
- The shipping information ID
-
setId
Sets the unique identifier for the shipping information.- Parameters:
id
- The shipping information ID to set
-
getCountry
-
setCountry
Sets the country of the shipping address.- Parameters:
country
- The country to set
-
getRegion
-
setRegion
Sets the region (state) of the shipping address.- Parameters:
region
- The region to set
-
getCity
-
setCity
Sets the city of the shipping address.- Parameters:
city
- The city to set
-
getPostalCode
Gets the postal code of the shipping address.- Returns:
- The postal code
-
setPostalCode
Sets the postal code of the shipping address.- Parameters:
postalCode
- The postal code to set
-
getPostService
Gets the post service used for shipping.- Returns:
- The post service
-
setPostService
Sets the post service used for shipping.- Parameters:
postService
- The post service to set
-