Class LoyaltiesEarningRulesCreateRequestBodyItemCustomEvent

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

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class LoyaltiesEarningRulesCreateRequestBodyItemCustomEvent extends Object
Contains the schema id of a custom event. **Required** for the custom event option in `event`.
  • Field Details

  • Constructor Details

    • LoyaltiesEarningRulesCreateRequestBodyItemCustomEvent

      public LoyaltiesEarningRulesCreateRequestBodyItemCustomEvent()
  • Method Details

    • schemaId

    • getSchemaId

      @Nullable public String getSchemaId()
      Contains a unique identifier of a custom event schema. Assigned by the Voucherify API.
      Returns:
      schemaId
    • setSchemaId

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

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