Class LoyaltyResponse


  • public class LoyaltyResponse
    extends Object
    It conveys Information related to the Loyalty transaction processed by the POI System. Content of the Loyalty Response message.
    • Constructor Detail

      • LoyaltyResponse

        public LoyaltyResponse()
    • Method Detail

      • response

        public LoyaltyResponse response​(Response response)
        response
        Parameters:
        response -
        Returns:
        the current LoyaltyResponse instance, allowing for method chaining
      • getResponse

        public Response getResponse()
        Get response
        Returns:
        response
      • setResponse

        public void setResponse​(Response response)
        response
        Parameters:
        response -
      • saleData

        public LoyaltyResponse saleData​(SaleData saleData)
        saleData
        Parameters:
        saleData -
        Returns:
        the current LoyaltyResponse instance, allowing for method chaining
      • getSaleData

        public SaleData getSaleData()
        Get saleData
        Returns:
        saleData
      • setSaleData

        public void setSaleData​(SaleData saleData)
        saleData
        Parameters:
        saleData -
      • poiData

        public LoyaltyResponse poiData​(POIData poiData)
        poiData
        Parameters:
        poiData -
        Returns:
        the current LoyaltyResponse instance, allowing for method chaining
      • getPoiData

        public POIData getPoiData()
        Get poiData
        Returns:
        poiData
      • setPoiData

        public void setPoiData​(POIData poiData)
        poiData
        Parameters:
        poiData -
      • loyaltyResult

        public LoyaltyResponse loyaltyResult​(List<LoyaltyResult> loyaltyResult)
        Data related to the result of a processed loyalty transaction. If loyalty account identified.
        Parameters:
        loyaltyResult - Data related to the result of a processed loyalty transaction. If loyalty account identified.
        Returns:
        the current LoyaltyResponse instance, allowing for method chaining
      • getLoyaltyResult

        public List<LoyaltyResult> getLoyaltyResult()
        Data related to the result of a processed loyalty transaction. If loyalty account identified.
        Returns:
        loyaltyResult Data related to the result of a processed loyalty transaction. If loyalty account identified.
      • setLoyaltyResult

        public void setLoyaltyResult​(List<LoyaltyResult> loyaltyResult)
        Data related to the result of a processed loyalty transaction. If loyalty account identified.
        Parameters:
        loyaltyResult - Data related to the result of a processed loyalty transaction. If loyalty account identified.
      • paymentReceipt

        public LoyaltyResponse paymentReceipt​(List<PaymentReceipt> paymentReceipt)
        paymentReceipt
        Parameters:
        paymentReceipt -
        Returns:
        the current LoyaltyResponse instance, allowing for method chaining
      • getPaymentReceipt

        public List<PaymentReceipt> getPaymentReceipt()
        Get paymentReceipt
        Returns:
        paymentReceipt
      • setPaymentReceipt

        public void setPaymentReceipt​(List<PaymentReceipt> paymentReceipt)
        paymentReceipt
        Parameters:
        paymentReceipt -
      • includeNullValues

        public LoyaltyResponse includeNullValues​(boolean includeNullValues)
        Configures whether null values are explicitly serialized in the JSON payload. Default is false.
      • isIncludeNullValues

        public boolean isIncludeNullValues()
        Returns whether null values are explicitly serialized in the JSON payload.
      • setIncludeNullValues

        public void setIncludeNullValues​(boolean includeNullValues)
        Sets whether null values should be explicitly serialized in the JSON payload. Default is false.
      • equals

        public boolean equals​(Object o)
        Return true if this LoyaltyResponse object is equal to o.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getExplicitNulls

        public Map<String,​Object> getExplicitNulls()
        Returns a map of properties to be merged into the JSON payload as explicit null values.
      • fromJson

        public static LoyaltyResponse fromJson​(String jsonString)
                                        throws com.fasterxml.jackson.core.JsonProcessingException
        Create an instance of LoyaltyResponse given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of LoyaltyResponse
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException - if the JSON string is invalid with respect to LoyaltyResponse
      • toJson

        public String toJson()
                      throws com.fasterxml.jackson.core.JsonProcessingException
        Convert an instance of LoyaltyResponse to an JSON string
        Returns:
        JSON string
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException