Package io.voucherify.client.model
Class RedemptionRollbackChannel
java.lang.Object
io.voucherify.client.model.RedemptionRollbackChannel
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class RedemptionRollbackChannel
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(RedemptionRollbackChannel.ChannelTypeEnum channelType) booleanstatic RedemptionRollbackChannelCreate an instance of RedemptionRollbackChannel given an JSON stringUnique identifier of the channel which was used by the user performing the redemption rollback.The source of the channel for the redemption.inthashCode()voidsetChannelId(String channelId) voidsetChannelType(RedemptionRollbackChannel.ChannelTypeEnum channelType) toJson()Convert an instance of RedemptionRollbackChannel to an JSON stringtoString()
-
Field Details
-
SERIALIZED_NAME_CHANNEL_ID
- See Also:
-
SERIALIZED_NAME_CHANNEL_TYPE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
RedemptionRollbackChannel
public RedemptionRollbackChannel()
-
-
Method Details
-
channelId
-
getChannelId
Unique identifier of the channel which was used by the user performing the redemption rollback. This is either a user ID from the user using the Voucherify Dashboard or an X-APP-Id of a user using the API.- Returns:
- channelId
-
setChannelId
-
channelType
-
getChannelType
The source of the channel for the redemption. A `USER` corresponds to the Voucherify Dashboard and an `API` corresponds to the API.- Returns:
- channelType
-
setChannelType
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
Create an instance of RedemptionRollbackChannel given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of RedemptionRollbackChannel
- Throws:
IOException- if the JSON string is invalid with respect to RedemptionRollbackChannel
-
toJson
Convert an instance of RedemptionRollbackChannel to an JSON string- Returns:
- JSON string
-