Class LoyaltiesEarningRulesEnableResponseBodySegment

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

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

  • Constructor Details

    • LoyaltiesEarningRulesEnableResponseBodySegment

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

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