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.
  • Field Details

  • Constructor Details

    • RedemptionRollbackChannel

      public RedemptionRollbackChannel()
  • Method Details

    • channelId

      public RedemptionRollbackChannel channelId(String channelId)
    • getChannelId

      @Nullable public String 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

      public void setChannelId(String channelId)
    • channelType

    • getChannelType

      @Nullable public RedemptionRollbackChannel.ChannelTypeEnum 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(RedemptionRollbackChannel.ChannelTypeEnum channelType)
    • 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
    • fromJson

      public static RedemptionRollbackChannel fromJson(String jsonString) throws IOException
      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

      public String toJson()
      Convert an instance of RedemptionRollbackChannel to an JSON string
      Returns:
      JSON string