Class ShippingInfo

java.lang.Object
com.needleandstitch.pavuk.model.ShippingInfo

@Entity public class ShippingInfo extends Object
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 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 address
      region - The region (state) of the shipping address
      city - The city of the shipping address
      postalCode - The postal code of the shipping address
      postService - The post service used for shipping
  • Method Details

    • getId

      public Long getId()
      Gets the unique identifier for the shipping information.
      Returns:
      The shipping information ID
    • setId

      public void setId(Long id)
      Sets the unique identifier for the shipping information.
      Parameters:
      id - The shipping information ID to set
    • getCountry

      public String getCountry()
      Gets the country of the shipping address.
      Returns:
      The country
    • setCountry

      public void setCountry(String country)
      Sets the country of the shipping address.
      Parameters:
      country - The country to set
    • getRegion

      public String getRegion()
      Gets the region (state) of the shipping address.
      Returns:
      The region
    • setRegion

      public void setRegion(String region)
      Sets the region (state) of the shipping address.
      Parameters:
      region - The region to set
    • getCity

      public String getCity()
      Gets the city of the shipping address.
      Returns:
      The city
    • setCity

      public void setCity(String city)
      Sets the city of the shipping address.
      Parameters:
      city - The city to set
    • getPostalCode

      public String getPostalCode()
      Gets the postal code of the shipping address.
      Returns:
      The postal code
    • setPostalCode

      public void setPostalCode(String postalCode)
      Sets the postal code of the shipping address.
      Parameters:
      postalCode - The postal code to set
    • getPostService

      public PostService getPostService()
      Gets the post service used for shipping.
      Returns:
      The post service
    • setPostService

      public void setPostService(PostService postService)
      Sets the post service used for shipping.
      Parameters:
      postService - The post service to set