Class LoyaltiesEarningRulesCreateResponseBodySegment

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

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class LoyaltiesEarningRulesCreateResponseBodySegment extends Object
Contains the ID of a customer segment. Required for the `customer.segment.entered` option in the event.
  • Field Details

  • Constructor Details

    • LoyaltiesEarningRulesCreateResponseBodySegment

      public LoyaltiesEarningRulesCreateResponseBodySegment()
  • Method Details

    • id

    • getId

      @Nullable public String getId()
      Contains a unique identifier of a customer segment. Assigned by the Voucherify API.
      Returns:
      id
    • setId

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

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