Class OrderRedemptionsEntry

java.lang.Object
io.voucherify.client.model.OrderRedemptionsEntry

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class OrderRedemptionsEntry extends Object
OrderRedemptionsEntry
  • Field Details

  • Constructor Details

    • OrderRedemptionsEntry

      public OrderRedemptionsEntry()
  • Method Details

    • date

    • getDate

      @Nullable public OffsetDateTime getDate()
      Timestamp representing the date and time when the redemption was created. The value is shown in the ISO 8601 format.
      Returns:
      date
    • setDate

      public void setDate(OffsetDateTime date)
    • rollbackId

      public OrderRedemptionsEntry rollbackId(String rollbackId)
    • getRollbackId

      @Nullable public String getRollbackId()
      Unique ID of the redemption rollback.
      Returns:
      rollbackId
    • setRollbackId

      public void setRollbackId(String rollbackId)
    • rollbackDate

      public OrderRedemptionsEntry rollbackDate(OffsetDateTime rollbackDate)
    • getRollbackDate

      @Nullable public OffsetDateTime getRollbackDate()
      Timestamp representing the date and tiem when the redemption rollback was created. The value is shown in the ISO 8601 format.
      Returns:
      rollbackDate
    • setRollbackDate

      public void setRollbackDate(OffsetDateTime rollbackDate)
    • relatedObjectType

      public OrderRedemptionsEntry relatedObjectType(String relatedObjectType)
    • getRelatedObjectType

      @Nullable public String getRelatedObjectType()
      The source of the incentive.
      Returns:
      relatedObjectType
    • setRelatedObjectType

      public void setRelatedObjectType(String relatedObjectType)
    • relatedObjectId

      public OrderRedemptionsEntry relatedObjectId(String relatedObjectId)
    • getRelatedObjectId

      @Nullable public String getRelatedObjectId()
      Unique ID of the parent redemption.
      Returns:
      relatedObjectId
    • setRelatedObjectId

      public void setRelatedObjectId(String relatedObjectId)
    • relatedObjectParentId

      public OrderRedemptionsEntry relatedObjectParentId(String relatedObjectParentId)
    • getRelatedObjectParentId

      @Nullable public String getRelatedObjectParentId()
      Represent's the campaign ID of the voucher if the redemption was based on a voucher that was part of bulk codes generated within a campaign. In case of a promotion tier, this represents the campaign ID of the promotion tier's parent campaign.
      Returns:
      relatedObjectParentId
    • setRelatedObjectParentId

      public void setRelatedObjectParentId(String relatedObjectParentId)
    • stacked

      public OrderRedemptionsEntry stacked(List<String> stacked)
    • addStackedItem

      public OrderRedemptionsEntry addStackedItem(String stackedItem)
    • getStacked

      @Nullable public List<String> getStacked()
      Contains a list of unique IDs of child redemptions, which belong to the stacked incentives.
      Returns:
      stacked
    • setStacked

      public void setStacked(List<String> stacked)
    • rollbackStacked

      public OrderRedemptionsEntry rollbackStacked(List<String> rollbackStacked)
    • addRollbackStackedItem

      public OrderRedemptionsEntry addRollbackStackedItem(String rollbackStackedItem)
    • getRollbackStacked

      @Nullable public List<String> getRollbackStacked()
      Lists the rollback redemption IDs of the particular child redemptions.
      Returns:
      rollbackStacked
    • setRollbackStacked

      public void setRollbackStacked(List<String> rollbackStacked)
    • 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 OrderRedemptionsEntry fromJson(String jsonString) throws IOException
      Create an instance of OrderRedemptionsEntry given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of OrderRedemptionsEntry
      Throws:
      IOException - if the JSON string is invalid with respect to OrderRedemptionsEntry
    • toJson

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