Class LoyaltyMembershipResponseExtended

  • All Implemented Interfaces:
    com.qivos.util.rest.mappers.APIResponseDTO, com.qivos.util.rest.mappers.APIResponseLevelDTO

    public class LoyaltyMembershipResponseExtended
    extends LoyaltyMembershipResponseSimple
    Extended response for loyalty membership create/search services. This class extends LoyaltyMembershipResponseSimple and includes additional details such as available coupons and affiliates related to the member.
    Author:
    nikritikos
    • Constructor Detail

      • LoyaltyMembershipResponseExtended

        public LoyaltyMembershipResponseExtended()
    • Method Detail

      • getAvailableCoupons

        public List<CouponResponse> getAvailableCoupons()
        Gets the list of available coupons for the member.
        Returns:
        the list of available coupons (not used, not expired)
      • addCouponResponse

        public void addCouponResponse​(CouponResponse response)
        Adds a coupon response to the available coupons list.
        Parameters:
        response - the coupon response to add
      • getAffiliates

        public List<MemberAffiliationResponse> getAffiliates()
        Gets the list of affiliates that the member is associated with.
        Returns:
        the list of member affiliates
      • addAffiliates

        public void addAffiliates​(MemberAffiliationResponse affiliateResponse)
        Adds an affiliate response to the list of affiliates.
        Parameters:
        affiliateResponse - the affiliate response to add