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

  • Constructor Details

    • RedemptionChannel

      public RedemptionChannel()
  • Method Details

    • channelId

      public RedemptionChannel channelId(String channelId)
    • getChannelId

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

      public void setChannelId(String channelId)
    • channelType

      public RedemptionChannel channelType(RedemptionChannel.ChannelTypeEnum channelType)
    • getChannelType

      @Nullable public RedemptionChannel.ChannelTypeEnum 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

      public void setChannelType(RedemptionChannel.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 RedemptionChannel fromJson(String jsonString) throws IOException
      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

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