Package io.voucherify.client.model
Class RedemptionChannel
java.lang.Object
io.voucherify.client.model.RedemptionChannel
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class RedemptionChannel
extends Object
Defines the details of the channel through which the redemption was issued.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe source of the channel for the redemption.static class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionchannelType(RedemptionChannel.ChannelTypeEnum channelType) booleanstatic RedemptionChannelCreate an instance of RedemptionChannel given an JSON stringUnique channel ID of the user performing the redemption.The source of the channel for the redemption.inthashCode()voidsetChannelId(String channelId) voidsetChannelType(RedemptionChannel.ChannelTypeEnum channelType) toJson()Convert an instance of RedemptionChannel to an JSON stringtoString()
-
Field Details
-
SERIALIZED_NAME_CHANNEL_ID
- See Also:
-
SERIALIZED_NAME_CHANNEL_TYPE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
RedemptionChannel
public RedemptionChannel()
-
-
Method Details
-
channelId
-
getChannelId
Unique channel ID of the user performing the redemption. This is either a user ID from a user using the Voucherify Dashboard or an X-APP-Id of a user using the API. For `AUTO_REDEEM`, it is the reward assignment ID.- Returns:
- channelId
-
setChannelId
-
channelType
-
getChannelType
The source of the channel for the redemption. A `USER` corresponds to the Voucherify Dashboard, `API` corresponds to the API, and `AUTO_REDEEM` corresponds to a loyalty campaign reward that has been redeemed automatically.- Returns:
- channelType
-
setChannelType
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
Create an instance of RedemptionChannel given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of RedemptionChannel
- Throws:
IOException- if the JSON string is invalid with respect to RedemptionChannel
-
toJson
Convert an instance of RedemptionChannel to an JSON string- Returns:
- JSON string
-