Class EarningRuleSegment

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

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

  • Constructor Details

    • EarningRuleSegment

      public EarningRuleSegment()
  • Method Details

    • id

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

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