Class RewardIssuanceRedemptionResult

java.lang.Object
dev.getelements.elements.sdk.model.reward.RewardIssuanceRedemptionResult
All Implemented Interfaces:
Serializable

public class RewardIssuanceRedemptionResult extends Object implements Serializable
Represents the result of a reward issuance redemption, housing either the resultant RewardIssuance or the error details.
See Also:
  • Constructor Details

    • RewardIssuanceRedemptionResult

      public RewardIssuanceRedemptionResult()
      Creates a new instance.
  • Method Details

    • getRewardIssuanceId

      public String getRewardIssuanceId()
      Returns the reward issuance ID as originally provided in the request.
      Returns:
      the reward issuance ID
    • setRewardIssuanceId

      public void setRewardIssuanceId(String rewardIssuanceId)
      Sets the reward issuance ID as originally provided in the request.
      Parameters:
      rewardIssuanceId - the reward issuance ID
    • getRewardIssuance

      public RewardIssuance getRewardIssuance()
      Returns the updated reward issuance if the redemption was successful, or null otherwise.
      Returns:
      the reward issuance
    • setRewardIssuance

      public void setRewardIssuance(RewardIssuance rewardIssuance)
      Sets the updated reward issuance if the redemption was successful.
      Parameters:
      rewardIssuance - the reward issuance
    • getInventoryItem

      public InventoryItem getInventoryItem()
      Returns the inventory item that was updated if the redemption was successful, or null otherwise.
      Returns:
      the inventory item
    • setInventoryItem

      public void setInventoryItem(InventoryItem inventoryItem)
      Sets the inventory item that was updated if the redemption was successful.
      Parameters:
      inventoryItem - the inventory item
    • getErrorDetails

      public String getErrorDetails()
      Returns the error details if the redemption failed, or null otherwise.
      Returns:
      the error details
    • setErrorDetails

      public void setErrorDetails(String errorDetails)
      Sets the error details if the redemption failed.
      Parameters:
      errorDetails - the error details
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object