Class ClientEventsCreateRequestBodyReferral

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

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class ClientEventsCreateRequestBodyReferral 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

    • ClientEventsCreateRequestBodyReferral

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

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