Class ClubPayload

  • Direct Known Subclasses:
    ClubPayloadExtended, MembershipClubRequest, MembershipClubResponse

    public class ClubPayload
    extends Object
    Represents the payload data for a club, including the club's attributes such as its code, start and end dates, discount information, and additional attributes. This class is used to define the properties of a club within the system, such as the discount amount, percentage, and validity period.
    Author:
    nikritikos
    • Constructor Detail

      • ClubPayload

        public ClubPayload()
    • Method Detail

      • getClubCode

        public String getClubCode()
        Gets the unique club code.
        Returns:
        the club code
      • setClubCode

        public void setClubCode​(String clubCode)
        Sets the unique club code.
        Parameters:
        clubCode - the club code to set
      • getStartDate

        public Date getStartDate()
        Gets the start date when the club becomes active.
        Returns:
        the start date
      • setStartDate

        public void setStartDate​(Date startDate)
        Sets the start date for the club's activity.
        Parameters:
        startDate - the start date to set
      • getEndDate

        public Date getEndDate()
        Gets the end date by which the club will be considered inactive.
        Returns:
        the end date
      • setEndDate

        public void setEndDate​(Date endDate)
        Sets the end date for the club's inactivity.
        Parameters:
        endDate - the end date to set
      • getDefaultDiscountAmount

        public BigDecimal getDefaultDiscountAmount()
        Gets the default discount amount for members of this club.
        Returns:
        the default discount amount
      • setDefaultDiscountAmount

        public void setDefaultDiscountAmount​(BigDecimal defaultDiscountAmount)
        Sets the default discount amount for the club's members.
        Parameters:
        defaultDiscountAmount - the discount amount to set
      • getDefaultDiscountPercentage

        public BigDecimal getDefaultDiscountPercentage()
        Gets the default discount percentage for members of this club.
        Returns:
        the default discount percentage
      • setDefaultDiscountPercentage

        public void setDefaultDiscountPercentage​(BigDecimal defaultDiscountPercentage)
        Sets the default discount percentage for the club's members.
        Parameters:
        defaultDiscountPercentage - the discount percentage to set
      • addAttribute

        public void addAttribute​(EntityAttribute entityAttribute)
        Adds an attribute to the club.
        Parameters:
        entityAttribute - the attribute to add
      • getAttributes

        public List<EntityAttribute> getAttributes()
        Gets the list of additional attributes associated with the club.
        Returns:
        the list of attributes