Class EventsCreateRequestBodyReferral

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

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class EventsCreateRequestBodyReferral extends Object
If a **conversion event** for a referral program is set to a custom event, then you need to send the referral code in the payload to make a record of the conversion event.
  • Field Details

  • Constructor Details

    • EventsCreateRequestBodyReferral

      public EventsCreateRequestBodyReferral()
  • Method Details

    • code

    • getCode

      @Nullable public String getCode()
      A code through which a new visitor has been referred to a service.
      Returns:
      code
    • setCode

      public void setCode(String code)
    • referrerId

      public EventsCreateRequestBodyReferral referrerId(String referrerId)
    • getReferrerId

      @Nullable public String getReferrerId()
      Unique ID of the referring person - it is optional and not required if the referral **code** is provided.
      Returns:
      referrerId
    • setReferrerId

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

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