Class RewardIssuanceRedemptionResult
java.lang.Object
dev.getelements.elements.sdk.model.reward.RewardIssuanceRedemptionResult
- All Implemented Interfaces:
Serializable
Represents the result of a reward issuance redemption, housing either the resultant
RewardIssuance or the error details.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the error details if the redemption failed, or null otherwise.Returns the inventory item that was updated if the redemption was successful, or null otherwise.Returns the updated reward issuance if the redemption was successful, or null otherwise.Returns the reward issuance ID as originally provided in the request.inthashCode()voidsetErrorDetails(String errorDetails) Sets the error details if the redemption failed.voidsetInventoryItem(InventoryItem inventoryItem) Sets the inventory item that was updated if the redemption was successful.voidsetRewardIssuance(RewardIssuance rewardIssuance) Sets the updated reward issuance if the redemption was successful.voidsetRewardIssuanceId(String rewardIssuanceId) Sets the reward issuance ID as originally provided in the request.toString()
-
Constructor Details
-
RewardIssuanceRedemptionResult
public RewardIssuanceRedemptionResult()Creates a new instance.
-
-
Method Details
-
getRewardIssuanceId
Returns the reward issuance ID as originally provided in the request.- Returns:
- the reward issuance ID
-
setRewardIssuanceId
Sets the reward issuance ID as originally provided in the request.- Parameters:
rewardIssuanceId- the reward issuance ID
-
getRewardIssuance
Returns the updated reward issuance if the redemption was successful, or null otherwise.- Returns:
- the reward issuance
-
setRewardIssuance
Sets the updated reward issuance if the redemption was successful.- Parameters:
rewardIssuance- the reward issuance
-
getInventoryItem
Returns the inventory item that was updated if the redemption was successful, or null otherwise.- Returns:
- the inventory item
-
setInventoryItem
Sets the inventory item that was updated if the redemption was successful.- Parameters:
inventoryItem- the inventory item
-
getErrorDetails
Returns the error details if the redemption failed, or null otherwise.- Returns:
- the error details
-
setErrorDetails
Sets the error details if the redemption failed.- Parameters:
errorDetails- the error details
-
equals
-
hashCode
public int hashCode() -
toString
-