Package io.voucherify.client.model
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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCreate an instance of ClientEventsCreateRequestBodyReferral 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 ClientEventsCreateRequestBodyReferral to an JSON stringtoString()
-
Field Details
-
SERIALIZED_NAME_CODE
- See Also:
-
SERIALIZED_NAME_REFERRER_ID
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
ClientEventsCreateRequestBodyReferral
public ClientEventsCreateRequestBodyReferral()
-
-
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 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
Convert an instance of ClientEventsCreateRequestBodyReferral to an JSON string- Returns:
- JSON string
-