Package io.voucherify.client.model
Class RedemptionsRollbackCreateResponseBodyChannel
java.lang.Object
io.voucherify.client.model.RedemptionsRollbackCreateResponseBodyChannel
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class RedemptionsRollbackCreateResponseBodyChannel
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 TypeMethodDescriptionbooleanCreate an instance of RedemptionsRollbackCreateResponseBodyChannel 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) voidtoJson()Convert an instance of RedemptionsRollbackCreateResponseBodyChannel to an JSON stringtoString()
-
Field Details
-
SERIALIZED_NAME_CHANNEL_ID
- See Also:
-
SERIALIZED_NAME_CHANNEL_TYPE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
RedemptionsRollbackCreateResponseBodyChannel
public RedemptionsRollbackCreateResponseBodyChannel()
-
-
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
public RedemptionsRollbackCreateResponseBodyChannel channelType(RedemptionsRollbackCreateResponseBodyChannel.ChannelTypeEnum 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
public void setChannelType(RedemptionsRollbackCreateResponseBodyChannel.ChannelTypeEnum channelType) -
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
public static RedemptionsRollbackCreateResponseBodyChannel fromJson(String jsonString) throws IOException Create an instance of RedemptionsRollbackCreateResponseBodyChannel given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of RedemptionsRollbackCreateResponseBodyChannel
- Throws:
IOException- if the JSON string is invalid with respect to RedemptionsRollbackCreateResponseBodyChannel
-
toJson
Convert an instance of RedemptionsRollbackCreateResponseBodyChannel to an JSON string- Returns:
- JSON string
-