Package io.voucherify.client.model
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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCreate an instance of EventsCreateRequestBodyReferral given an JSON stringgetCode()A code through which a new visitor has been referred to a service.Unique ID of the referring person - it is optional and not required if the referral **code** is provided.inthashCode()referrerId(String referrerId) voidvoidsetReferrerId(String referrerId) toJson()Convert an instance of EventsCreateRequestBodyReferral to an JSON stringtoString()
-
Field Details
-
SERIALIZED_NAME_CODE
- See Also:
-
SERIALIZED_NAME_REFERRER_ID
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
EventsCreateRequestBodyReferral
public EventsCreateRequestBodyReferral()
-
-
Method Details
-
code
-
getCode
A code through which a new visitor has been referred to a service.- Returns:
- code
-
setCode
-
referrerId
-
getReferrerId
Unique ID of the referring person - it is optional and not required if the referral **code** is provided.- Returns:
- referrerId
-
setReferrerId
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
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
Convert an instance of EventsCreateRequestBodyReferral to an JSON string- Returns:
- JSON string
-