Class LoyaltiesEarningRulesCreateRequestBodyItemSegment

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

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

  • Constructor Details

    • LoyaltiesEarningRulesCreateRequestBodyItemSegment

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

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