Package io.voucherify.client.model
Class CustomerReferrals
java.lang.Object
io.voucherify.client.model.CustomerReferrals
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class CustomerReferrals
extends Object
Summary of customer's referrals, in this case, the customer being the referee, i.e. information about the source of referrals and number of times the customer was referred by other customers.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddCampaignsItem(CustomerReferralsCampaignsItem campaignsItem) campaigns(List<CustomerReferralsCampaignsItem> campaigns) booleanstatic CustomerReferralsCreate an instance of CustomerReferrals given an JSON stringContains an array of campaigns that served as the source of a referral for the customer.getTotal()Total number of times this customer received a referral, i.e.inthashCode()voidsetCampaigns(List<CustomerReferralsCampaignsItem> campaigns) voidtoJson()Convert an instance of CustomerReferrals to an JSON stringtoString()
-
Field Details
-
SERIALIZED_NAME_TOTAL
- See Also:
-
SERIALIZED_NAME_CAMPAIGNS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
CustomerReferrals
public CustomerReferrals()
-
-
Method Details
-
total
-
getTotal
Total number of times this customer received a referral, i.e. was referred by another customer.- Returns:
- total
-
setTotal
-
campaigns
-
addCampaignsItem
-
getCampaigns
Contains an array of campaigns that served as the source of a referral for the customer.- Returns:
- campaigns
-
setCampaigns
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
Create an instance of CustomerReferrals given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CustomerReferrals
- Throws:
IOException- if the JSON string is invalid with respect to CustomerReferrals
-
toJson
Convert an instance of CustomerReferrals to an JSON string- Returns:
- JSON string
-