Class LoyaltyResult


  • public class LoyaltyResult
    extends Object
    Data related to the result of a processed loyalty transaction. In the Message Response, the result of each loyalty brand transaction.
    • Constructor Detail

      • LoyaltyResult

        public LoyaltyResult()
    • Method Detail

      • loyaltyAccount

        public LoyaltyResult loyaltyAccount​(LoyaltyAccount loyaltyAccount)
        loyaltyAccount
        Parameters:
        loyaltyAccount -
        Returns:
        the current LoyaltyResult instance, allowing for method chaining
      • getLoyaltyAccount

        public LoyaltyAccount getLoyaltyAccount()
        Get loyaltyAccount
        Returns:
        loyaltyAccount
      • setLoyaltyAccount

        public void setLoyaltyAccount​(LoyaltyAccount loyaltyAccount)
        loyaltyAccount
        Parameters:
        loyaltyAccount -
      • currentBalance

        public LoyaltyResult currentBalance​(BigDecimal currentBalance)
        Balance of an account. If known (provided by the card or an external host).
        Parameters:
        currentBalance - Balance of an account. If known (provided by the card or an external host).
        Returns:
        the current LoyaltyResult instance, allowing for method chaining
      • getCurrentBalance

        public BigDecimal getCurrentBalance()
        Balance of an account. If known (provided by the card or an external host). minimum: 0.0 maximum: 99999999.999999
        Returns:
        currentBalance Balance of an account. If known (provided by the card or an external host).
      • setCurrentBalance

        public void setCurrentBalance​(BigDecimal currentBalance)
        Balance of an account. If known (provided by the card or an external host).
        Parameters:
        currentBalance - Balance of an account. If known (provided by the card or an external host).
      • loyaltyAcquirerData

        public LoyaltyResult loyaltyAcquirerData​(LoyaltyAcquirerData loyaltyAcquirerData)
        loyaltyAcquirerData
        Parameters:
        loyaltyAcquirerData -
        Returns:
        the current LoyaltyResult instance, allowing for method chaining
      • getLoyaltyAcquirerData

        public LoyaltyAcquirerData getLoyaltyAcquirerData()
        Get loyaltyAcquirerData
        Returns:
        loyaltyAcquirerData
      • setLoyaltyAcquirerData

        public void setLoyaltyAcquirerData​(LoyaltyAcquirerData loyaltyAcquirerData)
        loyaltyAcquirerData
        Parameters:
        loyaltyAcquirerData -
      • includeNullValues

        public LoyaltyResult 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 LoyaltyResult 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 LoyaltyResult fromJson​(String jsonString)
                                      throws com.fasterxml.jackson.core.JsonProcessingException
        Create an instance of LoyaltyResult given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of LoyaltyResult
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException - if the JSON string is invalid with respect to LoyaltyResult
      • toJson

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